PageSourceSearch

https://www.tescoplc.com/fe/assets/js/vendor.1787226388103.js

js tescoplc.com collected 2026-09-24 08:36:36 UTC 2,157,599 bytes, 3,929 lines download raw bytes

1var Aoe=Object.defineProperty;var Moe=(t,e,n)=>e in t?Aoe(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var zu=(t,e,n)=>(Moe(t,typeof e!="symbol"?e+"":e,n),n);function fa(t,e){const n=Object.create(null),i=t.split(",");for(let r=0;r<i.length;r++)n[i[r]]=!0;return e?r=>!!n[r.toLowerCase()]:r=>!!n[r]}const Doe="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt",Poe=fa(Doe);function Eb(t){if(St(t)){const e={};for(let n=0;n<t.length;n++){const i=t[n],r=Jt(i)?NH(i):Eb(i);if(r)for(const s in r)e[s]=r[s]}return e}else{if(Jt(t))return t;if(Zn(t))return t}}const Ooe=/;(?![^(]*\))/g,Roe=/:([^]+)/,koe=new RegExp("\\/\\*.*?\\*\\/","gs");function NH(t){const e={};return t.replace(koe,"").split(Ooe).forEach(n=>{if(n){const i=n.split(Roe);i.length>1&&(e[i[0].trim()]=i[1].trim())}}),e}function wb(t){let e="";if(Jt(t))e=t;else if(St(t))for(let n=0;n<t.length;n++){const i=wb(t[n]);i&&(e+=i+" ")}else if(Zn(t))for(const n in t)t[n]&&(e+=n+" ");return e.trim()}function Ioe(t){if(!t)return null;let{class:e,style:n}=t;return e&&!Jt(e)&&(t.class=wb(e)),n&&(t.style=Eb(n)),t}const Loe="html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot",Foe="svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistantLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view",Noe="area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr",Boe=fa(Loe),Uoe=fa(Foe),$oe=fa(Noe),zoe="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Hoe=fa(zoe);function BH(t){return!!t||t===""}function Voe(t,e){if(t.length!==e.length)return!1;let n=!0;for(let i=0;n&&i<t.length;i++)n=sd(t[i],e[i]);return n}function sd(t,e){if(t===e)return!0;let n=u6(t),i=u6(e);if(n||i)return n&&i?t.getTime()===e.getTime():!1;if(n=ad(t),i=ad(e),n||i)return t===e;if(n=St(t),i=St(e),n||i)return n&&i?Voe(t,e):!1;if(n=Zn(t),i=Zn(e),n||i){if(!n||!i)return!1;const r=Object.keys(t).length,s=Object.keys(e).length;if(r!==s)return!1;for(const a in t){const o=t.hasOwnProperty(a),l=e.hasOwnProperty(a);if(o&&!l||!o&&l||!sd(t[a],e[a]))return!1}}return String(t)===String(e)}function FE(t,e){return t.findIndex(n=>sd(n,e))}const Woe=t=>Jt(t)?t:t==null?"":St(t)||Zn(t)&&(t.toString===$H||!Yt(t.toString))?JSON.stringify(t,UH,2):String(t),UH=(t,e)=>e&&e.__v_isRef?UH(t,e.value):mm(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((n,[i,r])=>(n[`${i} =>`]=r,n),{})}:Sp(e)?{[`Set(${e.size})`]:[...e.values()]}:Zn(e)&&!St(e)&&!zH(e)?String(e):e,zn={},pm=[],Ms=()=>{},dT=()=>!1,Goe=/^on[^a-z]/,xp=t=>Goe.test(t),ik=t=>t.startsWith("onUpdate:"),Ln=Object.assign,rk=(t,e)=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)},joe=Object.prototype.hasOwnProperty,On=(t,e)=>joe.call(t,e),St=Array.isArray,mm=t=>Og(t)==="[object Map]",Sp=t=>Og(t)==="[object Set]",u6=t=>Og(t)==="[object Date]",qoe=t=>Og(t)==="[object RegExp]",Yt=t=>typeof t=="function",Jt=t=>typeof t=="string",ad=t=>typeof t=="symbol",Zn=t=>t!==null&&typeof t=="object",sk=t=>Zn(t)&&Yt(t.then)&&Yt(t.catch),$H=Object.prototype.toString,Og=t=>$H.call(t),Xoe=t=>Og(t).slice(8,-1),zH=t=>Og(t)==="[object Object]",ak=t=>Jt(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,Ph=fa(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Yoe=fa("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),NE=t=>{const e=Object.create(null);return n=>e[n]||(e[n]=t(n))},Koe=/-(\w)/g,Sr=NE(t=>t.replace(Koe,(e,n)=>n?n.toUpperCase():"")),Zoe=/\B([A-Z])/g,Ra=NE(t=>t.replace(Zoe,"-$1").toLowerCase()),Tp=NE(t=>t.charAt(0).toUpperCase()+t.slice(1)),gm=NE(t=>t?`on${Tp(t)}`:""),Vm=(t,e)=>!Object.is(t,e),_m=(t,e)=>{for(let n=0;n<t.length;n++)t[n](e)},XT=(t,e,n)=>{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value:n})},YT=t=>{const e=parseFloat(t);return isNaN(e)?t:e},KT=t=>{const e=Jt(t)?Number(t):NaN;return isNaN(e)?t:e};let c6;const Qoe=()=>c6||(c6=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});let Ea;class ok{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Ea,!e&&Ea&&(this.index=(Ea.scopes||(Ea.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const n=Ea;try{return Ea=this,e()}finally{Ea=n}}}on(){Ea=this}off(){Ea=this.parent}stop(e){if(this._active){let n,i;for(n=0,i=this.effects.length;n<i;n++)this.effects[n].stop();for(n=0,i=this.cleanups.length;n<i;n++)this.cleanups[n]();if(this.scopes)for(n=0,i=this.scopes.length;n<i;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!e){const r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.parent=void 0,this._active=!1}}}function lk(t){return new ok(t)}function HH(t,e=Ea){e&&e.active&&e.effects.push(t)}function BE(){return Ea}function uk(t){Ea&&Ea.cleanups.push(t)}const ck=t=>{const e=new Set(t);return e.w=0,e.n=0,e},VH=t=>(t.w&od)>0,WH=t=>(t.n&od)>0,Joe=({deps:t})=>{if(t.length)for(let e=0;e<t.length;e++)t[e].w|=od},ele=t=>{const{deps:e}=t;if(e.length){let n=0;for(let i=0;i<e.length;i++){const r=e[i];VH(r)&&!WH(r)?r.delete(t):e[n++]=r,r.w&=~od,r.n&=~od}e.length=n}},ZT=new WeakMap;let cv=0,od=1;const Q3=30;let tl;const Oh=Symbol(""),J3=Symbol("");
1class Cb{constructor(e,n=null,i){this.fn=e,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,HH(this,i)}run(){if(!this.active)return this.fn();let e=tl,n=jf;for(;e;){if(e===this)return;e=e.parent}try{return this.parent=tl,tl=this,jf=!0,od=1<<++cv,cv<=Q3?Joe(this):f6(this),this.fn()}finally{cv<=Q3&&ele(this),od=1<<--cv,tl=this.parent,jf=n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){tl===this?this.deferStop=!0:this.active&&(f6(this),this.onStop&&this.onStop(),this.active=!1)}}function f6(t){const{deps:e}=t;if(e.length){for(let n=0;n<e.length;n++)e[n].delete(t);e.length=0}}function tle(t,e){t.effect&&(t=t.effect.fn);const n=new Cb(t);e&&(Ln(n,e),e.scope&&HH(n,e.scope)),(!e||!e.lazy)&&n.run();const i=n.run.bind(n);return i.effect=n,i}function nle(t){t.effect.stop()}let jf=!0;const GH=[];function Rg(){GH.push(jf),jf=!1}function kg(){const t=GH.pop();jf=t===void 0?!0:t}function la(t,e,n){if(jf&&tl){let i=ZT.get(t);i||ZT.set(t,i=new Map);let r=i.get(n);r||i.set(n,r=ck()),jH(r)}}function jH(t,e){let n=!1;cv<=Q3?WH(t)||(t.n|=od,n=!VH(t)):n=!t.has(tl),n&&(t.add(tl),tl.deps.push(t))}function Cc(t,e,n,i,r,s){const a=ZT.get(t);if(!a)return;let o=[];if(e==="clear")o=[...a.values()];else if(n==="length"&&St(t)){const l=Number(i);a.forEach((u,c)=>{(c==="length"||c>=l)&&o.push(u)})}else switch(n!==void 0&&o.push(a.get(n)),e){case"add":St(t)?ak(n)&&o.push(a.get("length")):(o.push(a.get(Oh)),mm(t)&&o.push(a.get(J3)));break;case"delete":St(t)||(o.push(a.get(Oh)),mm(t)&&o.push(a.get(J3)));break;case"set":mm(t)&&o.push(a.get(Oh));break}if(o.length===1)o[0]&&eP(o[0]);else{const l=[];for(const u of o)u&&l.push(...u);eP(ck(l))}}function eP(t,e){const n=St(t)?t:[...t];for(const i of n)i.computed&&d6(i);for(const i of n)i.computed||d6(i)}function d6(t,e){(t!==tl||t.allowRecurse)&&(t.scheduler?t.scheduler():t.run())}function ile(t,e){var n;return(n=ZT.get(t))===null||n===void 0?void 0:n.get(e)}const rle=fa("__proto__,__v_isRef,__isVue"),qH=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(ad)),sle=UE(),ale=UE(!1,!0),ole=UE(!0),lle=UE(!0,!0),h6=ule();function ule(){const t={};return["includes","indexOf","lastIndexOf"].forEach(e=>{t[e]=function(...n){const i=$t(this);for(let s=0,a=this.length;s<a;s++)la(i,"get",s+"");const r=i[e](...n);return r===-1||r===!1?i[e](...n.map($t)):r}}),["push","pop","shift","unshift","splice"].forEach(e=>{t[e]=function(...n){Rg();const i=$t(this)[e].apply(this,n);return kg(),i}}),t}function cle(t){const e=$t(this);return la(e,"has",t),e.hasOwnProperty(t)}function UE(t=!1,e=!1){return function(i,r,s){if(r==="__v_isReactive")return!t;if(r==="__v_isReadonly")return t;if(r==="__v_isShallow")return e;if(r==="__v_raw"&&s===(t?e?eV:JH:e?QH:ZH).get(i))return i;const a=St(i);if(!t){if(a&&On(h6,r))return Reflect.get(h6,r,s);if(r==="hasOwnProperty")return cle}const o=Reflect.get(i,r,s);return(ad(r)?qH.has(r):rle(r))||(t||la(i,"get",r),e)?o:Pi(o)?a&&ak(r)?o:o.value:Zn(o)?t?dk(o):Ac(o):o}}const fle=XH(),dle=XH(!0);function XH(t=!1){return function(n,i,r,s){let a=n[i];if(tp(a)&&Pi(a)&&!Pi(r))return!1;if(!t&&(!xy(r)&&!tp(r)&&(a=$t(a),r=$t(r)),!St(n)&&Pi(a)&&!Pi(r)))return a.value=r,!0;const o=St(n)&&ak(i)?Number(i)<n.length:On(n,i),l=Reflect.set(n,i,r,s);return n===$t(s)&&(o?Vm(r,a)&&Cc(n,"set",i,r):Cc(n,"add",i,r)),l}}function hle(t,e){const n=On(t,e);t[e];const i=Reflect.deleteProperty(t,e);return i&&n&&Cc(t,"delete",e,void 0),i}function ple(t,e){const n=Reflect.has(t,e);return(!ad(e)||!qH.has(e))&&la(t,"has",e),n}function mle(t){return la(t,"iterate",St(t)?"length":Oh),Reflect.ownKeys(t)}const YH={get:sle,set:fle,deleteProperty:hle,has:ple,ownKeys:mle},KH={get:ole,set(t,e){return!0},deleteProperty(t,e){return!0}},gle=Ln({},YH,{get:ale,set:dle}),_le=Ln({},KH,{get:lle}),fk=t=>t,$E=t=>Reflect.getPrototypeOf(t);function _x(t,e,n=!1,i=!1){t=t.__v_raw;const r=$t(t),s=$t(e);n||(e!==s&&la(r,"get",e),la(r,"get",s));const{has:a}=$E(r),o=i?fk:n?hk:Sy;if(a.call(r,e))return o(t.get(e));if(a.call(r,s))return o(t.get(s));t!==r&&t.get(e)}function vx(t,e=!1){const n=this.__v_raw,i=$t(n),r=$t(t);return e||(t!==r&&la(i,"has",t),la(i,"has",r)),t===r?n.has(t):n.has(t)||n.has(r)}function yx(t,e=!1){return t=t.__v_raw,!e&&la($t(t),"iterate",Oh),Reflect.get(t,"size",t)}function p6(t){t=$t(t);const e=$t(this);return $E(e).has.call(e,t)||(e.add(t),Cc(e,"add",t,t)),this}function m6(t,e){e=$t(e);const n=$t(this),{has:i,get:r}=$E(n);let s=i.call(n,t);s||(t=$t(t),s=i.call(n,t));const a=r.call(n,t);return n.set(t,e),s?Vm(e,a)&&Cc(n,"set",t,e):Cc(n,"add",t,e),this}function g6(t){const e=$t(this),{has:n,get:i}=$E(e);let r=n.call(e,t);r||(t=$t(t),r=n.call(e,t)),i&&i.call(e,t);const s=e.delete(t);return r&&Cc(e,"delete",t,void 0),s}function _6(){const t=$t(this),e=t.size!==0,n=t.clear();return e&&Cc(t,"clear",void 0,void 0),n}function bx(t,e){return function(i,r){const s=this,a=s.__v_raw,o=$t(a),l=e?fk:t?hk:Sy;return!t&&la(o,"iterate",Oh),a.forEach((u,c)=>i.call(r,l(u),l(c),s))}}function xx(t,e,n){return function(...i){const r=this.__v_raw,s=$t(r),a=mm(s),o=t==="entries"||t===Symbol.iterator&&a,l=t==="keys"&&a,u=r[t](...i),c=n?fk:e?hk:Sy;return!e&&la(s,"iterate",l?J3:Oh),{next(){const{value:f,done:h}=u.next();return h?{value:f,done:h}:{value:o?[c(f[0]),c(f[1])]:c(f),done:h}},[Symbol.iterator](){return this}}}}function af(t){return function(...e){return t==="delete"?!1:this}}function vle(){const t={get(s){return _x(this,s)},get size(){return yx(this)}
1,has:vx,add:p6,set:m6,delete:g6,clear:_6,forEach:bx(!1,!1)},e={get(s){return _x(this,s,!1,!0)},get size(){return yx(this)},has:vx,add:p6,set:m6,delete:g6,clear:_6,forEach:bx(!1,!0)},n={get(s){return _x(this,s,!0)},get size(){return yx(this,!0)},has(s){return vx.call(this,s,!0)},add:af("add"),set:af("set"),delete:af("delete"),clear:af("clear"),forEach:bx(!0,!1)},i={get(s){return _x(this,s,!0,!0)},get size(){return yx(this,!0)},has(s){return vx.call(this,s,!0)},add:af("add"),set:af("set"),delete:af("delete"),clear:af("clear"),forEach:bx(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(s=>{t[s]=xx(s,!1,!1),n[s]=xx(s,!0,!1),e[s]=xx(s,!1,!0),i[s]=xx(s,!0,!0)}),[t,n,e,i]}const[yle,ble,xle,Sle]=vle();function zE(t,e){const n=e?t?Sle:xle:t?ble:yle;return(i,r,s)=>r==="__v_isReactive"?!t:r==="__v_isReadonly"?t:r==="__v_raw"?i:Reflect.get(On(n,r)&&r in i?n:i,r,s)}const Tle={get:zE(!1,!1)},Ele={get:zE(!1,!0)},wle={get:zE(!0,!1)},Cle={get:zE(!0,!0)},ZH=new WeakMap,QH=new WeakMap,JH=new WeakMap,eV=new WeakMap;function Ale(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Mle(t){return t.__v_skip||!Object.isExtensible(t)?0:Ale(Xoe(t))}function Ac(t){return tp(t)?t:HE(t,!1,YH,Tle,ZH)}function tV(t){return HE(t,!1,gle,Ele,QH)}function dk(t){return HE(t,!0,KH,wle,JH)}function Dle(t){return HE(t,!0,_le,Cle,eV)}function HE(t,e,n,i,r){if(!Zn(t)||t.__v_raw&&!(e&&t.__v_isReactive))return t;const s=r.get(t);if(s)return s;const a=Mle(t);if(a===0)return t;const o=new Proxy(t,a===2?i:n);return r.set(t,o),o}function tu(t){return tp(t)?tu(t.__v_raw):!!(t&&t.__v_isReactive)}function tp(t){return!!(t&&t.__v_isReadonly)}function xy(t){return!!(t&&t.__v_isShallow)}function vm(t){return tu(t)||tp(t)}function $t(t){const e=t&&t.__v_raw;return e?$t(e):t}function Wl(t){return XT(t,"__v_skip",!0),t}const Sy=t=>Zn(t)?Ac(t):t,hk=t=>Zn(t)?dk(t):t;function pk(t){jf&&tl&&(t=$t(t),jH(t.dep||(t.dep=ck())))}function VE(t,e){t=$t(t);const n=t.dep;n&&eP(n)}function Pi(t){return!!(t&&t.__v_isRef===!0)}function tn(t){return nV(t,!1)}function Ty(t){return nV(t,!0)}function nV(t,e){return Pi(t)?t:new Ple(t,e)}class Ple{constructor(e,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?e:$t(e),this._value=n?e:Sy(e)}get value(){return pk(this),this._value}set value(e){const n=this.__v_isShallow||xy(e)||tp(e);e=n?e:$t(e),Vm(e,this._rawValue)&&(this._rawValue=e,this._value=n?e:Sy(e),VE(this))}}function Ole(t){VE(t)}function nu(t){return Pi(t)?t.value:t}const Rle={get:(t,e,n)=>nu(Reflect.get(t,e,n)),set:(t,e,n,i)=>{const r=t[e];return Pi(r)&&!Pi(n)?(r.value=n,!0):Reflect.set(t,e,n,i)}};function mk(t){return tu(t)?t:new Proxy(t,Rle)}class kle{constructor(e){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:i}=e(()=>pk(this),()=>VE(this));this._get=n,this._set=i}get value(){return this._get()}set value(e){this._set(e)}}function Ile(t){return new kle(t)}function gk(t){const e=St(t)?new Array(t.length):{};for(const n in t)e[n]=_k(t,n);return e}class Lle{constructor(e,n,i){this._object=e,this._key=n,this._defaultValue=i,this.__v_isRef=!0}get value(){const e=this._object[this._key];return e===void 0?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return ile($t(this._object),this._key)}}function _k(t,e,n){const i=t[e];return Pi(i)?i:new Lle(t,e,n)}var iV;class Fle{constructor(e,n,i,r){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this[iV]=!1,this._dirty=!0,this.effect=new Cb(e,()=>{this._dirty||(this._dirty=!0,VE(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=i}get value(){const e=$t(this);return pk(e),(e._dirty||!e._cacheable)&&(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}iV="__v_isReadonly";function Nle(t,e,n=!1){let i,r;const s=Yt(t);return s?(i=t,r=Ms):(i=t.get,r=t.set),new Fle(i,r,s||!r,n)}function Ble(t,...e){}function Ule(t,e){}function yc(t,e,n,i){let r;try{r=i?t(...i):t()}catch(s){Ep(s,e,n)}return r}function Ua(t,e,n,i){if(Yt(t)){const s=yc(t,e,n,i);return s&&sk(s)&&s.catch(a=>{Ep(a,e,n)}),s}const r=[];for(let s=0;s<t.length;s++)r.push(Ua(t[s],e,n,i));return r}function Ep(t,e,n,i=!0){const r=e?e.vnode:null;if(e){let s=e.parent;const a=e.proxy,o=n;for(;s;){const u=s.ec;if(u){for(let c=0;c<u.length;c++)if(u[c](t,a,o)===!1)return}s=s.parent}const l=e.appContext.config.errorHandler;if(l){yc(l,null,10,[t,a,o]);return}}$le(t,n,r,i)}function $le(t,e,n,i=!0){console.error(t)}let Ey=!1,tP=!1;const Kr=[];let zl=0;const ym=[];let tc=null,_h=0;const rV=Promise.resolve();let vk=null;function Ig(t){const e=vk||rV;return t?e.then(this?t.bind(this):t):e}function zle(t){let e=zl+1,n=Kr.length;for(;e<n;){const i=e+n>>>1;wy(Kr[i])<t?e=i+1:n=i}return e}function WE(t){(!Kr.length||!Kr.includes(t,Ey&&t.allowRecurse?zl+1:zl))&&(t.id==null?Kr.push(t):Kr.splice(zle(t.id),0,t),sV())}function sV(){!Ey&&!tP&&(tP=!0,vk=rV.then(aV))}function Hle(t){const e=Kr.indexOf(t);e>zl&&Kr.splice(e,1)}
1function yk(t){St(t)?ym.push(...t):(!tc||!tc.includes(t,t.allowRecurse?_h+1:_h))&&ym.push(t),sV()}function v6(t,e=Ey?zl+1:0){for(;e<Kr.length;e++){const n=Kr[e];n&&n.pre&&(Kr.splice(e,1),e--,n())}}function QT(t){if(ym.length){const e=[...new Set(ym)];if(ym.length=0,tc){tc.push(...e);return}for(tc=e,tc.sort((n,i)=>wy(n)-wy(i)),_h=0;_h<tc.length;_h++)tc[_h]();tc=null,_h=0}}const wy=t=>t.id==null?1/0:t.id,Vle=(t,e)=>{const n=wy(t)-wy(e);if(n===0){if(t.pre&&!e.pre)return-1;if(e.pre&&!t.pre)return 1}return n};function aV(t){tP=!1,Ey=!0,Kr.sort(Vle);const e=Ms;try{for(zl=0;zl<Kr.length;zl++){const n=Kr[zl];n&&n.active!==!1&&yc(n,null,14)}}finally{zl=0,Kr.length=0,QT(),Ey=!1,vk=null,(Kr.length||ym.length)&&aV()}}let nl,fv=[],nP=!1;function GE(t,...e){nl?nl.emit(t,...e):nP||fv.push({event:t,args:e})}function bk(t,e){var n,i;nl=t,nl?(nl.enabled=!0,fv.forEach(({event:r,args:s})=>nl.emit(r,...s)),fv=[]):typeof window<"u"&&window.HTMLElement&&!(!((i=(n=window.navigator)===null||n===void 0?void 0:n.userAgent)===null||i===void 0)&&i.includes("jsdom"))?((e.__VUE_DEVTOOLS_HOOK_REPLAY__=e.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(s=>{bk(s,e)}),setTimeout(()=>{nl||(e.__VUE_DEVTOOLS_HOOK_REPLAY__=null,nP=!0,fv=[])},3e3)):(nP=!0,fv=[])}function Wle(t,e){GE("app:init",t,e,{Fragment:yr,Text:ld,Comment:Nr,Static:qf})}function Gle(t){GE("app:unmount",t)}const iP=xk("component:added"),oV=xk("component:updated"),jle=xk("component:removed"),qle=t=>{nl&&typeof nl.cleanupBuffer=="function"&&!nl.cleanupBuffer(t)&&jle(t)};function xk(t){return e=>{GE(t,e.appContext.app,e.uid,e.parent?e.parent.uid:void 0,e)}}function Xle(t,e,n){GE("component:emit",t.appContext.app,t,e,n)}function Yle(t,e,...n){if(t.isUnmounted)return;const i=t.vnode.props||zn;let r=n;const s=e.startsWith("update:"),a=s&&e.slice(7);if(a&&a in i){const c=`${a==="modelValue"?"model":a}Modifiers`,{number:f,trim:h}=i[c]||zn;h&&(r=n.map(p=>Jt(p)?p.trim():p)),f&&(r=n.map(YT))}Xle(t,e,r);let o,l=i[o=gm(e)]||i[o=gm(Sr(e))];!l&&s&&(l=i[o=gm(Ra(e))]),l&&Ua(l,t,6,r);const u=i[o+"Once"];if(u){if(!t.emitted)t.emitted={};else if(t.emitted[o])return;t.emitted[o]=!0,Ua(u,t,6,r)}}function lV(t,e,n=!1){const i=e.emitsCache,r=i.get(t);if(r!==void 0)return r;const s=t.emits;let a={},o=!1;if(!Yt(t)){const l=u=>{const c=lV(u,e,!0);c&&(o=!0,Ln(a,c))};!n&&e.mixins.length&&e.mixins.forEach(l),t.extends&&l(t.extends),t.mixins&&t.mixins.forEach(l)}return!s&&!o?(Zn(t)&&i.set(t,null),null):(St(s)?s.forEach(l=>a[l]=null):Ln(a,s),Zn(t)&&i.set(t,a),a)}function jE(t,e){return!t||!xp(e)?!1:(e=e.slice(2).replace(/Once$/,""),On(t,e[0].toLowerCase()+e.slice(1))||On(t,Ra(e))||On(t,e))}let Ir=null,qE=null;function Cy(t){const e=Ir;return Ir=t,qE=t&&t.type.__scopeId||null,e}function Kle(t){qE=t}function Zle(){qE=null}const Qle=t=>XE;function XE(t,e=Ir,n){if(!e||t._n)return t;const i=(...r)=>{i._d&&fP(-1);const s=Cy(e);let a;try{a=t(...r)}finally{Cy(s),i._d&&fP(1)}return oV(e),a};return i._n=!0,i._c=!0,i._d=!0,i}function hT(t){const{type:e,vnode:n,proxy:i,withProxy:r,props:s,propsOptions:[a],slots:o,attrs:l,emit:u,render:c,renderCache:f,data:h,setupState:p,ctx:m,inheritAttrs:y}=t;let v,_;const b=Cy(t);try{if(n.shapeFlag&4){const T=r||i;v=Pa(c.call(T,T,f,s,p,h,m)),_=l}else{const T=e;v=Pa(T.length>1?T(s,{attrs:l,slots:o,emit:u}):T(s,null)),_=e.props?l:eue(l)}}catch(T){Lv.length=0,Ep(T,t,1),v=mi(Nr)}let x=v;if(_&&y!==!1){const T=Object.keys(_),{shapeFlag:E}=x;T.length&&E&7&&(a&&T.some(ik)&&(_=tue(_,a)),x=cu(x,_))}return n.dirs&&(x=cu(x),x.dirs=x.dirs?x.dirs.concat(n.dirs):n.dirs),n.transition&&(x.transition=n.transition),v=x,Cy(b),v}function Jle(t){let e;for(let n=0;n<t.length;n++){const i=t[n];if(ud(i)){if(i.type!==Nr||i.children==="v-if"){if(e)return;e=i}}else return}return e}const eue=t=>{let e;for(const n in t)(n==="class"||n==="style"||xp(n))&&((e||(e={}))[n]=t[n]);return e},tue=(t,e)=>{const n={};for(const i in t)(!ik(i)||!(i.slice(9)in e))&&(n[i]=t[i]);return n};function nue(t,e,n){const{props:i,children:r,component:s}=t,{props:a,children:o,patchFlag:l}=e,u=s.emitsOptions;if(e.dirs||e.transition)return!0;if(n&&l>=0){if(l&1024)return!0;
1if(l&16)return i?y6(i,a,u):!!a;if(l&8){const c=e.dynamicProps;for(let f=0;f<c.length;f++){const h=c[f];if(a[h]!==i[h]&&!jE(u,h))return!0}}}else return(r||o)&&(!o||!o.$stable)?!0:i===a?!1:i?a?y6(i,a,u):!0:!!a;return!1}function y6(t,e,n){const i=Object.keys(e);if(i.length!==Object.keys(t).length)return!0;for(let r=0;r<i.length;r++){const s=i[r];if(e[s]!==t[s]&&!jE(n,s))return!0}return!1}function Sk({vnode:t,parent:e},n){for(;e&&e.subTree===t;)(t=e.vnode).el=n,e=e.parent}const uV=t=>t.__isSuspense,iue={name:"Suspense",__isSuspense:!0,process(t,e,n,i,r,s,a,o,l,u){t==null?sue(e,n,i,r,s,a,o,l,u):aue(t,e,n,i,r,a,o,l,u)},hydrate:oue,create:Tk,normalize:lue},rue=iue;function Ay(t,e){const n=t.props&&t.props[e];Yt(n)&&n()}function sue(t,e,n,i,r,s,a,o,l){const{p:u,o:{createElement:c}}=l,f=c("div"),h=t.suspense=Tk(t,r,i,e,f,n,s,a,o,l);u(null,h.pendingBranch=t.ssContent,f,null,i,h,s,a),h.deps>0?(Ay(t,"onPending"),Ay(t,"onFallback"),u(null,t.ssFallback,e,n,i,null,s,a),bm(h,t.ssFallback)):h.resolve()}function aue(t,e,n,i,r,s,a,o,{p:l,um:u,o:{createElement:c}}){const f=e.suspense=t.suspense;f.vnode=e,e.el=t.el;const h=e.ssContent,p=e.ssFallback,{activeBranch:m,pendingBranch:y,isInFallback:v,isHydrating:_}=f;if(y)f.pendingBranch=h,il(h,y)?(l(y,h,f.hiddenContainer,null,r,f,s,a,o),f.deps<=0?f.resolve():v&&(l(m,p,n,i,r,null,s,a,o),bm(f,p))):(f.pendingId++,_?(f.isHydrating=!1,f.activeBranch=y):u(y,r,f),f.deps=0,f.effects.length=0,f.hiddenContainer=c("div"),v?(l(null,h,f.hiddenContainer,null,r,f,s,a,o),f.deps<=0?f.resolve():(l(m,p,n,i,r,null,s,a,o),bm(f,p))):m&&il(h,m)?(l(m,h,n,i,r,f,s,a,o),f.resolve(!0)):(l(null,h,f.hiddenContainer,null,r,f,s,a,o),f.deps<=0&&f.resolve()));else if(m&&il(h,m))l(m,h,n,i,r,f,s,a,o),bm(f,h);else if(Ay(e,"onPending"),f.pendingBranch=h,f.pendingId++,l(null,h,f.hiddenContainer,null,r,f,s,a,o),f.deps<=0)f.resolve();else{const{timeout:b,pendingId:x}=f;b>0?setTimeout(()=>{f.pendingId===x&&f.fallback(p)},b):b===0&&f.fallback(p)}}function Tk(t,e,n,i,r,s,a,o,l,u,c=!1){const{p:f,m:h,um:p,n:m,o:{parentNode:y,remove:v}}=u,_=t.props?KT(t.props.timeout):void 0,b={vnode:t,parent:e,parentComponent:n,isSVG:a,container:i,hiddenContainer:r,anchor:s,deps:0,pendingId:0,timeout:typeof _=="number"?_:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:c,isUnmounted:!1,effects:[],resolve(x=!1){const{vnode:T,activeBranch:E,pendingBranch:C,pendingId:D,effects:R,parentComponent:A,container:k}=b;if(b.isHydrating)b.isHydrating=!1;else if(!x){const U=E&&C.transition&&C.transition.mode==="out-in";U&&(E.transition.afterLeave=()=>{D===b.pendingId&&h(C,k,$,0)});let{anchor:$}=b;E&&($=m(E),p(E,A,b,!0)),U||h(C,k,$,0)}bm(b,C),b.pendingBranch=null,b.isInFallback=!1;let F=b.parent,N=!1;for(;F;){if(F.pendingBranch){F.effects.push(...R),N=!0;break}F=F.parent}N||yk(R),b.effects=[],Ay(T,"onResolve")},fallback(x){if(!b.pendingBranch)return;const{vnode:T,activeBranch:E,parentComponent:C,container:D,isSVG:R}=b;Ay(T,"onFallback");const A=m(E),k=()=>{!b.isInFallback||(f(null,x,D,A,C,null,R,o,l),bm(b,x))},F=x.transition&&x.transition.mode==="out-in";F&&(E.transition.afterLeave=k),b.isInFallback=!0,p(E,C,null,!0),F||k()},move(x,T,E){b.activeBranch&&h(b.activeBranch,x,T,E),b.container=x},next(){return b.activeBranch&&m(b.activeBranch)},registerDep(x,T){const E=!!b.pendingBranch;E&&b.deps++;const C=x.vnode.el;x.asyncDep.catch(D=>{Ep(D,x,0)}).then(D=>
1{if(x.isUnmounted||b.isUnmounted||b.pendingId!==x.suspenseId)return;x.asyncResolved=!0;const{vnode:R}=x;dP(x,D,!1),C&&(R.el=C);const A=!C&&x.subTree.el;T(x,R,y(C||x.subTree.el),C?null:m(x.subTree),b,a,l),A&&v(A),Sk(x,R.el),E&&--b.deps===0&&b.resolve()})},unmount(x,T){b.isUnmounted=!0,b.activeBranch&&p(b.activeBranch,n,x,T),b.pendingBranch&&p(b.pendingBranch,n,x,T)}};return b}function oue(t,e,n,i,r,s,a,o,l){const u=e.suspense=Tk(e,i,n,t.parentNode,document.createElement("div"),null,r,s,a,o,!0),c=l(t,u.pendingBranch=e.ssContent,n,u,s,a);return u.deps===0&&u.resolve(),c}function lue(t){const{shapeFlag:e,children:n}=t,i=e&32;t.ssContent=b6(i?n.default:n),t.ssFallback=i?b6(n.fallback):mi(Nr)}function b6(t){let e;if(Yt(t)){const n=ip&&t._c;n&&(t._d=!1,Gm()),t=t(),n&&(t._d=!0,e=Zs,NV())}return St(t)&&(t=Jle(t)),t=Pa(t),e&&!t.dynamicChildren&&(t.dynamicChildren=e.filter(n=>n!==t)),t}function cV(t,e){e&&e.pendingBranch?St(t)?e.effects.push(...t):e.effects.push(t):yk(t)}function bm(t,e){t.activeBranch=e;const{vnode:n,parentComponent:i}=t,r=n.el=e.el;i&&i.subTree===n&&(i.vnode.el=r,Sk(i,r))}function fV(t,e){if(Fi){let n=Fi.provides;const i=Fi.parent&&Fi.parent.provides;i===n&&(n=Fi.provides=Object.create(i)),n[t]=e}}function xm(t,e,n=!1){const i=Fi||Ir;if(i){const r=i.parent==null?i.vnode.appContext&&i.vnode.appContext.provides:i.parent.provides;if(r&&t in r)return r[t];if(arguments.length>1)return n&&Yt(e)?e.call(i.proxy):e}}function dV(t,e){return Ab(t,null,e)}function Ek(t,e){return Ab(t,null,{flush:"post"})}function uue(t,e){return Ab(t,null,{flush:"sync"})}const Sx={};function or(t,e,n){return Ab(t,e,n)}function Ab(t,e,{immediate:n,deep:i,flush:r,onTrack:s,onTrigger:a}=zn){const o=BE()===(Fi==null?void 0:Fi.scope)?Fi:null;let l,u=!1,c=!1;if(Pi(t)?(l=()=>t.value,u=xy(t)):tu(t)?(l=()=>t,i=!0):St(t)?(c=!0,u=t.some(x=>tu(x)||xy(x)),l=()=>t.map(x=>{if(Pi(x))return x.value;if(tu(x))return Th(x);if(Yt(x))return yc(x,o,2)})):Yt(t)?e?l=()=>yc(t,o,2):l=()=>{if(!(o&&o.isUnmounted))return f&&f(),Ua(t,o,3,[h])}:l=Ms,e&&i){const x=l;l=()=>Th(x())}let f,h=x=>{f=_.onStop=()=>{yc(x,o,4)}},p;if(jm)if(h=Ms,e?n&&Ua(e,o,3,[l(),c?[]:void 0,h]):l(),r==="sync"){const x=ZV();p=x.__watcherHandles||(x.__watcherHandles=[])}else return Ms;let m=c?new Array(t.length).fill(Sx):Sx;const y=()=>{if(!!_.active)if(e){const x=_.run();(i||u||(c?x.some((T,E)=>Vm(T,m[E])):Vm(x,m)))&&(f&&f(),Ua(e,o,3,[x,m===Sx?void 0:c&&m[0]===Sx?[]:m,h]),m=x)}else _.run()};y.allowRecurse=!!e;let v;r==="sync"?v=y:r==="post"?v=()=>Or(y,o&&o.suspense):(y.pre=!0,o&&(y.id=o.uid),v=()=>WE(y));const _=new Cb(l,v);e?n?y():m=_.run():r==="post"?Or(_.run.bind(_),o&&o.suspense):_.run();const b=()=>{_.stop(),o&&o.scope&&rk(o.scope.effects,_)};return p&&p.push(b),b}function cue(t,e,n){const i=this.proxy,r=Jt(t)?t.includes(".")?hV(i,t):()=>i[t]:t.bind(i,i);let s;Yt(e)?s=e:(s=e.handler,n=e);const a=Fi;cd(this);const o=Ab(r,s.bind(i),n);return a?cd(a):Xf(),o}function hV(t,e){const n=e.split(".");return()=>{let i=t;for(let r=0;r<n.length&&i;r++)i=i[n[r]];return i}}function Th(t,e){if(!Zn(t)||t.__v_skip||(e=e||new Set,e.has(t)))return t;if(e.add(t),Pi(t))Th(t.value,e);else if(St(t))for(let n=0;n<t.length;n++)Th(t[n],e);else if(Sp(t)||mm(t))t.forEach(n=>{Th(n,e)});else if(zH(t))for(const n in t)Th(t[n],e);return t}function wk(){const t={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return yu(()=>{t.isMounted=!0}),Cp(()=>{t.isUnmounting=!0}),t}const fo=[Function,Array],fue={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:fo,onEnter:fo,onAfterEnter:fo,onEnterCancelled:fo,onBeforeLeave:fo,onLeave:fo,onAfterLeave:fo,onLeaveCancelled:fo,onBeforeAppear:fo,onAppear:fo,onAfterAppear:fo,onAppearCancelled:fo},setup(t,{slots:e}){const n=bu(),i=wk();let r;return()=>{const s=e.default&&YE(e.default(),!0);if(!s||!s.length)return;let a=s[0];if(s.length>1){for(const y of s)if(y.type!==Nr){a=y;break}}const o=$t(t),{mode:l}=o;if(i.isLeaving)return KA(a);const u=x6(a);if(!u)return KA(a);const c=Wm(u,o,i,n);np(u,c);const f=n.subTree,h=f&&x6(f);let p=!1;const{getTransitionKey:m}=u.type;if(m){const y=m();r===void 0?r=y:y!==r&&(r=y,p=!0)}if(h&&h.type!==Nr&&(!il(u,h)||p)){const y=Wm(h,o,i,n);if(np(h,y),l==="out-in")return i.isLeaving=!0,y.afterLeave=()=>{i.isLeaving=!1,n.update.active!==!1&&n.update()},KA(a);l==="in-out"&&u.type!==Nr&&(y.delayLeave=(v,_,b)=>
vendor: 15,719 bytes, line 1
1{const x=pV(i,h);x[String(h.key)]=h,v._leaveCb=()=>{_(),v._leaveCb=void 0,delete c.delayedLeave},c.delayedLeave=b})}return a}}},Ck=fue;function pV(t,e){const{leavingVNodes:n}=t;let i=n.get(e.type);return i||(i=Object.create(null),n.set(e.type,i)),i}function Wm(t,e,n,i){const{appear:r,mode:s,persisted:a=!1,onBeforeEnter:o,onEnter:l,onAfterEnter:u,onEnterCancelled:c,onBeforeLeave:f,onLeave:h,onAfterLeave:p,onLeaveCancelled:m,onBeforeAppear:y,onAppear:v,onAfterAppear:_,onAppearCancelled:b}=e,x=String(t.key),T=pV(n,t),E=(R,A)=>{R&&Ua(R,i,9,A)},C=(R,A)=>{const k=A[1];E(R,A),St(R)?R.every(F=>F.length<=1)&&k():R.length<=1&&k()},D={mode:s,persisted:a,beforeEnter(R){let A=o;if(!n.isMounted)if(r)A=y||o;else return;R._leaveCb&&R._leaveCb(!0);const k=T[x];k&&il(t,k)&&k.el._leaveCb&&k.el._leaveCb(),E(A,[R])},enter(R){let A=l,k=u,F=c;if(!n.isMounted)if(r)A=v||l,k=_||u,F=b||c;else return;let N=!1;const U=R._enterCb=$=>{N||(N=!0,$?E(F,[R]):E(k,[R]),D.delayedLeave&&D.delayedLeave(),R._enterCb=void 0)};A?C(A,[R,U]):U()},leave(R,A){const k=String(t.key);if(R._enterCb&&R._enterCb(!0),n.isUnmounting)return A();E(f,[R]);let F=!1;const N=R._leaveCb=U=>{F||(F=!0,A(),U?E(m,[R]):E(p,[R]),R._leaveCb=void 0,T[k]===t&&delete T[k])};T[k]=t,h?C(h,[R,N]):N()},clone(R){return Wm(R,e,n,i)}};return D}function KA(t){if(Mb(t))return t=cu(t),t.children=null,t}function x6(t){return Mb(t)?t.children?t.children[0]:void 0:t}function np(t,e){t.shapeFlag&6&&t.component?np(t.component.subTree,e):t.shapeFlag&128?(t.ssContent.transition=e.clone(t.ssContent),t.ssFallback.transition=e.clone(t.ssFallback)):t.transition=e}function YE(t,e=!1,n){let i=[],r=0;for(let s=0;s<t.length;s++){let a=t[s];const o=n==null?a.key:String(n)+String(a.key!=null?a.key:s);a.type===yr?(a.patchFlag&128&&r++,i=i.concat(YE(a.children,e,o))):(e||a.type!==Nr)&&i.push(o!=null?cu(a,{key:o}):a)}if(r>1)for(let s=0;s<i.length;s++)i[s].patchFlag=-2;return i}function wp(t){return Yt(t)?{setup:t,name:t.name}:t}const Rh=t=>!!t.type.__asyncLoader;function due(t){Yt(t)&&(t={loader:t});const{loader:e,loadingComponent:n,errorComponent:i,delay:r=200,timeout:s,suspensible:a=!0,onError:o}=t;let l=null,u,c=0;const f=()=>(c++,l=null,h()),h=()=>{let p;return l||(p=l=e().catch(m=>{if(m=m instanceof Error?m:new Error(String(m)),o)return new Promise((y,v)=>{o(m,()=>y(f()),()=>v(m),c+1)});throw m}).then(m=>p!==l&&l?l:(m&&(m.__esModule||m[Symbol.toStringTag]==="Module")&&(m=m.default),u=m,m)))};return wp({name:"AsyncComponentWrapper",__asyncLoader:h,get __asyncResolved(){return u},setup(){const p=Fi;if(u)return()=>ZA(u,p);const m=b=>{l=null,Ep(b,p,13,!i)};if(a&&p.suspense||jm)return h().then(b=>()=>ZA(b,p)).catch(b=>(m(b),()=>i?mi(i,{error:b}):null));const y=tn(!1),v=tn(),_=tn(!!r);return r&&setTimeout(()=>{_.value=!1},r),s!=null&&setTimeout(()=>{if(!y.value&&!v.value){const b=new Error(`Async component timed out after ${s}ms.`);m(b),v.value=b}},s),h().then(()=>{y.value=!0,p.parent&&Mb(p.parent.vnode)&&WE(p.parent.update)}).catch(b=>{m(b),v.value=b}),()=>{if(y.value&&u)return ZA(u,p);if(v.value&&i)return mi(i,{error:v.value});if(n&&!_.value)return mi(n)}}})}function ZA(t,e){const{ref:n,props:i,children:r,ce:s}=e.vnode,a=mi(t,i,r);return a.ref=n,a.ce=s,delete e.vnode.ce,a}const Mb=t=>t.type.__isKeepAlive,hue={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(t,{slots:e}){const n=bu(),i=n.ctx;if(!i.renderer)return()=>{const b=e.default&&e.default();return b&&b.length===1?b[0]:b};const r=new Map,s=new Set;let a=null;n.__v_cache=r;const o=n.suspense,{renderer:{p:l,m:u,um:c,o:{createElement:f}}}=i,h=f("div");i.activate=(b,x,T,E,C)=>{const D=b.component;u(b,x,T,0,o),l(D.vnode,b,x,T,D,o,E,b.slotScopeIds,C),Or(()=>{D.isDeactivated=!1,D.a&&_m(D.a);const R=b.props&&b.props.onVnodeMounted;R&&Hs(R,D.parent,b)},o),iP(D)},i.deactivate=b=>{const x=b.component;u(b,h,null,1,o),Or(()=>{x.da&&_m(x.da);const T=b.props&&b.props.onVnodeUnmounted;T&&Hs(T,x.parent,b),x.isDeactivated=!0},o),iP(x)};function p(b){QA(b),c(b,n,o,!0)}function m(b){r.forEach((x,T)=>{const E=pP(x.type);E&&(!b||!b(E))&&y(T)})}function y(b){const x=r.get(b);!a||!il(x,a)?p(x):a&&QA(a),r.delete(b),s.delete(b)}or(()=>[t.include,t.exclude],([b,x])=>{b&&m(T=>dv(b,T)),x&&m(T=>!dv(x,T))},{flush:"post",deep:!0});let v=null;const _=()=>{v!=null&&r.set(v,JA(n.subTree))};return yu(_),Lg(_),Cp(()=>{r.forEach(b=>{const{subTree:x,suspense:T}=n,E=JA(x);if(b.type===E.type&&b.key===E.key){QA(E);const C=E.component.da;C&&Or(C,T);return}p(b)})}),()=>{if(v=null,!e.default)return null;const b=e.default(),x=b[0];if(b.length>1)return a=null,b;if(!ud(x)||!(x.shapeFlag&4)&&!(x.shapeFlag&128))return a=null,x;let T=JA(x);const E=T.type,C=pP(Rh(T)?T.type.__asyncResolved||{}:E),{include:D,exclude:R,max:A}=t;if(D&&(!C||!dv(D,C))||R&&C&&dv(R,C))return a=T,x;const k=T.key==null?E:T.key,F=r.get(k);return T.el&&(T=cu(T),x.shapeFlag&128&&(x.ssContent=T)),v=k,F?(T.el=F.el,T.component=F.component,T.transition&&np(T,T.transition),T.shapeFlag|=512,s.delete(k),s.add(k)):(s.add(k),A&&s.size>parseInt(A,10)&&y(s.values().next().value)),T.shapeFlag|=256,a=T,uV(x.type)?x:T}}},pue=hue;function dv(t,e){return St(t)?t.some(n=>dv(n,e)):Jt(t)?t.split(",").includes(e):qoe(t)?t.test(e):!1}function mV(t,e){_V(t,"a",e)}function gV(t,e){_V(t,"da",e)}function _V(t,e,n=Fi){const i=t.__wdc||(t.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return t()});if(KE(e,i,n),n){let r=n.parent;for(;r&&r.parent;)Mb(r.parent.vnode)&&mue(i,e,n,r),r=r.parent}}function mue(t,e,n,i){const r=KE(e,t,i,!0);Db(()=>{rk(i[e],r)},n)}function QA(t){t.shapeFlag&=-257,t.shapeFlag&=-513}function JA(t){return t.shapeFlag&128?t.ssContent:t}function KE(t,e,n=Fi,i=!1){if(n){const r=n[t]||(n[t]=[]),s=e.__weh||(e.__weh=(...a)=>{if(n.isUnmounted)return;Rg(),cd(n);const o=Ua(e,n,t,a);return Xf(),kg(),o});return i?r.unshift(s):r.push(s),s}}const Fc=t=>(e,n=Fi)=>(!jm||t==="sp")&&KE(t,(...i)=>e(...i),n),vV=Fc("bm"),yu=Fc("m"),Ak=Fc("bu"),Lg=Fc("u"),Cp=Fc("bum"),Db=Fc("um"),yV=Fc("sp"),bV=Fc("rtg"),xV=Fc("rtc");function SV(t,e=Fi){KE("ec",t,e)}function gue(t,e){const n=Ir;if(n===null)return t;const i=JE(n)||n.proxy,r=t.dirs||(t.dirs=[]);for(let s=0;s<e.length;s++){let[a,o,l,u=zn]=e[s];a&&(Yt(a)&&(a={mounted:a,updated:a}),a.deep&&Th(o),r.push({dir:a,instance:i,value:o,oldValue:void 0,arg:l,modifiers:u}))}return t}function Ll(t,e,n,i){const r=t.dirs,s=e&&e.dirs;for(let a=0;a<r.length;a++){const o=r[a];s&&(o.oldValue=s[a].value);let l=o.dir[i];l&&(Rg(),Ua(l,n,8,[t.el,o,t,e]),kg())}}const Mk="components",_ue="directives";function vue(t,e){return Dk(Mk,t,!0,e)||t}const TV=Symbol();function EV(t){return Jt(t)?Dk(Mk,t,!1)||t:t||TV}function yue(t){return Dk(_ue,t)}function Dk(t,e,n=!0,i=!1){const r=Ir||Fi;if(r){const s=r.type;if(t===Mk){const o=pP(s,!1);if(o&&(o===e||o===Sr(e)||o===Tp(Sr(e))))return s}const a=S6(r[t]||s[t],e)||S6(r.appContext[t],e);return!a&&i?s:a}}function S6(t,e){return t&&(t[e]||t[Sr(e)]||t[Tp(Sr(e))])}function bue(t,e,n,i){let r;const s=n&&n[i];if(St(t)||Jt(t)){r=new Array(t.length);for(let a=0,o=t.length;a<o;a++)r[a]=e(t[a],a,void 0,s&&s[a])}else if(typeof t=="number"){r=new Array(t);for(let a=0;a<t;a++)r[a]=e(a+1,a,void 0,s&&s[a])}else if(Zn(t))if(t[Symbol.iterator])r=Array.from(t,(a,o)=>e(a,o,void 0,s&&s[o]));else{const a=Object.keys(t);r=new Array(a.length);for(let o=0,l=a.length;o<l;o++){const u=a[o];r[o]=e(t[u],u,o,s&&s[o])}}else r=[];return n&&(n[i]=r),r}function xue(t,e){for(let n=0;n<e.length;n++){const i=e[n];if(St(i))for(let r=0;r<i.length;r++)t[i[r].name]=i[r].fn;else i&&(t[i.name]=i.key?(...r)=>{const s=i.fn(...r);return s&&(s.key=i.key),s}:i.fn)}return t}function rP(t,e,n={},i,r){if(Ir.isCE||Ir.parent&&Rh(Ir.parent)&&Ir.parent.isCE)return e!=="default"&&(n.name=e),mi("slot",n,i&&i());let s=t[e];s&&s._c&&(s._d=!1),Gm();const a=s&&wV(s(n)),o=ZE(yr,{key:n.key||a&&a.key||`_${e}`},a||(i?i():[]),a&&t._===1?64:-2);return!r&&o.scopeId&&(o.slotScopeIds=[o.scopeId+"-s"]),s&&s._c&&(s._d=!0),o}function wV(t){return t.some(e=>ud(e)?!(e.type===Nr||e.type===yr&&!wV(e.children)):!0)?t:null}function Sue(t,e){const n={};for(const i in t)n[e&&/[A-Z]/.test(i)?`on:${i}`:gm(i)]=t[i];return n}const sP=t=>t?WV(t)?JE(t)||t.proxy:sP(t.parent):null,kv=Ln(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>sP(t.parent),$root:t=>sP(t.root),$emit:t=>t.emit,$options:t=>Pk(t),$forceUpdate:t=>t.f||(t.f=()=>WE(t.update)),$nextTick:t=>t.n||(t.n=Ig.bind(t.proxy)),$watch:t=>cue.bind(t)}),eM=(t,e)=>t!==zn&&!t.__isScriptSetup&&On(t,e),aP={get({_:t},e){const{ctx:n,setupState:i,data:r,props:s,accessCache:a,type:o,appContext:l}=t;let u;if(e[0]!=="$"){const p=a[e];if(p!==void 0)switch(p){case 1:return i[e];case 2:return r[e];case 4:return n[e];case 3:return s[e]}else{if(eM(i,e))return a[e]=1,i[e];if(r!==zn&&On(r,e))return a[e]=2,r[e];if((u=t.propsOptions[0])&&On(u,e))return a[e]=3,s[e];if(n!==zn&&On(n,e))return a[e]=4,n[e];oP&&(a[e]=0)}}const c=kv[e];let f,h;if(c)return e==="$attrs"&&la(t,"get",e),c(t);if((f=o.__cssModules)&&(f=f[e]))return f;if(n!==zn&&On(n,e))return a[e]=4,n[e];if(h=l.config.globalProperties,On(h,e))return h[e]},set({_:t},e,n){const{data:i,setupState:r,ctx:s}=t;return eM(r,e)?(r[e]=n,!0):i!==zn&&On(i,e)?(i[e]=n,!0):On(t.props,e)||e[0]==="$"&&e.slice(1)in t?!1:(s[e]=n,!0)},has({_:{data:t,setupState:e,accessCache:n,ctx:i,appContext:r,propsOptions:s}},a){let o;return!!n[a]||t!==zn&&On(t,a)||eM(e,a)||(o=s[0])&&On(o,a)||On(i,a)||On(kv,a)||On(r.config.globalProperties,a)},defineProperty(t,e,n){return n.get!=null?t._.accessCache[e]=0:On(n,"value")&&this.set(t,e,n.value,null),Reflect.defineProperty(t,e,n)}},Tue=Ln({},aP,{get(t,e){if(e!==Symbol.unscopables)return aP.get(t,e,t)},has(t,e){return e[0]!=="_"&&!Poe(e)}});let oP=!0;function Eue(t){const e=Pk(t),n=t.proxy,i=t.ctx;oP=!1,e.beforeCreate&&T6(e.beforeCreate,t,"bc");const{data:r,computed:s,methods:a,watch:o,provide:l,inject:u,created:c,beforeMount:f,mounted:h,beforeUpdate:p,updated:m,activated:y,deactivated:v,beforeDestroy:_,beforeUnmount:b,destroyed:x,unmounted:T,render:E,renderTracked:C,renderTriggered:D,errorCaptured:R,serverPrefetch:A,expose:k,inheritAttrs:F,components:N,directives:U,filters:$}=e;if(u&&wue(u,i,null,t.appContext.config.unwrapInjectedRef),a)for(const Q in a){const re=a[Q];Yt(re)&&(i[Q]=re.bind(n))}if(r){const Q=r.call(n,n);Zn(Q)&&(t.data=Ac(Q))}if(oP=!0,s)for(const Q in s){const re=s[Q],he=Yt(re)?re.bind(n,n):Yt(re.get)?re.get.bind(n,n):Ms,X=!Yt(re)&&Yt(re.set)?re.set.bind(n):Ms,ae=rp({get:he,set:X});Object.defineProperty(i,Q,{enumerable:!0,configurable:!0,get:()=>ae.value,set:de=>ae.value=de})}if(o)for(const Q in o)CV(o[Q],i,n,Q);if(l){const Q=Yt(l)?l.call(n):l;Reflect.ownKeys(Q).forEach(re=>{fV(re,Q[re])})}c&&T6(c,t,"c");function Y(Q,re){St(re)?re.forEach(he=>Q(he.bind(n))):re&&Q(re.bind(n))}if(Y(vV,f),Y(yu,h),Y(Ak,p),Y(Lg,m),Y(mV,y),Y(gV,v),Y(SV,R),Y(xV,C),Y(bV,D),Y(Cp,b),Y(Db,T),Y(yV,A),St(k))if(k.length){const Q=t.exposed||(t.exposed={});k.forEach(re=>{Object.defineProperty(Q,re,{get:()=>n[re],set:he=>n[re]=he})})}else t.exposed||(t.exposed={});E&&t.render===Ms&&(t.render=E),F!=null&&(t.inheritAttrs=F),N&&(t.components=N),U&&(t.directives=U)}function wue(t,e,n=Ms,i=!1){St(t)&&(t=lP(t));for(const r in t){const s=t[r];let a;Zn(s)?"default"in s?a=xm(s.from||r,s.default,!0):a=xm(s.from||r):a=xm(s),Pi(a)&&i?Object.defineProperty(e,r,{enumerable:!0,configurable:!0,get:()=>a.value,set:o=>a.value=o}):e[r]=a}}function T6(t,e,n){Ua(St(t)?t.map(i=>i.bind(e.proxy)):t.bind(e.proxy),e,n)}function CV(t,e,n,i){const r=i.includes(".")?hV(n,i):()=>n[i];if(Jt(t)){const s=e[t];Yt(s)&&or(r,s)}else if(Yt(t))or(r,t.bind(n));else if(Zn(t))if(St(t))t.forEach(s=>CV(s,e,n,i));else{const s=Yt(t.handler)?t.handler.bind(n):e[t.handler];Yt(s)&&or(r,s,t)}}function Pk(t){const e=t.type,{mixins:n,extends:i}=e,{mixins:r,optionsCache:s,config:{optionMergeStrategies:a}}=t.appContext,o=s.get(e);let l;return o?l=o:!r.length&&!n&&!i?l=e:(l={},r.length&&r.forEach(u=>JT(l,u,a,!0)),JT(l,e,a)),Zn(e)&&s.set(e,l),l}function JT(t,e,n,i=!1){const{mixins:r,extends:s}=e;s&&JT(t,s,n,!0),r&&r.forEach(a=>JT(t,a,n,!0));for(const a in e)if(!(i&&a==="expose")){const o=Cue[a]||n&&n[a];t[a]=o?o(t[a],e[a]):e[a]}return t}const Cue={data:E6,props:lh,emits:lh,methods:lh,computed:lh,beforeCreate:ms,created:ms,beforeMount:ms,mounted:ms,beforeUpdate:ms,updated:ms,beforeDestroy:ms,beforeUnmount:ms,destroyed:ms,unmounted:ms,activated:ms,deactivated:ms,errorCaptured:ms,serverPrefetch:ms,components:lh,directives:lh,watch:Mue,provide:E6,inject:Aue};function E6(t,e){return e?t?function(){return Ln(Yt(t)?t.call(this,this):t,Yt(e)?e.call(this,this):e)}:e:t}function Aue(t,e){return lh(lP(t),lP(e))}function lP(t){if(St(t)){const e={};for(let n=0;n<t.length;n++)e[t[n]]=t[n];return e}return t}function ms(t,e){return t?[...new Set([].concat(t,e))]:e}function lh(t,e){return t?Ln(Ln(Object.create(null),t),e):e}function Mue(t,e){if(!t)return e;if(!e)return t;const n=Ln(Object.create(null),t);for(const i in e)n[i]=ms(t[i],e[i]);return n}function Due(t,e,n,i=!1){const r={},s={};XT(s,QE,1),t.propsDefaults=Object.create(null),AV(t,e,r,s);for(const a in t.propsOptions[0])a in r||(r[a]=void 0);n?t.props=i?r:tV(r):t.type.props?t.props=r:t.props=s,t.attrs=s}function Pue(t,e,n,i){const{props:r,attrs:s,vnode:{patchFlag:a}}=t,o=$t(r),[l]=t.propsOptions;let u=!1;if((i||a>0)&&!(a&16)){if(a&8){const c=t.vnode.dynamicProps;for(let f=0;f<c.length;f++){let h=c[f];if(jE(t.emitsOptions,h))continue;const p=e[h];if(l)if(On(s,h))p!==s[h]&&(s[h]=p,u=!0);else{const m=Sr(h);r[m]=uP(l,o,m,p,t,!1)}else p!==s[h]&&(s[h]=p,u=!0)}}}else{AV(t,e,r,s)&&(u=!0);let c;for(const f in o)(!e||!On(e,f)&&((c=Ra(f))===f||!On(e,c)))&&(l?n&&(n[f]!==void 0||n[c]!==void 0)&&(r[f]=uP(l,o,f,void 0,t,!0)):delete r[f]);if(s!==o)for(const f in s)(!e||!On(e,f)&&!0)&&(delete s[f],u=!0)}u&&Cc(t,"set","$attrs")}function AV(t,e,n,i){const[r,s]=t.propsOptions;let a=!1,o;if(e)for(let l in e){if(Ph(l))continue;const u=e[l];let c;r&&On(r,c=Sr(l))?!s||!s.includes(c)?n[c]=u:(o||(o={}))[c]=u:jE(t.emitsOptions,l)||(!(l in i)||u!==i[l])&&(i[l]=u,a=!0)}if(s){const l=$t(n),u=o||zn;for(let c=0;c<s.length;c++){const f=s[c];n[f]=uP(r,l,f,u[f],t,!On(u,f))}}return a}function uP(t,e,n,i,r,s){const a=t[n];if(a!=null){const o=On(a,"default");if(o&&i===void 0){const l=a.default;if(a.type!==Function&&Yt(l)){const{propsDefaults:u}=r;n in u?i=u[n]:(cd(r),i=u[n]=l.call(null,e),Xf())}else i=l}a[0]&&(s&&!o?i=!1:a[1]&&(i===""||i===Ra(n))&&(i=!0))}return i}function MV(t,e,n=!1){const i=e.propsCache,r=i.get(t);if(r)return r;const s=t.props,a={},o=[];let l=!1;if(!Yt(t)){const c=f=>{l=!0;const[h,p]=MV(f,e,!0);Ln(a,h),p&&o.push(...p)};!n&&e.mixins.length&&e.mixins.forEach(c),t.extends&&c(t.extends),t.mixins&&t.mixins.forEach(c)}if(!s&&!l)return Zn(t)&&i.set(t,pm),pm;if(St(s))for(let c=0;c<s.length;c++){const f=Sr(s[c]);w6(f)&&(a[f]=zn)}else if(s)for(const c in s){const f=Sr(c);if(w6(f)){const h=s[c],p=a[f]=St(h)||Yt(h)?{type:h}:Object.assign({},h);if(p){const m=M6(Boolean,p.type),y=M6(String,p.type);p[0]=m>-1,p[1]=y<0||m<y,(m>-1||On(p,"default"))&&o.push(f)}}}const u=[a,o];return Zn(t)&&i.set(t,u),u}function w6(t){return t[0]!=="$"}function C6(t){const e=t&&t.toString().match(/^\s*(function|class) (\w+)/);return e?e[2]:t===null?"null":""}function A6(t,e){return C6(t)===C6(e)}function M6(t,e){return St(e)?e.findIndex(n=>A6(n,t)):Yt(e)&&A6(e,t)?0:-1}const DV=t=>t[0]==="_"||t==="$stable",Ok=t=>St(t)?t.map(Pa):[Pa(t)],Oue=(t,e,n)=>{if(e._n)return e;const i=XE((...r)=>Ok(e(...r)),n);return i._c=!1,i},PV=(t,e,n)=>{const i=t._ctx;for(const r in t){if(DV(r))continue;const s=t[r];
1if(Yt(s))e[r]=Oue(r,s,i);else if(s!=null){const a=Ok(s);e[r]=()=>a}}},OV=(t,e)=>{const n=Ok(e);t.slots.default=()=>n},Rue=(t,e)=>{if(t.vnode.shapeFlag&32){const n=e._;n?(t.slots=$t(e),XT(e,"_",n)):PV(e,t.slots={})}else t.slots={},e&&OV(t,e);XT(t.slots,QE,1)},kue=(t,e,n)=>{const{vnode:i,slots:r}=t;let s=!0,a=zn;if(i.shapeFlag&32){const o=e._;o?n&&o===1?s=!1:(Ln(r,e),!n&&o===1&&delete r._):(s=!e.$stable,PV(e,r)),a=e}else e&&(OV(t,e),a={default:1});if(s)for(const o in r)!DV(o)&&!(o in a)&&delete r[o]};function RV(){return{app:null,config:{isNativeTag:dT,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Iue=0;function Lue(t,e){return function(i,r=null){Yt(i)||(i=Object.assign({},i)),r!=null&&!Zn(r)&&(r=null);const s=RV(),a=new Set;let o=!1;const l=s.app={_uid:Iue++,_component:i,_props:r,_container:null,_context:s,_instance:null,version:mP,get config(){return s.config},set config(u){},use(u,...c){return a.has(u)||(u&&Yt(u.install)?(a.add(u),u.install(l,...c)):Yt(u)&&(a.add(u),u(l,...c))),l},mixin(u){return s.mixins.includes(u)||s.mixins.push(u),l},component(u,c){return c?(s.components[u]=c,l):s.components[u]},directive(u,c){return c?(s.directives[u]=c,l):s.directives[u]},mount(u,c,f){if(!o){const h=mi(i,r);return h.appContext=s,c&&e?e(h,u):t(h,u,f),o=!0,l._container=u,u.__vue_app__=l,l._instance=h.component,Wle(l,mP),JE(h.component)||h.component.proxy}},unmount(){o&&(t(null,l._container),l._instance=null,Gle(l),delete l._container.__vue_app__)},provide(u,c){return s.provides[u]=c,l}};return l}}function e2(t,e,n,i,r=!1){if(St(t)){t.forEach((h,p)=>e2(h,e&&(St(e)?e[p]:e),n,i,r));return}if(Rh(i)&&!r)return;const s=i.shapeFlag&4?JE(i.component)||i.component.proxy:i.el,a=r?null:s,{i:o,r:l}=t,u=e&&e.r,c=o.refs===zn?o.refs={}:o.refs,f=o.setupState;if(u!=null&&u!==l&&(Jt(u)?(c[u]=null,On(f,u)&&(f[u]=null)):Pi(u)&&(u.value=null)),Yt(l))yc(l,o,12,[a,c]);else{const h=Jt(l),p=Pi(l);if(h||p){const m=()=>{if(t.f){const y=h?On(f,l)?f[l]:c[l]:l.value;r?St(y)&&rk(y,s):St(y)?y.includes(s)||y.push(s):h?(c[l]=[s],On(f,l)&&(f[l]=c[l])):(l.value=[s],t.k&&(c[t.k]=l.value))}else h?(c[l]=a,On(f,l)&&(f[l]=a)):p&&(l.value=a,t.k&&(c[t.k]=a))};a?(m.id=-1,Or(m,n)):m()}}}let of=!1;const Tx=t=>/svg/.test(t.namespaceURI)&&t.tagName!=="foreignObject",Ex=t=>t.nodeType===8;function Fue(t){const{mt:e,p:n,o:{patchProp:i,createText:r,nextSibling:s,parentNode:a,remove:o,insert:l,createComment:u}}=t,c=(_,b)=>{if(!b.hasChildNodes()){n(null,_,b),QT(),b._vnode=_;return}of=!1,f(b.firstChild,_,null,null,null),QT(),b._vnode=_,of&&console.error("Hydration completed but contains mismatches.")}
1,f=(_,b,x,T,E,C=!1)=>{const D=Ex(_)&&_.data==="[",R=()=>y(_,b,x,T,E,D),{type:A,ref:k,shapeFlag:F,patchFlag:N}=b;let U=_.nodeType;b.el=_,N===-2&&(C=!1,b.dynamicChildren=null);let $=null;switch(A){case ld:U!==3?b.children===""?(l(b.el=r(""),a(_),_),$=_):$=R():(_.data!==b.children&&(of=!0,_.data=b.children),$=s(_));break;case Nr:U!==8||D?$=R():$=s(_);break;case qf:if(D&&(_=s(_),U=_.nodeType),U===1||U===3){$=_;const G=!b.children.length;for(let Y=0;Y<b.staticCount;Y++)G&&(b.children+=$.nodeType===1?$.outerHTML:$.data),Y===b.staticCount-1&&(b.anchor=$),$=s($);return D?s($):$}else R();break;case yr:D?$=m(_,b,x,T,E,C):$=R();break;default:if(F&1)U!==1||b.type.toLowerCase()!==_.tagName.toLowerCase()?$=R():$=h(_,b,x,T,E,C);else if(F&6){b.slotScopeIds=E;const G=a(_);if(e(b,G,null,x,T,Tx(G),C),$=D?v(_):s(_),$&&Ex($)&&$.data==="teleport end"&&($=s($)),Rh(b)){let Y;D?(Y=mi(yr),Y.anchor=$?$.previousSibling:G.lastChild):Y=_.nodeType===3?Ik(""):mi("div"),Y.el=_,b.component.subTree=Y}}else F&64?U!==8?$=R():$=b.type.hydrate(_,b,x,T,E,C,t,p):F&128&&($=b.type.hydrate(_,b,x,T,Tx(a(_)),E,C,t,f))}return k!=null&&e2(k,null,T,b),$},h=(_,b,x,T,E,C)=>{C=C||!!b.dynamicChildren;const{type:D,props:R,patchFlag:A,shapeFlag:k,dirs:F}=b,N=D==="input"&&F||D==="option";if(N||A!==-1){if(F&&Ll(b,null,x,"created"),R)if(N||!C||A&48)for(const $ in R)(N&&$.endsWith("value")||xp($)&&!Ph($))&&i(_,$,null,R[$],!1,void 0,x);else R.onClick&&i(_,"onClick",null,R.onClick,!1,void 0,x);let U;if((U=R&&R.onVnodeBeforeMount)&&Hs(U,x,b),F&&Ll(b,null,x,"beforeMount"),((U=R&&R.onVnodeMounted)||F)&&cV(()=>{U&&Hs(U,x,b),F&&Ll(b,null,x,"mounted")},T),k&16&&!(R&&(R.innerHTML||R.textContent))){let $=p(_.firstChild,b,_,x,T,E,C);for(;$;){of=!0;const G=$;$=$.nextSibling,o(G)}}else k&8&&_.textContent!==b.children&&(of=!0,_.textContent=b.children)}return _.nextSibling},p=(_,b,x,T,E,C,D)=>{D=D||!!b.dynamicChildren;const R=b.children,A=R.length;for(let k=0;k<A;k++){const F=D?R[k]:R[k]=Pa(R[k]);if(_)_=f(_,F,T,E,C,D);else{if(F.type===ld&&!F.children)continue;of=!0,n(null,F,x,null,T,E,Tx(x),C)}}return _}
1,m=(_,b,x,T,E,C)=>{const{slotScopeIds:D}=b;D&&(E=E?E.concat(D):D);const R=a(_),A=p(s(_),b,R,x,T,E,C);return A&&Ex(A)&&A.data==="]"?s(b.anchor=A):(of=!0,l(b.anchor=u("]"),R,A),A)},y=(_,b,x,T,E,C)=>{if(of=!0,b.el=null,C){const A=v(_);for(;;){const k=s(_);if(k&&k!==A)o(k);else break}}const D=s(_),R=a(_);return o(_),n(null,b,R,D,x,T,Tx(R),E),D},v=_=>{let b=0;for(;_;)if(_=s(_),_&&Ex(_)&&(_.data==="["&&b++,_.data==="]")){if(b===0)return s(_);b--}return _};return[c,f]}const Or=cV;function kV(t){return LV(t)}function IV(t){return LV(t,Fue)}function LV(t,e){const n=Qoe();n.__VUE__=!0,bk(n.__VUE_DEVTOOLS_GLOBAL_HOOK__,n);const{insert:i,remove:r,patchProp:s,createElement:a,createText:o,createComment:l,setText:u,setElementText:c,parentNode:f,nextSibling:h,setScopeId:p=Ms,insertStaticContent:m}=t,y=(z,J,te,pe=null,me=null,ne=null,Le=!1,Pe=null,Ce=!!J.dynamicChildren)=>{if(z===J)return;z&&!il(z,J)&&(pe=ve(z),de(z,me,ne,!0),z=null),J.patchFlag===-2&&(Ce=!1,J.dynamicChildren=null);const{type:Te,ref:et,shapeFlag:j}=J;switch(Te){case ld:v(z,J,te,pe);break;case Nr:_(z,J,te,pe);break;case qf:z==null&&b(J,te,pe,Le);break;case yr:N(z,J,te,pe,me,ne,Le,Pe,Ce);break;default:j&1?E(z,J,te,pe,me,ne,Le,Pe,Ce):j&6?U(z,J,te,pe,me,ne,Le,Pe,Ce):(j&64||j&128)&&Te.process(z,J,te,pe,me,ne,Le,Pe,Ce,We)}et!=null&&me&&e2(et,z&&z.ref,ne,J||z,!J)},v=(z,J,te,pe)=>{if(z==null)i(J.el=o(J.children),te,pe);else{const me=J.el=z.el;J.children!==z.children&&u(me,J.children)}},_=(z,J,te,pe)=>{z==null?i(J.el=l(J.children||""),te,pe):J.el=z.el},b=(z,J,te,pe)=>{[z.el,z.anchor]=m(z.children,J,te,pe,z.el,z.anchor)},x=({el:z,anchor:J},te,pe)=>{let me;for(;z&&z!==J;)me=h(z),i(z,te,pe),z=me;i(J,te,pe)},T=({el:z,anchor:J})=>{let te;for(;z&&z!==J;)te=h(z),r(z),z=te;r(J)},E=(z,J,te,pe,me,ne,Le,Pe,Ce)=>{Le=Le||J.type==="svg",z==null?C(J,te,pe,me,ne,Le,Pe,Ce):A(z,J,me,ne,Le,Pe,Ce)},C=(z,J,te,pe,me,ne,Le,Pe)=>{let Ce,Te;const{type:et,props:j,shapeFlag:V,transition:oe,dirs:Ne}=z;if(Ce=z.el=a(z.type,ne,j&&j.is,j),V&8?c(Ce,z.children):V&16&&R(z.children,Ce,null,pe,me,ne&&et!=="foreignObject",Le,Pe),Ne&&Ll(z,null,pe,"created"),D(Ce,z,z.scopeId,Le,pe),j){for(const Ue in j)Ue!=="value"&&!Ph(Ue)&&s(Ce,Ue,null,j[Ue],ne,z.children,pe,me,we);"value"in j&&s(Ce,"value",null,j.value),(Te=j.onVnodeBeforeMount)&&Hs(Te,pe,z)}Object.defineProperty(Ce,"__vnode",{value:z,enumerable:!1}),Object.defineProperty(Ce,"__vueParentComponent",{value:pe,enumerable:!1}),Ne&&Ll(z,null,pe,"beforeMount");const Ae=(!me||me&&!me.pendingBranch)&&oe&&!oe.persisted;Ae&&oe.beforeEnter(Ce),i(Ce,J,te),((Te=j&&j.onVnodeMounted)||Ae||Ne)&&Or(()=>{Te&&Hs(Te,pe,z),Ae&&oe.enter(Ce),Ne&&Ll(z,null,pe,"mounted")},me)},D=(z,J,te,pe,me)=>{if(te&&p(z,te),pe)for(let ne=0;ne<pe.length;ne++)p(z,pe[ne]);if(me){let ne=me.subTree;if(J===ne){const Le=me.vnode;
vendor: 14,731 bytes, line 1
1D(z,Le,Le.scopeId,Le.slotScopeIds,me.parent)}}},R=(z,J,te,pe,me,ne,Le,Pe,Ce=0)=>{for(let Te=Ce;Te<z.length;Te++){const et=z[Te]=Pe?wf(z[Te]):Pa(z[Te]);y(null,et,J,te,pe,me,ne,Le,Pe)}},A=(z,J,te,pe,me,ne,Le)=>{const Pe=J.el=z.el;let{patchFlag:Ce,dynamicChildren:Te,dirs:et}=J;Ce|=z.patchFlag&16;const j=z.props||zn,V=J.props||zn;let oe;te&&Kd(te,!1),(oe=V.onVnodeBeforeUpdate)&&Hs(oe,te,J,z),et&&Ll(J,z,te,"beforeUpdate"),te&&Kd(te,!0);const Ne=me&&J.type!=="foreignObject";if(Te?k(z.dynamicChildren,Te,Pe,te,pe,Ne,ne):Le||re(z,J,Pe,null,te,pe,Ne,ne,!1),Ce>0){if(Ce&16)F(Pe,J,j,V,te,pe,me);else if(Ce&2&&j.class!==V.class&&s(Pe,"class",null,V.class,me),Ce&4&&s(Pe,"style",j.style,V.style,me),Ce&8){const Ae=J.dynamicProps;for(let Ue=0;Ue<Ae.length;Ue++){const tt=Ae[Ue],qe=j[tt],ke=V[tt];(ke!==qe||tt==="value")&&s(Pe,tt,qe,ke,me,z.children,te,pe,we)}}Ce&1&&z.children!==J.children&&c(Pe,J.children)}else!Le&&Te==null&&F(Pe,J,j,V,te,pe,me);((oe=V.onVnodeUpdated)||et)&&Or(()=>{oe&&Hs(oe,te,J,z),et&&Ll(J,z,te,"updated")},pe)},k=(z,J,te,pe,me,ne,Le)=>{for(let Pe=0;Pe<J.length;Pe++){const Ce=z[Pe],Te=J[Pe],et=Ce.el&&(Ce.type===yr||!il(Ce,Te)||Ce.shapeFlag&70)?f(Ce.el):te;y(Ce,Te,et,null,pe,me,ne,Le,!0)}},F=(z,J,te,pe,me,ne,Le)=>{if(te!==pe){if(te!==zn)for(const Pe in te)!Ph(Pe)&&!(Pe in pe)&&s(z,Pe,te[Pe],null,Le,J.children,me,ne,we);for(const Pe in pe){if(Ph(Pe))continue;const Ce=pe[Pe],Te=te[Pe];Ce!==Te&&Pe!=="value"&&s(z,Pe,Te,Ce,Le,J.children,me,ne,we)}"value"in pe&&s(z,"value",te.value,pe.value)}},N=(z,J,te,pe,me,ne,Le,Pe,Ce)=>{const Te=J.el=z?z.el:o(""),et=J.anchor=z?z.anchor:o("");let{patchFlag:j,dynamicChildren:V,slotScopeIds:oe}=J;oe&&(Pe=Pe?Pe.concat(oe):oe),z==null?(i(Te,te,pe),i(et,te,pe),R(J.children,te,et,me,ne,Le,Pe,Ce)):j>0&&j&64&&V&&z.dynamicChildren?(k(z.dynamicChildren,V,te,me,ne,Le,Pe),(J.key!=null||me&&J===me.subTree)&&Rk(z,J,!0)):re(z,J,te,et,me,ne,Le,Pe,Ce)},U=(z,J,te,pe,me,ne,Le,Pe,Ce)=>{J.slotScopeIds=Pe,z==null?J.shapeFlag&512?me.ctx.activate(J,te,pe,Le,Ce):$(J,te,pe,me,ne,Le,Ce):G(z,J,Ce)},$=(z,J,te,pe,me,ne,Le)=>{const Pe=z.component=VV(z,pe,me);if(Mb(z)&&(Pe.ctx.renderer=We),GV(Pe),Pe.asyncDep){if(me&&me.registerDep(Pe,Y),!z.el){const Ce=Pe.subTree=mi(Nr);_(null,Ce,J,te)}return}Y(Pe,z,J,te,me,ne,Le)},G=(z,J,te)=>{const pe=J.component=z.component;if(nue(z,J,te))if(pe.asyncDep&&!pe.asyncResolved){Q(pe,J,te);return}else pe.next=J,Hle(pe.update),pe.update();else J.el=z.el,pe.vnode=J},Y=(z,J,te,pe,me,ne,Le)=>{const Pe=()=>{if(z.isMounted){let{next:et,bu:j,u:V,parent:oe,vnode:Ne}=z,Ae=et,Ue;Kd(z,!1),et?(et.el=Ne.el,Q(z,et,Le)):et=Ne,j&&_m(j),(Ue=et.props&&et.props.onVnodeBeforeUpdate)&&Hs(Ue,oe,et,Ne),Kd(z,!0);const tt=hT(z),qe=z.subTree;z.subTree=tt,y(qe,tt,f(qe.el),ve(qe),z,me,ne),et.el=tt.el,Ae===null&&Sk(z,tt.el),V&&Or(V,me),(Ue=et.props&&et.props.onVnodeUpdated)&&Or(()=>Hs(Ue,oe,et,Ne),me),oV(z)}else{let et;const{el:j,props:V}=J,{bm:oe,m:Ne,parent:Ae}=z,Ue=Rh(J);if(Kd(z,!1),oe&&_m(oe),!Ue&&(et=V&&V.onVnodeBeforeMount)&&Hs(et,Ae,J),Kd(z,!0),j&&Ze){const tt=()=>{z.subTree=hT(z),Ze(j,z.subTree,z,me,null)};Ue?J.type.__asyncLoader().then(()=>!z.isUnmounted&&tt()):tt()}else{const tt=z.subTree=hT(z);y(null,tt,te,pe,z,me,ne),J.el=tt.el}if(Ne&&Or(Ne,me),!Ue&&(et=V&&V.onVnodeMounted)){const tt=J;Or(()=>Hs(et,Ae,tt),me)}(J.shapeFlag&256||Ae&&Rh(Ae.vnode)&&Ae.vnode.shapeFlag&256)&&z.a&&Or(z.a,me),z.isMounted=!0,iP(z),J=te=pe=null}},Ce=z.effect=new Cb(Pe,()=>WE(Te),z.scope),Te=z.update=()=>Ce.run();Te.id=z.uid,Kd(z,!0),Te()},Q=(z,J,te)=>{J.component=z;const pe=z.vnode.props;z.vnode=J,z.next=null,Pue(z,J.props,pe,te),kue(z,J.children,te),Rg(),v6(),kg()},re=(z,J,te,pe,me,ne,Le,Pe,Ce=!1)=>{const Te=z&&z.children,et=z?z.shapeFlag:0,j=J.children,{patchFlag:V,shapeFlag:oe}=J;if(V>0){if(V&128){X(Te,j,te,pe,me,ne,Le,Pe,Ce);return}else if(V&256){he(Te,j,te,pe,me,ne,Le,Pe,Ce);return}}oe&8?(et&16&&we(Te,me,ne),j!==Te&&c(te,j)):et&16?oe&16?X(Te,j,te,pe,me,ne,Le,Pe,Ce):we(Te,me,ne,!0):(et&8&&c(te,""),oe&16&&R(j,te,pe,me,ne,Le,Pe,Ce))},he=(z,J,te,pe,me,ne,Le,Pe,Ce)=>{z=z||pm,J=J||pm;const Te=z.length,et=J.length,j=Math.min(Te,et);let V;for(V=0;V<j;V++){const oe=J[V]=Ce?wf(J[V]):Pa(J[V]);y(z[V],oe,te,null,me,ne,Le,Pe,Ce)}Te>et?we(z,me,ne,!0,!1,j):R(J,te,pe,me,ne,Le,Pe,Ce,j)},X=(z,J,te,pe,me,ne,Le,Pe,Ce)=>{let Te=0;const et=J.length;let j=z.length-1,V=et-1;for(;Te<=j&&Te<=V;){const oe=z[Te],Ne=J[Te]=Ce?wf(J[Te]):Pa(J[Te]);if(il(oe,Ne))y(oe,Ne,te,null,me,ne,Le,Pe,Ce);else break;Te++}for(;Te<=j&&Te<=V;){const oe=z[j],Ne=J[V]=Ce?wf(J[V]):Pa(J[V]);if(il(oe,Ne))y(oe,Ne,te,null,me,ne,Le,Pe,Ce);else break;j--,V--}if(Te>j){if(Te<=V){const oe=V+1,Ne=oe<et?J[oe].el:pe;for(;Te<=V;)y(null,J[Te]=Ce?wf(J[Te]):Pa(J[Te]),te,Ne,me,ne,Le,Pe,Ce),Te++}}else if(Te>V)for(;Te<=j;)de(z[Te],me,ne,!0),Te++;else{const oe=Te,Ne=Te,Ae=new Map;for(Te=Ne;Te<=V;Te++){const Je=J[Te]=Ce?wf(J[Te]):Pa(J[Te]);Je.key!=null&&Ae.set(Je.key,Te)}let Ue,tt=0;const qe=V-Ne+1;let ke=!1,ie=0;const Ve=new Array(qe);for(Te=0;Te<qe;Te++)Ve[Te]=0;for(Te=oe;Te<=j;Te++){const Je=z[Te];if(tt>=qe){de(Je,me,ne,!0);continue}let nt;if(Je.key!=null)nt=Ae.get(Je.key);else for(Ue=Ne;Ue<=V;Ue++)if(Ve[Ue-Ne]===0&&il(Je,J[Ue])){nt=Ue;break}nt===void 0?de(Je,me,ne,!0):(Ve[nt-Ne]=Te+1,nt>=ie?ie=nt:ke=!0,y(Je,J[nt],te,null,me,ne,Le,Pe,Ce),tt++)}const rt=ke?Nue(Ve):pm;for(Ue=rt.length-1,Te=qe-1;Te>=0;Te--){const Je=Ne+Te,nt=J[Je],Tt=Je+1<et?J[Je+1].el:pe;Ve[Te]===0?y(null,nt,te,Tt,me,ne,Le,Pe,Ce):ke&&(Ue<0||Te!==rt[Ue]?ae(nt,te,Tt,2):Ue--)}}},ae=(z,J,te,pe,me=null)=>{const{el:ne,type:Le,transition:Pe,children:Ce,shapeFlag:Te}=z;if(Te&6){ae(z.component.subTree,J,te,pe);return}if(Te&128){z.suspense.move(J,te,pe);return}if(Te&64){Le.move(z,J,te,We);return}if(Le===yr){i(ne,J,te);for(let j=0;j<Ce.length;j++)ae(Ce[j],J,te,pe);i(z.anchor,J,te);return}if(Le===qf){x(z,J,te);return}if(pe!==2&&Te&1&&Pe)if(pe===0)Pe.beforeEnter(ne),i(ne,J,te),Or(()=>Pe.enter(ne),me);else{const{leave:j,delayLeave:V,afterLeave:oe}=Pe,Ne=()=>i(ne,J,te),Ae=()=>{j(ne,()=>{Ne(),oe&&oe()})};V?V(ne,Ne,Ae):Ae()}else i(ne,J,te)},de=(z,J,te,pe=!1,me=!1)=>{const{type:ne,props:Le,ref:Pe,children:Ce,dynamicChildren:Te,shapeFlag:et,patchFlag:j,dirs:V}=z;if(Pe!=null&&e2(Pe,null,te,z,!0),et&256){J.ctx.deactivate(z);return}const oe=et&1&&V,Ne=!Rh(z);let Ae;if(Ne&&(Ae=Le&&Le.onVnodeBeforeUnmount)&&Hs(Ae,J,z),et&6)xe(z.component,te,pe);else{if(et&128){z.suspense.unmount(te,pe);return}oe&&Ll(z,null,J,"beforeUnmount"),et&64?z.type.remove(z,J,te,me,We,pe):Te&&(ne!==yr||j>0&&j&64)?we(Te,J,te,!1,!0):(ne===yr&&j&384||!me&&et&16)&&we(Ce,J,te),pe&&Re(z)}(Ne&&(Ae=Le&&Le.onVnodeUnmounted)||oe)&&Or(()=>{Ae&&Hs(Ae,J,z),oe&&Ll(z,null,J,"unmounted")},te)},Re=z=>{const{type:J,el:te,anchor:pe,transition:me}=z;if(J===yr){_e(te,pe);return}if(J===qf){T(z);return}const ne=()=>{r(te),me&&!me.persisted&&me.afterLeave&&me.afterLeave()};if(z.shapeFlag&1&&me&&!me.persisted){const{leave:Le,delayLeave:Pe}=me,Ce=()=>Le(te,ne);Pe?Pe(z.el,ne,Ce):Ce()}else ne()},_e=(z,J)=>{let te;for(;z!==J;)te=h(z),r(z),z=te;r(J)},xe=(z,J,te)=>{const{bum:pe,scope:me,update:ne,subTree:Le,um:Pe}=z;pe&&_m(pe),me.stop(),ne&&(ne.active=!1,de(Le,z,J,te)),Pe&&Or(Pe,J),Or(()=>{z.isUnmounted=!0},J),J&&J.pendingBranch&&!J.isUnmounted&&z.asyncDep&&!z.asyncResolved&&z.suspenseId===J.pendingId&&(J.deps--,J.deps===0&&J.resolve()),qle(z)},we=(z,J,te,pe=!1,me=!1,ne=0)=>{for(let Le=ne;Le<z.length;Le++)de(z[Le],J,te,pe,me)},ve=z=>z.shapeFlag&6?ve(z.component.subTree):z.shapeFlag&128?z.suspense.next():h(z.anchor||z.el),De=(z,J,te)=>{z==null?J._vnode&&de(J._vnode,null,null,!0):y(J._vnode||null,z,J,null,null,null,te),v6(),QT(),J._vnode=z},We={p:y,um:de,m:ae,r:Re,mt:$,mc:R,pc:re,pbc:k,n:ve,o:t};let lt,Ze;return e&&([lt,Ze]=e(We)),{render:De,hydrate:lt,createApp:Lue(De,lt)}}function Kd({effect:t,update:e},n){t.allowRecurse=e.allowRecurse=n}function Rk(t,e,n=!1){const i=t.children,r=e.children;if(St(i)&&St(r))for(let s=0;s<i.length;s++){const a=i[s];let o=r[s];o.shapeFlag&1&&!o.dynamicChildren&&((o.patchFlag<=0||o.patchFlag===32)&&(o=r[s]=wf(r[s]),o.el=a.el),n||Rk(a,o)),o.type===ld&&(o.el=a.el)}}function Nue(t){const e=t.slice(),n=[0];let i,r,s,a,o;const l=t.length;for(i=0;i<l;i++){const u=t[i];if(u!==0){if(r=n[n.length-1],t[r]<u){e[i]=r,n.push(i);continue}for(s=0,a=n.length-1;s<a;)o=s+a>>1,t[n[o]]<u?s=o+1:a=o;u<t[n[s]]&&(s>0&&(e[i]=n[s-1]),n[s]=i)}}for(s=n.length,a=n[s-1];s-- >0;)n[s]=a,a=e[a];return n}const Bue=t=>t.__isTeleport,Iv=t=>t&&(t.disabled||t.disabled===""),D6=t=>typeof SVGElement<"u"&&t instanceof SVGElement,cP=(t,e)=>{const n=t&&t.to;return Jt(n)?e?e(n):null:n},Uue={__isTeleport:!0,process(t,e,n,i,r,s,a,o,l,u){const{mc:c,pc:f,pbc:h,o:{insert:p,querySelector:m,createText:y,createComment:v}}=u,_=Iv(e.props);let{shapeFlag:b,children:x,dynamicChildren:T}=e;if(t==null){const E=e.el=y(""),C=e.anchor=y("");p(E,n,i),p(C,n,i);const D=e.target=cP(e.props,m),R=e.targetAnchor=y("");D&&(p(R,D),a=a||D6(D));const A=(k,F)=>{b&16&&c(x,k,F,r,s,a,o,l)};_?A(n,C):D&&A(D,R)}else{e.el=t.el;const E=e.anchor=t.anchor,C=e.target=t.target,D=e.targetAnchor=t.targetAnchor,R=Iv(t.props),A=R?n:C,k=R?E:D;if(a=a||D6(C),T?(h(t.dynamicChildren,T,A,r,s,a,o),Rk(t,e,!0)):l||f(t,e,A,k,r,s,a,o,!1),_)R||wx(e,n,E,u,1);else if((e.props&&e.props.to)!==(t.props&&t.props.to)){const F=e.target=cP(e.props,m);F&&wx(e,F,null,u,0)}else R&&wx(e,C,D,u,1)}FV(e)},remove(t,e,n,i,{um:r,o:{remove:s}},a){const{shapeFlag:o,children:l,anchor:u,targetAnchor:c,target:f,props:h}=t;if(f&&s(c),(a||!Iv(h))&&(s(u),o&16))for(let p=0;p<l.length;p++){const m=l[p];r(m,e,n,!0,!!m.dynamicChildren)}},move:wx,hydrate:$ue};function wx(t,e,n,{o:{insert:i},m:r},s=2){s===0&&i(t.targetAnchor,e,n);const{el:a,anchor:o,shapeFlag:l,children:u,props:c}=t,f=s===2;if(f&&i(a,e,n),(!f||Iv(c))&&l&16)for(let h=0;h<u.length;h++)r(u[h],e,n,2);f&&i(o,e,n)}function $ue(t,e,n,i,r,s,{o:{nextSibling:a,parentNode:o,querySelector:l}},u){const c=e.target=cP(e.props,l);if(c){const f=c._lpa||c.firstChild;if(e.shapeFlag&16)if(Iv(e.props))e.anchor=u(a(t),e,o(t),n,i,r,s),e.targetAnchor=f;else{e.anchor=a(t);let h=f;for(;h;)if(h=a(h),h&&h.nodeType===8&&h.data==="teleport anchor"){e.targetAnchor=h,c._lpa=e.targetAnchor&&a(e.targetAnchor);break}u(f,e,c,n,i,r,s)}FV(e)}return e.anchor&&a(e.anchor)}const zue=Uue;function FV(t){const e=t.ctx;if(e&&e.ut){let n=t.children[0].el;for(;n!==t.targetAnchor;)n.nodeType===1&&n.setAttribute("data-v-owner",e.uid),n=n.nextSibling;e.ut()}}const yr=Symbol(void 0),ld=Symbol(void 0),Nr=Symbol(void 0),qf=Symbol(void 0),Lv=[];let Zs=null;function Gm(t=!1){Lv.push(Zs=t?null:[])}function NV(){Lv.pop(),Zs=Lv[Lv.length-1]||null}let ip=1;function fP(t){ip+=t}function BV(t){return t.dynamicChildren=ip>0?Zs||pm:null,NV(),ip>0&&Zs&&Zs.push(t),t}function UV(t,e,n,i,r,s){return BV(kk(t,e,n,i,r,s,!0))}function ZE(t,e,n,i,r){return BV(mi(t,e,n,i,r,!0))}function ud(t){return t?t.__v_isVNode===!0:!1}function il(t,e){return t.type===e.type&&t.key===e.key}function Hue(t){}const QE="__vInternal",$V=({key:t})=>t!=null?t:null,pT=({ref:t,ref_key:e,ref_for:n})=>t!=null?Jt(t)||Pi(t)||Yt(t)?{i:Ir,r:t,k:e,f:!!n}:t:null;function kk(t,e=null,n=null,i=0,r=null,s=t===yr?0:1,a=!1,o=!1){const l={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&$V(e),ref:e&&pT(e),scopeId:qE,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:s,patchFlag:i,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:Ir};return o?(Lk(l,n),s&128&&t.normalize(l)):n&&(l.shapeFlag|=Jt(n)?8:16),ip>0&&!a&&Zs&&(l.patchFlag>0||s&6)&&l.patchFlag!==32&&Zs.push(l),l}const mi=Vue;function Vue(t,e=null,n=null,i=0,r=null,s=!1){if((!t||t===TV)&&(t=Nr),ud(t)){const o=cu(t,e,!0);return n&&Lk(o,n),ip>0&&!s&&Zs&&(o.shapeFlag&6?Zs[Zs.indexOf(t)]=o:Zs.push(o)),o.patchFlag|=-2,o}if(Zue(t)&&(t=t.__vccOpts),e){e=zV(e);let{class:o,style:l}=e;o&&!Jt(o)&&(e.class=wb(o)),Zn(l)&&(vm(l)&&!St(l)&&(l=Ln({},l)),e.style=Eb(l))}const a=Jt(t)?1:uV(t)?128:Bue(t)?64:Zn(t)?4:Yt(t)?2:0;return kk(t,e,n,i,r,a,s,!0)}function zV(t){return t?vm(t)||QE in t?Ln({},t):t:null}function cu(t,e,n=!1){const{props:i,ref:r,patchFlag:s,children:a}=t,o=e?HV(i||{},e):i;return{__v_isVNode:!0,__v_skip:!0,type:t.type,props:o,key:o&&$V(o),ref:e&&e.ref?n&&r?St(r)?r.concat(pT(e)):[r,pT(e)]:pT(e):r,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:a,target:t.target,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==yr?s===-1?16:s|16:s,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:t.transition,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&cu(t.ssContent),ssFallback:t.ssFallback&&cu(t.ssFallback),el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce}}function Ik(t=" ",e=0){return mi(ld,null,t,e)}function Wue(t,e){const n=mi(qf,null,t);return n.staticCount=e,n}function Gue(t="",e=!1){return e?(Gm(),ZE(Nr,null,t)):mi(Nr,null,t)}function Pa(t){return t==null||typeof t=="boolean"?mi(Nr):St(t)?mi(yr,null,t.slice()):typeof t=="object"?wf(t):mi(ld,null,String(t))}function wf(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:cu(t)}function Lk(t,e){let n=0;const{shapeFlag:i}=t;if(e==null)e=null;else if(St(e))n=16;else if(typeof e=="object")if(i&65){const r=e.default;r&&(r._c&&(r._d=!1),Lk(t,r()),r._c&&(r._d=!0));return}else{n=32;const r=e._;!r&&!(QE in e)?e._ctx=Ir:r===3&&Ir&&(Ir.slots._===1?e._=1:(e._=2,t.patchFlag|=1024))}else Yt(e)?(e={default:e,_ctx:Ir},n=32):(e=String(e),i&64?(n=16,e=[Ik(e)]):n=8);t.children=e,t.shapeFlag|=n}function HV(...t){const e={};for(let n=0;n<t.length;n++){const i=t[n];for(const r in i)if(r==="class")e.class!==i.class&&(e.class=wb([e.class,i.class]));else if(r==="style")e.style=Eb([e.style,i.style]);else if(xp(r)){const s=e[r],a=i[r];a&&s!==a&&!(St(s)&&s.includes(a))&&(e[r]=s?[].concat(s,a):a)}else r!==""&&(e[r]=i[r])}return e}function Hs(t,e,n,i=null){Ua(t,e,7,[n,i])}const jue=RV();let que=0;function VV(t,e,n){const i=t.type,r=(e?e.appContext:t.appContext)||jue,s={uid:que++,vnode:t,type:i,parent:e,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,scope:new ok(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:e?e.provides:Object.create(r.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:MV(i,r),emitsOptions:lV(i,r),emit:null,emitted:null,propsDefaults:zn,inheritAttrs:i.inheritAttrs,ctx:zn,data:zn,props:zn,attrs:zn,slots:zn,refs:zn,setupState:zn,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,
1sp:null};return s.ctx={_:s},s.root=e?e.root:s,s.emit=Yle.bind(null,s),t.ce&&t.ce(s),s}let Fi=null;const bu=()=>Fi||Ir,cd=t=>{Fi=t,t.scope.on()},Xf=()=>{Fi&&Fi.scope.off(),Fi=null};function WV(t){return t.vnode.shapeFlag&4}let jm=!1;function GV(t,e=!1){jm=e;const{props:n,children:i}=t.vnode,r=WV(t);Due(t,n,r,e),Rue(t,i);const s=r?Xue(t,e):void 0;return jm=!1,s}function Xue(t,e){const n=t.type;t.accessCache=Object.create(null),t.proxy=Wl(new Proxy(t.ctx,aP));const{setup:i}=n;if(i){const r=t.setupContext=i.length>1?XV(t):null;cd(t),Rg();const s=yc(i,t,0,[t.props,r]);if(kg(),Xf(),sk(s)){if(s.then(Xf,Xf),e)return s.then(a=>{dP(t,a,e)}).catch(a=>{Ep(a,t,0)});t.asyncDep=s}else dP(t,s,e)}else qV(t,e)}function dP(t,e,n){Yt(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:Zn(e)&&(t.devtoolsRawSetupState=e,t.setupState=mk(e)),qV(t,n)}let t2,hP;function jV(t){t2=t,hP=e=>{e.render._rc&&(e.withProxy=new Proxy(e.ctx,Tue))}}const Yue=()=>!t2;function qV(t,e,n){const i=t.type;if(!t.render){if(!e&&t2&&!i.render){const r=i.template||Pk(t).template;if(r){const{isCustomElement:s,compilerOptions:a}=t.appContext.config,{delimiters:o,compilerOptions:l}=i,u=Ln(Ln({isCustomElement:s,delimiters:o},a),l);i.render=t2(r,u)}}t.render=i.render||Ms,hP&&hP(t)}cd(t),Rg(),Eue(t),kg(),Xf()}function Kue(t){return new Proxy(t.attrs,{get(e,n){return la(t,"get","$attrs"),e[n]}})}function XV(t){const e=i=>{t.exposed=i||{}};let n;return{get attrs(){return n||(n=Kue(t))},slots:t.slots,emit:t.emit,expose:e}}function JE(t){if(t.exposed)return t.exposeProxy||(t.exposeProxy=new Proxy(mk(Wl(t.exposed)),{get(e,n){if(n in e)return e[n];if(n in kv)return kv[n](t)},has(e,n){return n in e||n in kv}}))}function pP(t,e=!0){return Yt(t)?t.displayName||t.name:t.name||e&&t.__name}function Zue(t){return Yt(t)&&"__vccOpts"in t}const rp=(t,e)=>Nle(t,e,jm);function Que(){return null}function Jue(){return null}function ece(t){}function tce(t,e){return null}function nce(){return YV().slots}function ice(){return YV().attrs}function YV(){const t=bu();return t.setupContext||(t.setupContext=XV(t))}function rce(t,e){const n=St(t)?t.reduce((i,r)=>(i[r]={},i),{}):t;for(const i in e){const r=n[i];r?St(r)||Yt(r)?n[i]={type:r,default:e[i]}:r.default=e[i]:r===null&&(n[i]={default:e[i]})}return n}function sce(t,e){const n={};for(const i in t)e.includes(i)||Object.defineProperty(n,i,{enumerable:!0,get:()=>t[i]});return n}function ace(t){const e=bu();let n=t();return Xf(),sk(n)&&(n=n.catch(i=>{throw cd(e),i})),[n,()=>cd(e)]}function kr(t,e,n){const i=arguments.length;return i===2?Zn(e)&&!St(e)?ud(e)?mi(t,null,[e]):mi(t,e):mi(t,null,e):(i>3?n=Array.prototype.slice.call(arguments,2):i===3&&ud(n)&&(n=[n]),mi(t,e,n))}const KV=Symbol(""),ZV=()=>xm(KV);function oce(){}function lce(t,e,n,i){const r=n[i];if(r&&QV(r,t))return r;const s=e();return s.memo=t.slice(),n[i]=s}function QV(t,e){const n=t.memo;if(n.length!=e.length)return!1;for(let i=0;i<n.length;i++)if(Vm(n[i],e[i]))return!1;return ip>0&&Zs&&Zs.push(t),!0}const mP="3.2.47",uce={createComponentInstance:VV,setupComponent:GV,renderComponentRoot:hT,setCurrentRenderingInstance:Cy,isVNode:ud,normalizeVNode:Pa},cce=uce,fce=null,dce=null,hce="http://www.w3.org/2000/svg",vh=typeof document<"u"?document:null,P6=vh&&vh.createElement("template"),pce={insert:(t,e,n)=>{e.insertBefore(t,n||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,n,i)=>{const r=e?vh.createElementNS(hce,t):vh.createElement(t,n?{is:n}:void 0);return t==="select"&&i&&i.multiple!=null&&r.setAttribute("multiple",i.multiple),r},createText:t=>vh.createTextNode(t),createComment:t=>vh.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>vh.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,n,i,r,s){const a=n?n.previousSibling:e.lastChild;if(r&&(r===s||r.nextSibling))for(;e.insertBefore(r.cloneNode(!0),n),!(r===s||!(r=r.nextSibling)););else{P6.innerHTML=i?`<svg>${t}</svg>`:t;const o=P6.content;if(i){const l=o.firstChild;for(;l.firstChild;)o.appendChild(l.firstChild);o.removeChild(l)}e.insertBefore(o,n)}return[a?a.nextSibling:e.firstChild,n?n.previousSibling:e.lastChild]}};function mce(t,e,n){const i=t._vtc;i&&(e=(e?[e,...i]:[...i]).join(" ")),e==null?t.removeAttribute("class"):n?t.setAttribute("class",e):t.className=e}function gce(t,e,n){const i=t.style,r=Jt(n);if(n&&!r){if(e&&!Jt(e))for(const s in e)n[s]==null&&gP(i,s,"");for(const s in n)gP(i,s,n[s])}else{const s=i.display;r?e!==n&&(i.cssText=n):e&&t.removeAttribute("style"),"_vod"in t&&(i.display=s)}}const O6=/\s*!important$/;function gP(t,e,n){if(St(n))n.forEach(i=>
1gP(t,e,i));else if(n==null&&(n=""),e.startsWith("--"))t.setProperty(e,n);else{const i=_ce(t,e);O6.test(n)?t.setProperty(Ra(i),n.replace(O6,""),"important"):t[i]=n}}const R6=["Webkit","Moz","ms"],tM={};function _ce(t,e){const n=tM[e];if(n)return n;let i=Sr(e);if(i!=="filter"&&i in t)return tM[e]=i;i=Tp(i);for(let r=0;r<R6.length;r++){const s=R6[r]+i;if(s in t)return tM[e]=s}return e}const k6="http://www.w3.org/1999/xlink";function vce(t,e,n,i,r){if(i&&e.startsWith("xlink:"))n==null?t.removeAttributeNS(k6,e.slice(6,e.length)):t.setAttributeNS(k6,e,n);else{const s=Hoe(e);n==null||s&&!BH(n)?t.removeAttribute(e):t.setAttribute(e,s?"":n)}}function yce(t,e,n,i,r,s,a){if(e==="innerHTML"||e==="textContent"){i&&a(i,r,s),t[e]=n==null?"":n;return}if(e==="value"&&t.tagName!=="PROGRESS"&&!t.tagName.includes("-")){t._value=n;const l=n==null?"":n;(t.value!==l||t.tagName==="OPTION")&&(t.value=l),n==null&&t.removeAttribute(e);return}let o=!1;if(n===""||n==null){const l=typeof t[e];l==="boolean"?n=BH(n):n==null&&l==="string"?(n="",o=!0):l==="number"&&(n=0,o=!0)}try{t[e]=n}catch(l){}o&&t.removeAttribute(e)}function lc(t,e,n,i){t.addEventListener(e,n,i)}function bce(t,e,n,i){t.removeEventListener(e,n,i)}function xce(t,e,n,i,r=null){const s=t._vei||(t._vei={}),a=s[e];if(i&&a)a.value=i;else{const[o,l]=Sce(e);if(i){const u=s[e]=wce(i,r);lc(t,o,u,l)}else a&&(bce(t,o,a,l),s[e]=void 0)}}const I6=/(?:Once|Passive|Capture)$/;function Sce(t){let e;if(I6.test(t)){e={};let i;for(;i=t.match(I6);)t=t.slice(0,t.length-i[0].length),e[i[0].toLowerCase()]=!0}return[t[2]===":"?t.slice(3):Ra(t.slice(2)),e]}let nM=0;const Tce=Promise.resolve(),Ece=()=>nM||(Tce.then(()=>nM=0),nM=Date.now());function wce(t,e){const n=i=>{if(!i._vts)i._vts=Date.now();else if(i._vts<=n.attached)return;Ua(Cce(i,n.value),e,5,[i])};return n.value=t,n.attached=Ece(),n}function Cce(t,e){if(St(e)){const n=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{n.call(t),t._stopped=!0},e.map(i=>r=>!r._stopped&&i&&i(r))}else return e}const L6=/^on[a-z]/,Ace=(t,e,n,i,r=!1,s,a,o,l)=>{e==="class"?mce(t,i,r):e==="style"?gce(t,n,i):xp(e)?ik(e)||xce(t,e,n,i,a):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):Mce(t,e,i,r))?yce(t,e,i,s,a,o,l):(e==="true-value"?t._trueValue=i:e==="false-value"&&(t._falseValue=i),vce(t,e,i,r))};function Mce(t,e,n,i){return i?!!(e==="innerHTML"||e==="textContent"||e in t&&L6.test(e)&&Yt(n)):e==="spellcheck"||e==="draggable"||e==="translate"||e==="form"||e==="list"&&t.tagName==="INPUT"||e==="type"&&t.tagName==="TEXTAREA"||L6.test(e)&&Jt(n)?!1:e in t}function JV(t,e){const n=wp(t);class i extends ew{constructor(s){super(n,s,e)}}return i.def=n,i}const Dce=t=>JV(t,mW),Pce=typeof HTMLElement<"u"?HTMLElement:class{};class ew extends Pce{constructor(e,n={},i){super(),this._def=e,this._props=n,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this.shadowRoot&&i?i(this._createVNode(),this.shadowRoot):(this.attachShadow({mode:"open"}),this._def.__asyncLoader||this._resolveProps(this._def))}connectedCallback(){this._connected=!0,this._instance||(this._resolved?this._update():this._resolveDef())}disconnectedCallback(){this._connected=!1,Ig(()=>{this._connected||(yP(null,this.shadowRoot),this._instance=null)})}_resolveDef(){this._resolved=!0;for(let i=0;i<this.attributes.length;i++)this._setAttr(this.attributes[i].name);new MutationObserver(i=>{for(const r of i)this._setAttr(r.attributeName)}).observe(this,{attributes:!0});const e=(i,r=!1)=>{const{props:s,styles:a}=i;let o;if(s&&!St(s))for(const l in s){const u=s[l];(u===Number||u&&u.type===Number)&&(l in this._props&&(this._props[l]=KT(this._props[l])),(o||(o=Object.create(null)))[Sr(l)]=!0)}this._numberProps=o,r&&this._resolveProps(i),this._applyStyles(a),this._update()},n=this._def.__asyncLoader;n?n().then(i=>e(i,!0)):e(this._def)}_resolveProps(e){const{props:n}=e,i=St(n)?n:Object.keys(n||{});for(const r of Object.keys(this))r[0]!=="_"&&i.includes(r)&&this._setProp(r,this[r],!0,!1);for(const r of i.map(Sr))Object.defineProperty(this,r,{get(){return this._getProp(r)},set(s){this._setProp(r,s)}})}_setAttr(e){let n=this.getAttribute(e);const i=Sr(e);this._numberProps&&this._numberProps[i]&&(n=KT(n)),this._setProp(i,n,!1)}_getProp(e){return this._props[e]}_setProp(e,n,i=!0,r=!0){n!==this._props[e]&&(this._props[e]=n,r&&this._instance&&this._update(),i&&(n===!0?this.setAttribute(Ra(e),""):typeof n=="string"||typeof n=="number"?this.setAttribute(Ra(e),n+""):n||this.removeAttribute(Ra(e))))}
1_update(){yP(this._createVNode(),this.shadowRoot)}_createVNode(){const e=mi(this._def,Ln({},this._props));return this._instance||(e.ce=n=>{this._instance=n,n.isCE=!0;const i=(s,a)=>{this.dispatchEvent(new CustomEvent(s,{detail:a}))};n.emit=(s,...a)=>{i(s,a),Ra(s)!==s&&i(Ra(s),a)};let r=this;for(;r=r&&(r.parentNode||r.host);)if(r instanceof ew){n.parent=r._instance,n.provides=r._instance.provides;break}}),e}_applyStyles(e){e&&e.forEach(n=>{const i=document.createElement("style");i.textContent=n,this.shadowRoot.appendChild(i)})}}function Oce(t="$style"){{const e=bu();if(!e)return zn;const n=e.type.__cssModules;if(!n)return zn;const i=n[t];return i||zn}}function Rce(t){const e=bu();if(!e)return;const n=e.ut=(r=t(e.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${e.uid}"]`)).forEach(s=>vP(s,r))},i=()=>{const r=t(e.proxy);_P(e.subTree,r),n(r)};Ek(i),yu(()=>{const r=new MutationObserver(i);r.observe(e.subTree.el.parentNode,{childList:!0}),Db(()=>r.disconnect())})}function _P(t,e){if(t.shapeFlag&128){const n=t.suspense;t=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{_P(n.activeBranch,e)})}for(;t.component;)t=t.component.subTree;if(t.shapeFlag&1&&t.el)vP(t.el,e);else if(t.type===yr)t.children.forEach(n=>_P(n,e));else if(t.type===qf){let{el:n,anchor:i}=t;for(;n&&(vP(n,e),n!==i);)n=n.nextSibling}}function vP(t,e){if(t.nodeType===1){const n=t.style;for(const i in e)n.setProperty(`--${i}`,e[i])}}const lf="transition",C_="animation",Fk=(t,{slots:e})=>kr(Ck,tW(t),e);Fk.displayName="Transition";const eW={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},kce=Fk.props=Ln({},Ck.props,eW),Zd=(t,e=[])=>{St(t)?t.forEach(n=>n(...e)):t&&t(...e)},F6=t=>t?St(t)?t.some(e=>e.length>1):t.length>1:!1;function tW(t){const e={};for(const N in t)N in eW||(e[N]=t[N]);if(t.css===!1)return e;const{name:n="v",type:i,duration:r,enterFromClass:s=`${n}-enter-from`,enterActiveClass:a=`${n}-enter-active`,enterToClass:o=`${n}-enter-to`,appearFromClass:l=s,appearActiveClass:u=a,appearToClass:c=o,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:h=`${n}-leave-active`,leaveToClass:p=`${n}-leave-to`}=t,m=Ice(r),y=m&&m[0],v=m&&m[1],{onBeforeEnter:_,onEnter:b,onEnterCancelled:x,onLeave:T,onLeaveCancelled:E,onBeforeAppear:C=_,onAppear:D=b,onAppearCancelled:R=x}=e,A=(N,U,$)=>{Tf(N,U?c:o),Tf(N,U?u:a),$&&$()},k=(N,U)=>{N._isLeaving=!1,Tf(N,f),Tf(N,p),Tf(N,h),U&&U()},F=N=>(U,$)=>{const G=N?D:b,Y=()=>A(U,N,$);Zd(G,[U,Y]),N6(()=>{Tf(U,N?l:s),Zu(U,N?c:o),F6(G)||B6(U,i,y,Y)})};return Ln(e,{onBeforeEnter(N){Zd(_,[N]),Zu(N,s),Zu(N,a)},onBeforeAppear(N){Zd(C,[N]),Zu(N,l),Zu(N,u)},onEnter:F(!1),onAppear:F(!0),onLeave(N,U){N._isLeaving=!0;const $=()=>k(N,U);Zu(N,f),iW(),Zu(N,h),N6(()=>{!N._isLeaving||(Tf(N,f),Zu(N,p),F6(T)||B6(N,i,v,$))}),Zd(T,[N,$])},onEnterCancelled(N){A(N,!1),Zd(x,[N])},onAppearCancelled(N){A(N,!0),Zd(R,[N])},onLeaveCancelled(N){k(N),Zd(E,[N])}})}function Ice(t){if(t==null)return null;if(Zn(t))return[iM(t.enter),iM(t.leave)];{const e=iM(t);return[e,e]}}function iM(t){return KT(t)}function Zu(t,e){e.split(/\s+/).forEach(n=>n&&t.classList.add(n)),(t._vtc||(t._vtc=new Set)).add(e)}function Tf(t,e){e.split(/\s+/).forEach(i=>i&&t.classList.remove(i));const{_vtc:n}=t;n&&(n.delete(e),n.size||(t._vtc=void 0))}function N6(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}let Lce=0;function B6(t,e,n,i){const r=t._endId=++Lce,s=()=>{r===t._endId&&i()};if(n)return setTimeout(s,n);const{type:a,timeout:o,propCount:l}=nW(t,e);if(!a)return i();const u=a+"end";let c=0;const f=()=>{t.removeEventListener(u,h),s()},h=p=>{p.target===t&&++c>=l&&f()};setTimeout(()=>{c<l&&f()},o+1),t.addEventListener(u,h)}function nW(t,e){const n=window.getComputedStyle(t),i=m=>(n[m]||"").split(", "),r=i(`${lf}Delay`),s=i(`${lf}Duration`),a=U6(r,s),o=i(`${C_}Delay`),l=i(`${C_}Duration`),u=U6(o,l);let c=null,f=0,h=0;e===lf?a>0&&(c=lf,f=a,h=s.length):e===C_?u>0&&(c=C_,f=u,h=l.length):(f=Math.max(a,u),c=f>0?a>u?lf:C_:null,h=c?c===lf?s.length:l.length:0);const p=c===lf&&/\b(transform|all)(,|$)/.test(i(`${lf}Property`).toString());return{type:c,timeout:f,propCount:h,hasTransform:p}}function U6(t,e){for(;t.length<e.length;)t=t.concat(t);return Math.max(...e.map((n,i)=>$6(n)+$6(t[i])))}function $6(t){return Number(t.slice(0,-1).replace(",","."))*1e3}function iW(){return document.body.offsetHeight}const rW=new WeakMap,sW=new WeakMap,aW={name:"TransitionGroup",props:Ln({},kce,{tag:String,moveClass:String}),setup(t,{slots:e}){const n=bu(),i=wk();let r,s;return Lg(()=>{if(!r.length)return;const a=t.moveClass||`${t.name||"v"}-move`;if(!zce(r[0].el,n.vnode.el,a))return;r.forEach(Bce),r.forEach(Uce);const o=r.filter($ce);iW(),o.forEach(l=>{const u=l.el,c=u.style;Zu(u,a),c.transform=c.webkitTransform=c.transitionDuration="";const f=u._moveCb=h=>{h&&h.target!==u||(!h||/transform$/.test(h.propertyName))&&(u.removeEventListener("transitionend",f),u._moveCb=null,Tf(u,a))};u.addEventListener("transitionend",f)})}),()=>{const a=$t(t),o=tW(a);let l=a.tag||yr;r=s,s=e.default?YE(e.default()):[];for(let u=0;u<s.length;u++){const c=s[u];c.key!=null&&np(c,Wm(c,o,i,n))}if(r)for(let u=0;u<r.length;u++){const c=r[u];np(c,Wm(c,o,i,n)),rW.set(c,c.el.getBoundingClientRect())}return mi(l,null,s)}}},Fce=t=>delete t.mode;aW.props;const Nce=aW;function Bce(t){const e=t.el;e._moveCb&&e._moveCb(),e._enterCb&&e._enterCb()}
1function Uce(t){sW.set(t,t.el.getBoundingClientRect())}function $ce(t){const e=rW.get(t),n=sW.get(t),i=e.left-n.left,r=e.top-n.top;if(i||r){const s=t.el.style;return s.transform=s.webkitTransform=`translate(${i}px,${r}px)`,s.transitionDuration="0s",t}}function zce(t,e,n){const i=t.cloneNode();t._vtc&&t._vtc.forEach(a=>{a.split(/\s+/).forEach(o=>o&&i.classList.remove(o))}),n.split(/\s+/).forEach(a=>a&&i.classList.add(a)),i.style.display="none";const r=e.nodeType===1?e:e.parentNode;r.appendChild(i);const{hasTransform:s}=nW(i);return r.removeChild(i),s}const fd=t=>{const e=t.props["onUpdate:modelValue"]||!1;return St(e)?n=>_m(e,n):e};function Hce(t){t.target.composing=!0}function z6(t){const e=t.target;e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}const n2={created(t,{modifiers:{lazy:e,trim:n,number:i}},r){t._assign=fd(r);const s=i||r.props&&r.props.type==="number";lc(t,e?"change":"input",a=>{if(a.target.composing)return;let o=t.value;n&&(o=o.trim()),s&&(o=YT(o)),t._assign(o)}),n&&lc(t,"change",()=>{t.value=t.value.trim()}),e||(lc(t,"compositionstart",Hce),lc(t,"compositionend",z6),lc(t,"change",z6))},mounted(t,{value:e}){t.value=e==null?"":e},beforeUpdate(t,{value:e,modifiers:{lazy:n,trim:i,number:r}},s){if(t._assign=fd(s),t.composing||document.activeElement===t&&t.type!=="range"&&(n||i&&t.value.trim()===e||(r||t.type==="number")&&YT(t.value)===e))return;const a=e==null?"":e;t.value!==a&&(t.value=a)}},Nk={deep:!0,created(t,e,n){t._assign=fd(n),lc(t,"change",()=>{const i=t._modelValue,r=qm(t),s=t.checked,a=t._assign;if(St(i)){const o=FE(i,r),l=o!==-1;if(s&&!l)a(i.concat(r));else if(!s&&l){const u=[...i];u.splice(o,1),a(u)}}else if(Sp(i)){const o=new Set(i);s?o.add(r):o.delete(r),a(o)}else a(lW(t,s))})},mounted:H6,beforeUpdate(t,e,n){t._assign=fd(n),H6(t,e,n)}};function H6(t,{value:e,oldValue:n},i){t._modelValue=e,St(e)?t.checked=FE(e,i.props.value)>-1:Sp(e)?t.checked=e.has(i.props.value):e!==n&&(t.checked=sd(e,lW(t,!0)))}const Bk={created(t,{value:e},n){t.checked=sd(e,n.props.value),t._assign=fd(n),lc(t,"change",()=>{t._assign(qm(t))})},beforeUpdate(t,{value:e,oldValue:n},i){t._assign=fd(i),e!==n&&(t.checked=sd(e,i.props.value))}},oW={deep:!0,created(t,{value:e,modifiers:{number:n}},i){const r=Sp(e);lc(t,"change",()=>{const s=Array.prototype.filter.call(t.options,a=>a.selected).map(a=>n?YT(qm(a)):qm(a));t._assign(t.multiple?r?new Set(s):s:s[0])}),t._assign=fd(i)},mounted(t,{value:e}){V6(t,e)},beforeUpdate(t,e,n){t._assign=fd(n)},updated(t,{value:e}){V6(t,e)}};function V6(t,e){const n=t.multiple;if(!(n&&!St(e)&&!Sp(e))){for(let i=0,r=t.options.length;i<r;i++){const s=t.options[i],a=qm(s);if(n)St(e)?s.selected=FE(e,a)>-1:s.selected=e.has(a);else if(sd(qm(s),e)){t.selectedIndex!==i&&(t.selectedIndex=i);return}}!n&&t.selectedIndex!==-1&&(t.selectedIndex=-1)}}function qm(t){return"_value"in t?t._value:t.value}function lW(t,e){const n=e?"_trueValue":"_falseValue";return n in t?t[n]:e}const uW={created(t,e,n){Cx(t,e,n,null,"created")},mounted(t,e,n){Cx(t,e,n,null,"mounted")},beforeUpdate(t,e,n,i){Cx(t,e,n,i,"beforeUpdate")},updated(t,e,n,i){Cx(t,e,n,i,"updated")}};function cW(t,e){switch(t){case"SELECT":return oW;case"TEXTAREA":return n2;default:switch(e){case"checkbox":return Nk;case"radio":return Bk;default:return n2}}}function Cx(t,e,n,i,r){const a=cW(t.tagName,n.props&&n.props.type)[r];a&&a(t,e,n,i)}function Vce(){n2.getSSRProps=({value:t})=>({value:t}),Bk.getSSRProps=({value:t},e)=>{if(e.props&&sd(e.props.value,t))return{checked:!0}},Nk.getSSRProps=({value:t},e)=>{if(St(t)){if(e.props&&FE(t,e.props.value)>-1)return{checked:!0}}else if(Sp(t)){if(e.props&&t.has(e.props.value))return{checked:!0}}else if(t)return{checked:!0}},uW.getSSRProps=(t,e)=>{if(typeof e.type!="string")return;const n=cW(e.type.toUpperCase(),e.props&&e.props.type);if(n.getSSRProps)return n.getSSRProps(t,e)}}const Wce=["ctrl","shift","alt","meta"],Gce={stop:t=>t.stopPropagation(),prevent:t=>t.preventDefault(),self:t=>t.target!==t.currentTarget,ctrl:t=>!t.ctrlKey,shift:t=>!t.shiftKey,alt:t=>!t.altKey,meta:t=>!t.metaKey,left:t=>"button"in t&&t.button!==0,middle:t=>"button"in t&&t.button!==1,right:t=>"button"in t&&t.button!==2,exact:(t,e)=>Wce.some(n=>t[`${n}Key`]&&!e.includes(n))},jce=(t,e)=>(n,...i)=>{for(let r=0;r<e.length;r++){const s=Gce[e[r]];if(s&&s(n,e))return}return t(n,...i)},qce={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Xce=(t,e)=>n=>{if(!("key"in n))return;const i=Ra(n.key);if(e.some(r=>r===i||qce[r]===i))return t(n)},fW={beforeMount(t,{value:e},{transition:n}){t._vod=t.style.display==="none"?"":t.style.display,n&&e?n.beforeEnter(t):A_(t,e)},mounted(t,{value:e},{transition:n}){n&&e&&n.enter(t)},updated(t,{value:e,oldValue:n},{transition:i}){!e!=!n&&(i?e?(i.beforeEnter(t),A_(t,!0),i.enter(t)):i.leave(t,()=>{A_(t,!1)}):A_(t,e))},beforeUnmount(t,{value:e}){A_(t,e)}};function A_(t,e){t.style.display=e?t._vod:"none"}function Yce(){fW.getSSRProps=({value:t})=>{if(!t)return{style:{display:"none"}}}}const dW=Ln({patchProp:Ace},pce);let Fv,W6=!1;function hW(){return Fv||(Fv=kV(dW))}function pW(){return Fv=W6?Fv:IV(dW),W6=!0,Fv}const yP=(...t)=>{hW().render(...t)},mW=(...t)=>{pW().hydrate(...t)},Kce=(...t)=>{const e=hW().createApp(...t),{mount:n}=e;return e.mount=i=>{const r=gW(i);if(!r)return;const s=e._component;!Yt(s)&&!s.render&&!s.template&&(s.template=r.innerHTML),r.innerHTML="";const a=n(r,!1,r instanceof SVGElement);return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),a},e},Zce=(...t)=>{const e=pW().createApp(...t),{mount:n}=e;return e.mount=i=>{const r=gW(i);if(r)return n(r,!0,r instanceof SVGElement)},e};function gW(t){return Jt(t)?document.querySelector(t):t}let G6=!1;const Qce=()=>{G6||(G6=!0,Vce(),Yce())},Jce=Object.freeze(Object.defineProperty({__proto__:null,Transition:Fk,TransitionGroup:Nce,VueElement:ew,createApp:Kce,createSSRApp:Zce,defineCustomElement:JV,defineSSRCustomElement:Dce,hydrate:mW,initDirectivesForSSR:Qce,render:yP,useCssModule:Oce,useCssVars:Rce,vModelCheckbox:Nk,vModelDynamic:uW,vModelRadio:Bk,vModelSelect:oW,vModelText:n2,vShow:fW,withKeys:Xce,withModifiers:jce,EffectScope:ok,ReactiveEffect:Cb,customRef:Ile,effect:tle,effectScope:lk,getCurrentScope:BE,isProxy:vm,isReactive:tu,isReadonly:tp,isRef:Pi,isShallow:xy,markRaw:Wl,onScopeDispose:uk,proxyRefs:mk,reactive:Ac,readonly:dk,ref:tn,shallowReactive:tV,shallowReadonly:Dle,shallowRef:Ty,stop:nle,toRaw:$t,toRef:_k,toRefs:gk,triggerRef:Ole,unref:nu,camelize:Sr,capitalize:Tp,normalizeClass:wb,normalizeProps:Ioe,normalizeStyle:Eb,toDisplayString:Woe,toHandlerKey:gm,BaseTransition:Ck,Comment:Nr,Fragment:yr,KeepAlive:pue,Static:qf,Suspense:rue,Teleport:zue,Text:ld,assertNumber:Ule,callWithAsyncErrorHandling:Ua,callWithErrorHandling:yc,cloneVNode:cu,compatUtils:dce,computed:rp,createBlock:ZE,createCommentVNode:Gue,createElementBlock:UV,createElementVNode:kk,createHydrationRenderer:IV,createPropsRestProxy:sce,createRenderer:kV,createSlots:xue,createStaticVNode:Wue,createTextVNode:Ik,createVNode:mi,defineAsyncComponent:due,defineComponent:wp,defineEmits:Jue,defineExpose:ece,defineProps:Que,get devtools(){return nl},getCurrentInstance:bu,getTransitionRawChildren:YE,guardReactiveProps:zV,h:kr,handleError:Ep,initCustomFormatter:oce,inject:xm,isMemoSame:QV,isRuntimeOnly:Yue,isVNode:ud,mergeDefaults:rce,mergeProps:HV,nextTick:Ig,onActivated:mV,onBeforeMount:vV,onBeforeUnmount:Cp,onBeforeUpdate:Ak,onDeactivated:gV,onErrorCaptured:SV,onMounted:yu,onRenderTracked:xV,onRenderTriggered:bV,onServerPrefetch:yV,onUnmounted:Db,onUpdated:Lg,openBlock:Gm,popScopeId:Zle,provide:fV,pushScopeId:Kle,queuePostFlushCb:yk,registerRuntimeCompiler:jV,renderList:bue,render
1Slot:rP,resolveComponent:vue,resolveDirective:yue,resolveDynamicComponent:EV,resolveFilter:fce,resolveTransitionHooks:Wm,setBlockTracking:fP,setDevtoolsHook:bk,setTransitionHooks:np,ssrContextKey:KV,ssrUtils:cce,toHandlers:Sue,transformVNodeArgs:Hue,useAttrs:ice,useSSRContext:ZV,useSlots:nce,useTransitionState:wk,version:mP,warn:Ble,watch:or,watchEffect:dV,watchPostEffect:Ek,watchSyncEffect:uue,withAsyncContext:ace,withCtx:XE,withDefaults:tce,withDirectives:gue,withMemo:lce,withScopeId:Qle},Symbol.toStringTag,{value:"Module"}));function Uk(t){throw t}function _W(t){}function Si(t,e,n,i){const r=t,s=new SyntaxError(String(r));return s.code=t,s.loc=e,s}const My=Symbol(""),Nv=Symbol(""),$k=Symbol(""),i2=Symbol(""),vW=Symbol(""),sp=Symbol(""),yW=Symbol(""),bW=Symbol(""),zk=Symbol(""),Hk=Symbol(""),Pb=Symbol(""),Vk=Symbol(""),xW=Symbol(""),Wk=Symbol(""),r2=Symbol(""),Gk=Symbol(""),jk=Symbol(""),qk=Symbol(""),Xk=Symbol(""),SW=Symbol(""),TW=Symbol(""),tw=Symbol(""),s2=Symbol(""),Yk=Symbol(""),Kk=Symbol(""),Dy=Symbol(""),Ob=Symbol(""),Zk=Symbol(""),bP=Symbol(""),efe=Symbol(""),xP=Symbol(""),a2=Symbol(""),tfe=Symbol(""),nfe=Symbol(""),Qk=Symbol(""),ife=Symbol(""),rfe=Symbol(""),Jk=Symbol(""),EW=Symbol(""),Xm={[My]:"Fragment",[Nv]:"Teleport",[$k]:"Suspense",[i2]:"KeepAlive",[vW]:"BaseTransition",[sp]:"openBlock",[yW]:"createBlock",[bW]:"createElementBlock",[zk]:"createVNode",[Hk]:"createElementVNode",[Pb]:"createCommentVNode",[Vk]:"createTextVNode",[xW]:"createStaticVNode",[Wk]:"resolveComponent",[r2]:"resolveDynamicComponent",[Gk]:"resolveDirective",[jk]:"resolveFilter",[qk]:"withDirectives",[Xk]:"renderList",[SW]:"renderSlot",[TW]:"createSlots",[t
vendor: 1,564 bytes, line 1
1w]:"toDisplayString",[s2]:"mergeProps",[Yk]:"normalizeClass",[Kk]:"normalizeStyle",[Dy]:"normalizeProps",[Ob]:"guardReactiveProps",[Zk]:"toHandlers",[bP]:"camelize",[efe]:"capitalize",[xP]:"toHandlerKey",[a2]:"setBlockTracking",[tfe]:"pushScopeId",[nfe]:"popScopeId",[Qk]:"withCtx",[ife]:"unref",[rfe]:"isRef",[Jk]:"withMemo",[EW]:"isMemoSame"};function sfe(t){Object.getOwnPropertySymbols(t).forEach(e=>{Xm[e]=t[e]})}const Xa={source:"",start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0}};function afe(t,e=Xa){return{type:0,children:t,helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:0,temps:0,codegenNode:void 0,loc:e}}function Py(t,e,n,i,r,s,a,o=!1,l=!1,u=!1,c=Xa){return t&&(o?(t.helper(sp),t.helper(Zm(t.inSSR,u))):t.helper(Km(t.inSSR,u)),a&&t.helper(qk)),{type:13,tag:e,props:n,children:i,patchFlag:r,dynamicProps:s,directives:a,isBlock:o,disableTracking:l,isComponent:u,loc:c}}function Rb(t,e=Xa){return{type:17,loc:e,elements:t}}function Eo(t,e=Xa){return{type:15,loc:e,properties:t}}function Ni(t,e){return{type:16,loc:Xa,key:Jt(t)?dn(t,!0):t,value:e}}function dn(t,e=!1,n=Xa,i=0){return{type:4,loc:n,content:t,isStatic:e,constType:e?3:i}}function ul(t,e=Xa){return{type:8,loc:e,children:t}}function Ji(t,e=[],n=Xa){return{type:14,loc:n,callee:t,arguments:e}}function Ym(t,e=void 0,n=!1,i=!1,r=Xa){return{type:18,params:t,returns:e,newline:n,isSlot:i,loc:r}}function SP(t,e,n,i=!0){return{type:19,test:t,consequent:e,alternate:n,newline:i,loc:Xa}}function ofe(t,e,n=!1){return{type:20,index:t,value:e,isVNode:n,loc:Xa}}
1function lfe(t){return{type:21,body:t,loc:Xa}}const Qs=t=>t.type===4&&t.isStatic,K0=(t,e)=>t===e||t===Ra(e);function wW(t){if(K0(t,"Teleport"))return Nv;if(K0(t,"Suspense"))return $k;if(K0(t,"KeepAlive"))return i2;if(K0(t,"BaseTransition"))return vW}const ufe=/^\d|[^\$\w]/,eI=t=>!ufe.test(t),cfe=/[A-Za-z_$\xA0-\uFFFF]/,ffe=/[\.\?\w$\xA0-\uFFFF]/,dfe=/\s+[.[]\s*|\s*[.[]\s+/g,hfe=t=>{t=t.trim().replace(dfe,a=>a.trim());let e=0,n=[],i=0,r=0,s=null;for(let a=0;a<t.length;a++){const o=t.charAt(a);switch(e){case 0:if(o==="[")n.push(e),e=1,i++;else if(o==="(")n.push(e),e=2,r++;else if(!(a===0?cfe:ffe).test(o))return!1;break;case 1:o==="'"||o==='"'||o==="`"?(n.push(e),e=3,s=o):o==="["?i++:o==="]"&&(--i||(e=n.pop()));break;case 2:if(o==="'"||o==='"'||o==="`")n.push(e),e=3,s=o;else if(o==="(")r++;else if(o===")"){if(a===t.length-1)return!1;--r||(e=n.pop())}break;case 3:o===s&&(e=n.pop(),s=null);break}}return!i&&!r},CW=hfe;function AW(t,e,n){const r={source:t.source.slice(e,e+n),start:o2(t.start,t.source,e),end:t.end};return n!=null&&(r.end=o2(t.start,t.source,e+n)),r}function o2(t,e,n=e.length){return l2(Ln({},t),e,n)}function l2(t,e,n=e.length){let i=0,r=-1;for(let s=0;s<n;s++)e.charCodeAt(s)===10&&(i++,r=s);return t.offset+=n,t.line+=i,t.column=r===-1?t.column+n:n-r,t}function vo(t,e,n=!1){for(let i=0;i<t.props.length;i++){const r=t.props[i];if(r.type===7&&(n||r.exp)&&(Jt(e)?r.name===e:e.test(r.name)))return r}}function nw(t,e,n=!1,i=!1){for(let r=0;r<t.props.length;r++){const s=t.props[r];if(s.type===6){if(n)continue;if(s.name===e&&(s.value||i))return s}else if(s.name==="bind"&&(s.exp||i)&&Eh(s.arg,e))return s}}function Eh(t,e){return!!(t&&Qs(t)&&t.content===e)}function pfe(t){return t.props.some(e=>e.type===7&&e.name==="bind"&&(!e.arg||e.arg.type!==4||!e.arg.isStatic))}function rM(t){return t.type===5||t.type===2}function mfe(t){return t.type===7&&t.name==="slot"}function u2(t){return t.type===1&&t.tagType===3}function c2(t){return t.type===1&&t.tagType===2}function Km(t,e){return t||e?zk:Hk}function Zm(t,e){return t||e?yW:bW}const gfe=new Set([Dy,Ob]);function MW(t,e=[]){if(t&&!Jt(t)&&t.type===14){const n=t.callee;if(!Jt(n)&&gfe.has(n))return MW(t.arguments[0],e.concat(t))}return[t,e]}function f2(t,e,n){let i,r=t.type===13?t.props:t.arguments[2],s=[],a;if(r&&!Jt(r)&&r.type===14){const o=MW(r);r=o[0],s=o[1],a=s[s.length-1]}if(r==null||Jt(r))i=Eo([e]);else if(r.type===14){const o=r.arguments[0];!Jt(o)&&o.type===15?j6(e,o)||o.properties.unshift(e):r.callee===Zk?i=Ji(n.helper(s2),[Eo([e]),r]):r.arguments.unshift(Eo([e])),!i&&(i=r)}else r.type===15?(j6(e,r)||r.properties.unshift(e),i=r):(i=Ji(n.helper(s2),[Eo([e]),r]),a&&a.callee===Ob&&(a=s[s.length-2]));t.type===13?a?a.arguments[0]=i:t.props=i:a?a.arguments[0]=i:t.arguments[2]=i}function j6(t,e){let n=!1;if(t.key.type===4){const i=t.key.content;n=e.properties.some(r=>r.key.type===4&&r.key.content===i)}return n}function Oy(t,e){return`_${e}_${t.replace(/[^\w]/g,(n,i)=>n==="-"?"_":t.charCodeAt(i).toString())}`}function _fe(t){return t.type===14&&t.callee===Jk?t.arguments[1].returns:t}function tI(t,{helper:e,removeHelper:n,inSSR:i}){t.isBlock||(t.isBlock=!0,n(Km(i,t.isComponent)),e(sp),e(Zm(i,t.isComponent)))}function q6(t,e){const n=e.options?e.options.compatConfig:e.compatConfig,i=n&&n[t];return t==="MODE"?i||3:i}function kh(t,e){const n=q6("MODE",e),i=q6(t,e);return n===3?i===!0:i!==!1}function Ry(t,e,n,...i){return kh(t,e)}const vfe=/&(gt|lt|amp|apos|quot);/g,yfe={gt:">",lt:"<",amp:"&",apos:"'",quot:'"'},X6={delimiters:["{{","}}"],getNamespace:()=>0,getTextMode:()=>0,isVoidTag:dT,isPreTag:dT,isCustomElement:dT,decodeEntities:t=>t.replace(vfe,(e,n)=>yfe[n]),onError:Uk,onWarn:_W,comments:!1};function bfe(t,e={}){const n=xfe(t,e),i=$a(n);return afe(nI(n,0,[]),Oo(n,i))}function xfe(t,e){const n=Ln({},X6);let i;for(i in e)n[i]=e[i]===void 0?X6[i]:e[i];return{options:n,column:1,line:1,offset:0,originalSource:t,source:t,inPre:!1,inVPre:!1,onWarn:n.onWarn}}function nI(t,e,n){const i=iw(n),r=i?i.ns:0,s=[];for(;!Pfe(t,e,n);){const o=t.source;let l;if(e===0||e===1){if(!t.inVPre&&Jr(o,t.options.delimiters[0]))l=Mfe(t,e);else if(e===0&&o[0]==="<")if(o.length===1)$n(t,5,1);else if(o[1]==="!")Jr(o,"<!--")?l=Tfe(t):Jr(o,"<!DOCTYPE")?l=M_(t):Jr(o,"<![CDATA[")?r!==0?l=Sfe(t,n):($n(t,1),l=M_(t)):($n(t,11),l=M_(t));else if(o[1]==="/")if(o.length===2)$n(t,5,2);else if(o[2]===">"){$n(t,14,2),lr(t,3);continue}else if(/[a-z]/i.test(o[2])){$n(t,23),TP(t,1,i);continue}else $n(t,12,2),l=M_(t);else/[a-z]/i.test(o[1])?(l=Efe(t,n),kh("COMPILER_NATIVE_TEMPLATE",t)&&l&&l.tag==="template"&&!l.props.some(u=>u.type===7&&DW(u.name))&&(l=l.children)):o[1]==="?"?($n(t,21,1),l=M_(t)):$n(t,12,1)}if(l||(l=Dfe(t,e)),St(l))for(let u=0;u<l.length;u++)Y6(s,l[u]);else Y6(s,l)}let a=!1;if(e!==2&&e!==1){const o=t.options.whitespace!=="preserve";for(let l=0;l<s.length;l++){const u=s[l];if(u.type===2)if(t.inPre)u.content=u.content.replace(/\r\n/g,`
2`);else if(/[^\t\r\n\f ]/.test(u.content))o&&(u.content=u.content.replace(/[\t\r\n\f ]+/g," "));else{const c=s[l-1],f=s[l+1];!c||!f||o&&(c.type===3&&f.type===3||c.type===3&&f.type===1||c.type===1&&f.type===3||c.type===1&&f.type===1&&/[\r\n]/.test(u.content))?(a=!0,s[l]=null):u.content=" "}else u.type===3&&!t.options.comments&&(a=!0,s[l]=null)}if(t.inPre&&i&&t.options.isPreTag(i.tag)){const l=s[0];l&&l.type===2&&(l.content=l.content.replace(/^\r?\n/,""))}}
2return a?s.filter(Boolean):s}function Y6(t,e){if(e.type===2){const n=iw(t);if(n&&n.type===2&&n.loc.end.offset===e.loc.start.offset){n.content+=e.content,n.loc.end=e.loc.end,n.loc.source+=e.loc.source;return}}t.push(e)}function Sfe(t,e){lr(t,9);const n=nI(t,3,e);return t.source.length===0?$n(t,6):lr(t,3),n}function Tfe(t){const e=$a(t);let n;const i=/--(\!)?>/.exec(t.source);if(!i)n=t.source.slice(4),lr(t,t.source.length),$n(t,7);else{i.index<=3&&$n(t,0),i[1]&&$n(t,10),n=t.source.slice(4,i.index);const r=t.source.slice(0,i.index);let s=1,a=0;for(;(a=r.indexOf("<!--",s))!==-1;)lr(t,a-s+1),a+4<r.length&&$n(t,16),s=a+1;lr(t,i.index+i[0].length-s+1)}return{type:3,content:n,loc:Oo(t,e)}}function M_(t){const e=$a(t),n=t.source[1]==="?"?1:2;let i;const r=t.source.indexOf(">");return r===-1?(i=t.source.slice(n),lr(t,t.source.length)):(i=t.source.slice(n,r),lr(t,r+1)),{type:3,content:i,loc:Oo(t,e)}}function Efe(t,e){const n=t.inPre,i=t.inVPre,r=iw(e),s=TP(t,0,r),a=t.inPre&&!n,o=t.inVPre&&!i;if(s.isSelfClosing||t.options.isVoidTag(s.tag))return a&&(t.inPre=!1),o&&(t.inVPre=!1),s;e.push(s);const l=t.options.getTextMode(s,r),u=nI(t,l,e);e.pop();{const c=s.props.find(f=>f.type===6&&f.name==="inline-template");if(c&&Ry("COMPILER_INLINE_TEMPLATE",t,c.loc)){const f=Oo(t,s.loc.end);c.value={type:2,content:f.source,loc:f}}}if(s.children=u,EP(t.source,s.tag))TP(t,1,r);else if($n(t,24,0,s.loc.start),t.source.length===0&&s.tag.toLowerCase()==="script"){const c=u[0];c&&Jr(c.loc.source,"<!--")&&$n(t,8)}return s.loc=Oo(t,s.loc.start),a&&(t.inPre=!1),o&&(t.inVPre=!1),s}const DW=fa("if,else,else-if,for,slot");function TP(t,e,n){const i=$a(t),r=/^<\/?([a-z][^\t\r\n\f />]*)/i.exec(t.source),s=r[1],a=t.options.getNamespace(s,n);lr(t,r[0].length),ky(t);const o=$a(t),l=t.source;t.options.isPreTag(s)&&(t.inPre=!0);let u=K6(t,e);e===0&&!t.inVPre&&u.some(h=>h.type===7&&h.name==="pre")&&(t.inVPre=!0,Ln(t,o),t.source=l,u=K6(t,e).filter(h=>h.name!=="v-pre"));let c=!1;if(t.source.length===0?$n(t,9):(c=Jr(t.source,"/>"),e===1&&c&&$n(t,4),lr(t,c?2:1)),e===1)return;let f=0;return t.inVPre||(s==="slot"?f=2:s==="template"?u.some(h=>h.type===7&&DW(h.name))&&(f=3):wfe(s,u,t)&&(f=1)),{type:1,ns:a,tag:s,tagType:f,props:u,isSelfClosing:c,children:[],loc:Oo(t,i),codegenNode:void 0}}function wfe(t,e,n){const i=n.options;if(i.isCustomElement(t))return!1;if(t==="component"||/^[A-Z]/.test(t)||wW(t)||i.isBuiltInComponent&&i.isBuiltInComponent(t)||i.isNativeTag&&!i.isNativeTag(t))return!0;for(let r=0;r<e.length;r++){const s=e[r];if(s.type===6){if(s.name==="is"&&s.value){if(s.value.content.startsWith("vue:"))return!0;if(Ry("COMPILER_IS_ON_ELEMENT",n,s.loc))return!0}}else{if(s.name==="is")return!0;if(s.name==="bind"&&Eh(s.arg,"is")&&!0&&Ry("COMPILER_IS_ON_ELEMENT",n,s.loc))return!0}}}function K6(t,e){const n=[],i=new Set;for(;t.source.length>0&&!Jr(t.source,">")&&!Jr(t.source,"/>");){if(Jr(t.source,"/")){$n(t,22),lr(t,1),ky(t);continue}e===1&&$n(t,3);const r=Cfe(t,i);r.type===6&&r.value&&r.name==="class"&&(r.value.content=r.value.content.replace(/\s+/g," ").trim()),e===0&&n.push(r),/^[^\t\r\n\f />]/.test(t.source)&&$n(t,15),ky(t)}return n}function Cfe(t,e){const n=$a(t),r=/^[^\t\r\n\f />][^\t\r\n\f />=]*/.exec(t.source)[0];e.has(r)&&$n(t,2),e.add(r),r[0]==="="&&$n(t,19);{const o=/["'<]/g;let l;for(;l=o.exec(r);)$n(t,17,l.index)}lr(t,r.length);let s;/^[\t\r\n\f ]*=/.test(t.source)&&(ky(t),lr(t,1),ky(t),s=Afe(t),s||$n(t,13));const a=Oo(t,n);if(!t.inVPre&&/^(v-[A-Za-z0-9-]|:|\.|@|#)/.test(r)){const o=/(?:^v-([a-z0-9-]+))?(?:(?::|^\.|^@|^#)(\[[^\]]+\]|[^\.]+))?(.+)?$/i.exec(r);let l=Jr(r,"."),u=o[1]||(l||Jr(r,":")?"bind":Jr(r,"@")?"on":"slot"),c;if(o[2]){const h=u==="slot",p=r.lastIndexOf(o[2]),m=Oo(t,Z6(t,n,p),Z6(t,n,p+o[2].length+(h&&o[3]||"").length));let y=o[2],v=!0;y.startsWith("[")?(v=!1,y.endsWith("]")?y=y.slice(1,y.length-1):($n(t,27),y=y.slice(1))):h&&(y+=o[3]||""),c={type:4,content:y,isStatic:v,constType:v?3:0,loc:m}}if(s&&s.isQuoted){const h=s.loc;h.start.offset++,h.start.column++,h.end=o2(h.start,s.content),h.source=h.source.slice(1,-1)}const f=o[3]?o[3].slice(1).split("."):[];return l&&f.push("prop"),u==="bind"&&c&&f.includes("sync")&&Ry("COMPILER_V_BIND_SYNC",t,a,c.loc.source)&&(u="model",f.splice(f.indexOf("sync"),1)),{type:7,name:u,exp:s&&{type:4,content:s.content,isStatic:!1,constType:0,loc:s.loc},arg:c,modifiers:f,loc:a}}return!t.inVPre&&Jr(r,"v-")&&$n(t,26),{type:6,name:r,value:s&&{type:2,content:s.content,loc:s.loc},loc:a}}function Afe(t){const e=$a(t);let n;const i=t.source[0],r=i==='"'||i==="'";if(r){lr(t,1);const s=t.source.indexOf(i);
2s===-1?n=Bv(t,t.source.length,4):(n=Bv(t,s,4),lr(t,1))}else{const s=/^[^\t\r\n\f >]+/.exec(t.source);if(!s)return;const a=/["'<=`]/g;let o;for(;o=a.exec(s[0]);)$n(t,18,o.index);n=Bv(t,s[0].length,4)}return{content:n,isQuoted:r,loc:Oo(t,e)}}function Mfe(t,e){const[n,i]=t.options.delimiters,r=t.source.indexOf(i,n.length);if(r===-1){$n(t,25);return}const s=$a(t);lr(t,n.length);const a=$a(t),o=$a(t),l=r-n.length,u=t.source.slice(0,l),c=Bv(t,l,e),f=c.trim(),h=c.indexOf(f);h>0&&l2(a,u,h);const p=l-(c.length-f.length-h);return l2(o,u,p),lr(t,i.length),{type:5,content:{type:4,isStatic:!1,constType:0,content:f,loc:Oo(t,a,o)},loc:Oo(t,s)}}function Dfe(t,e){const n=e===3?["]]>"]:["<",t.options.delimiters[0]];let i=t.source.length;for(let a=0;a<n.length;a++){const o=t.source.indexOf(n[a],1);o!==-1&&i>o&&(i=o)}const r=$a(t);return{type:2,content:Bv(t,i,e),loc:Oo(t,r)}}function Bv(t,e,n){const i=t.source.slice(0,e);return lr(t,e),n===2||n===3||!i.includes("&")?i:t.options.decodeEntities(i,n===4)}function $a(t){const{column:e,line:n,offset:i}=t;return{column:e,line:n,offset:i}}function Oo(t,e,n){return n=n||$a(t),{start:e,end:n,source:t.originalSource.slice(e.offset,n.offset)}}function iw(t){return t[t.length-1]}function Jr(t,e){return t.startsWith(e)}function lr(t,e){const{source:n}=t;l2(t,n,e),t.source=n.slice(e)}function ky(t){const e=/^[\t\r\n\f ]+/.exec(t.source);e&&lr(t,e[0].length)}function Z6(t,e,n){return o2(e,t.originalSource.slice(e.offset,n),n)}function $n(t,e,n,i=$a(t)){n&&(i.offset+=n,i.column+=n),t.options.onError(Si(e,{start:i,end:i,source:""}))}function Pfe(t,e,n){const i=t.source;switch(e){case 0:if(Jr(i,"</")){for(let r=n.length-1;r>=0;--r)if(EP(i,n[r].tag))return!0}break;case 1:case 2:{const r=iw(n);if(r&&EP(i,r.tag))return!0;break}case 3:if(Jr(i,"]]>"))return!0;break}return!i}function EP(t,e){return Jr(t,"</")&&t.slice(2,2+e.length).toLowerCase()===e.toLowerCase()&&/[\t\r\n\f />]/.test(t[2+e.length]||">")}function Ofe(t,e){mT(t,e,PW(t,t.children[0]))}function PW(t,e){const{children:n}=t;return n.length===1&&e.type===1&&!c2(e)}function mT(t,e,n=!1){const{children:i}=t,r=i.length;let s=0;for(let a=0;a<i.length;a++){const o=i[a];if(o.type===1&&o.tagType===0){const l=n?0:wo(o,e);if(l>0){if(l>=2){o.codegenNode.patchFlag=-1+"",o.codegenNode=e.hoist(o.codegenNode),s++;continue}}else{const u=o.codegenNode;if(u.type===13){const c=IW(u);if((!c||c===512||c===1)&&RW(o,e)>=2){const f=kW(o);f&&(u.props=e.hoist(f))}u.dynamicProps&&(u.dynamicProps=e.hoist(u.dynamicProps))}}}if(o.type===1){const l=o.tagType===1;l&&e.scopes.vSlot++,mT(o,e),l&&e.scopes.vSlot--}else if(o.type===11)mT(o,e,o.children.length===1);else if(o.type===9)for(let l=0;l<o.branches.length;l++)mT(o.branches[l],e,o.branches[l].children.length===1)}s&&e.transformHoist&&e.transformHoist(i,e,t),s&&s===r&&t.type===1&&t.tagType===0&&t.codegenNode&&t.codegenNode.type===13&&St(t.codegenNode.children)&&(t.codegenNode.children=e.hoist(Rb(t.codegenNode.children)))}function wo(t,e){const{constantCache:n}=e;switch(t.type){case 1:if(t.tagType!==0)return 0;const i=n.get(t);if(i!==void 0)return i;const r=t.codegenNode;if(r.type!==13||r.isBlock&&t.tag!=="svg"&&t.tag!=="foreignObject")return 0;if(IW(r))return n.set(t,0),0;{let o=3;const l=RW(t,e);if(l===0)return n.set(t,0),0;l<o&&(o=l);for(let u=0;u<t.children.length;u++){const c=wo(t.children[u],e);if(c===0)return n.set(t,0),0;c<o&&(o=c)}if(o>1)for(let u=0;u<t.props.length;u++){const c=t.props[u];if(c.type===7&&c.name==="bind"&&c.exp){const f=wo(c.exp,e);if(f===0)return n.set(t,0),0;f<o&&(o=f)}}if(r.isBlock){for(let u=0;u<t.props.length;u++)if(t.props[u].type===7)return n.set(t,0),0;e.removeHelper(sp),e.removeHelper(Zm(e.inSSR,r.isComponent)),r.isBlock=!1,e.helper(Km(e.inSSR,r.isComponent))}return n.set(t,o),o}case 2:case 3:return 3;case 9:case 11:case 10:return 0;case 5:case 12:return wo(t.content,e);case 4:return t.constType;case 8:let a=3;for(let o=0;o<t.children.length;o++){const l=t.children[o];if(Jt(l)||ad(l))continue;const u=wo(l,e);if(u===0)return 0;u<a&&(a=u)}return a;default:return 0}}const Rfe=new Set([Yk,Kk,Dy,Ob]);function OW(t,e){if(t.type===14&&!Jt(t.callee)&&Rfe.has(t.callee)){const n=t.arguments[0];if(n.type===4)return wo(n,e);if(n.type===14)return OW(n,e)}return 0}function RW(t,e){let n=3;const i=kW(t);if(i&&i.type===15){const{properties:r}=i;for(let s=0;s<r.length;s++){const{key:a,value:o}=r[s],l=wo(a,e);if(l===0)return l;l<n&&(n=l);let u;if(o.type===4?u=wo(o,e):o.type===14?u=OW(o,e):u=0,u===0)return u;u<n&&(n=u)}}return n}function kW(t){const e=t.codegenNode;if(e.type===13)return e.props}function IW(t){const e=t.patchFlag;return e?parseInt(e,10):void 0}function kfe(t,{filename:e="",prefixIdentifiers:n=!1,hoistStatic:i=!1,cacheHandlers:r=!1,nodeTransforms:s=[],directiveTransforms:a={}
vendor: 30,533 bytes, lines 2-7
2,transformHoist:o=null,isBuiltInComponent:l=Ms,isCustomElement:u=Ms,expressionPlugins:c=[],scopeId:f=null,slotted:h=!0,ssr:p=!1,inSSR:m=!1,ssrCssVars:y="",bindingMetadata:v=zn,inline:_=!1,isTS:b=!1,onError:x=Uk,onWarn:T=_W,compatConfig:E}){const C=e.replace(/\?.*$/,"").match(/([^/\\]+)\.\w+$/),D={selfName:C&&Tp(Sr(C[1])),prefixIdentifiers:n,hoistStatic:i,cacheHandlers:r,nodeTransforms:s,directiveTransforms:a,transformHoist:o,isBuiltInComponent:l,isCustomElement:u,expressionPlugins:c,scopeId:f,slotted:h,ssr:p,inSSR:m,ssrCssVars:y,bindingMetadata:v,inline:_,isTS:b,onError:x,onWarn:T,compatConfig:E,root:t,helpers:new Map,components:new Set,directives:new Set,hoists:[],imports:[],constantCache:new Map,temps:0,cached:0,identifiers:Object.create(null),scopes:{vFor:0,vSlot:0,vPre:0,vOnce:0},parent:null,currentNode:t,childIndex:0,inVOnce:!1,helper(R){const A=D.helpers.get(R)||0;return D.helpers.set(R,A+1),R},removeHelper(R){const A=D.helpers.get(R);if(A){const k=A-1;k?D.helpers.set(R,k):D.helpers.delete(R)}},helperString(R){return`_${Xm[D.helper(R)]}`},replaceNode(R){D.parent.children[D.childIndex]=D.currentNode=R},removeNode(R){const A=D.parent.children,k=R?A.indexOf(R):D.currentNode?D.childIndex:-1;!R||R===D.currentNode?(D.currentNode=null,D.onNodeRemoved()):D.childIndex>k&&(D.childIndex--,D.onNodeRemoved()),D.parent.children.splice(k,1)},onNodeRemoved:()=>{},addIdentifiers(R){},removeIdentifiers(R){},hoist(R){Jt(R)&&(R=dn(R)),D.hoists.push(R);const A=dn(`_hoisted_${D.hoists.length}`,!1,R.loc,2);return A.hoisted=R,A},cache(R,A=!1){return ofe(D.cached++,R,A)}};return D.filters=new Set,D}function Ife(t,e){const n=kfe(t,e);rw(t,n),e.hoistStatic&&Ofe(t,n),e.ssr||Lfe(t,n),t.helpers=new Set([...n.helpers.keys()]),t.components=[...n.components],t.directives=[...n.directives],t.imports=n.imports,t.hoists=n.hoists,t.temps=n.temps,t.cached=n.cached,t.filters=[...n.filters]}function Lfe(t,e){const{helper:n}=e,{children:i}=t;if(i.length===1){const r=i[0];if(PW(t,r)&&r.codegenNode){const s=r.codegenNode;s.type===13&&tI(s,e),t.codegenNode=s}else t.codegenNode=r}else if(i.length>1){let r=64;t.codegenNode=Py(e,n(My),void 0,t.children,r+"",void 0,void 0,!0,void 0,!1)}}function Ffe(t,e){let n=0;const i=()=>{n--};for(;n<t.children.length;n++){const r=t.children[n];Jt(r)||(e.parent=t,e.childIndex=n,e.onNodeRemoved=i,rw(r,e))}}function rw(t,e){e.currentNode=t;const{nodeTransforms:n}=e,i=[];for(let s=0;s<n.length;s++){const a=n[s](t,e);if(a&&(St(a)?i.push(...a):i.push(a)),e.currentNode)t=e.currentNode;else return}switch(t.type){case 3:e.ssr||e.helper(Pb);break;case 5:e.ssr||e.helper(tw);break;case 9:for(let s=0;s<t.branches.length;s++)rw(t.branches[s],e);break;case 10:case 11:case 1:case 0:Ffe(t,e);break}e.currentNode=t;let r=i.length;for(;r--;)i[r]()}function LW(t,e){const n=Jt(t)?i=>i===t:i=>t.test(i);return(i,r)=>{if(i.type===1){const{props:s}=i;if(i.tagType===3&&s.some(mfe))return;const a=[];for(let o=0;o<s.length;o++){const l=s[o];if(l.type===7&&n(l.name)){s.splice(o,1),o--;const u=e(i,l,r);u&&a.push(u)}}return a}}}const sw="/*#__PURE__*/",FW=t=>`${Xm[t]}: _${Xm[t]}`;function Q6(t,{mode:e="function",prefixIdentifiers:n=e==="module",sourceMap:i=!1,filename:r="template.vue.html",scopeId:s=null,optimizeImports:a=!1,runtimeGlobalName:o="Vue",runtimeModuleName:l="vue",ssrRuntimeModuleName:u="vue/server-renderer",ssr:c=!1,isTS:f=!1,inSSR:h=!1}){const p={mode:e,prefixIdentifiers:n,sourceMap:i,filename:r,scopeId:s,optimizeImports:a,runtimeGlobalName:o,runtimeModuleName:l,ssrRuntimeModuleName:u,ssr:c,isTS:f,inSSR:h,source:t.loc.source,code:"",column:1,line:1,offset:0,indentLevel:0,pure:!1,map:void 0,helper(y){return`_${Xm[y]}`},push(y,v){p.code+=y},indent(){m(++p.indentLevel)},deindent(y=!1){y?--p.indentLevel:m(--p.indentLevel)},newline(){m(p.indentLevel)}};function m(y){p.push(`
3`+"  ".repeat(y))}return p}function Nfe(t,e={}){const n=Q6(t,e);e.onContextCreated&&e.onContextCreated(n);const{mode:i,push:r,prefixIdentifiers:s,indent:a,deindent:o,newline:l,scopeId:u,ssr:c}=n,f=Array.from(t.helpers),h=f.length>0,p=!s&&i!=="module",m=!1,y=m?Q6(t,e):n;Bfe(t,y);const v=c?"ssrRender":"render",b=(c?["_ctx","_push","_parent","_attrs"]:["_ctx","_cache"]).join(", ");if(r(`function ${v}(${b}) {`),a(),p&&(r("with (_ctx) {"),a(),h&&(r(`const { ${f.map(FW).join(", ")} } = _Vue`),r(`
4`),l())),t.components.length&&(sM(t.components,"component",n),(t.directives.length||t.temps>0)&&l()),t.directives.length&&(sM(t.directives,"directive",n),t.temps>0&&l()),t.filters&&t.filters.length&&(l(),sM(t.filters,"filter",n),l()),t.temps>0){r("let ");for(let x=0;x<t.temps;x++)r(`${x>0?", ":""}_temp${x}`)}return(t.components.length||t.directives.length||t.temps)&&(r(`
5`),l()),c||r("return "),t.codegenNode?is(t.codegenNode,n):r("null"),p&&(o(),r("}")),o(),r("}"),{ast:t,code:n.code,preamble:m?y.code:"",map:n.map?n.map.toJSON():void 0}}function Bfe(t,e){const{ssr:n,prefixIdentifiers:i,push:r,newline:s,runtimeModuleName:a,runtimeGlobalName:o,ssrRuntimeModuleName:l}=e,u=o,c=Array.from(t.helpers);if(c.length>0&&(r(`const _Vue = ${u}
6`),t.hoists.length)){const f=[zk,Hk,Pb,Vk,xW].filter(h=>c.includes(h)).map(FW).join(", ");r(`const { ${f} } = _Vue
7`)}Ufe(t.hoists,e),s(),r("return ")}function sM(t,e,{helper:n,push:i,newline:r,isTS:s}){const a=n(e==="filter"?jk:e==="component"?Wk:Gk);for(let o=0;o<t.length;o++){let l=t[o];const u=l.endsWith("__self");u&&(l=l.slice(0,-6)),i(`const ${Oy(l,e)} = ${a}(${JSON.stringify(l)}${u?", true":""})${s?"!":""}`),o<t.length-1&&r()}}function Ufe(t,e){if(!t.length)return;e.pure=!0;const{push:n,newline:i,helper:r,scopeId:s,mode:a}=e;i();for(let o=0;o<t.length;o++){const l=t[o];l&&(n(`const _hoisted_${o+1} = `),is(l,e),i())}e.pure=!1}function iI(t,e){const n=t.length>3||!1;e.push("["),n&&e.indent(),kb(t,e,n),n&&e.deindent(),e.push("]")}function kb(t,e,n=!1,i=!0){const{push:r,newline:s}=e;for(let a=0;a<t.length;a++){const o=t[a];Jt(o)?r(o):St(o)?iI(o,e):is(o,e),a<t.length-1&&(n?(i&&r(","),s()):i&&r(", "))}}function is(t,e){if(Jt(t)){e.push(t);return}if(ad(t)){e.push(e.helper(t));return}switch(t.type){case 1:case 9:case 11:is(t.codegenNode,e);break;case 2:$fe(t,e);break;case 4:NW(t,e);break;case 5:zfe(t,e);break;case 12:is(t.codegenNode,e);break;case 8:BW(t,e);break;case 3:Vfe(t,e);break;case 13:Wfe(t,e);break;case 14:jfe(t,e);break;case 15:qfe(t,e);break;case 17:Xfe(t,e);break;case 18:Yfe(t,e);break;case 19:Kfe(t,e);break;case 20:Zfe(t,e);break;case 21:kb(t.body,e,!0,!1);break}}function $fe(t,e){e.push(JSON.stringify(t.content),t)}function NW(t,e){const{content:n,isStatic:i}=t;e.push(i?JSON.stringify(n):n,t)}function zfe(t,e){const{push:n,helper:i,pure:r}=e;r&&n(sw),n(`${i(tw)}(`),is(t.content,e),n(")")}function BW(t,e){for(let n=0;n<t.children.length;n++){const i=t.children[n];Jt(i)?e.push(i):is(i,e)}}function Hfe(t,e){const{push:n}=e;if(t.type===8)n("["),BW(t,e),n("]");else if(t.isStatic){const i=eI(t.content)?t.content:JSON.stringify(t.content);n(i,t)}else n(`[${t.content}]`,t)}function Vfe(t,e){const{push:n,helper:i,pure:r}=e;r&&n(sw),n(`${i(Pb)}(${JSON.stringify(t.content)})`,t)}function Wfe(t,e){const{push:n,helper:i,pure:r}=e,{tag:s,props:a,children:o,patchFlag:l,dynamicProps:u,directives:c,isBlock:f,disableTracking:h,isComponent:p}=t;c&&n(i(qk)+"("),f&&n(`(${i(sp)}(${h?"true":""}), `),r&&n(sw);const m=f?Zm(e.inSSR,p):Km(e.inSSR,p);n(i(m)+"(",t),kb(Gfe([s,a,o,l,u]),e),n(")"),f&&n(")"),c&&(n(", "),is(c,e),n(")"))}function Gfe(t){let e=t.length;for(;e--&&t[e]==null;);return t.slice(0,e+1).map(n=>n||"null")}function jfe(t,e){const{push:n,helper:i,pure:r}=e,s=Jt(t.callee)?t.callee:i(t.callee);r&&n(sw),n(s+"(",t),kb(t.arguments,e),n(")")}function qfe(t,e){const{push:n,indent:i,deindent:r,newline:s}=e,{properties:a}=t;if(!a.length){n("{}",t);return}const o=a.length>1||!1;n(o?"{":"{ "),o&&i();for(let l=0;l<a.length;l++){const{key:u,value:c}=a[l];Hfe(u,e),n(": "),is(c,e),l<a.length-1&&(n(","),s())}o&&r(),n(o?"}":" }")}function Xfe(t,e){iI(t.elements,e)}function Yfe(t,e){const{push:n,indent:i,deindent:r}=e,{params:s,returns:a,body:o,newline:l,isSlot:u}=t;u&&n(`_${Xm[Qk]}(`),n("(",t),St(s)?kb(s,e):s&&is(s,e),n(") => "),(l||o)&&(n("{"),i()),a?(l&&n("return "),St(a)?iI(a,e):is(a,e)):o&&is(o,e),(l||o)&&(r(),n("}")),u&&(t.isNonScopedSlot&&n(", undefined, true"),n(")"))}function Kfe(t,e){const{test:n,consequent:i,alternate:r,newline:s}=t,{push:a,indent:o,deindent:l,newline:u}=e;if(n.type===4){const f=!eI(n.content);f&&a("("),NW(n,e),f&&a(")")}else a("("),is(n,e),a(")");s&&o(),e.indentLevel++,s||a(" "),a("? "),is(i,e),e.indentLevel--,s&&u(),s||a(" "),a(": ");const c=r.type===19;c||e.indentLevel++,is(r,e),c||e.indentLevel--,s&&l(!0)}function Zfe(t,e){const{push:n,helper:i,indent:r,deindent:s,newline:a}=e;n(`_cache[${t.index}] || (`),t.isVNode&&(r(),n(`${i(a2)}(-1),`),a()),n(`_cache[${t.index}] = `),is(t.value,e),t.isVNode&&(n(","),a(),n(`${i(a2)}(1),`),a(),n(`_cache[${t.index}]`),s()),n(")")}new RegExp("\\b"+"arguments,await,break,case,catch,class,const,continue,debugger,default,delete,do,else,export,extends,finally,for,function,if,import,let,new,return,super,switch,throw,try,var,void,while,with,yield".split(",").join("\\b|\\b")+"\\b");const Qfe=LW(/^(if|else|else-if)$/,(t,e,n)=>Jfe(t,e,n,(i,r,s)=>{const a=n.parent.children;let o=a.indexOf(i),l=0;for(;o-->=0;){const u=a[o];u&&u.type===9&&(l+=u.branches.length)}return()=>{if(s)i.codegenNode=e5(r,l,n);else{const u=ede(i.codegenNode);u.alternate=e5(r,l+i.branches.length-1,n)}}}));function Jfe(t,e,n,i){if(e.name!=="else"&&(!e.exp||!e.exp.content.trim())){const r=e.exp?e.exp.loc:t.loc;n.onError(Si(28,e.loc)),e.exp=dn("true",!1,r)}if(e.name==="if"){const r=J6(t,e),s={type:9,loc:t.loc,branches:[r]};if(n.replaceNode(s),i)return i(s,r,!0)}else{const r=n.parent.children;let s=r.indexOf(t);for(;s-->=-1;){const a=r[s];if(a&&a.type===3){n.removeNode(a);continue}if(a&&a.type===2&&!a.content.trim().length){n.removeNode(a);continue}if(a&&a.type===9){e.name==="else-if"&&a.branches[a.branches.length-1].condition===void 0&&n.onError(Si(30,t.loc)),n.removeNode();const o=J6(t,e);a.branches.push(o);const l=i&&i(a,o,!1);rw(o,n),l&&l(),n.currentNode=null}else n.onError(Si(30,t.loc));break}}}function J6(t,e){const n=t.tagType===3;return{type:10,loc:t.loc,condition:e.name==="else"?void 0:e.exp,children:n&&!vo(t,"for")?t.children:[t],userKey:nw(t,"key"),isTemplateIf:n}}function e5(t,e,n){return t.condition?SP(t.condition,t5(t,e,n),Ji(n.helper(Pb),['""',"true"])):t5(t,e,n)}function t5(t,e,n){const{helper:i}=n,r=Ni("key",dn(`${e}`,!1,Xa,2)),{children:s}=t,a=s[0];if(s.length!==1||a.type!==1)if(s.length===1&&a.type===11){const l=a.codegenNode;return f2(l,r,n),l}else{let l=64;return Py(n,i(My),Eo([r]),s,l+"",void 0,void 0,!0,!1,!1,t.loc)}else{const l=a.codegenNode,u=_fe(l);return u.type===13&&tI(u,n),f2(u,r,n),l}}function ede(t){for(;;)if(t.type===19)if(t.alternate.type===19)t=t.alternate;else return t;else t.type===20&&(t=t.value)}const tde=LW("for",(t,e,n)=>{const{helper:i,removeHelper:r}=n;return nde(t,e,n,s=>{const a=Ji(i(Xk),[s.source]),o=u2(t),l=vo(t,"memo"),u=nw(t,"key"),c=u&&(u.type===6?dn(u.value.content,!0):u.exp),f=u?Ni("key",c):null,h=s.source.type===4&&s.source.constType>0,p=h?64:u?128:256;return s.codegenNode=Py(n,i(My),void 0,a,p+"",void 0,void 0,!0,!h,!1,t.loc),()=>{let m;const{children:y}=s,v=y.length!==1||y[0].type!==1,_=c2(t)?t:o&&t.children.length===1&&c2(t.children[0])?t.children[0]:null;if(_?(m=_.codegenNode,o&&f&&f2(m,f,n)):v?m=Py(n,i(My),f?Eo([f]):void 0,t.children,64+"",void 0,void 0,!0,void 0,!1):(m=y[0].codegenNode,o&&f&&f2(m,f,n),m.isBlock!==!h&&(m.isBlock?(r(sp),r(Zm(n.inSSR,m.isComponent))):r(Km(n.inSSR,m.isComponent))),m.isBlock=!h,m.isBlock?(i(sp),i(Zm(n.inSSR,m.isComponent))):i(Km(n.inSSR,m.isComponent))),l){const b=Ym(wP(s.parseResult,[dn("_cached")]));b.body=lfe([ul(["const _memo = (",l.exp,")"]),ul(["if (_cached",...c?[" && _cached.key === ",c]:[],` && ${n.helperString(EW)}(_cached, _memo)) return _cached`]),ul(["const _item = ",m]),dn("_item.memo = _memo"),dn("return _item")]),a.arguments.push(b,dn("_cache"),dn(String(n.cached++)))}else a.arguments.push(Ym(wP(s.parseResult),m,!0))}})});function nde(t,e,n,i){if(!e.exp){n.onError(Si(31,e.loc));return}const r=UW(e.exp);if(!r){n.onError(Si(32,e.loc));return}const{addIdentifiers:s,removeIdentifiers:a,scopes:o}=n,{source:l,value:u,key:c,index:f}=r,h={type:11,loc:e.loc,source:l,valueAlias:u,keyAlias:c,objectIndexAlias:f,parseResult:r,children:u2(t)?t.children:[t]};n.replaceNode(h),o.vFor++;const p=i&&i(h);return()=>{o.vFor--,p&&p()}}const ide=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,n5=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,rde=/^\(|\)$/g;function UW(t,e){const n=t.loc,i=t.content,r=i.match(ide);if(!r)return;const[,s,a]=r,o={source:Ax(n,a.trim(),i.indexOf(a,s.length)),value:void 0,key:void 0,index:void 0};let l=s.trim().replace(rde,"").trim();const u=s.indexOf(l),c=l.match(n5);if(c){l=l.replace(n5,"").trim();const f=c[1].trim();let h;if(f&&(h=i.indexOf(f,u+l.length),o.key=Ax(n,f,h)),c[2]){const p=c[2].trim();p&&(o.index=Ax(n,p,i.indexOf(p,o.key?h+f.length:u+l.length)))}}return l&&(o.value=Ax(n,l,u)),o}function Ax(t,e,n){return dn(e,!1,AW(t,n,e.length))}function wP({value:t,key:e,index:n},i=[]){return sde([t,e,n,...i])}function sde(t){let e=t.length;for(;e--&&!t[e];);return t.slice(0,e+1).map((n,i)=>n||dn("_".repeat(i+1),!1))}const i5=dn("undefined",!1),ade=(t,e)=>{if(t.type===1&&(t.tagType===1||t.tagType===3)){const n=vo(t,"slot");if(n)return n.exp,e.scopes.vSlot++,()=>{e.scopes.vSlot--}}},ode=(t,e,n)=>Ym(t,e,!1,!0,e.length?e[0].loc:n);function lde(t,e,n=ode){e.helper(Qk);const{children:i,loc:r}=t,s=[],a=[];let o=e.scopes.vSlot>0||e.scopes.vFor>0;const l=vo(t,"slot",!0);if(l){const{arg:v,exp:_}=l;v&&!Qs(v)&&(o=!0),s.push(Ni(v||dn("default",!0),n(_,i,r)))}let u=!1,c=!1;const f=[],h=new Set;let p=0;for(let v=0;v<i.length;v++){const _=i[v];let b;if(!u2(_)||!(b=vo(_,"slot",!0))){_.type!==3&&f.push(_);continue}if(l){e.onError(Si(37,b.loc));break}u=!0;const{children:x,loc:T}=_,{arg:E=dn("default",!0),exp:C,loc:D}=b;let R;Qs(E)?R=E?E.content:"default":o=!0;const A=n(C,x,T);let k,F,N;if(k=vo(_,"if"))o=!0,a.push(SP(k.exp,Mx(E,A,p++),i5));else if(F=vo(_,/^else(-if)?$/,!0)){let U=v,$;for(;U--&&($=i[U],$.type===3););if($&&u2($)&&vo($,"if")){i.splice(v,1),v--;let G=a[a.length-1];for(;G.alternate.type===19;)G=G.alternate;G.alternate=F.exp?SP(F.exp,Mx(E,A,p++),i5):Mx(E,A,p++)}else e.onError(Si(30,F.loc))}else if(N=vo(_,"for")){o=!0;const U=N.parseResult||UW(N.exp);U?a.push(Ji(e.helper(Xk),[U.source,Ym(wP(U),Mx(E,A),!0)])):e.onError(Si(32,N.loc))}else{if(R){if(h.has(R)){e.onError(Si(38,D));continue}h.add(R),R==="default"&&(c=!0)}s.push(Ni(E,A))}}if(!l){const v=(_,b)=>{const x=n(_,b,r);return e.compatConfig&&(x.isNonScopedSlot=!0),Ni("default",x)};u?f.length&&f.some(_=>$W(_))&&(c?e.onError(Si(39,f[0].loc)):s.push(v(void 0,f))):s.push(v(void 0,i))}const m=o?2:gT(t.children)?3:1;let y=Eo(s.concat(Ni("_",dn(m+"",!1))),r);return a.length&&(y=Ji(e.helper(TW),[y,Rb(a)])),{slots:y,hasDynamicSlots:o}}function Mx(t,e,n){const i=[Ni("name",t),Ni("fn",e)];return n!=null&&i.push(Ni("key",dn(String(n),!0))),Eo(i)}function gT(t){for(let e=0;e<t.length;e++){const n=t[e];switch(n.type){case 1:if(n.tagType===2||gT(n.children))return!0;break;case 9:if(gT(n.branches))return!0;break;case 10:case 11:if(gT(n.children))return!0;break}}return!1}function $W(t){return t.type!==2&&t.type!==12?!0:t.type===2?!!t.content.trim():$W(t.content)}const zW=new WeakMap,ude=(t,e)=>function(){if(t=e.currentNode,!(t.type===1&&(t.tagType===0||t.tagType===1)))return;const{tag:i,props:r}=t,s=t.tagType===1;let a=s?cde(t,e):`"${i}"`;const o=Zn(a)&&a.callee===r2;let l,u,c,f=0,h,p,m,y=o||a===Nv||a===$k||!s&&(i==="svg"||i==="foreignObject");if(r.length>0){const v=HW(t,e,void 0,s,o);l=v.props,f=v.patchFlag,p=v.dynamicPropNames;const _=v.directives;m=_&&_.length?Rb(_.map(b=>dde(b,e))):void 0,v.shouldUseBlock&&(y=!0)}if(t.children.length>0)if(a===i2&&(y=!0,f|=1024),s&&a!==Nv&&a!==i2){const{slots:_,hasDynamicSlots:b}=lde(t,e);u=_,b&&(f|=1024)}else if(t.children.length===1&&a!==Nv){const _=t.children[0],b=_.type,x=b===5||b===8;x&&wo(_,e)===0&&(f|=1),x||b===2?u=_:u=t.children}else u=t.children;f!==0&&(c=String(f),p&&p.length&&(h=hde(p))),t.codegenNode=Py(e,a,l,u,c,h,m,!!y,!1,s,t.loc)};function cde(t,e,n=!1){let{tag:i}=t;const r=CP(i),s=nw(t,"is");if(s)if(r||kh("COMPILER_IS_ON_ELEMENT",e)){const l=s.type===6?s.value&&dn(s.value.content,!0):s.exp;if(l)return Ji(e.helper(r2),[l])}else s.type===6&&s.value.content.startsWith("vue:")&&(i=s.value.content.slice(4));const a=!r&&vo(t,"is");if(a&&a.exp)return Ji(e.helper(r2),[a.exp]);const o=wW(i)||e.isBuiltInComponent(i);return o?(n||e.helper(o),o):(e.helper(Wk),e.components.add(i),Oy(i,"component"))}function HW(t,e,n=t.props,i,r,s=!1){const{tag:a,loc:o,children:l}=t;let u=[];const c=[],f=[],h=l.length>0;let p=!1,m=0,y=!1,v=!1,_=!1,b=!1,x=!1,T=!1;const E=[],C=A=>{u.length&&(c.push(Eo(r5(u),o)),u=[]),A&&c.push(A)},D=({key:A,value:k})=>{if(Qs(A)){const F=A.content,N=xp(F);if(N&&(!i||r)&&F.toLowerCase()!=="onclick"&&F!=="onUpdate:modelValue"&&!Ph(F)&&(b=!0),N&&Ph(F)&&(T=!0),k.type===20||(k.type===4||k.type===8)&&wo(k,e)>0)return;F==="ref"?y=!0:F==="class"?v=!0:F==="style"?_=!0:F!=="key"&&!E.includes(F)&&E.push(F),i&&(F==="class"||F==="style")&&!E.includes(F)&&E.push(F)}else x=!0};for(let A=0;A<n.length;A++){const k=n[A];if(k.type===6){const{loc:F,name:N,value:U}=k;let $=!0;if(N==="ref"&&(y=!0,e.scopes.vFor>0&&u.push(Ni(dn("ref_for",!0),dn("true")))),N==="is"&&(CP(a)||U&&U.content.startsWith("vue:")||kh("COMPILER_IS_ON_ELEMENT",e)))continue;u.push(Ni(dn(N,!0,AW(F,0,N.length)),dn(U?U.content:"",$,U?U.loc:F)))}else{const{name:F,arg:N,exp:U,loc:$}=k,G=F==="bind",Y=F==="on";if(F==="slot"){i||e.onError(Si(40,$));continue}if(F==="once"||F==="memo"||F==="is"||G&&Eh(N,"is")&&(CP(a)||kh("COMPILER_IS_ON_ELEMENT",e))||Y&&s)continue;if((G&&Eh(N,"key")||Y&&h&&Eh(N,"vue:before-update"))&&(p=!0),G&&Eh(N,"ref")&&e.scopes.vFor>0&&u.push(Ni(dn("ref_for",!0),dn("true"))),!N&&(G||Y)){if(x=!0,U)if(G){if(C(),kh("COMPILER_V_BIND_OBJECT_ORDER",e)){c.unshift(U);continue}c.push(U)}else C({type:14,loc:$,callee:e.helper(Zk),arguments:i?[U]:[U,"true"]});else e.onError(Si(G?34:35,$));continue}const Q=e.directiveTransforms[F];if(Q){const{props:re,needRuntime:he}=Q(k,t,e);!s&&re.forEach(D),Y&&N&&!Qs(N)?C(Eo(re,o)):u.push(...re),he&&(f.push(k),ad(he)&&zW.set(k,he))}else Yoe(F)||(f.push(k),h&&(p=!0))}}let R;if(c.length?(C(),c.length>1?R=Ji(e.helper(s2),c,o):R=c[0]):u.length&&(R=Eo(r5(u),o)),x?m|=16:(v&&!i&&(m|=2),_&&!i&&(m|=4),E.length&&(m|=8),b&&(m|=32)),!p&&(m===0||m===32)&&(y||T||f.length>0)&&(m|=512),!e.inSSR&&R)switch(R.type){case 15:let A=-1,k=-1,F=!1;for(let $=0;$<R.properties.length;$++){const G=R.properties[$].key;Qs(G)?G.content==="class"?A=$:G.content==="style"&&(k=$):G.isHandlerKey||(F=!0)}const N=R.properties[A],U=R.properties[k];F?R=Ji(e.helper(Dy),[R]):(N&&!Qs(N.value)&&(N.value=Ji(e.helper(Yk),[N.value])),U&&(_||U.value.type===4&&U.value.content.trim()[0]==="["||U.value.type===17)&&(U.value=Ji(e.helper(Kk),[U.value])));break;case 14:break;default:R=Ji(e.helper(Dy),[Ji(e.helper(Ob),[R])]);break}return{props:R,directives:f,patchFlag:m,dynamicPropNames:E,shouldUseBlock:p}}function r5(t){const e=new Map,n=[];for(let i=0;i<t.length;i++){const r=t[i];if(r.key.type===8||!r.key.isStatic){n.push(r);continue}const s=r.key.content,a=e.get(s);a?(s==="style"||s==="class"||xp(s))&&fde(a,r):(e.set(s,r),n.push(r))}return n}function fde(t,e){t.value.type===17?t.value.elements.push(e.value):t.value=Rb([t.value,e.value],t.loc)}function dde(t,e){const n=[],i=zW.get(t);i?n.push(e.helperString(i)):(e.helper(Gk),e.directives.add(t.name),n.push(Oy(t.name,"directive")));const{loc:r}=t;if(t.exp&&n.push(t.exp),t.arg&&(t.exp||n.push("void 0"),n.push(t.arg)),Object.keys(t.modifiers).length){t.arg||(t.exp||n.push("void 0"),n.push("void 0"));const s=dn("true",!1,r);n.push(Eo(t.modifiers.map(a=>Ni(a,s)),r))}return Rb(n,t.loc)}function hde(t){let e="[";for(let n=0,i=t.length;n<i;n++)e+=JSON.stringify(t[n]),n<i-1&&(e+=", ");return e+"]"}function CP(t){return t==="component"||t==="Component"}const pde=t=>{const e=Object.create(null);return n=>e[n]||(e[n]=t(n))},mde=/-(\w)/g,s5=pde(t=>t.replace(mde,(e,n)=>n?n.toUpperCase():"")),gde=(t,e)=>{if(c2(t)){const{children:n,loc:i}=t,{slotName:r,slotProps:s}=_de(t,e),a=[e.prefixIdentifiers?"_ctx.$slots":"$slots",r,"{}","undefined","true"];let o=2;s&&(a[2]=s,o=3),n.length&&(a[3]=Ym([],n,!1,!1,i),o=4),e.scopeId&&!e.slotted&&(o=5),a.splice(o),t.codegenNode=Ji(e.helper(SW),a,i)}};function _de(t,e){let n='"default"',i;const r=[];for(let s=0;s<t.props.length;s++){const a=t.props[s];a.type===6?a.value&&(a.name==="name"?n=JSON.stringify(a.value.content):(a.name=s5(a.name),r.push(a))):a.name==="bind"&&Eh(a.arg,"name")?a.exp&&(n=a.exp):(a.name==="bind"&&a.arg&&Qs(a.arg)&&(a.arg.content=s5(a.arg.content)),r.push(a))}if(r.length>0){const{props:s,directives:a}=HW(t,e,r,!1,!1);i=s,a.length&&e.onError(Si(36,a[0].loc))}return{slotName:n,slotProps:i}}const vde=/^\s*([\w$_]+|(async\s*)?\([^)]*?\))\s*(:[^=]+)?=>|^\s*(async\s+)?function(?:\s+[\w$]+)?\s*\(/,VW=(t,e,n,i)=>{const{loc:r,modifiers:s,arg:a}=t;!t.exp&&!s.length&&n.onError(Si(35,r));let o;if(a.type===4)if(a.isStatic){let f=a.content;f.startsWith("vue:")&&(f=`vnode-${f.slice(4)}`);const h=e.tagType!==0||f.startsWith("vnode")||!/[A-Z]/.test(f)?gm(Sr(f)):`on:${f}`;o=dn(h,!0,a.loc)}else o=ul([`${n.helperString(xP)}(`,a,")"]);else o=a,o.children.unshift(`${n.helperString(xP)}(`),o.children.push(")");let l=t.exp;l&&!l.content.trim()&&(l=void 0);let u=n.cacheHandlers&&!l&&!n.inVOnce;if(l){const f=CW(l.content),h=!(f||vde.test(l.content)),p=l.content.includes(";");(h||u&&f)&&(l=ul([`${h?"$event":"(...args)"} => ${p?"{":"("}`,l,p?"}":")"]))}let c={props:[Ni(o,l||dn("() => {}",!1,r))]};return i&&(c=i(c)),u&&(c.props[0].value=n.cache(c.props[0].value)),c.props.forEach(f=>f.key.isHandlerKey=!0),c},yde=(t,e,n)=>{const{exp:i,modifiers:r,loc:s}=t,a=t.arg;return a.type!==4?(a.children.unshift("("),a.children.push(') || ""')):a.isStatic||(a.content=`${a.content} || ""`),r.includes("camel")&&(a.type===4?a.isStatic?a.content=Sr(a.content):a.content=`${n.helperString(bP)}(${a.content})`:(a.children.unshift(`${n.helperString(bP)}(`),a.children.push(")"))),n.inSSR||(r.includes("prop")&&a5(a,"."),r.includes("attr")&&a5(a,"^")),!i||i.type===4&&!i.content.trim()?(n.onError(Si(34,s)),{props:[Ni(a,dn("",!0,s))]}):{props:[Ni(a,i)]}},a5=(t,e)=>{t.type===4?t.isStatic?t.content=e+t.content:t.content=`\`${e}\${${t.content}}\``:(t.children.unshift(`'${e}' + (`),t.children.push(")"))},bde=(t,e)=>{if(t.type===0||t.type===1||t.type===11||t.type===10)return()=>{const n=t.children;let i,r=!1;for(let s=0;s<n.length;s++){const a=n[s];if(rM(a)){r=!0;for(let o=s+1;o<n.length;o++){const l=n[o];if(rM(l))i||(i=n[s]=ul([a],a.loc)),i.children.push(" + ",l),n.splice(o,1),o--;else{i=void 0;break}}}}if(!(!r||n.length===1&&(t.type===0||t.type===1&&t.tagType===0&&!t.props.find(s=>s.type===7&&!e.directiveTransforms[s.name])&&t.tag!=="template")))for(let s=0;s<n.length;s++){const a=n[s];if(rM(a)||a.type===8){const o=[];(a.type!==2||a.content!==" ")&&o.push(a),!e.ssr&&wo(a,e)===0&&o.push(1+""),n[s]={type:12,content:a,loc:a.loc,codegenNode:Ji(e.helper(Vk),o)}}}}},o5=new WeakSet,xde=(t,e)=>{if(t.type===1&&vo(t,"once",!0))return o5.has(t)||e.inVOnce?void 0:(o5.add(t),e.inVOnce=!0,e.helper(a2),()=>{e.inVOnce=!1;const n=e.currentNode;n.codegenNode&&(n.codegenNode=e.cache(n.codegenNode,!0))})},WW=(t,e,n)=>{const{exp:i,arg:r}=t;if(!i)return n.onError(Si(41,t.loc)),Dx();const s=i.loc.source,a=i.type===4?i.content:s,o=n.bindingMetadata[s];if(o==="props"||o==="props-aliased")return n.onError(Si(44,i.loc)),Dx();const l=!1;if(!a.trim()||!CW(a)&&!l)return n.onError(Si(42,i.loc)),Dx();const u=r||dn("modelValue",!0),c=r?Qs(r)?`onUpdate:${Sr(r.content)}`:ul(['"onUpdate:" + ',r]):"onUpdate:modelValue";let f;const h=n.isTS?"($event: any)":"$event";f=ul([`${h} => ((`,i,") = $event)"]);const p=[Ni(u,t.exp),Ni(c,f)];if(t.modifiers.length&&e.tagType===1){const m=t.modifiers.map(v=>(eI(v)?v:JSON.stringify(v))+": true").join(", "),y=r?Qs(r)?`${r.content}Modifiers`:ul([r,' + "Modifiers"']):"modelModifiers";p.push(Ni(y,dn(`{ ${m} }`,!1,t.loc,2)))}return Dx(p)};function Dx(t=[]){return{props:t}}const Sde=/[\w).+\-_$\]]/,Tde=(t,e)=>{!kh("COMPILER_FILTER",e)||(t.type===5&&d2(t.content,e),t.type===1&&t.props.forEach(n=>{n.type===7&&n.name!=="for"&&n.exp&&d2(n.exp,e)}))};function d2(t,e){if(t.type===4)l5(t,e);else for(let n=0;n<t.children.length;n++){const i=t.children[n];typeof i=="object"&&(i.type===4?l5(i,e):i.type===8?d2(t,e):i.type===5&&d2(i.content,e))}}function l5(t,e){const n=t.content;let i=!1,r=!1,s=!1,a=!1,o=0,l=0,u=0,c=0,f,h,p,m,y=[];for(p=0;p<n.length;p++)if(h=f,f=n.charCodeAt(p),i)f===39&&h!==92&&(i=!1);else if(r)f===34&&h!==92&&(r=!1);else if(s)f===96&&h!==92&&(s=!1);else if(a)f===47&&h!==92&&(a=!1);else if(f===124&&n.charCodeAt(p+1)!==124&&n.charCodeAt(p-1)!==124&&!o&&!l&&!u)m===void 0?(c=p+1,m=n.slice(0,p).trim()):v();else{switch(f){case 34:r=!0;break;case 39:i=!0;break;case 96:s=!0;break;case 40:u++;break;case 41:u--;break;case 91:l++;break;case 93:l--;break;case 123:o++;break;case 125:o--;break}if(f===47){let _=p-1,b;for(;_>=0&&(b=n.charAt(_),b===" ");_--);(!b||!Sde.test(b))&&(a=!0)}}m===void 0?m=n.slice(0,p).trim():c!==0&&v();function v(){y.push(n.slice(c,p).trim()),c=p+1}if(y.length){for(p=0;p<y.length;p++)m=Ede(m,y[p],e);t.content=m}}function Ede(t,e,n){n.helper(jk);const i=e.indexOf("(");if(i<0)return n.filters.add(e),`${Oy(e,"filter")}(${t})`;{const r=e.slice(0,i),s=e.slice(i+1);return n.filters.add(r),`${Oy(r,"filter")}(${t}${s!==")"?","+s:s}`}}const u5=new WeakSet,wde=(t,e)=>{if(t.type===1){const n=vo(t,"memo");return!n||u5.has(t)?void 0:(u5.add(t),()=>{const i=t.codegenNode||e.currentNode.codegenNode;i&&i.type===13&&(t.tagType!==1&&tI(i,e),t.codegenNode=Ji(e.helper(Jk),[n.exp,Ym(void 0,i),"_cache",String(e.cached++)]))})}};function Cde(t){return[[xde,Qfe,wde,tde,Tde,gde,ude,ade,bde],{on:VW,bind:yde,model:WW}]}function Ade(t,e={}){const n=e.onError||Uk,i=e.mode==="module";e.prefixIdentifiers===!0?n(Si(47)):i&&n(Si(48));const r=!1;e.cacheHandlers&&n(Si(49)),e.scopeId&&!i&&n(Si(50));const s=Jt(t)?bfe(t,e):t,[a,o]=Cde();return Ife(s,Ln({},e,{prefixIdentifiers:r,nodeTransforms:[...a,...e.nodeTransforms||[]],directiveTransforms:Ln({},o,e.directiveTransforms||{})})),Nfe(s,Ln({},e,{prefixIdentifiers:r}))}const Mde=()=>({props:[]}),GW=Symbol(""),jW=Symbol(""),qW=Symbol(""),XW=Symbol(""),AP=Symbol(""),YW=Symbol(""),KW=Symbol(""),ZW=Symbol(""),QW=Symbol(""),JW=Symbol("");sfe({[GW]:"vModelRadio",[jW]:"vModelCheckbox",[qW]:"vModelText",[XW]:"vModelSelect",[AP]:"vModelDynamic",[YW]:"withModifiers",[KW]:"withKeys",[ZW]:"vShow",[QW]:"Transition",[JW]:"TransitionGroup"});let t0;function Dde(t,e=!1){return t0||(t0=document.createElement("div")),e?(t0.innerHTML=`<div foo="${t.replace(/"/g,"&quot;")}">`,t0.children[0].getAttribute("foo")):(t0.innerHTML=t,t0.textContent)}const Pde=fa("style,iframe,script,noscript",!0),Ode={isVoidTag:$oe,isNativeTag:t=>Boe(t)||Uoe(t),isPreTag:t=>t==="pre",decodeEntities:Dde,isBuiltInComponent:t=>{if(K0(t,"Transition"))return QW;if(K0(t,"TransitionGroup"))return JW},getNamespace(t,e){let n=e?e.ns:0;if(e&&n===2)if(e.tag==="annotation-xml"){if(t==="svg")return 1;e.props.some(i=>i.type===6&&i.name==="encoding"&&i.value!=null&&(i.value.content==="text/html"||i.value.content==="application/xhtml+xml"))&&(n=0)}else/^m(?:[ions]|text)$/.test(e.tag)&&t!=="mglyph"&&t!=="malignmark"&&(n=0);else e&&n===1&&(e.tag==="foreignObject"||e.tag==="desc"||e.tag==="title")&&(n=0);if(n===0){if(t==="svg")return 1;if(t==="math")return 2}return n},getTextMode({tag:t,ns:e}){if(e===0){if(t==="textarea"||t==="title")return 1;if(Pde(t))return 2}return 0}},Rde=t=>{t.type===1&&t.props.forEach((e,n)=>{e.type===6&&e.name==="style"&&e.value&&(t.props[n]={type:7,name:"bind",arg:dn("style",!0,e.loc),exp:kde(e.value.content,e.loc),modifiers:[],loc:e.loc})})},kde=(t,e)=>{const n=NH(t);return dn(JSON.stringify(n),!1,e,3)};function bc(t,e){return Si(t,e)}const Ide=(t,e,n)=>{const{exp:i,loc:r}=t;return i||n.onError(bc(51,r)),e.children.length&&(n.onError(bc(52,r)),e.children.length=0),{props:[Ni(dn("innerHTML",!0,r),i||dn("",!0))]}},Lde=(t,e,n)=>{const{exp:i,loc:r}=t;return i||n.onError(bc(53,r)),e.children.length&&(n.onError(bc(54,r)),e.children.length=0),{props:[Ni(dn("textContent",!0),i?wo(i,n)>0?i:Ji(n.helperString(tw),[i],r):dn("",!0))]}},Fde=(t,e,n)=>{const i=WW(t,e,n);if(!i.props.length||e.tagType===1)return i;t.arg&&n.onError(bc(56,t.arg.loc));const{tag:r}=e,s=n.isCustomElement(r);if(r==="input"||r==="textarea"||r==="select"||s){let a=qW,o=!1;if(r==="input"||s){const l=nw(e,"type");if(l){if(l.type===7)a=AP;else if(l.value)switch(l.value.content){case"radio":a=GW;break;case"checkbox":a=jW;break;case"file":o=!0,n.onError(bc(57,t.loc));break}}else pfe(e)&&(a=AP)}else r==="select"&&(a=XW);o||(i.needRuntime=n.helper(a))}else n.onError(bc(55,t.loc));return i.props=i.props.filter(a=>!(a.key.type===4&&a.key.content==="modelValue")),i},Nde=fa("passive,once,capture"),Bde=fa("stop,prevent,self,ctrl,shift,alt,meta,exact,middle"),Ude=fa("left,right"),eG=fa("onkeyup,onkeydown,onkeypress",!0),$de=(t,e,n,i)=>{const r=[],s=[],a=[];for(let o=0;o<e.length;o++){const l=e[o];l==="native"&&Ry("COMPILER_V_ON_NATIVE",n)||Nde(l)?a.push(l):Ude(l)?Qs(t)?eG(t.content)?r.push(l):s.push(l):(r.push(l),s.push(l)):Bde(l)?s.push(l):r.push(l)}return{keyModifiers:r,nonKeyModifiers:s,eventOptionModifiers:a}},c5=(t,e)=>Qs(t)&&t.content.toLowerCase()==="onclick"?dn(e,!0):t.type!==4?ul(["(",t,`) === "onClick" ? "${e}" : (`,t,")"]):t,zde=(t,e,n)=>VW(t,e,n,i=>{const{modifiers:r}=t;if(!r.length)return i;let{key:s,value:a}=i.props[0];const{keyModifiers:o,nonKeyModifiers:l,eventOptionModifiers:u}=$de(s,r,n,t.loc);if(l.includes("right")&&(s=c5(s,"onContextmenu")),l.includes("middle")&&(s=c5(s,"onMouseup")),l.length&&(a=Ji(n.helper(YW),[a,JSON.stringify(l)])),o.length&&(!Qs(s)||eG(s.content))&&(a=Ji(n.helper(KW),[a,JSON.stringify(o)])),u.length){const c=u.map(Tp).join("");s=Qs(s)?dn(`${s.content}${c}`,!0):ul(["(",s,`) + "${c}"`])}return{props:[Ni(s,a)]}}),Hde=(t,e,n)=>{const{exp:i,loc:r}=t;return i||n.onError(bc(59,r)),{props:[],needRuntime:n.helper(ZW)}},Vde=(t,e)=>{t.type===1&&t.tagType===0&&(t.tag==="script"||t.tag==="style")&&(e.onError(bc(61,t.loc)),e.removeNode())},Wde=[Rde],Gde={cloak:Mde,html:Ide,text:Lde,model:Fde,on:zde,show:Hde};
7function jde(t,e={}){return Ade(t,Ln({},Ode,e,{nodeTransforms:[Vde,...Wde,...e.nodeTransforms||[]],directiveTransforms:Ln({},Gde,e.directiveTransforms||{}),transformHoist:null}))}const f5=Object.create(null);function qde(t,e){if(!Jt(t))if(t.nodeType)t=t.innerHTML;else return Ms;const n=t,i=f5[n];if(i)return i;if(t[0]==="#"){const o=document.querySelector(t);t=o?o.innerHTML:""}const r=Ln({hoistStatic:!0,onError:void 0,onWarn:Ms},e);!r.isCustomElement&&typeof customElements<"u"&&(r.isCustomElement=o=>!!customElements.get(o));const{code:s}=jde(t,r),a=new Function("Vue",s)(Jce);return a._rc=!0,f5[n]=a}jV(qde);var Xde=!1;function Yde(){return tG().__VUE_DEVTOOLS_GLOBAL_HOOK__}function tG(){return typeof navigator<"u"&&typeof window<"u"?window:typeof global<"u"?global:{}}const Kde=typeof Proxy=="function",Zde="devtools-plugin:setup",Qde="plugin:settings:set";let n0,MP;function Jde(){var t;return n0!==void 0||(typeof window<"u"&&window.performance?(n0=!0,MP=window.performance):typeof global<"u"&&((t=global.perf_hooks)===null||t===void 0?void 0:t.performance)?(n0=!0,MP=global.perf_hooks.performance):n0=!1),n0}function ehe(){return Jde()?MP.now():Date.now()}class the{constructor(e,n){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=e,this.hook=n;const i={};if(e.settings)for(const a in e.settings){const o=e.settings[a];i[a]=o.defaultValue}const r=`__vue-devtools-plugin-settings__${e.id}`;let s=Object.assign({},i);try{const a=localStorage.getItem(r),o=JSON.parse(a);Object.assign(s,o)}catch(a){}this.fallbacks={getSettings(){return s},setSettings(a){try{localStorage.setItem(r,JSON.stringify(a))}catch(o){}s=a},now(){return ehe()}},n&&n.on(Qde,(a,o)=>{a===this.plugin.id&&this.fallbacks.setSettings(o)}),this.proxiedOn=new Proxy({},{get:(a,o)=>this.target?this.target.on[o]:(...l)=>{this.onQueue.push({method:o,args:l})}}),this.proxiedTarget=new Proxy({},{get:(a,o)=>this.target?this.target[o]:o==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(o)?(...l)=>(this.targetQueue.push({method:o,args:l,resolve:()=>{}}),this.fallbacks[o](...l)):(...l)=>new Promise(u=>{this.targetQueue.push({method:o,args:l,resolve:u})})})}async setRealTarget(e){this.target=e;for(const n of this.onQueue)this.target.on[n.method](...n.args);for(const n of this.targetQueue)n.resolve(await this.target[n.method](...n.args))}}function nG(t,e){const n=t,i=tG(),r=Yde(),s=Kde&&n.enableEarlyProxy;if(r&&(i.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!s))r.emit(Zde,t,e);else{const a=s?new the(n,r):null;(i.__VUE_DEVTOOLS_PLUGINS__=i.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:e,proxy:a}),a&&e(a.proxiedTarget)}}/*!
8  * pinia v2.0.30
9  * (c) 2023 Eduardo San Martin Morote
10  * @license MIT
11  */let iG;const aw=t=>iG=t,rG=Symbol();function DP(t){return t&&typeof t=="object"&&Object.prototype.toString.call(t)==="[object Object]"&&typeof t.toJSON!="function"}var iu;(function(t){t.direct="direct",t.patchObject="patch object",t.patchFunction="patch function"})(iu||(iu={}));const sG=typeof window<"u",Uv=sG,d5=(()=>typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof global=="object"&&global.global===global?global:typeof globalThis=="object"?globalThis:{HTMLElement:null})();function nhe(t,{autoBom:e=!1}={}){return e&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob([String.fromCharCode(65279),t],{type:t.type}):t}function rI(t,e,n){const i=new XMLHttpRequest;i.open("GET",t),i.responseType="blob",i.onload=function(){lG(i.response,e,n)},i.onerror=function(){console.error("could not download file")},i.send()}function aG(t){const e=new XMLHttpRequest;e.open("HEAD",t,!1);try{e.send()}catch(n){}return e.status>=200&&e.status<=299}function _T(t){try{t.dispatchEvent(new MouseEvent("click"))}catch(e){const n=document.createEvent("MouseEvents");
11n.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(n)}}const vT=typeof navigator=="object"?navigator:{userAgent:""},oG=(()=>/Macintosh/.test(vT.userAgent)&&/AppleWebKit/.test(vT.userAgent)&&!/Safari/.test(vT.userAgent))(),lG=sG?typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype&&!oG?ihe:"msSaveOrOpenBlob"in vT?rhe:she:()=>{};function ihe(t,e="download",n){const i=document.createElement("a");i.download=e,i.rel="noopener",typeof t=="string"?(i.href=t,i.origin!==location.origin?aG(i.href)?rI(t,e,n):(i.target="_blank",_T(i)):_T(i)):(i.href=URL.createObjectURL(t),setTimeout(function(){URL.revokeObjectURL(i.href)},4e4),setTimeout(function(){_T(i)},0))}function rhe(t,e="download",n){if(typeof t=="string")if(aG(t))rI(t,e,n);else{const i=document.createElement("a");i.href=t,i.target="_blank",setTimeout(function(){_T(i)})}else navigator.msSaveOrOpenBlob(nhe(t,n),e)}function she(t,e,n,i){if(i=i||open("","_blank"),i&&(i.document.title=i.document.body.innerText="downloading..."),typeof t=="string")return rI(t,e,n);const r=t.type==="application/octet-stream",s=/constructor/i.test(String(d5.HTMLElement))||"safari"in d5,a=/CriOS\/[\d]+/.test(navigator.userAgent);if((a||r&&s||oG)&&typeof FileReader<"u"){const o=new FileReader;o.onloadend=function(){let l=o.result;if(typeof l!="string")throw i=null,new Error("Wrong reader.result type");l=a?l:l.replace(/^data:[^;]*;/,"data:attachment/file;"),i?i.location.href=l:location.assign(l),i=null},o.readAsDataURL(t)}else{const o=URL.createObjectURL(t);i?i.location.assign(o):location.href=o,i=null,setTimeout(function(){URL.revokeObjectURL(o)},4e4)}}function vr(t,e){const n="\u{1F34D} "+t;typeof __VUE_DEVTOOLS_TOAST__=="function"?__VUE_DEVTOOLS_TOAST__(n,e):e==="error"?console.error(n):e==="warn"?console.warn(n):console.log(n)}function sI(t){return"_a"in t&&"install"in t}function uG(){if(!("clipboard"in navigator))return vr("Your browser doesn't support the Clipboard API","error"),!0}function cG(t){return t instanceof Error&&t.message.toLowerCase().includes("document is not focused")?(vr('You need to activate the "Emulate a focused page" setting in the "Rendering" panel of devtools.',"warn"),!0):!1}async function ahe(t){if(!uG())try{await navigator.clipboard.writeText(JSON.stringify(t.state.value)),vr("Global state copied to clipboard.")}catch(e){if(cG(e))return;vr("Failed to serialize the state. Check the console for more details.","error"),console.error(e)}}async function ohe(t){if(!uG())try{t.state.value=JSON.parse(await navigator.clipboard.readText()),vr("Global state pasted from clipboard.")}catch(e){if(cG(e))return;vr("Failed to deserialize the state from clipboard. Check the console for more details.","error"),console.error(e)}}async function lhe(t){try{lG(new Blob([JSON.stringify(t.state.value)],{type:"text/plain;charset=utf-8"}),"pinia-state.json")}catch(e){vr("Failed to export the state as JSON. Check the console for more details.","error"),console.error(e)}}let Hu;function uhe(){Hu||(Hu=document.createElement("input"),Hu.type="file",Hu.accept=".json");function t(){return new Promise((e,n)=>{Hu.onchange=async()=>{const i=Hu.files;if(!i)return e(null);const r=i.item(0);return e(r?{text:await r.text(),file:r}:null)},Hu.oncancel=()=>e(null),Hu.onerror=n,Hu.click()})}return t}async function che(t){try{const n=await(await uhe())();if(!n)return;const{text:i,file:r}=n;t.state.value=JSON.parse(i),vr(`Global state imported from "${r.name}".`)}catch(e){vr("Failed to export the state as JSON. Check the console for more details.","error"),console.error(e)}}function Ko(t){return{_custom:{display:t}}}const fG="\u{1F34D} Pinia (root)",PP="_root";function fhe(t){return sI(t)?{id:PP,label:fG}:{id:t.$id,label:t.$id}}function dhe(t){if(sI(t)){const n=Array.from(t._s.keys()),i=t._s;return{state:n.map(s=>({editable:!0,key:s,value:t.state.value[s]})),getters:n.filter(s=>i.get(s)._getters).map(s=>{const a=i.get(s);return{editable:!1,key:s,value:a._getters.reduce((o,l)=>(o[l]=a[l],o),{})}})}}const e={state:Object.keys(t.$state).map(n=>({editable:!0,key:n,value:t.$state[n]}))};return t._getters&&t._getters.length&&(e.getters=t._getters.map(n=>({editable:!1,key:n,value:t[n]}))),t._customProperties.size&&(e.customProperties=Array.from(t._customProperties).map(n=>({editable:!0,key:n,value:t[n]}))),e}function hhe(t){return t?Array.isArray(t)?t.reduce((e,n)=>(e.keys.push(n.key),e.operations.push(n.type),e.oldValue[n.key]=n.oldValue,e.newValue[n.key]=n.newValue,e),{oldValue:{},keys:[],operations:[],newValue:{}}):{operation:Ko(t.type),key:Ko(t.key),oldValue:t.oldValue,newValue:t.
11newValue}:{}}function phe(t){switch(t){case iu.direct:return"mutation";case iu.patchFunction:return"$patch";case iu.patchObject:return"$patch";default:return"unknown"}}let Z0=!0;const yT=[],uh="pinia:mutations",qr="pinia",{assign:mhe}=Object,h2=t=>"\u{1F34D} "+t;function ghe(t,e){nG({id:"dev.esm.pinia",label:"Pinia \u{1F34D}",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:yT,app:t},n=>{typeof n.now!="function"&&vr("You seem to be using an outdated version of Vue Devtools. Are you still using the Beta release instead of the stable one? You can find the links at https://devtools.vuejs.org/guide/installation.html."),n.addTimelineLayer({id:uh,label:"Pinia \u{1F34D}",color:15064968}),n.addInspector({id:qr,label:"Pinia \u{1F34D}",icon:"storage",treeFilterPlaceholder:"Search stores",actions:[{icon:"content_copy",action:()=>{ahe(e)},tooltip:"Serialize and copy the state"},{icon:"content_paste",action:async()=>{await ohe(e),n.sendInspectorTree(qr),n.sendInspectorState(qr)},tooltip:"Replace the state with the content of your clipboard"},{icon:"save",action:()=>{lhe(e)},tooltip:"Save the state as a JSON file"},{icon:"folder_open",action:async()=>{await che(e),n.sendInspectorTree(qr),n.sendInspectorState(qr)},tooltip:"Import the state from a JSON file"}],nodeActions:[{icon:"restore",tooltip:"Reset the state (option store only)",action:i=>{const r=e._s.get(i);r?r._isOptionsAPI?(r.$reset(),vr(`Store "${i}" reset.`)):vr(`Cannot reset "${i}" store because it's a setup store.`,"warn"):vr(`Cannot reset "${i}" store because it wasn't found.`,"warn")}}]}),n.on.inspectComponent((i,r)=>{const s=i.componentInstance&&i.componentInstance.proxy;if(s&&s._pStores){const a=i.componentInstance.proxy._pStores;Object.values(a).forEach(o=>{i.instanceData.state.push({type:h2(o.$id),key:"state",editable:!0,value:o._isOptionsAPI?{_custom:{value:$t(o.$state),actions:[{icon:"restore",tooltip:"Reset the state of this store",action:()=>o.$reset()}]}}:Object.keys(o.$state).reduce((l,u)=>(l[u]=o.$state[u],l),{})}),o._getters&&o._getters.length&&i.instanceData.state.push({type:h2(o.$id),key:"getters",editable:!1,value:o._getters.reduce((l,u)=>{try{l[u]=o[u]}catch(c){l[u]=c}return l},{})})})}}),n.on.getInspectorTree(i=>{if(i.app===t&&i.inspectorId===qr){let r=[e];r=r.concat(Array.from(e._s.values())),i.rootNodes=(i.filter?r.filter(s=>"$id"in s?s.$id.toLowerCase().includes(i.filter.toLowerCase()):fG.toLowerCase().includes(i.filter.toLowerCase())):r).map(fhe)}}),n.on.getInspectorState(i=>{if(i.app===t&&i.inspectorId===qr){const r=i.nodeId===PP?e:e._s.get(i.nodeId);if(!r)return;r&&(i.state=dhe(r))}}),n.on.editInspectorState((i,r)=>{if(i.app===t&&i.inspectorId===qr){const s=i.nodeId===PP?e:e._s.get(i.nodeId);if(!s)return vr(`store "${i.nodeId}" not found`,"error");const{path:a}=i;sI(s)?a.unshift("state"):(a.length!==1||!s._customProperties.has(a[0])||a[0]in s.$state)&&a.unshift("$state"),Z0=!1,i.set(s,a,i.state.value),Z0=!0}}),n.on.editComponentState(i=>{if(i.type.startsWith("\u{1F34D}")){const r=i.type.replace(/^🍍\s*/,""),s=e._s.get(r);if(!s)return vr(`store "${r}" not found`,"error");const{path:a}=i;if(a[0]!=="state")return vr(`Invalid path for store "${r}":
12${a}
13Only state can be modified.`);a[0]="$state",Z0=!1,i.set(s,a,i.state.value),Z0=!0}})})}function _he(t,e){yT.includes(h2(e.$id))||yT.push(h2(e.$id)),nG({id:"dev.esm.pinia",label:"Pinia \u{1F34D}",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:yT,app:t,settings:{logStoreChanges:{label:"Notify about new/deleted stores",type:"boolean",defaultValue:!0}}},n=>{const i=typeof n.now=="function"?n.now.bind(n):Date.now;e.$onAction(({after:a,onError:o,name:l,args:u})=>{const c=dG++;n.addTimelineEvent({layerId:uh,event:{time:i(),title:"\u{1F6EB} "+l,subtitle:"start",data:{store:Ko(e.$id),action:Ko(l),args:u},groupId:c}}),a(f=>{yh=void 0,n.addTimelineEvent({layerId:uh,event:{time:i(),title:"\u{1F6EC}
13 "+l,subtitle:"end",data:{store:Ko(e.$id),action:Ko(l),args:u,result:f},groupId:c}})}),o(f=>{yh=void 0,n.addTimelineEvent({layerId:uh,event:{time:i(),logType:"error",title:"\u{1F4A5} "+l,subtitle:"end",data:{store:Ko(e.$id),action:Ko(l),args:u,error:f},groupId:c}})})},!0),e._customProperties.forEach(a=>{or(()=>nu(e[a]),(o,l)=>{n.notifyComponentUpdate(),n.sendInspectorState(qr),Z0&&n.addTimelineEvent({layerId:uh,event:{time:i(),title:"Change",subtitle:a,data:{newValue:o,oldValue:l},groupId:yh}})},{deep:!0})}),e.$subscribe(({events:a,type:o},l)=>{if(n.notifyComponentUpdate(),n.sendInspectorState(qr),!Z0)return;const u={time:i(),title:phe(o),data:mhe({store:Ko(e.$id)},hhe(a)),groupId:yh};yh=void 0,o===iu.patchFunction?u.subtitle="\u2935\uFE0F":o===iu.patchObject?u.subtitle="\u{1F9E9}":a&&!Array.isArray(a)&&(u.subtitle=a.type),a&&(u.data["rawEvent(s)"]={_custom:{display:"DebuggerEvent",type:"object",tooltip:"raw DebuggerEvent[]",value:a}}),n.addTimelineEvent({layerId:uh,event:u})},{detached:!0,flush:"sync"});const r=e._hotUpdate;e._hotUpdate=Wl(a=>{r(a),n.addTimelineEvent({layerId:uh,event:{time:i(),title:"\u{1F525} "+e.$id,subtitle:"HMR update",data:{store:Ko(e.$id),info:Ko("HMR update")}}}),n.notifyComponentUpdate(),n.sendInspectorTree(qr),n.sendInspectorState(qr)});const{$dispose:s}=e;e.$dispose=()=>{s(),n.notifyComponentUpdate(),n.sendInspectorTree(qr),n.sendInspectorState(qr),n.getSettings().logStoreChanges&&vr(`Disposed "${e.$id}" store \u{1F5D1}`)},n.notifyComponentUpdate(),n.sendInspectorTree(qr),n.sendInspectorState(qr),n.getSettings().logStoreChanges&&vr(`"${e.$id}" store installed \u{1F195}`)})}let dG=0,yh;function h5(t,e){const n=e.reduce((i,r)=>(i[r]=$t(t)[r],i),{});for(const i in n)t[i]=function(){const r=dG,s=new Proxy(t,{get(...a){return yh=r,Reflect.get(...a)},set(...a){return yh=r,Reflect.set(...a)}});return n[i].apply(s,arguments)}}function vhe({app:t,store:e,options:n}){if(!e.$id.startsWith("__hot:")){if(n.state&&(e._isOptionsAPI=!0),typeof n.state=="function"){h5(e,Object.keys(n.actions));const i=e._hotUpdate;$t(e)._hotUpdate=function(r){i.apply(this,arguments),h5(e,Object.keys(r._hmrPayload.actions))}}_he(t,e)}}function VVe(){const t=lk(!0),e=t.run(()=>tn({}));let n=[],i=[];const r=Wl({install(s){aw(r),r._a=s,s.provide(rG,r),s.config.globalProperties.$pinia=r,Uv&&ghe(s,r),i.forEach(a=>n.push(a)),i=[]},use(s){return!this._a&&!Xde?i.push(s):n.push(s),this},_p:n,_a:null,_e:t,_s:new Map,state:e});return Uv&&typeof Proxy<"u"&&r.use(vhe),r}const hG=()=>{};function p5(t,e,n,i=hG){t.push(e);const r=()=>{const s=t.indexOf(e);s>-1&&(t.splice(s,1),i())};return!n&&BE()&&uk(r),r}function i0(t,...e){t.slice().forEach(n=>{n(...e)})}function OP(t,e){t instanceof Map&&e instanceof Map&&e.forEach((n,i)=>t.set(i,n)),t instanceof Set&&e instanceof Set&&e.forEach(t.add,t);for(const n in e){if(!e.hasOwnProperty(n))continue;const i=e[n],r=t[n];DP(r)&&DP(i)&&t.hasOwnProperty(n)&&!Pi(i)&&!tu(i)?t[n]=OP(r,i):t[n]=i}return t}const yhe=Symbol();function bhe(t){return!DP(t)||!t.hasOwnProperty(yhe)}const{assign:Zo}=Object;function xhe(t){return!!(Pi(t)&&t.effect)}function She(t,e,n,i){const{state:r,actions:s,getters:a}=e,o=n.state.value[t];let l;function u(){o||(n.state.value[t]=r?r():{});const c=gk(n.state.value[t]);return Zo(c,s,Object.keys(a||{}).reduce((f,h)=>(f[h]=Wl(rp(()=>{aw(n);const p=n._s.get(t);return a[h].call(p,p)})),f),{}))}return l=pG(t,u,e,n,i,!0),l.$reset=function(){const f=r?r():{};this.$patch(h=>{Zo(h,f)})},l}function pG(t,e,n={},i,r,s){let a;const o=Zo({actions:{}},n),l={deep:!0};let u,c,f=Wl([]),h=Wl([]),p;const m=i.state.value[t];!s&&!m&&(i.state.value[t]={});const y=tn({});let v;function _(A){let k;u=c=!1,typeof A=="function"?(A(i.state.value[t]),k={type:iu.patchFunction,storeId:t,events:p}):(OP(i.state.value[t],A),k={type:iu.patchObject,payload:A,storeId:t,events:p});const F=v=Symbol();Ig().then(()=>{v===F&&(u=!0)}),c=!0,i0(f,k,i.state.value[t])}const b=hG;function x(){a.stop(),f=[],h=[],i._s.delete(t)}function T(A,k){return function(){aw(i);const F=Array.from(arguments),N=[],U=[];function $(Q){N.push(Q)}
13function G(Q){U.push(Q)}i0(h,{args:F,name:A,store:D,after:$,onError:G});let Y;try{Y=k.apply(this&&this.$id===t?this:D,F)}catch(Q){throw i0(U,Q),Q}return Y instanceof Promise?Y.then(Q=>(i0(N,Q),Q)).catch(Q=>(i0(U,Q),Promise.reject(Q))):(i0(N,Y),Y)}}const E=Wl({actions:{},getters:{},state:[],hotState:y}),C={_p:i,$id:t,$onAction:p5.bind(null,h),$patch:_,$reset:b,$subscribe(A,k={}){const F=p5(f,A,k.detached,()=>N()),N=a.run(()=>or(()=>i.state.value[t],U=>{(k.flush==="sync"?c:u)&&A({storeId:t,type:iu.direct,events:p},U)},Zo({},l,k)));return F},$dispose:x},D=Ac(Uv?Zo({_hmrPayload:E,_customProperties:Wl(new Set)},C):C);i._s.set(t,D);const R=i._e.run(()=>(a=lk(),a.run(()=>e())));for(const A in R){const k=R[A];if(Pi(k)&&!xhe(k)||tu(k))s||(m&&bhe(k)&&(Pi(k)?k.value=m[A]:OP(k,m[A])),i.state.value[t][A]=k);else if(typeof k=="function"){const F=T(A,k);R[A]=F,o.actions[A]=k}}if(Zo(D,R),Zo($t(D),R),Object.defineProperty(D,"$state",{get:()=>i.state.value[t],set:A=>{_(k=>{Zo(k,A)})}}),Uv){const A={writable:!0,configurable:!0,enumerable:!1};["_p","_hmrPayload","_getters","_customProperties"].forEach(k=>{Object.defineProperty(D,k,Zo({value:D[k]},A))})}return i._p.forEach(A=>{if(Uv){const k=a.run(()=>A({store:D,app:i._a,pinia:i,options:o}));Object.keys(k||{}).forEach(F=>D._customProperties.add(F)),Zo(D,k)}else Zo(D,a.run(()=>A({store:D,app:i._a,pinia:i,options:o})))}),m&&s&&n.hydrate&&n.hydrate(D.$state,m),u=!0,c=!0,D}function WVe(t,e,n){let i,r;const s=typeof e=="function";typeof t=="string"?(i=t,r=s?n:e):(r=t,i=t.id);function a(o,l){const u=bu();return o=o||u&&xm(rG,null),o&&aw(o),o=iG,o._s.has(i)||(s?pG(i,e,r,o):She(i,r,o)),o._s.get(i)}return a.$id=i,a}function GVe(t){{t=$t(t);const e={};for(const n in t){const i=t[n];(Pi(i)||tu(i))&&(e[n]=_k(t,n))}return e}}var m5;const Ib=typeof window<"u",The=t=>typeof t=="string",$v=()=>{};Ib&&((m5=window==null?void 0:window.navigator)==null?void 0:m5.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function Pf(t){return typeof t=="function"?t():nu(t)}function aI(t,e){function n(...i){t(()=>e.apply(this,i),{fn:e,thisArg:this,args:i})}return n}const mG=t=>t();function Ehe(t,e={}){let n,i;return s=>{const a=Pf(t),o=Pf(e.maxWait);if(n&&clearTimeout(n),a<=0||o!==void 0&&o<=0)return i&&(clearTimeout(i),i=null),s();o&&!i&&(i=setTimeout(()=>{n&&clearTimeout(n),i=null,s()},o)),n=setTimeout(()=>{i&&clearTimeout(i),i=null,s()},a)}}function gG(t,e=!0,n=!0){let i=0,r,s=!0;const a=()=>{r&&(clearTimeout(r),r=void 0)};return l=>{const u=Pf(t),c=Date.now()-i;if(a(),u<=0)return i=Date.now(),l();c>u&&(n||!s)?(i=Date.now(),l()):e&&(r=setTimeout(()=>{i=Date.now(),s=!0,a(),l()},u)),!n&&!r&&(r=setTimeout(()=>s=!0,u)),s=!1}}function whe(t=mG){const e=tn(!0);function n(){e.value=!1}function i(){e.value=!0}return{isActive:e,pause:n,resume:i,eventFilter:(...s)=>{e.value&&t(...s)}}}function Che(t){return t}function Ahe(t,e){var n;if(typeof t=="number")return t+e;const i=((n=t.match(/^-?[0-9]+\.?[0-9]*/))==null?void 0:n[0])||"",r=t.slice(i.length),s=parseFloat(i)+e;return Number.isNaN(s)?t:s+r}function oI(t){return BE()?(uk(t),!0):!1}function Mhe(t,e=200,n={}){return aI(Ehe(e,n),t)}function Dhe(t,e=200,n=!1,i=!0){return aI(gG(e,n,i),t)}function Phe(t){return typeof t=="function"?rp(t):tn(t)}function _G(t,e=!0){bu()?yu(t):e?t():Ig(t)}var g5=Object.getOwnPropertySymbols,Ohe=Object.prototype.hasOwnProperty,Rhe=Object.prototype.propertyIsEnumerable,khe=(t,e)=>{var n={};for(var i in t)Ohe.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(t!=null&&g5)for(var i of g5(t))e.indexOf(i)<0&&Rhe.call(t,i)&&(n[i]=t[i]);return n};function vG(t,e,n={}){const i=n,{eventFilter:r=mG}=i,s=khe(i,["eventFilter"]);return or(t,aI(r,e),s)}var Ihe=Object.defineProperty,Lhe=Object.defineProperties,Fhe=Object.getOwnPropertyDescriptors,p2=Object.getOwnPropertySymbols,yG=Object.prototype.hasOwnProperty,bG=Object.prototype.propertyIsEnumerable,_5=(t,e,n)=>e in t?Ihe(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Nhe=(t,e)=>{for(var n in e||(e={}))yG.call(e,n)&&_5(t,n,e[n]);if(p2)for(var n of p2(e))bG.call(e,n)&&_5(t,n,e[n]);return t},Bhe=(t,e)=>Lhe(t,Fhe(e)),Uhe=(t,e)=>{var n={};for(var i in t)yG.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(t!=null&&p2)for(var i of p2(t))e.indexOf(i)<0&&bG.call(t,i)&&(n[i]=t[i]);return n};function $he(t,e,n={}){const i=n,{eventFilter:r}=i,s=Uhe(i,["eventFilter"]),{eventFilter:a,pause:o,resume:l,isActive:u}=whe(r);return{stop:vG(t,e,Bhe(Nhe({},s),{eventFilter:a}
13)),pause:o,resume:l,isActive:u}}var zhe=Object.defineProperty,Hhe=Object.defineProperties,Vhe=Object.getOwnPropertyDescriptors,m2=Object.getOwnPropertySymbols,xG=Object.prototype.hasOwnProperty,SG=Object.prototype.propertyIsEnumerable,v5=(t,e,n)=>e in t?zhe(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Whe=(t,e)=>{for(var n in e||(e={}))xG.call(e,n)&&v5(t,n,e[n]);if(m2)for(var n of m2(e))SG.call(e,n)&&v5(t,n,e[n]);return t},Ghe=(t,e)=>Hhe(t,Vhe(e)),jhe=(t,e)=>{var n={};for(var i in t)xG.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(t!=null&&m2)for(var i of m2(t))e.indexOf(i)<0&&SG.call(t,i)&&(n[i]=t[i]);return n};function jVe(t,e,n={}){const i=n,{throttle:r=0,trailing:s=!0,leading:a=!0}=i,o=jhe(i,["throttle","trailing","leading"]);return vG(t,e,Ghe(Whe({},o),{eventFilter:gG(r,s,a)}))}function pc(t){var e;const n=Pf(t);return(e=n==null?void 0:n.$el)!=null?e:n}const Fg=Ib?window:void 0;Ib&&window.document;Ib&&window.navigator;Ib&&window.location;function mc(...t){let e,n,i,r;if(The(t[0])?([n,i,r]=t,e=Fg):[e,n,i,r]=t,!e)return $v;let s=$v;const a=or(()=>pc(e),l=>{s(),l&&(l.addEventListener(n,i,r),s=()=>{l.removeEventListener(n,i,r),s=$v})},{immediate:!0,flush:"post"}),o=()=>{a(),s()};return oI(o),o}function qVe(t,e,n={}){const{window:i=Fg,ignore:r,capture:s=!0,detectIframe:a=!1}=n;if(!i)return;const o=tn(!0);let l;const u=p=>{i.clearTimeout(l);const m=pc(t);!m||m===p.target||p.composedPath().includes(m)||!o.value||e(p)},c=p=>r&&r.some(m=>{const y=pc(m);return y&&(p.target===y||p.composedPath().includes(y))}),f=[mc(i,"click",u,{passive:!0,capture:s}),mc(i,"pointerdown",p=>{const m=pc(t);o.value=!!m&&!p.composedPath().includes(m)&&!c(p)},{passive:!0}),mc(i,"pointerup",p=>{if(p.button===0){const m=p.composedPath();p.composedPath=()=>m,l=i.setTimeout(()=>u(p),50)}},{passive:!0}),a&&mc(i,"blur",p=>{var m;const y=pc(t);((m=document.activeElement)==null?void 0:m.tagName)==="IFRAME"&&!(y!=null&&y.contains(document.activeElement))&&e(p)})].filter(Boolean);return()=>f.forEach(p=>p())}function TG(t,e=!1){const n=tn(),i=()=>n.value=Boolean(t());return i(),_G(i,e),n}function D_(t,e={}){const{window:n=Fg}=e,i=TG(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function");let r;const s=tn(!1),a=()=>{!r||("removeEventListener"in r?r.removeEventListener("change",o):r.removeListener(o))},o=()=>{!i.value||(a(),r=n.matchMedia(Phe(t).value),s.value=r.matches,"addEventListener"in r?r.addEventListener("change",o):r.addListener(o))};return dV(o),oI(()=>a()),s}var qhe=Object.defineProperty,y5=Object.getOwnPropertySymbols,Xhe=Object.prototype.hasOwnProperty,Yhe=Object.prototype.propertyIsEnumerable,b5=(t,e,n)=>e in t?qhe(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Khe=(t,e)=>{for(var n in e||(e={}))Xhe.call(e,n)&&b5(t,n,e[n]);if(y5)for(var n of y5(e))Yhe.call(e,n)&&b5(t,n,e[n]);return t};function XVe(t,e={}){function n(o,l){let u=t[o];return l!=null&&(u=Ahe(u,l)),typeof u=="number"&&(u=`${u}px`),u}const{window:i=Fg}=e;function r(o){return i?i.matchMedia(o).matches:!1}const s=o=>D_(`(min-width: ${n(o)})`,e),a=Object.keys(t).reduce((o,l)=>(Object.defineProperty(o,l,{get:()=>s(l),enumerable:!0,configurable:!0}),o),{});return Khe({greater(o){return D_(`(min-width: ${n(o,.1)})`,e)},greaterOrEqual:s,smaller(o){return D_(`(max-width: ${n(o,-.1)})`,e)},smallerOrEqual(o){return D_(`(max-width: ${n(o)})`,e)},between(o,l){return D_(`(min-width: ${n(o)}) and (max-width: ${n(l,-.1)})`,e)},isGreater(o){return r(`(min-width: ${n(o,.1)})`)},isGreaterOrEqual(o){return r(`(min-width: ${n(o)})`)},isSmaller(o){return r(`(max-width: ${n(o,-.1)})`)},isSmallerOrEqual(o){return r(`(max-width: ${n(o)})`)},isInBetween(o,l){return r(`(min-width: ${n(o)}) and (max-width: ${n(l,-.1)})`)}},a)}const RP=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},kP="__vueuse_ssr_handlers__";RP[kP]=RP[kP]||{};RP[kP];var x5=Object.getOwnPropertySymbols,Zhe=Object.prototype.hasOwnProperty,Qhe=Object.prototype.propertyIsEnumerable,Jhe=(t,e)=>{var n={};for(var i in t)Zhe.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(t!=null&&x5)for(var i of x5(t))e.indexOf(i)<0&&Qhe.call(t,i)&&(n[i]=t[i]);return n};function EG(t,e,n={}){const i=n,{window:r=Fg}=i,s=Jhe(i,["window"]);let a;const o=TG(()=>r&&"ResizeObserver"in r),l=()=>{a&&(a.disconnect(),a=void 0)},u=or(()=>pc(t),f=>{l(),o.value&&r&&f&&(a=new ResizeObserver(e),a.observe(f,s))},{immediate:!0,flush:"post"}),c=()=>
13{l(),u()};return oI(c),{isSupported:o,stop:c}}function YVe(t,e={}){const{reset:n=!0,windowResize:i=!0,windowScroll:r=!0,immediate:s=!0}=e,a=tn(0),o=tn(0),l=tn(0),u=tn(0),c=tn(0),f=tn(0),h=tn(0),p=tn(0);function m(){const y=pc(t);if(!y){n&&(a.value=0,o.value=0,l.value=0,u.value=0,c.value=0,f.value=0,h.value=0,p.value=0);return}const v=y.getBoundingClientRect();a.value=v.height,o.value=v.bottom,l.value=v.left,u.value=v.right,c.value=v.top,f.value=v.width,h.value=v.x,p.value=v.y}return EG(t,m),or(()=>pc(t),y=>!y&&m()),r&&mc("scroll",m,{passive:!0}),i&&mc("resize",m,{passive:!0}),_G(()=>{s&&m()}),{height:a,bottom:o,left:l,right:u,top:c,width:f,x:h,y:p,update:m}}function KVe(t,e={width:0,height:0},n={}){const{box:i="content-box"}=n,r=tn(e.width),s=tn(e.height);return EG(t,([a])=>{const o=i==="border-box"?a.borderBoxSize:i==="content-box"?a.contentBoxSize:a.devicePixelContentBoxSize;o?(r.value=o.reduce((l,{inlineSize:u})=>l+u,0),s.value=o.reduce((l,{blockSize:u})=>l+u,0)):(r.value=a.contentRect.width,s.value=a.contentRect.height)},n),or(()=>pc(t),a=>{r.value=a?e.width:0,s.value=a?e.height:0}),{width:r,height:s}}const S5=1;function ZVe(t,e={}){const{throttle:n=0,idle:i=200,onStop:r=$v,onScroll:s=$v,offset:a={left:0,right:0,top:0,bottom:0},eventListenerOptions:o={capture:!1,passive:!0},behavior:l="auto"}=e,u=tn(0),c=tn(0),f=rp({get(){return u.value},set(x){p(x,void 0)}}),h=rp({get(){return c.value},set(x){p(void 0,x)}});function p(x,T){var E,C,D;const R=Pf(t);!R||(D=R instanceof Document?document.body:R)==null||D.scrollTo({top:(E=Pf(T))!=null?E:h.value,left:(C=Pf(x))!=null?C:f.value,behavior:Pf(l)})}const m=tn(!1),y=Ac({left:!0,right:!1,top:!0,bottom:!1}),v=Ac({left:!1,right:!1,top:!1,bottom:!1}),_=Mhe(x=>{m.value=!1,v.left=!1,v.right=!1,v.top=!1,v.bottom=!1,r(x)},n+i),b=x=>{const T=x.target===document?x.target.documentElement:x.target,E=T.scrollLeft;v.left=E<u.value,v.right=E>c.value,y.left=E<=0+(a.left||0),y.right=E+T.clientWidth>=T.scrollWidth-(a.right||0)-S5,u.value=E;let C=T.scrollTop;x.target===document&&!C&&(C=document.body.scrollTop),v.top=C<c.value,v.bottom=C>c.value,y.top=C<=0+(a.top||0),y.bottom=C+T.clientHeight>=T.scrollHeight-(a.bottom||0)-S5,c.value=C,m.value=!0,_(x),s(x)};return mc(t,"scroll",n?Dhe(b,n):b,o),{x:f,y:h,isScrolling:m,arrivedState:y,directions:v}}var T5;(function(t){t.UP="UP",t.RIGHT="RIGHT",t.DOWN="DOWN",t.LEFT="LEFT",t.NONE="NONE"})(T5||(T5={}));var epe=Object.defineProperty,E5=Object.getOwnPropertySymbols,tpe=Object.prototype.hasOwnProperty,npe=Object.prototype.propertyIsEnumerable,w5=(t,e,n)=>e in t?epe(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,ipe=(t,e)=>{for(var n in e||(e={}))tpe.call(e,n)&&w5(t,n,e[n]);if(E5)for(var n of E5(e))npe.call(e,n)&&w5(t,n,e[n]);return t};const rpe={easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]};ipe({linear:Che},rpe);function QVe(t="history",e={}){const{initialValue:n={},removeNullishValues:i=!0,removeFalsyValues:r=!1,write:s=!0,window:a=Fg}=e;if(!a)return Ac(n);const o=Ac({});function l(){if(t==="history")return a.location.search||"";if(t==="hash"){const _=a.location.hash||"",b=_.indexOf("?");return b>0?_.slice(b):""}else return(a.location.hash||"").replace(/^#/,"")}function u(_){const b=_.toString();if(t==="history")return`${b?`?${b}`:""}${a.location.hash||""}`;if(t==="hash-params")return`${a.location.search||""}${b?`#${b}`:""}`;const x=a.location.hash||"#",T=x.indexOf("?");return T>0?`${x.slice(0,T)}${b?`?${b}`:""}`:`${x}${b?`?${b}`:""}`}function c(){return new URLSearchParams(l())}function f(_){const b=new Set(Object.keys(o));for(const x of _.keys()){const T=_.getAll(x);o[x]=T.length>1?T:_.get(x)||"",b.delete(x)}Array.from(b).forEach(x=>delete o[x])}const{pause:h,resume:p}=$he(o,()=>{const _=new URLSearchParams("");
13Object.keys(o).forEach(b=>{const x=o[b];Array.isArray(x)?x.forEach(T=>_.append(b,T)):i&&x==null||r&&!x?_.delete(b):_.set(b,x)}),m(_)},{deep:!0});function m(_,b){h(),b&&f(_),a.history.replaceState(a.history.state,a.document.title,a.location.pathname+u(_)),p()}function y(){!s||m(c(),!0)}mc(a,"popstate",y,!1),t!=="history"&&mc(a,"hashchange",y,!1);const v=c();return v.keys().next().value?f(v):Object.assign(o,n),o}function C5(t){return t!==null&&typeof t=="object"&&"constructor"in t&&t.constructor===Object}function lI(t={},e={}){Object.keys(e).forEach(n=>{typeof t[n]>"u"?t[n]=e[n]:C5(e[n])&&C5(t[n])&&Object.keys(e[n]).length>0&&lI(t[n],e[n])})}const wG={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 Tr(){const t=typeof document<"u"?document:{};return lI(t,wG),t}const spe={document:wG,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 Ar(){const t=typeof window<"u"?window:{};return lI(t,spe),t}function ape(t){const e=t.__proto__;Object.defineProperty(t,"__proto__",{get(){return e},set(n){e.__proto__=n}})}class Of extends Array{constructor(e){typeof e=="number"?super(e):(super(...e||[]),ape(this))}}function Lb(t=[]){const e=[];return t.forEach(n=>{Array.isArray(n)?e.push(...Lb(n)):e.push(n)}),e}function CG(t,e){return Array.prototype.filter.call(t,e)}function ope(t){const e=[];for(let n=0;n<t.length;n+=1)e.indexOf(t[n])===-1&&e.push(t[n]);return e}function lpe(t,e){if(typeof t!="string")return[t];const n=[],i=e.querySelectorAll(t);for(let r=0;r<i.length;r+=1)n.push(i[r]);return n}function mt(t,e){const n=Ar(),i=Tr();let r=[];if(!e&&t instanceof Of)return t;if(!t)return new Of(r);if(typeof t=="string"){const s=t.trim();if(s.indexOf("<")>=0&&s.indexOf(">")>=0){let a="div";s.indexOf("<li")===0&&(a="ul"),s.indexOf("<tr")===0&&(a="tbody"),(s.indexOf("<td")===0||s.indexOf("<th")===0)&&(a="tr"),s.indexOf("<tbody")===0&&(a="table"),s.indexOf("<option")===0&&(a="select");const o=i.createElement(a);o.innerHTML=s;for(let l=0;l<o.childNodes.length;l+=1)r.push(o.childNodes[l])}else r=lpe(t.trim(),e||i)}else if(t.nodeType||t===n||t===i)r.push(t);else if(Array.isArray(t)){if(t instanceof Of)return t;r=t}return new Of(ope(r))}mt.fn=Of.prototype;function upe(...t){const e=Lb(t.map(n=>n.split(" ")));return this.forEach(n=>{n.classList.add(...e)}),this}function cpe(...t){const e=Lb(t.map(n=>n.split(" ")));return this.forEach(n=>{n.classList.remove(...e)}),this}function fpe(...t){const e=Lb(t.map(n=>n.split(" ")));this.forEach(n=>{e.forEach(i=>{n.classList.toggle(i)})})}function dpe(...t){const e=Lb(t.map(n=>n.split(" ")));return CG(this,n=>e.filter(i=>n.classList.contains(i)).length>0).length>0}function hpe(t,e){if(arguments.length===1&&typeof t=="string")return this[0]?this[0].getAttribute(t):void 0;for(let n=0;n<this.length;n+=1)if(arguments.length===2)this[n].setAttribute(t,e);else for(const i in t)this[n][i]=t[i],this[n].setAttribute(i,t[i]);return this}function ppe(t){for(let e=0;e<this.length;e+=1)this[e].removeAttribute(t);return this}function mpe(t){for(let e=0;e<this.length;e+=1)this[e].style.transform=t;return this}function gpe(t){for(let e=0;e<this.length;e+=1)this[e].style.transitionDuration=typeof t!="string"?`${t}ms`:t;return this}function _pe(...t){let[e,n,i,r]=t;typeof t[1]=="function"&&([e,i,r]=t,n=void 0),r||(r=!1);function s(u){const c=u.target;if(!c)return;const f=u.target.dom7EventData||[];if(f.indexOf(u)<0&&f.unshift(u),mt(c).is(n))i.apply(c,f);else{const h=mt(c).parents();for(let p=0;p<h.length;p+=1)mt(h[p]).is(n)&&i.apply(h[p],f)}}function a(u){const c=u&&u.target?u.target.dom7EventData||[]:[];c.indexOf(u)<0&&c.unshift(u),i.apply(this,c)}const o=e.split(" ");let l;for(let u=0;u<this.length;u+=1){const c=this[u];if(n)for(l=0;l<o.length;l+=1){const f=o[l];c.dom7LiveListeners||(c.dom7LiveListeners={}),c.dom7LiveListeners[f]||(c.dom7LiveListeners[f]=[]),c.dom7LiveListeners[f].push({listener:i,proxyListener:s}),c.addEventListener(f,s,r)}else for(l=0;l<o.length;l+=1){const f=o[l];c.dom7Listeners||(c.dom7Listeners={}),c.dom7Listeners[f]||(c.dom7Listeners[f]=[]),c.dom7Listeners[f].push({listener:i,proxyListener:a}),c.addEventListener(f,a,r)}}return this}function vpe(...t){let[e,n,i,r]=t;typeof t[1]=="function"&&([e,i,r]=t,n=void 0),r||(r=!1);const s=e.split(" ");for(let a=0;a<s.length;a+=1){const o=s[a];for(let l=0;l<this.length;l+=1){const u=this[l];let c;if(!n&&u.dom7Listeners?c=u.dom7Listeners[o]:n&&u.dom7LiveListeners&&(c=u.dom7LiveListeners[o]),c&&c.length)for(let f=c.length-1;f>=0;f-=1){const h=c[f];i&&h.listener===i||i&&h.listener&&h.listener.dom7proxy&&h.listener.dom7proxy===i?(u.removeEventListener(o,h.proxyListener,r),c.splice(f,1)):i||(u.removeEventListener(o,h.proxyListener,r),c.splice(f,1))}}}return this}function ype(...t){const e=Ar(),n=t[0].split(" "),i=t[1];for(let r=0;r<n.length;r+=1){const s=n[r];for(let a=0;a<this.length;a+=1){const o=this[a];if(e.CustomEvent){const l=new e.CustomEvent(s,{detail:i,bubbles:!0,cancelable:!0});o.dom7EventData=t.filter((u,c)=>c>0),o.dispatchEvent(l),o.dom7EventData=[],delete o.dom7EventData}}}return this}function bpe(t){const e=this;function n(i){i.target===this&&(t.call(this,i),e.off("transitionend",n))}return t&&e.on("transitionend",n),this}function xpe(t){if(this.length>0){if(t){const e=this.styles();return this[0].offsetWidth+parseFloat(e.getPropertyValue("margin-right"))+
13parseFloat(e.getPropertyValue("margin-left"))}return this[0].offsetWidth}return null}function Spe(t){if(this.length>0){if(t){const e=this.styles();return this[0].offsetHeight+parseFloat(e.getPropertyValue("margin-top"))+parseFloat(e.getPropertyValue("margin-bottom"))}return this[0].offsetHeight}return null}function Tpe(){if(this.length>0){const t=Ar(),e=Tr(),n=this[0],i=n.getBoundingClientRect(),r=e.body,s=n.clientTop||r.clientTop||0,a=n.clientLeft||r.clientLeft||0,o=n===t?t.scrollY:n.scrollTop,l=n===t?t.scrollX:n.scrollLeft;return{top:i.top+o-s,left:i.left+l-a}}return null}function Epe(){const t=Ar();return this[0]?t.getComputedStyle(this[0],null):{}}function wpe(t,e){const n=Ar();let i;if(arguments.length===1)if(typeof t=="string"){if(this[0])return n.getComputedStyle(this[0],null).getPropertyValue(t)}else{for(i=0;i<this.length;i+=1)for(const r in t)this[i].style[r]=t[r];return this}if(arguments.length===2&&typeof t=="string"){for(i=0;i<this.length;i+=1)this[i].style[t]=e;return this}return this}function Cpe(t){return t?(this.forEach((e,n)=>{t.apply(e,[e,n])}),this):this}function Ape(t){const e=CG(this,t);return mt(e)}function Mpe(t){if(typeof t>"u")return this[0]?this[0].innerHTML:null;for(let e=0;e<this.length;e+=1)this[e].innerHTML=t;return this}function Dpe(t){if(typeof t>"u")return this[0]?this[0].textContent.trim():null;for(let e=0;e<this.length;e+=1)this[e].textContent=t;return this}function Ppe(t){const e=Ar(),n=Tr(),i=this[0];let r,s;if(!i||typeof t>"u")return!1;if(typeof t=="string"){if(i.matches)return i.matches(t);if(i.webkitMatchesSelector)return i.webkitMatchesSelector(t);if(i.msMatchesSelector)return i.msMatchesSelector(t);for(r=mt(t),s=0;s<r.length;s+=1)if(r[s]===i)return!0;return!1}if(t===n)return i===n;if(t===e)return i===e;if(t.nodeType||t instanceof Of){for(r=t.nodeType?[t]:t,s=0;s<r.length;s+=1)if(r[s]===i)return!0;return!1}return!1}function Ope(){let t=this[0],e;if(t){for(e=0;(t=t.previousSibling)!==null;)t.nodeType===1&&(e+=1);return e}}function Rpe(t){if(typeof t>"u")return this;const e=this.length;if(t>e-1)return mt([]);if(t<0){const n=e+t;return n<0?mt([]):mt([this[n]])}return mt([this[t]])}function kpe(...t){let e;const n=Tr();for(let i=0;i<t.length;i+=1){e=t[i];for(let r=0;r<this.length;r+=1)if(typeof e=="string"){const s=n.createElement("div");for(s.innerHTML=e;s.firstChild;)this[r].appendChild(s.firstChild)}else if(e instanceof Of)for(let s=0;s<e.length;s+=1)this[r].appendChild(e[s]);else this[r].appendChild(e)}return this}function Ipe(t){const e=Tr();let n,i;for(n=0;n<this.length;n+=1)if(typeof t=="string"){const r=e.createElement("div");for(r.innerHTML=t,i=r.childNodes.length-1;i>=0;i-=1)this[n].insertBefore(r.childNodes[i],this[n].childNodes[0])}else if(t instanceof Of)for(i=0;i<t.length;i+=1)this[n].insertBefore(t[i],this[n].childNodes[0]);else this[n].insertBefore(t,this[n].childNodes[0]);return this}function Lpe(t){return this.length>0?t?this[0].nextElementSibling&&mt(this[0].nextElementSibling).is(t)?mt([this[0].nextElementSibling]):mt([]):this[0].nextElementSibling?mt([this[0].nextElementSibling]):mt([]):mt([])}function Fpe(t){const e=[];let n=this[0];if(!n)return mt([]);for(;n.nextElementSibling;){const i=n.nextElementSibling;t?mt(i).is(t)&&e.push(i):e.push(i),n=i}return mt(e)}function Npe(t){if(this.length>0){const e=this[0];return t?e.previousElementSibling&&mt(e.previousElementSibling).is(t)?mt([e.previousElementSibling]):mt([]):e.previousElementSibling?mt([e.previousElementSibling]):mt([])}return mt([])}function Bpe(t){const e=[];let n=this[0];if(!n)return mt([]);for(;n.previousElementSibling;){const i=n.previousElementSibling;t?mt(i).is(t)&&e.push(i):e.push(i),n=i}return mt(e)}function Upe(t){const e=[];for(let n=0;n<this.length;n+=1)this[n].parentNode!==null&&(t?mt(this[n].parentNode).is(t)&&e.push(this[n].parentNode):e.push(this[n].parentNode));return mt(e)}function $pe(t){const e=[];for(let n=0;n<this.length;n+=1){let i=this[n].parentNode;for(;i;)t?mt(i).is(t)&&e.push(i):e.push(i),i=i.parentNode}return mt(e)}function zpe(t){let e=this;return typeof t>"u"?mt([]):(e.is(t)||(e=e.parents(t).eq(0)),e)}function Hpe(t){const e=[];for(let n=0;n<this.length;n+=1){const i=this[n].querySelectorAll(t);for(let r=0;r<i.length;r+=1)e.push(i[r])}return mt(e)}function Vpe(t){const e=[];for(let n=0;n<this.length;n+=1){const i=this[n].children;for(let r=0;r<i.length;r+=1)(!t||mt(i[r]).is(t))&&e.push(i[r])}return mt(e)}function Wpe(){for(let t=0;t<this.length;t+=1)this[t].parentNode&&this[t].parentNode.removeChild(this[t]);return this}const A5={addClass:upe,removeClass:cpe,hasClass:dpe,toggleClass:fpe,attr:hpe,removeAttr:ppe,transform:mpe,transition:gpe,on:_pe,off:vpe,trigger:ype,transitionEnd:bpe,outerWidth:xpe,outerHeight:Spe,styles:Epe,offset:Tpe,css:wpe,each:Cpe,html:Mpe,text:Dpe,is:Ppe,index:Ope,eq:Rpe,append:kpe,prepend:Ipe,next:Lpe,nextAll:Fpe,prev:Npe,prevAll:Bpe,parent:Upe,parents:$pe,closest:zpe,find:Hpe,children:Vpe,filter:Ape,remove:Wpe};
13Object.keys(A5).forEach(t=>{Object.defineProperty(mt.fn,t,{value:A5[t],writable:!0})});function Gpe(t){const e=t;Object.keys(e).forEach(n=>{try{e[n]=null}catch(i){}try{delete e[n]}catch(i){}})}function Iy(t,e=0){return setTimeout(t,e)}function Ly(){return Date.now()}function jpe(t){const e=Ar();let n;return e.getComputedStyle&&(n=e.getComputedStyle(t,null)),!n&&t.currentStyle&&(n=t.currentStyle),n||(n=t.style),n}function qpe(t,e="x"){const n=Ar();let i,r,s;const a=jpe(t);return n.WebKitCSSMatrix?(r=a.transform||a.webkitTransform,r.split(",").length>6&&(r=r.split(", ").map(o=>o.replace(",",".")).join(", ")),s=new n.WebKitCSSMatrix(r==="none"?"":r)):(s=a.MozTransform||a.OTransform||a.MsTransform||a.msTransform||a.transform||a.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),i=s.toString().split(",")),e==="x"&&(n.WebKitCSSMatrix?r=s.m41:i.length===16?r=parseFloat(i[12]):r=parseFloat(i[4])),e==="y"&&(n.WebKitCSSMatrix?r=s.m42:i.length===16?r=parseFloat(i[13]):r=parseFloat(i[5])),r||0}function hv(t){return typeof t=="object"&&t!==null&&t.constructor&&Object.prototype.toString.call(t).slice(8,-1)==="Object"}function Xpe(t){return typeof window<"u"&&typeof window.HTMLElement<"u"?t instanceof HTMLElement:t&&(t.nodeType===1||t.nodeType===11)}function Ma(...t){const e=Object(t[0]),n=["__proto__","constructor","prototype"];for(let i=1;i<t.length;i+=1){const r=t[i];if(r!=null&&!Xpe(r)){const s=Object.keys(Object(r)).filter(a=>n.indexOf(a)<0);for(let a=0,o=s.length;a<o;a+=1){const l=s[a],u=Object.getOwnPropertyDescriptor(r,l);u!==void 0&&u.enumerable&&(hv(e[l])&&hv(r[l])?r[l].__swiper__?e[l]=r[l]:Ma(e[l],r[l]):!hv(e[l])&&hv(r[l])?(e[l]={},r[l].__swiper__?e[l]=r[l]:Ma(e[l],r[l])):e[l]=r[l])}}}return e}function Px(t,e,n){t.style.setProperty(e,n)}function AG({swiper:t,targetPosition:e,side:n}){const i=Ar(),r=-t.translate;let s=null,a;const o=t.params.speed;t.wrapperEl.style.scrollSnapType="none",i.cancelAnimationFrame(t.cssModeFrameID);const l=e>r?"next":"prev",u=(f,h)=>l==="next"&&f>=h||l==="prev"&&f<=h,c=()=>{a=new Date().getTime(),s===null&&(s=a);const f=Math.max(Math.min((a-s)/o,1),0),h=.5-Math.cos(f*Math.PI)/2;let p=r+h*(e-r);if(u(p,e)&&(p=e),t.wrapperEl.scrollTo({[n]:p}),u(p,e)){t.wrapperEl.style.overflow="hidden",t.wrapperEl.style.scrollSnapType="",setTimeout(()=>{t.wrapperEl.style.overflow="",t.wrapperEl.scrollTo({[n]:p})}),i.cancelAnimationFrame(t.cssModeFrameID);return}t.cssModeFrameID=i.requestAnimationFrame(c)};c()}let aM;function Ype(){const t=Ar(),e=Tr();return{smoothScroll:e.documentElement&&"scrollBehavior"in e.documentElement.style,touch:!!("ontouchstart"in t||t.DocumentTouch&&e instanceof t.DocumentTouch),passiveListener:function(){let i=!1;try{const r=Object.defineProperty({},"passive",{get(){i=!0}});t.addEventListener("testPassiveListener",null,r)}catch(r){}return i}(),gestures:function(){return"ongesturestart"in t}()}}function MG(){return aM||(aM=Ype()),aM}let oM;function Kpe({userAgent:t}={}){const e=MG(),n=Ar(),i=n.navigator.platform,r=t||n.navigator.userAgent,s={ios:!1,android:!1},a=n.screen.width,o=n.screen.height,l=r.match(/(Android);?[\s\/]+([\d.]+)?/);let u=r.match(/(iPad).*OS\s([\d_]+)/);const c=r.match(/(iPod)(.*OS\s([\d_]+))?/),f=!u&&r.match(/(iPhone\sOS|iOS)\s([\d_]+)/),h=i==="Win32";let p=i==="MacIntel";const m=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!u&&p&&e.touch&&m.indexOf(`${a}x${o}`)>=0&&(u=r.match(/(Version)\/([\d.]+)/),u||(u=[0,1,"13_0_0"]),p=!1),l&&!h&&(s.os="android",s.android=!0),(u||f||c)&&(s.os="ios",s.ios=!0),s}function Zpe(t={}){return oM||(oM=Kpe(t)),oM}let lM;function Qpe(){const t=Ar();function e(){const n=t.navigator.userAgent.toLowerCase();return n.indexOf("safari")>=0&&n.indexOf("chrome")<0&&n.indexOf("android")<0}return{isSafari:e(),isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t.navigator.userAgent)}}function Jpe(){return lM||(lM=Qpe()),lM}function e0e({swiper:t,on:e,emit:n}){const i=Ar();let r=null;const s=()=>{!t||t.destroyed||!t.initialized||(n("beforeResize"),n("resize"))},a=()=>{!t||t.destroyed||!t.initialized||(r=new ResizeObserver(u=>{const{width:c,height:f}=t;let h=c,p=f;u.forEach(({contentBoxSize:m,contentRect:y,target:v})=>{v&&v!==t.el||(h=y?y.width:(m[0]||m).inlineSize,p=y?y.height:(m[0]||m).blockSize)}),(h!==c||p!==f)&&s()}),r.observe(t.el))},o=()=>{r&&r.unobserve&&t.el&&(r.unobserve(t.el),r=null)},l=()=>{!t||t.destroyed||!t.initialized||n("orientationchange")};e("init",()=>{if(t.params.resizeObserver&&typeof i.ResizeObserver<"u"){a();return}i.addEventListener("resize",s),i.addEventListener("orientationchange",l)}),e("destroy",()=>{o(),i.removeEventListener("resize",s),i.removeEventListener("orientationchange",l)})}function t0e({swiper:t,extendParams:e,on:n,emit:i}){const r=[],s=Ar(),a=(u,c={})=>{const f=s.MutationObserver||s.WebkitMutationObserver,h=new f(p=>{if(p.length===1){i("observerUpdate",p[0]);return}const m=function(){i("observerUpdate",p[0])};s.requestAnimationFrame?s.requestAnimationFrame(m):s.setTimeout(m,0)});h.observe(u,{attributes:typeof c.attributes>"u"?!0:c.attributes,childList:typeof c.childList>"u"?!0:c.childList,characterData:typeof c.characterData>"u"?!0:c.characterData}),r.push(h)},o=()=>
13{if(!!t.params.observer){if(t.params.observeParents){const u=t.$el.parents();for(let c=0;c<u.length;c+=1)a(u[c])}a(t.$el[0],{childList:t.params.observeSlideChildren}),a(t.$wrapperEl[0],{attributes:!1})}},l=()=>{r.forEach(u=>{u.disconnect()}),r.splice(0,r.length)};e({observer:!1,observeParents:!1,observeSlideChildren:!1}),n("init",o),n("destroy",l)}const n0e={on(t,e,n){const i=this;if(typeof e!="function")return i;const r=n?"unshift":"push";return t.split(" ").forEach(s=>{i.eventsListeners[s]||(i.eventsListeners[s]=[]),i.eventsListeners[s][r](e)}),i},once(t,e,n){const i=this;if(typeof e!="function")return i;function r(...s){i.off(t,r),r.__emitterProxy&&delete r.__emitterProxy,e.apply(i,s)}return r.__emitterProxy=e,i.on(t,r,n)},onAny(t,e){const n=this;if(typeof t!="function")return n;const i=e?"unshift":"push";return n.eventsAnyListeners.indexOf(t)<0&&n.eventsAnyListeners[i](t),n},offAny(t){const e=this;if(!e.eventsAnyListeners)return e;const n=e.eventsAnyListeners.indexOf(t);return n>=0&&e.eventsAnyListeners.splice(n,1),e},off(t,e){const n=this;return n.eventsListeners&&t.split(" ").forEach(i=>{typeof e>"u"?n.eventsListeners[i]=[]:n.eventsListeners[i]&&n.eventsListeners[i].forEac
13h((r,s)=>{(r===e||r.__emitterProxy&&r.__emitterProxy===e)&&n.eventsListeners[i].splice(s,1)})}),n},emit(...t){const e=this;if(!e.eventsListeners)return e;let n,i,r;return typeof t[0]=="string"||Array.isArray(t[0])?(n=t[0],i=t.slice(1,t.length),r=e):(n=t[0].events,i=t[0].data,r=t[0].context||e),i.unshift(r),(Array.isArray(n)?n:n.split(" ")).forEach(a=>{e.eventsAnyListeners&&e.eventsAnyListeners.length&&e.eventsAnyListeners.forEach(o=>{o.apply(r,[a,...i])}),e.eventsListeners&&e.eventsListeners[a]&&e.eventsListeners[a].forEach(o=>{o.apply(r,i)})}),e}};function i0e(){const t=this;let e,n;const i=t.$el;typeof t.params.width<"u"&&t.params.width!==null?e=t.params.width:e=i[0].clientWidth,typeof t.params.height<"u"&&t.params.height!==null?n=t.params.height:n=i[0].clientHeight,!(e===0&&t.isHorizontal()||n===0&&t.isVertical())&&(e=e-parseInt(i.css("padding-left")||0,10)-parseInt(i.css("padding-right")||0,10),n=n-parseInt(i.css("padding-top")||0,10)-parseInt(i.css("padding-bottom")||0,10),Number.isNaN(e)&&(e=0),Number.isNaN(n)&&(n=0),Object.assign(t,{width:e,height:n,size:t.isHorizontal()?e:n}))}function r0e(){const t=this;function e(k){return t.isHorizontal()?k:{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"}[k]}function n(k,F){return parseFloat(k.getPropertyValue(e(F))||0)}const i=t.params,{$wrapperEl:r,size:s,rtlTranslate:a,wrongRTL:o}=t,l=t.virtual&&i.virtual.enabled,u=l?t.virtual.slides.length:t.slides.length,c=r.children(`.${t.params.slideClass}`),f=l?t.virtual.slides.length:c.length;let h=[];const p=[],m=[];let y=i.slidesOffsetBefore;typeof y=="function"&&(y=i.slidesOffsetBefore.call(t));let v=i.slidesOffsetAfter;typeof v=="function"&&(v=i.slidesOffsetAfter.call(t));const _=t.snapGrid.length,b=t.slidesGrid.length;let x=i.spaceBetween,T=-y,E=0,C=0;if(typeof s>"u")return;typeof x=="string"&&x.indexOf("%")>=0&&(x=parseFloat(x.replace("%",""))/100*s),t.virtualSize=-x,a?c.css({marginLeft:"",marginBottom:"",marginTop:""}):c.css({marginRight:"",marginBottom:"",marginTop:""}),i.centeredSlides&&i.cssMode&&(Px(t.wrapperEl,"--swiper-centered-offset-before",""),Px(t.wrapperEl,"--swiper-centered-offset-after",""));const D=i.grid&&i.grid.rows>1&&t.grid;D&&t.grid.initSlides(f);let R;const A=i.slidesPerView==="auto"&&i.breakpoints&&Object.keys(i.breakpoints).filter(k=>typeof i.breakpoints[k].slidesPerView<"u").length>0;for(let k=0;k<f;k+=1){R=0;const F=c.eq(k);if(D&&t.grid.updateSlide(k,F,f,e),F.css("display")!=="none"){if(i.slidesPerView==="auto"){A&&(c[k].style[e("width")]="");const N=getComputedStyle(F[0]),U=F[0].style.transform,$=F[0].style.webkitTransform;if(U&&(F[0].style.transform="none"),$&&(F[0].style.webkitTransform="none"),i.roundLengths)R=t.isHorizontal()?F.outerWidth(!0):F.outerHeight(!0);else{const G=n(N,"width"),Y=n(N,"padding-left"),Q=n(N,"padding-right"),re=n(N,"margin-left"),he=n(N,"margin-right"),X=N.getPropertyValue("box-sizing");if(X&&X==="border-box")R=G+re+he;else{const{clientWidth:ae,offsetWidth:de}=F[0];R=G+Y+Q+re+he+(de-ae)}}U&&(F[0].style.transform=U),$&&(F[0].style.webkitTransform=$),i.roundLengths&&(R=Math.floor(R))}else R=(s-(i.slidesPerView-1)*x)/i.slidesPerView,i.roundLengths&&(R=Math.floor(R)),c[k]&&(c[k].style[e("width")]=`${R}px`);c[k]&&(c[k].swiperSlideSize=R),m.push(R),i.centeredSlides?(T=T+R/2+E/2+x,E===0&&k!==0&&(T=T-s/2-x),k===0&&(T=T-s/2-x),Math.abs(T)<1/1e3&&(T=0),i.roundLengths&&(T=Math.floor(T)),C%i.slidesPerGroup===0&&h.push(T),p.push(T)):(i.roundLengths&&(T=Math.floor(T)),(C-Math.min(t.params.slidesPerGroupSkip,C))%t.params.slidesPerGroup===0&&h.push(T),p.push(T),T=T+R+x),t.virtualSize+=R+x,E=R,C+=1}}if(t.virtualSize=Math.max(t.virtualSize,s)+v,a&&o&&(i.effect==="slide"||i.effect==="coverflow")&&r.css({width:`${t.virtualSize+i.spaceBetween}px`}),i.setWrapperSize&&r.css({[e("width")]:`${t.virtualSize+i.spaceBetween}px`}),D&&t.grid.updateWrapperSize(R,h,e),!i.centeredSlides){const k=[];for(let F=0;F<h.length;F+=1){let N=h[F];i.roundLengths&&(N=Math.floor(N)),h[F]<=t.virtualSize-s&&k.push(N)}h=k,Math.floor(t.virtualSize-s)-Math.floor(h[h.length-1])>1&&h.push(t.virtualSize-s)}
13if(h.length===0&&(h=[0]),i.spaceBetween!==0){const k=t.isHorizontal()&&a?"marginLeft":e("marginRight");c.filter((F,N)=>i.cssMode?N!==c.length-1:!0).css({[k]:`${x}px`})}if(i.centeredSlides&&i.centeredSlidesBounds){let k=0;m.forEach(N=>{k+=N+(i.spaceBetween?i.spaceBetween:0)}),k-=i.spaceBetween;const F=k-s;h=h.map(N=>N<0?-y:N>F?F+v:N)}if(i.centerInsufficientSlides){let k=0;if(m.forEach(F=>{k+=F+(i.spaceBetween?i.spaceBetween:0)}),k-=i.spaceBetween,k<s){const F=(s-k)/2;h.forEach((N,U)=>{h[U]=N-F}),p.forEach((N,U)=>{p[U]=N+F})}}if(Object.assign(t,{slides:c,snapGrid:h,slidesGrid:p,slidesSizesGrid:m}),i.centeredSlides&&i.cssMode&&!i.centeredSlidesBounds){Px(t.wrapperEl,"--swiper-centered-offset-before",`${-h[0]}px`),Px(t.wrapperEl,"--swiper-centered-offset-after",`${t.size/2-m[m.length-1]/2}px`);const k=-t.snapGrid[0],F=-t.slidesGrid[0];t.snapGrid=t.snapGrid.map(N=>N+k),t.slidesGrid=t.slidesGrid.map(N=>N+F)}f!==u&&t.emit("slidesLengthChange"),h.length!==_&&(t.params.watchOverflow&&t.checkOverflow(),t.emit("snapGridLengthChange")),p.length!==b&&t.emit("slidesGridLengthChange"),i.watchSlidesProgress&&t.updateSlidesOffset()}function s0e(t){const e=this,n=[],i=e.virtual&&e.params.virtual.enabled;let r=0,s;typeof t=="number"?e.setTransition(t):t===!0&&e.setTransition(e.params.speed);const a=o=>i?e.slides.filter(l=>parseInt(l.getAttribute("data-swiper-slide-index"),10)===o)[0]:e.slides.eq(o)[0];if(e.params.slidesPerView!=="auto"&&e.params.slidesPerView>1)if(e.params.centeredSlides)e.visibleSlides.each(o=>{n.push(o)});else for(s=0;s<Math.ceil(e.params.slidesPerView);s+=1){const o=e.activeIndex+s;if(o>e.slides.length&&!i)break;n.push(a(o))}else n.push(a(e.activeIndex));for(s=0;s<n.length;s+=1)if(typeof n[s]<"u"){const o=n[s].offsetHeight;r=o>r?o:r}(r||r===0)&&e.$wrapperEl.css("height",`${r}px`)}function a0e(){const t=this,e=t.slides;for(let n=0;n<e.length;n+=1)e[n].swiperSlideOffset=t.isHorizontal()?e[n].offsetLeft:e[n].offsetTop}function o0e(t=this&&this.translate||0){const e=this,n=e.params,{slides:i,rtlTranslate:r,snapGrid:s}=e;if(i.length===0)return;typeof i[0].swiperSlideOffset>"u"&&e.updateSlidesOffset();let a=-t;r&&(a=t),i.removeClass(n.slideVisibleClass),e.visibleSlidesIndexes=[],e.visibleSlides=[];for(let o=0;o<i.length;o+=1){const l=i[o];let u=l.swiperSlideOffset;n.cssMode&&n.centeredSlides&&(u-=i[0].swiperSlideOffset);const c=(a+(n.centeredSlides?e.minTranslate():0)-u)/(l.swiperSlideSize+n.spaceBetween),f=(a-s[0]+(n.centeredSlides?e.minTranslate():0)-u)/(l.swiperSlideSize+n.spaceBetween),h=-(a-u),p=h+e.slidesSizesGrid[o];(h>=0&&h<e.size-1||p>1&&p<=e.size||h<=0&&p>=e.size)&&(e.visibleSlides.push(l),e.visibleSlidesIndexes.push(o),i.eq(o).addClass(n.slideVisibleClass)),l.progress=r?-c:c,l.originalProgress=r?-f:f}e.visibleSlides=mt(e.visibleSlides)}function l0e(t){const e=this;if(typeof t>"u"){const u=e.rtlTranslate?-1:1;t=e&&e.translate&&e.translate*u||0}const n=e.params,i=e.maxTranslate()-e.minTranslate();let{progress:r,isBeginning:s,isEnd:a}=e;const o=s,l=a;i===0?(r=0,s=!0,a=!0):(r=(t-e.minTranslate())/i,s=r<=0,a=r>=1),Object.assign(e,{progress:r,isBeginning:s,isEnd:a}),(n.watchSlidesProgress||n.centeredSlides&&n.autoHeight)&&e.updateSlidesProgress(t),s&&!o&&e.emit("reachBeginning toEdge"),a&&!l&&e.emit("reachEnd toEdge"),(o&&!s||l&&!a)&&e.emit("fromEdge"),e.emit("progress",r)}function u0e(){const t=this,{slides:e,params:n,$wrapperEl:i,activeIndex:r,realIndex:s}=t,a=t.virtual&&n.virtual.enabled;e.removeClass(`${n.slideActiveClass} ${n.slideNextClass} ${n.slidePrevClass} ${n.slideDuplicateActiveClass} ${n.slideDuplicateNextClass} ${n.slideDuplicatePrevClass}`);let o;a?o=t.$wrapperEl.find(`.${n.slideClass}[data-swiper-slide-index="${r}"]`):o=e.eq(r),o.addClass(n.slideActiveClass),n.loop&&(o.hasClass(n.slideDuplicateClass)?i.children(`.${n.slideClass}:not(.${n.slideDuplicateClass})[data-swiper-slide-index="${s}"]`).addClass(n.slideDuplicateActiveClass):i.children(`.${n.slideClass}.${n.slideDuplicateClass}[data-swiper-slide-index="${s}"]`).addClass(n.slideDuplicateActiveClass));let l=o.nextAll(`.${n.slideClass}`).eq(0).addClass(n.slideNextClass);n.loop&&l.length===0&&(l=e.eq(0),l.addClass(n.slideNextClass));let u=o.prevAll(`.${n.slideClass}`).eq(0).addClass(n.slidePrevClass);n.loop&&u.length===0&&(u=e.eq(-1),u.addClass(n.slidePrevClass)),n.loop&&(l.hasClass(n.slideDuplicateClass)?i.children(`.${n.slideClass}:not(.${n.slideDuplicateClass})[data-swiper-slide-index="${l.attr("data-swiper-slide-index")}"]`).addClass(n.slideDuplicateNextClass):i.children(`.${n.slideClass}.${n.slideDuplicateClass}[data-swiper-slide-index="${l.attr("data-swiper-slide-index")}"]`).addClass(n.slideDuplicateNextClass),u.hasClass(n.slideDuplicateClass)?i.children(`.${n.slideClass}:not(.${n.slideDuplicateClass})[data-swiper-slide-index="${u.attr("data-swiper-slide-index")}"]`).addClass(n.slideDuplicatePrevClass):i.children(`.${n.slideClass}.${n.slideDuplicateClass}[data-swiper-slide-index="${u.attr("data-swiper-slide-index")}"]`).addClass(n.slideDuplicatePrevClass)),t.emitSlidesClasses()}function c0e(t){const e=this,n=e.rtlTranslate?e.translate:-e.translate,{slidesGrid:i,snapGrid:r,params:s,activeIndex:a,realIndex:o,snapIndex:l}=e;let u=t,c;if(typeof u>"u"){for(let h=0;h<i.length;h+=1)typeof i[h+1]<"u"?n>=i[h]&&n<i[h+1]-(i[h+1]-i[h])/2?u=h:n>=i[h]&&n<i[h+1]&&(u=h+1):n>
13=i[h]&&(u=h);s.normalizeSlideIndex&&(u<0||typeof u>"u")&&(u=0)}if(r.indexOf(n)>=0)c=r.indexOf(n);else{const h=Math.min(s.slidesPerGroupSkip,u);c=h+Math.floor((u-h)/s.slidesPerGroup)}if(c>=r.length&&(c=r.length-1),u===a){c!==l&&(e.snapIndex=c,e.emit("snapIndexChange"));return}const f=parseInt(e.slides.eq(u).attr("data-swiper-slide-index")||u,10);Object.assign(e,{snapIndex:c,realIndex:f,previousIndex:a,activeIndex:u}),e.emit("activeIndexChange"),e.emit("snapIndexChange"),o!==f&&e.emit("realIndexChange"),(e.initialized||e.params.runCallbacksOnInit)&&e.emit("slideChange")}function f0e(t){const e=this,n=e.params,i=mt(t).closest(`.${n.slideClass}`)[0];let r=!1,s;if(i){for(let a=0;a<e.slides.length;a+=1)if(e.slides[a]===i){r=!0,s=a;break}}if(i&&r)e.clickedSlide=i,e.virtual&&e.params.virtual.enabled?e.clickedIndex=parseInt(mt(i).attr("data-swiper-slide-index"),10):e.clickedIndex=s;else{e.clickedSlide=void 0,e.clickedIndex=void 0;return}n.slideToClickedSlide&&e.clickedIndex!==void 0&&e.clickedIndex!==e.activeIndex&&e.slideToClickedSlide()}const d0e={updateSize:i0e,updateSlides:r0e,updateAutoHeight:s0e,updateSlidesOffset:a0e,updateSlidesProgress:o0e,updateProgress:l0e,updateSlidesClasses:u0e,updateActiveIndex:c0e,updateClickedSlide:f0e};function h0e(t=this.isHorizontal()?"x":"y"){const e=this,{params:n,rtlTranslate:i,translate:r,$wrapperEl:s}=e;if(n.virtualTranslate)return i?-r:r;if(n.cssMode)return r;let a=qpe(s[0],t);return i&&(a=-a),a||0}function p0e(t,e){const n=this,{rtlTranslate:i,params:r,$wrapperEl:s,wrapperEl:a,progress:o}=n;let l=0,u=0;const c=0;n.isHorizontal()?l=i?-t:t:u=t,r.roundLengths&&(l=Math.floor(l),u=Math.floor(u)),r.cssMode?a[n.isHorizontal()?"scrollLeft":"scrollTop"]=n.isHorizontal()?-l:-u:r.virtualTranslate||s.transform(`translate3d(${l}px, ${u}px, ${c}px)`),n.previousTranslate=n.translate,n.translate=n.isHorizontal()?l:u;let f;const h=n.maxTranslate()-n.minTranslate();h===0?f=0:f=(t-n.minTranslate())/h,f!==o&&n.updateProgress(t),n.emit("setTranslate",n.translate,e)}function m0e(){return-this.snapGrid[0]}function g0e(){return-this.snapGrid[this.snapGrid.length-1]}function _0e(t=0,e=this.params.speed,n=!0,i=!0,r){const s=this,{params:a,wrapperEl:o}=s;if(s.animating&&a.preventInteractionOnTransition)return!1;const l=s.minTranslate(),u=s.maxTranslate();let c;if(i&&t>l?c=l:i&&t<u?c=u:c=t,s.updateProgress(c),a.cssMode){const f=s.isHorizontal();if(e===0)o[f?"scrollLeft":"scrollTop"]=-c;else{if(!s.support.smoothScroll)return AG({swiper:s,targetPosition:-c,side:f?"left":"top"}),!0;
13o.scrollTo({[f?"left":"top"]:-c,behavior:"smooth"})}return!0}return e===0?(s.setTransition(0),s.setTranslate(c),n&&(s.emit("beforeTransitionStart",e,r),s.emit("transitionEnd"))):(s.setTransition(e),s.setTranslate(c),n&&(s.emit("beforeTransitionStart",e,r),s.emit("transitionStart")),s.animating||(s.animating=!0,s.onTranslateToWrapperTransitionEnd||(s.onTranslateToWrapperTransitionEnd=function(h){!s||s.destroyed||h.target===this&&(s.$wrapperEl[0].removeEventListener("transitionend",s.onTranslateToWrapperTransitionEnd),s.$wrapperEl[0].removeEventListener("webkitTransitionEnd",s.onTranslateToWrapperTransitionEnd),s.onTranslateToWrapperTransitionEnd=null,delete s.onTranslateToWrapperTransitionEnd,n&&s.emit("transitionEnd"))}),s.$wrapperEl[0].addEventListener("transitionend",s.onTranslateToWrapperTransitionEnd),s.$wrapperEl[0].addEventListener("webkitTransitionEnd",s.onTranslateToWrapperTransitionEnd))),!0}const v0e={getTranslate:h0e,setTranslate:p0e,minTranslate:m0e,maxTranslate:g0e,translateTo:_0e};function y0e(t,e){const n=this;n.params.cssMode||n.$wrapperEl.transition(t),n.emit("setTransition",t,e)}function DG({swiper:t,runCallbacks:e,direction:n,step:i}){const{activeIndex:r,previousIndex:s}=t;let a=n;if(a||(r>s?a="next":r<s?a="prev":a="reset"),t.emit(`transition${i}`),e&&r!==s){if(a==="reset"){t.emit(`slideResetTransition${i}`);return}t.emit(`slideChangeTransition${i}`),a==="next"?t.emit(`slideNextTransition${i}`):t.emit(`slidePrevTransition${i}`)}}function b0e(t=!0,e){const n=this,{params:i}=n;i.cssMode||(i.autoHeight&&n.updateAutoHeight(),DG({swiper:n,runCallbacks:t,direction:e,step:"Start"}))}function x0e(t=!0,e){const n=this,{params:i}=n;n.animating=!1,!i.cssMode&&(n.setTransition(0),DG({swiper:n,runCallbacks:t,direction:e,step:"End"}))}const S0e={setTransition:y0e,transitionStart:b0e,transitionEnd:x0e};function T0e(t=0,e=this.params.speed,n=!0,i,r){if(typeof t!="number"&&typeof t!="string")throw new Error(`The 'index' argument cannot have type other than 'number' or 'string'. [${typeof t}] given.`);if(typeof t=="string"){const x=parseInt(t,10);if(!isFinite(x))throw new Error(`The passed-in 'index' (string) couldn't be converted to 'number'. [${t}] given.`);t=x}const s=this;let a=t;a<0&&(a=0);const{params:o,snapGrid:l,slidesGrid:u,previousIndex:c,activeIndex:f,rtlTranslate:h,wrapperEl:p,enabled:m}=s;if(s.animating&&o.preventInteractionOnTransition||!m&&!i&&!r)return!1;const y=Math.min(s.params.slidesPerGroupSkip,a);let v=y+Math.floor((a-y)/s.params.slidesPerGroup);v>=l.length&&(v=l.length-1),(f||o.initialSlide||0)===(c||0)&&n&&s.emit("beforeSlideChangeStart");const _=-l[v];if(s.updateProgress(_),o.normalizeSlideIndex)for(let x=0;x<u.length;x+=1){const T=-Math.floor(_*100),E=Math.floor(u[x]*100),C=Math.floor(u[x+1]*100);typeof u[x+1]<"u"?T>=E&&T<C-(C-E)/2?a=x:T>=E&&T<C&&(a=x+1):T>=E&&(a=x)}if(s.initialized&&a!==f&&(!s.allowSlideNext&&_<s.translate&&_<s.minTranslate()||!s.allowSlidePrev&&_>s.translate&&_>s.maxTranslate()&&(f||0)!==a))return!1;let b;if(a>f?b="next":a<f?b="prev":b="reset",h&&-_===s.translate||!h&&_===s.translate)return s.updateActiveIndex(a),o.autoHeight&&s.updateAutoHeight(),s.updateSlidesClasses(),o.effect!=="slide"&&s.setTranslate(_),b!=="reset"&&(s.transitionStart(n,b),s.transitionEnd(n,b)),!1;if(o.cssMode){const x=s.isHorizontal(),T=h?_:-_;if(e===0){const E=s.virtual&&s.params.virtual.enabled;E&&(s.wrapperEl.style.scrollSnapType="none",s._immediateVirtual=!0),p[x?"scrollLeft":"scrollTop"]=T,E&&requestAnimationFrame(()=>{s.wrapperEl.style.scrollSnapType="",s._swiperImmediateVirtual=!1})}else{if(!s.support.smoothScroll)return AG({swiper:s,targetPosition:T,side:x?"left":"top"}),!0;p.scrollTo({[x?"left":"top"]:T,behavior:"smooth"})}return!0}return s.setTransition(e),s.setTranslate(_),s.updateActiveIndex(a),s.updateSlidesClasses(),s.emit("beforeTransitionStart",e,i),s.transitionStart(n,b),e===0?s.transitionEnd(n,b):s.animating||(s.animating=!0,s.onSlideToWrapperTransitionEnd||(s.onSlideToWrapperTransitionEnd=function(T){!s||s.destroyed||T.target===this&&(s.$wrapperEl[0].removeEventListener("transitionend",s.onSlideToWrapperTransitionEnd),s.$wrapperEl[0].removeEventListener("webkitTransitionEnd",s.onSlideToWrapperTransitionEnd),s.onSlideToWrapperTransitionEnd=null,delete s.onSlideToWrapperTransitionEnd,s.transitionEnd(n,b))}),s.$wrapperEl[0].addEventListener("transitionend",s.onSlideToWrapperTransitionEnd),s.$wrapperEl[0].addEventListener("webkitTransitionEnd",s.onSlideToWrapperTransitionEnd)),!0}function E0e(t=0,e=this.params.speed,n=!0,i){const r=this;let s=t;return r.params.loop&&(s+=r.loopedSlides),r.slideTo(s,e,n,i)}function w0e(t=this.params.speed,e=!0,n){const i=this,{animating:r,enabled:s,params:a}=i;if(!s)return i;let o=a.slidesPerGroup;a.slidesPerView==="auto"&&a.slidesPerGroup===1&&a.slidesPerGroupAuto&&(o=Math.max(i.slidesPerViewDynamic("current",!0),1));const l=i.activeIndex<a.slidesPerGroupSkip?1:o;if(a.loop){if(r&&a.loopPreventsSlide)return!1;i.loopFix(),i._clientLeft=i.$wrapperEl[0].clientLeft}return a.rewind&&i.isEnd?i.slideTo(0,t,e,n):i.slideTo(i.activeIndex+l,t,e,n)}function C0e(t=this.params.speed,e=!0,n){const i=this,{params:r,animating:s,snapGrid:a,slidesGrid:o,rtlTranslate:l,enabled:u}=i;if(!u)return i;if(r.loop){if(s&&r.loopPreventsSlide)return!1;i.loopFix(),i._clientLeft=i.$wrapperEl[0].clientLeft}const c=l?i.translate:-i.translate;function f(v){return v<0?-Math.floor(Math.abs(v)):Math.floor(v)}const h=f(c),p=a.map(v=>f(v));let m=a[p.indexOf(h)-1];if(typeof m>"u"&&r.cssMode){let v;a.forEach((_,b)=>{h>=_&&(v=b)}),typeof v<"u"&&(m=a[v>0?v-1:v])}let y=0;return typeof m<"u"&&(y=o.indexOf(m),y<0&&(y=i.activeIndex-1),r.slidesPerView==="auto"&&r.slidesPerGroup===1&&r.slidesPerGroupAuto&&(y=y-i.slidesPerViewDynamic("previous",!0)+1,y=Math.max(y,0))),r.rewind&&i.isBeginning?i.slideTo(i.slides.length-1,t,e,n):i.slideTo(y,t,e,n)}function A0e(t=this.params.speed,e=!0,n){const i=this;return i.slideTo(i.activeIndex,t,e,n)}function M0e(t=this.params.speed,e=!0,n,i=.5){const r=this;let s=r.activeIndex;const a=Math.min(r.params.slidesPerGroupSkip,s),o=a+Math.floor((s-a)/r.params.slidesPerGroup),l=r.rtlTranslate?r.translate:-r.translate;if(l>=r.snapGrid[o]){const u=r.snapGrid[o],c=r.snapGrid[o+1];l-u>(c-u)*i&&(s+=r.params.slidesPerGroup)}else{const u=r.snapGrid[o-1],c=r.snapGrid[o];l-u<=(c-u)*i&&(s-=r.params.slidesPerGroup)}return s=Math.max(s,0),s=Math.min(s,r.slidesGrid.length-1),r.slideTo(s,t,e,n)}function D0e(){const t=this,{params:e,$wrapperEl:n}=t,i=e.slidesPerView==="auto"?t.slidesPerViewDynamic():e.slidesPerView;let r=t.clickedIndex,s;if(e.loop){if(t.animating)return;s=parseInt(mt(t.clickedSlide).attr("data-swiper-slide-index"),10),e.centeredSlides?r<t.loopedSlides-i/2||r>t.slides.length-t.loopedSlides+i/2?(t.loopFix(),r=n.children(`.${e.slideClass}[data-swiper-slide-index="${s}"]:not(.${e.slideDuplicateClass})`).eq(0).index(),Iy(()=>{t.slideTo(r)})):t.slideTo(r):r>t.slides.length-i?(t.loopFix(),r=n.children(`.${e.slideClass}[data-swiper-slide-index="${s}"]:not(.${e.slideDuplicateClass})`).eq(0).index(),Iy(()=>{t.slideTo(r)})):t.slideTo(r)}else t.slideTo(r)}const P0e={slideTo:T0e,slideToLoop:E0e,slideNext:w0e,slidePrev:C0e,slideReset:A0e,slideToClosest:M0e,slideToClickedSlide:D0e};function O0e(){const t=this,e=Tr(),{params:n,$wrapperEl:i}=t,r=i.children().length>0?mt(i.children()[0].parentNode):i;r.children(`.${n.slideClass}.${n.slideDuplicateClass}`).remove();let s=r.children(`.${n.slideClass}`);
13if(n.loopFillGroupWithBlank){const l=n.slidesPerGroup-s.length%n.slidesPerGroup;if(l!==n.slidesPerGroup){for(let u=0;u<l;u+=1){const c=mt(e.createElement("div")).addClass(`${n.slideClass} ${n.slideBlankClass}`);r.append(c)}s=r.children(`.${n.slideClass}`)}}n.slidesPerView==="auto"&&!n.loopedSlides&&(n.loopedSlides=s.length),t.loopedSlides=Math.ceil(parseFloat(n.loopedSlides||n.slidesPerView,10)),t.loopedSlides+=n.loopAdditionalSlides,t.loopedSlides>s.length&&(t.loopedSlides=s.length);const a=[],o=[];s.each((l,u)=>{const c=mt(l);u<t.loopedSlides&&o.push(l),u<s.length&&u>=s.length-t.loopedSlides&&a.push(l),c.attr("data-swiper-slide-index",u)});for(let l=0;l<o.length;l+=1)r.append(mt(o[l].cloneNode(!0)).addClass(n.slideDuplicateClass));for(let l=a.length-1;l>=0;l-=1)r.prepend(mt(a[l].cloneNode(!0)).addClass(n.slideDuplicateClass))}function R0e(){const t=this;t.emit("beforeLoopFix");const{activeIndex:e,slides:n,loopedSlides:i,allowSlidePrev:r,allowSlideNext:s,snapGrid:a,rtlTranslate:o}=t;let l;t.allowSlidePrev=!0,t.allowSlideNext=!0;const c=-a[e]-t.getTranslate();e<i?(l=n.length-i*3+e,l+=i,t.slideTo(l,0,!1,!0)&&c!==0&&t.setTranslate((o?-t.translate:t.translate)-c)):e>=n.length-i&&(l=-n.length+e+i,l+=i,t.slideTo(l,0,!1,!0)&&c!==0&&t.setTranslate((o?-t.translate:t.translate)-c)),t.allowSlidePrev=r,t.allowSlideNext=s,t.emit("loopFix")}function k0e(){const t=this,{$wrapperEl:e,params:n,slides:i}=t;e.children(`.${n.slideClass}.${n.slideDuplicateClass},.${n.slideClass}.${n.slideBlankClass}`).remove(),i.removeAttr("data-swiper-slide-index")}const I0e={loopCreate:O0e,loopFix:R0e,loopDestroy:k0e};function L0e(t){const e=this;if(e.support.touch||!e.params.simulateTouch||e.params.watchOverflow&&e.isLocked||e.params.cssMode)return;const n=e.params.touchEventsTarget==="container"?e.el:e.wrapperEl;n.style.cursor="move",n.style.cursor=t?"-webkit-grabbing":"-webkit-grab",n.style.cursor=t?"-moz-grabbin":"-moz-grab",n.style.cursor=t?"grabbing":"grab"}function F0e(){const t=this;t.support.touch||t.params.watchOverflow&&t.isLocked||t.params.cssMode||(t[t.params.touchEventsTarget==="container"?"el":"wrapperEl"].style.cursor="")}const N0e={setGrabCursor:L0e,unsetGrabCursor:F0e};function B0e(t,e=this){function n(i){return!i||i===Tr()||i===Ar()?null:(i.assignedSlot&&(i=i.assignedSlot),i.closest(t)||n(i.getRootNode().host))}return n(e)}function U0e(t){const e=this,n=Tr(),i=Ar(),r=e.touchEventsData,{params:s,touches:a,enabled:o}=e;if(!o||e.animating&&s.preventInteractionOnTransition)return;!e.animating&&s.cssMode&&s.loop&&e.loopFix();let l=t;l.originalEvent&&(l=l.originalEvent);let u=mt(l.target);if(s.touchEventsTarget==="wrapper"&&!u.closest(e.wrapperEl).length||(r.isTouchEvent=l.type==="touchstart",!r.isTouchEvent&&"which"in l&&l.which===3)||!r.isTouchEvent&&"button"in l&&l.button>0||r.isTouched&&r.isMoved)return;!!s.noSwipingClass&&s.noSwipingClass!==""&&l.target&&l.target.shadowRoot&&t.path&&t.path[0]&&(u=mt(t.path[0]));const f=s.noSwipingSelector?s.noSwipingSelector:`.${s.noSwipingClass}`,h=!!(l.target&&l.target.shadowRoot);if(s.noSwiping&&(h?B0e(f,l.target):u.closest(f)[0])){e.allowClick=!0;return}if(s.swipeHandler&&!u.closest(s.swipeHandler)[0])return;a.currentX=l.type==="touchstart"?l.targetTouches[0].pageX:l.pageX,a.currentY=l.type==="touchstart"?l.targetTouches[0].pageY:l.pageY;const p=a.currentX,m=a.currentY,y=s.edgeSwipeDetection||s.iOSEdgeSwipeDetection,v=s.edgeSwipeThreshold||s.iOSEdgeSwipeThreshold;if(y&&(p<=v||p>=i.innerWidth-v))if(y==="prevent")t.preventDefault();else return;if(Object.assign(r,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),a.startX=p,a.startY=m,r.touchStartTime=Ly(),e.allowClick=!0,e.updateSize(),e.swipeDirection=void 0,s.threshold>0&&(r.allowThresholdMove=!1),l.type!=="touchstart"){let _=!0;u.is(r.focusableElements)&&(_=!1),n.activeElement&&mt(n.activeElement).is(r.focusableElements)&&n.activeElement!==u[0]&&n.activeElement.blur();const b=_&&e.allowTouchMove&&s.touchStartPreventDefault;(s.touchStartForcePreventDefault||b)&&!u[0].isContentEditable&&l.preventDefault()}e.emit("touchStart",l)}function $0e(t){const e=Tr(),n=this,i=n.touchEventsData,{params:r,touches:s,rtlTranslate:a,enabled:o}=n;if(!o)return;let l=t;if(l.originalEvent&&(l=l.originalEvent),!i.isTouched){i.startMoving&&i.isScrolling&&n.emit("touchMoveOpposite",l);return}if(i.isTouchEvent&&l.type!=="touchmove")return;const u=l.type==="touchmove"&&l.targetTouches&&(l.targetTouches[0]||l.changedTouches[0]),c=l.type==="touchmove"?u.pageX:l.pageX,f=l.type==="touchmove"?u.pageY:l.pageY;if(l.preventedByNestedSwiper){s.startX=c,s.startY=f;return}if(!n.allowTouchMove){n.allowClick=!1,i.isTouched&&(Object.assign(s,{startX:c,startY:f,currentX:c,currentY:f}),i.touchStartTime=Ly());return}if(i.isTouchEvent&&r.touchReleaseOnEdges&&!r.loop){if(n.isVertical()){if(f<s.startY&&n.translate<=n.maxTranslate()||f>s.startY&&n.translate>=n.minTranslate()){i.isTouched=!1,i.isMoved=!1;return}}else if(c<s.startX&&n.translate<=n.maxTranslate()||c>s.startX&&n.translate>=n.minTranslate())return}if(i.isTouchEvent&&e.activeElement&&l.target===e.activeElement&&mt(l.target).is(i.focusableElements)){i.isMoved=!0,n.allowClick=!1;return}if(i.allowTouchCallbacks&&n.emit("touchMove",l),l.targetTouches&&l.targetTouches.length>1)return;s.currentX=c,s.currentY=f;const h=s.currentX-s.startX,p=s.currentY-s.startY;if(n.params.threshold&&Math.sqrt(h**2+p**2)<n.params.threshold)return;if(typeof i.isScrolling>"u"){let _;n.isHorizontal()&&s.currentY===s.startY||n.isVertical()&&s.currentX===s.startX?i.isScrolling=!1:h*h+p*p>=25&&(_=Math.atan2(Math.abs(p),Math.abs(h))*180/Math.PI,i.isScrolling=n.isHorizontal()?_>r.touchAngle:90-_>r.touchAngle)}if(i.isScrolling&&n.emit("touchMoveOpposite",l),typeof i.startMoving>"u"&&(s.currentX!==s.startX||s.currentY!==s.startY)&&(i.startMoving=!0),i.isScrolling){i.isTouched=!1;return}if(!i.startMoving)return;n.allowClick=!1,!r.cssMode&&l.cancelable&&l.preventDefault(),r.touchMoveStopPropagation&&!r.nested&&l.stopPropagation(),i.isMoved||(r.loop&&!r.cssMode&&n.loopFix(),i.startTranslate=n.getTranslate(),n.setTransition(0),n.animating&&n.$wrapperEl.trigger("webkitTransitionEnd transitionend"),i.allowMomentumBounce
13=!1,r.grabCursor&&(n.allowSlideNext===!0||n.allowSlidePrev===!0)&&n.setGrabCursor(!0),n.emit("sliderFirstMove",l)),n.emit("sliderMove",l),i.isMoved=!0;let m=n.isHorizontal()?h:p;s.diff=m,m*=r.touchRatio,a&&(m=-m),n.swipeDirection=m>0?"prev":"next",i.currentTranslate=m+i.startTranslate;let y=!0,v=r.resistanceRatio;if(r.touchReleaseOnEdges&&(v=0),m>0&&i.currentTranslate>n.minTranslate()?(y=!1,r.resistance&&(i.currentTranslate=n.minTranslate()-1+(-n.minTranslate()+i.startTranslate+m)**v)):m<0&&i.currentTranslate<n.maxTranslate()&&(y=!1,r.resistance&&(i.currentTranslate=n.maxTranslate()+1-(n.maxTranslate()-i.startTranslate-m)**v)),y&&(l.preventedByNestedSwiper=!0),!n.allowSlideNext&&n.swipeDirection==="next"&&i.currentTranslate<i.startTranslate&&(i.currentTranslate=i.startTranslate),!n.allowSlidePrev&&n.swipeDirection==="prev"&&i.currentTranslate>i.startTranslate&&(i.currentTranslate=i.startTranslate),!n.allowSlidePrev&&!n.allowSlideNext&&(i.currentTranslate=i.startTranslate),r.threshold>0)if(Math.abs(m)>r.threshold||i.allowThresholdMove){if(!i.allowThresholdMove){i.allowThresholdMove=!0,s.startX=s.currentX,s.startY=s.currentY,i.currentTranslate=i.startTranslate,s.diff=n.isHorizontal()?s.currentX-s.startX:s.currentY-s.startY;return}}else{i.currentTranslate=i.startTranslate;return}!r.followFinger||r.cssMode||((r.freeMode&&r.freeMode.enabled&&n.freeMode||r.watchSlidesProgress)&&(n.updateActiveIndex(),n.updateSlidesClasses()),n.params.freeMode&&r.freeMode.enabled&&n.freeMode&&n.freeMode.onTouchMove(),n.updateProgress(i.currentTranslate),n.setTranslate(i.currentTranslate))}function z0e(t){const e=this,n=e.touchEventsData,{params:i,touches:r,rtlTranslate:s,slidesGrid:a,enabled:o}=e;if(!o)return;let l=t;if(l.originalEvent&&(l=l.originalEvent),n.allowTouchCallbacks&&e.emit("touchEnd",l),n.allowTouchCallbacks=!1,!n.isTouched){n.isMoved&&i.grabCursor&&e.setGrabCursor(!1),n.isMoved=!1,n.startMoving=!1;return}i.grabCursor&&n.isMoved&&n.isTouched&&(e.allowSlideNext===!0||e.allowSlidePrev===!0)&&e.setGrabCursor(!1);const u=Ly(),c=u-n.touchStartTime;if(e.allowClick){const v=l.path||l.composedPath&&l.composedPath();e.updateClickedSlide(v&&v[0]||l.target),e.emit("tap click",l),c<300&&u-n.lastClickTime<300&&e.emit("doubleTap doubleClick",l)}if(n.lastClickTime=Ly(),Iy(()=>{e.destroyed||(e.allowClick=!0)}),!n.isTouched||!n.isMoved||!e.swipeDirection||r.diff===0||n.currentTranslate===n.startTranslate){n.isTouched=!1,n.isMoved=!1,n.startMoving=!1;return}n.isTouched=!1,n.isMoved=!1,n.startMoving=!1;let f;if(i.followFinger?f=s?e.translate:-e.translate:f=-n.currentTranslate,i.cssMode)return;if(e.params.freeMode&&i.freeMode.enabled){e.freeMode.onTouchEnd({currentPos:f});return}let h=0,p=e.slidesSizesGrid[0];for(let v=0;v<a.length;v+=v<i.slidesPerGroupSkip?1:i.slidesPerGroup){const _=v<i.slidesPerGroupSkip-1?1:i.slidesPerGroup;typeof a[v+_]<"u"?f>=a[v]&&f<a[v+_]&&(h=v,p=a[v+_]-a[v]):f>=a[v]&&(h=v,p=a[a.length-1]-a[a.length-2])}const m=(f-a[h])/p,y=h<i.slidesPerGroupSkip-1?1:i.slidesPerGroup;if(c>i.longSwipesMs){if(!i.longSwipes){e.slideTo(e.activeIndex);return}e.swipeDirection==="next"&&(m>=i.longSwipesRatio?e.slideTo(h+y):e.slideTo(h)),e.swipeDirection==="prev"&&(m>1-i.longSwipesRatio?e.slideTo(h+y):e.slideTo(h))}else{if(!i.shortSwipes){e.slideTo(e.activeIndex);return}e.navigation&&(l.target===e.navigation.nextEl||l.target===e.navigation.prevEl)?l.target===e.navigation.nextEl?e.slideTo(h+y):e.slideTo(h):(e.swipeDirection==="next"&&e.slideTo(h+y),e.swipeDirection==="prev"&&e.slideTo(h))}}function M5(){const t=this,{params:e,el:n}=t;if(n&&n.offsetWidth===0)return;e.breakpoints&&t.setBreakpoint();const{allowSlideNext:i,allowSlidePrev:r,snapGrid:s}=t;t.allowSlideNext=!0,t.allowSlidePrev=!0,t.updateSize(),t.updateSlides(),t.updateSlidesClasses(),(e.slidesPerView==="auto"||e.slidesPerView>1)&&t.isEnd&&!t.isBeginning&&!t.params.centeredSlides?t.slideTo(t.slides.length-1,0,!1,!0):t.slideTo(t.activeIndex,0,!1,!0),t.autoplay&&t.autoplay.running&&t.autoplay.paused&&t.autoplay.run(),t.allowSlidePrev=r,t.allowSlideNext=i,t.params.watchOverflow&&s!==t.snapGrid&&t.checkOverflow()}function H0e(t){const e=this;!e.enabled||e.allowClick||(e.params.preventClicks&&t.preventDefault(),e.params.preventClicksPropagation&&e.animating&&(t.stopPropagation(),t.stopImmediatePropagation()))}function V0e(){const t=this,{wrapperEl:e,rtlTranslate:n,enabled:i}=t;if(!i)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 r;const s=t.maxTranslate()-t.minTranslate();s===0?r=0:r=(t.translate-t.minTranslate())/s,r!==t.progress&&t.updateProgress(n?-t.translate:t.translate),t.emit("setTranslate",t.translate,!1)}let D5=!1;function W0e(){}const PG=(t,e)=>{const n=Tr(),{params:i,touchEvents:r,el:s,wrapperEl:a,device:o,support:l}=t,u=!!i.nested,c=e==="on"?"addEventListener":"removeEventListener",f=e;if(!l.touch)s[c](r.start,t.onTouchStart,!1),n[c](r.move,t.onTouchMove,u),n[c](r.end,t.onTouchEnd,!1);else{const h=r.start==="touchstart"&&l.passiveListener&&i.passiveListeners?{passive:!0,capture:!1}:!1;s[c](r.start,t.onTouchStart,h),s[c](r.move,t.onTouchMove,l.passiveListener?{passive:!1,capture:u}:u),s[c](r.end,t.onTouchEnd,h),r.cancel&&s[c](r.cancel,t.onTouchEnd,h)}(i.preventClicks||i.preventClicksPropagation)&&s[c]("click",t.onClick,!0),i.cssMode&&a[c]("scroll",t.onScroll),i.updateOnWindowResize?t[f](o.ios||o.android?"resize orientationchange observerUpdate":"resize observerUpdate",M5,!0):t[f]("observerUpdate",M5,!0)};function G0e(){const t=this,e=Tr(),{params:n,support:i}=t;t.onTouchStart=U0e.bind(t),t.onTouchMove=$0e.bind(t),t.onTouchEnd=z0e.bind(t),n.cssMode&&(t.onScroll=V0e.bind(t)),t.onClick=H0e.bind(t),i.touch&&!D5&&(e.addEventListener("touchstart",W0e),D5=!0),PG(t,"on")}function j0e(){PG(this,"off")}const q0e={attachEvents:G0e,detachEvents:j0e},P5=(t,e)=>t.grid&&e.grid&&e.grid.rows>1;function X0e(){const t=this,{activeIndex:e,initialized:n,loopedSlides:i=0,params:r,$el:s}=t,a=r.breakpoints;if(!a||a&&Object.keys(a).length===0)return;
13const o=t.getBreakpoint(a,t.params.breakpointsBase,t.el);if(!o||t.currentBreakpoint===o)return;const u=(o in a?a[o]:void 0)||t.originalParams,c=P5(t,r),f=P5(t,u),h=r.enabled;c&&!f?(s.removeClass(`${r.containerModifierClass}grid ${r.containerModifierClass}grid-column`),t.emitContainerClasses()):!c&&f&&(s.addClass(`${r.containerModifierClass}grid`),(u.grid.fill&&u.grid.fill==="column"||!u.grid.fill&&r.grid.fill==="column")&&s.addClass(`${r.containerModifierClass}grid-column`),t.emitContainerClasses());const p=u.direction&&u.direction!==r.direction,m=r.loop&&(u.slidesPerView!==r.slidesPerView||p);p&&n&&t.changeDirection(),Ma(t.params,u);const y=t.params.enabled;Object.assign(t,{allowTouchMove:t.params.allowTouchMove,allowSlideNext:t.params.allowSlideNext,allowSlidePrev:t.params.allowSlidePrev}),h&&!y?t.disable():!h&&y&&t.enable(),t.currentBreakpoint=o,t.emit("_beforeBreakpoint",u),m&&n&&(t.loopDestroy(),t.loopCreate(),t.updateSlides(),t.slideTo(e-i+t.loopedSlides,0,!1)),t.emit("breakpoint",u)}function Y0e(t,e="window",n){if(!t||e==="container"&&!n)return;let i=!1;const r=Ar(),s=e==="window"?r.innerHeight:n.clientHeight,a=Object.keys(t).map(o=>{if(typeof o=="string"&&o.indexOf("@")===0){const l=parseFloat(o.substr(1));return{value:s*l,point:o}}return{value:o,point:o}});a.sort((o,l)=>
13parseInt(o.value,10)-parseInt(l.value,10));for(let o=0;o<a.length;o+=1){const{point:l,value:u}=a[o];e==="window"?r.matchMedia(`(min-width: ${u}px)`).matches&&(i=l):u<=n.clientWidth&&(i=l)}return i||"max"}const K0e={setBreakpoint:X0e,getBreakpoint:Y0e};function Z0e(t,e){const n=[];return t.forEach(i=>{typeof i=="object"?Object.keys(i).forEach(r=>{i[r]&&n.push(e+r)}):typeof i=="string"&&n.push(e+i)}),n}function Q0e(){const t=this,{classNames:e,params:n,rtl:i,$el:r,device:s,support:a}=t,o=Z0e(["initialized",n.direction,{"pointer-events":!a.touch},{"free-mode":t.params.freeMode&&n.freeMode.enabled},{autoheight:n.autoHeight},{rtl:i},{grid:n.grid&&n.grid.rows>1},{"grid-column":n.grid&&n.grid.rows>1&&n.grid.fill==="column"},{android:s.android},{ios:s.ios},{"css-mode":n.cssMode},{centered:n.cssMode&&n.centeredSlides}],n.containerModifierClass);e.push(...o),r.addClass([...e].join(" ")),t.emitContainerClasses()}function J0e(){const t=this,{$el:e,classNames:n}=t;e.removeClass(n.join(" ")),t.emitContainerClasses()}const eme={addClasses:Q0e,removeClasses:J0e};function tme(t,e,n,i,r,s){const a=Ar();let o;function l(){s&&s()}!mt(t).parent("picture")[0]&&(!t.complete||!r)&&e?(o=new a.Image,o.onload=l,o.onerror=l,i&&(o.sizes=i),n&&(o.srcset=n),e&&(o.src=e)):l()}function nme(){const t=this;t.imagesToLoad=t.$el.find("img");function e(){typeof t>"u"||t===null||!t||t.destroyed||(t.imagesLoaded!==void 0&&(t.imagesLoaded+=1),t.imagesLoaded===t.imagesToLoad.length&&(t.params.updateOnImagesReady&&t.update(),t.emit("imagesReady")))}for(let n=0;n<t.imagesToLoad.length;n+=1){const i=t.imagesToLoad[n];t.loadImage(i,i.currentSrc||i.getAttribute("src"),i.srcset||i.getAttribute("srcset"),i.sizes||i.getAttribute("sizes"),!0,e)}}const ime={loadImage:tme,preloadImages:nme};function rme(){const t=this,{isLocked:e,params:n}=t,{slidesOffsetBefore:i}=n;if(i){const r=t.slides.length-1,s=t.slidesGrid[r]+t.slidesSizesGrid[r]+i*2;t.isLocked=t.size>s}else t.isLocked=t.snapGrid.length===1;n.allowSlideNext===!0&&(t.allowSlideNext=!t.isLocked),n.allowSlidePrev===!0&&(t.allowSlidePrev=!t.isLocked),e&&e!==t.isLocked&&(t.isEnd=!1),e!==t.isLocked&&t.emit(t.isLocked?"lock":"unlock")}const sme={checkOverflow:rme},O5={init:!0,direction:"horizontal",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,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:0,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,preloadImages:!0,updateOnImagesReady:!0,loop:!1,loopAdditionalSlides:0,loopedSlides:null,loopFillGroupWithBlank:!1,loopPreventsSlide:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-invisible-blank",slideActiveClass:"swiper-slide-active",slideDuplicateActiveClass:"swiper-slide-duplicate-active",slideVisibleClass:"swiper-slide-visible",slideDuplicateClass:"swiper-slide-duplicate",slideNextClass:"swiper-slide-next",slideDuplicateNextClass:"swiper-slide-duplicate-next",slidePrevClass:"swiper-slide-prev",slideDuplicatePrevClass:"swiper-slide-duplicate-prev",wrapperClass:"swiper-wrapper",runCallbacksOnInit:!0,_emitClasses:!1};function ame(t,e){return function(i={}){const r=Object.keys(i)[0],s=i[r];if(typeof s!="object"||s===null){Ma(e,i);return}if(["navigation","pagination","scrollbar"].indexOf(r)>=0&&t[r]===!0&&(t[r]={auto:!0}),!(r in t&&"enabled"in s)){Ma(e,i);return}t[r]===!0&&(t[r]={enabled:!0}),typeof t[r]=="object"&&!("enabled"in t[r])&&(t[r].enabled=!0),t[r]||(t[r]={enabled:!1}),Ma(e,i)}}const uM={eventsEmitter:n0e,update:d0e,translate:v0e,transition:S0e,slide:P0e,loop:I0e,grabCursor:N0e,events:q0e,breakpoints:K0e,checkOverflow:sme,classes:eme,images:ime},cM={};class xs{constructor(...e){let n,i;if(e.length===1&&e[0].constructor&&Object.prototype.toString.call(e[0]).slice(8,-1)==="Object"?i=e[0]:[n,i]=e,i||(i={}),i=Ma({},i),n&&!i.el&&(i.el=n),i.el&&mt(i.el).length>1){const o=[];return mt(i.el).each(l=>{const u=Ma({},i,{el:l});o.push(new xs(u))}),o}const r=this;r.__swiper__=!0,r.support=MG(),r.device=Zpe({userAgent:i.userAgent}),r.browser=Jpe(),r.eventsListeners={},r.eventsAnyListeners=[],r.modules=[...r.__modules__],i.modules&&Array.isArray(i.modules)&&r.modules.push(...i.modules);const s={};
13r.modules.forEach(o=>{o({swiper:r,extendParams:ame(i,s),on:r.on.bind(r),once:r.once.bind(r),off:r.off.bind(r),emit:r.emit.bind(r)})});const a=Ma({},O5,s);return r.params=Ma({},a,cM,i),r.originalParams=Ma({},r.params),r.passedParams=Ma({},i),r.params&&r.params.on&&Object.keys(r.params.on).forEach(o=>{r.on(o,r.params.on[o])}),r.params&&r.params.onAny&&r.onAny(r.params.onAny),r.$=mt,Object.assign(r,{enabled:r.params.enabled,el:n,classNames:[],slides:mt(),slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return r.params.direction==="horizontal"},isVertical(){return r.params.direction==="vertical"},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,allowSlideNext:r.params.allowSlideNext,allowSlidePrev:r.params.allowSlidePrev,touchEvents:function(){const l=["touchstart","touchmove","touchend","touchcancel"],u=["pointerdown","pointermove","pointerup"];return r.touchEventsTouch={start:l[0],move:l[1],end:l[2],cancel:l[3]},r.touchEventsDesktop={start:u[0],move:u[1],end:u[2]},r.support.touch||!r.params.simulateTouch?r.touchEventsTouch:r.touchEventsDesktop}(),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:r.params.focusableElements,lastClickTime:Ly(),clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,isTouchEvent:void 0,startMoving:void 0},allowClick:!0,allowTouchMove:r.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),r.emit("_swiper"),r.params.init&&r.init(),r}enable(){const e=this;e.enabled||(e.enabled=!0,e.params.grabCursor&&e.setGrabCursor(),e.emit("enable"))}disable(){const e=this;!e.enabled||(e.enabled=!1,e.params.grabCursor&&e.unsetGrabCursor(),e.emit("disable"))}setProgress(e,n){const i=this;e=Math.min(Math.max(e,0),1);const r=i.minTranslate(),a=(i.maxTranslate()-r)*e+r;i.translateTo(a,typeof n>"u"?0:n),i.updateActiveIndex(),i.updateSlidesClasses()}emitContainerClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const n=e.el.className.split(" ").filter(i=>i.indexOf("swiper")===0||i.indexOf(e.params.containerModifierClass)===0);e.emit("_containerClasses",n.join(" "))}getSlideClasses(e){const n=this;return e.className.split(" ").filter(i=>i.indexOf("swiper-slide")===0||i.indexOf(n.params.slideClass)===0).join(" ")}emitSlidesClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const n=[];e.slides.each(i=>{const r=e.getSlideClasses(i);n.push({slideEl:i,classNames:r}),e.emit("_slideClass",i,r)}),e.emit("_slideClasses",n)}slidesPerViewDynamic(e="current",n=!1){const i=this,{params:r,slides:s,slidesGrid:a,slidesSizesGrid:o,size:l,activeIndex:u}=i;let c=1;if(r.centeredSlides){let f=s[u].swiperSlideSize,h;for(let p=u+1;p<s.length;p+=1)s[p]&&!h&&(f+=s[p].swiperSlideSize,c+=1,f>l&&(h=!0));for(let p=u-1;p>=0;p-=1)s[p]&&!h&&(f+=s[p].swiperSlideSize,c+=1,f>l&&(h=!0))}else if(e==="current")for(let f=u+1;f<s.length;f+=1)(n?a[f]+o[f]-a[u]<l:a[f]-a[u]<l)&&(c+=1);else for(let f=u-1;f>=0;f-=1)a[u]-a[f]<l&&(c+=1);return c}update(){const e=this;if(!e||e.destroyed)return;const{snapGrid:n,params:i}=e;i.breakpoints&&e.setBreakpoint(),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses();function r(){const 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;e.params.freeMode&&e.params.freeMode.enabled?(r(),e.params.autoHeight&&e.updateAutoHeight()):((e.params.slidesPerView==="auto"||e.params.slidesPerView>1)&&e.isEnd&&!e.params.centeredSlides?s=e.slideTo(e.slides.length-1,0,!1,!0):s=e.slideTo(e.activeIndex,0,!1,!0),s||r()),i.watchOverflow&&n!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,n=!0){const i=this,r=i.params.direction;return e||(e=r==="horizontal"?"vertical":"horizontal"),e===r||e!=="horizontal"&&e!=="vertical"||(i.$el.removeClass(`${i.params.containerModifierClass}${r}`).addClass(`${i.params.containerModifierClass}${e}`),i.emitContainerClasses(),i.params.direction=e,i.slides.each(s=>{e==="vertical"?s.style.width="":s.style.height=""}),i.emit("changeDirection"),n&&i.update()),i}mount(e){const n=this;if(n.mounted)return!0;const i=mt(e||n.params.el);if(e=i[0],!e)return!1;e.swiper=n;const r=()=>`.${(n.params.wrapperClass||"").trim().split(" ").join(".")}`;let a=(()=>
13{if(e&&e.shadowRoot&&e.shadowRoot.querySelector){const o=mt(e.shadowRoot.querySelector(r()));return o.children=l=>i.children(l),o}return i.children(r())})();if(a.length===0&&n.params.createElements){const l=Tr().createElement("div");a=mt(l),l.className=n.params.wrapperClass,i.append(l),i.children(`.${n.params.slideClass}`).each(u=>{a.append(u)})}return Object.assign(n,{$el:i,el:e,$wrapperEl:a,wrapperEl:a[0],mounted:!0,rtl:e.dir.toLowerCase()==="rtl"||i.css("direction")==="rtl",rtlTranslate:n.params.direction==="horizontal"&&(e.dir.toLowerCase()==="rtl"||i.css("direction")==="rtl"),wrongRTL:a.css("display")==="-webkit-box"}),!0}init(e){const n=this;return n.initialized||n.mount(e)===!1||(n.emit("beforeInit"),n.params.breakpoints&&n.setBreakpoint(),n.addClasses(),n.params.loop&&n.loopCreate(),n.updateSize(),n.updateSlides(),n.params.watchOverflow&&n.checkOverflow(),n.params.grabCursor&&n.enabled&&n.setGrabCursor(),n.params.preloadImages&&n.preloadImages(),n.params.loop?n.slideTo(n.params.initialSlide+n.loopedSlides,0,n.params.runCallbacksOnInit,!1,!0):n.slideTo(n.params.initialSlide,0,n.params.runCallbacksOnInit,!1,!0),n.attachEvents(),n.initialized=!0,n.emit("init"),n.emit("afterInit")),n}destroy(e=!0,n=!0){const i=this,{params:r,$el:s,$wrapperEl:a,slides:o}=i;return typeof i.params>"u"||i.destroyed||(i.emit("beforeDestroy"),i.initialized=!1,i.detachEvents(),r.loop&&i.loopDestroy(),n&&(i.removeClasses(),s.removeAttr("style"),a.removeAttr("style"),o&&o.length&&o.removeClass([r.slideVisibleClass,r.slideActiveClass,r.slideNextClass,r.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-slide-index")),i.emit("destroy"),Object.keys(i.eventsListeners).forEach(l=>{i.off(l)}),e!==!1&&(i.$el[0].swiper=null,Gpe(i)),i.destroyed=!0),null}static extendDefaults(e){Ma(cM,e)}static get extendedDefaults(){return cM}static get defaults(){return O5}static installModule(e){xs.prototype.__modules__||(xs.prototype.__modules__=[]);const n=xs.prototype.__modules__;typeof e=="function"&&n.indexOf(e)<0&&n.push(e)}static use(e){return Array.isArray(e)?(e.forEach(n=>xs.installModule(n)),xs):(xs.installModule(e),xs)}}Object.keys(uM).forEach(t=>{Object.keys(uM[t]).forEach(e=>{xs.prototype[e]=uM[t][e]})});xs.use([e0e,t0e]);function uI(t,e,n,i){const r=Tr();
13return t.params.createElements&&Object.keys(i).forEach(s=>{if(!n[s]&&n.auto===!0){let a=t.$el.children(`.${i[s]}`)[0];a||(a=r.createElement("div"),a.className=i[s],t.$el.append(a)),n[s]=a,e[s]=a}}),n}function JVe({swiper:t,extendParams:e,on:n,emit:i}){e({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock"}}),t.navigation={nextEl:null,$nextEl:null,prevEl:null,$prevEl:null};function r(f){let h;return f&&(h=mt(f),t.params.uniqueNavElements&&typeof f=="string"&&h.length>1&&t.$el.find(f).length===1&&(h=t.$el.find(f))),h}function s(f,h){const p=t.params.navigation;f&&f.length>0&&(f[h?"addClass":"removeClass"](p.disabledClass),f[0]&&f[0].tagName==="BUTTON"&&(f[0].disabled=h),t.params.watchOverflow&&t.enabled&&f[t.isLocked?"addClass":"removeClass"](p.lockClass))}function a(){if(t.params.loop)return;const{$nextEl:f,$prevEl:h}=t.navigation;s(h,t.isBeginning&&!t.params.rewind),s(f,t.isEnd&&!t.params.rewind)}function o(f){f.preventDefault(),!(t.isBeginning&&!t.params.loop&&!t.params.rewind)&&t.slidePrev()}function l(f){f.preventDefault(),!(t.isEnd&&!t.params.loop&&!t.params.rewind)&&t.slideNext()}function u(){const f=t.params.navigation;if(t.params.navigation=uI(t,t.originalParams.navigation,t.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!(f.nextEl||f.prevEl))return;const h=r(f.nextEl),p=r(f.prevEl);h&&h.length>0&&h.on("click",l),p&&p.length>0&&p.on("click",o),Object.assign(t.navigation,{$nextEl:h,nextEl:h&&h[0],$prevEl:p,prevEl:p&&p[0]}),t.enabled||(h&&h.addClass(f.lockClass),p&&p.addClass(f.lockClass))}function c(){const{$nextEl:f,$prevEl:h}=t.navigation;f&&f.length&&(f.off("click",l),f.removeClass(t.params.navigation.disabledClass)),h&&h.length&&(h.off("click",o),h.removeClass(t.params.navigation.disabledClass))}n("init",()=>{u(),a()}),n("toEdge fromEdge lock unlock",()=>{a()}),n("destroy",()=>{c()}),n("enable disable",()=>{const{$nextEl:f,$prevEl:h}=t.navigation;f&&f[t.enabled?"removeClass":"addClass"](t.params.navigation.lockClass),h&&h[t.enabled?"removeClass":"addClass"](t.params.navigation.lockClass)}),n("click",(f,h)=>{const{$nextEl:p,$prevEl:m}=t.navigation,y=h.target;if(t.params.navigation.hideOnClick&&!mt(y).is(m)&&!mt(y).is(p)){if(t.pagination&&t.params.pagination&&t.params.pagination.clickable&&(t.pagination.el===y||t.pagination.el.contains(y)))return;let v;p?v=p.hasClass(t.params.navigation.hiddenClass):m&&(v=m.hasClass(t.params.navigation.hiddenClass)),i(v===!0?"navigationShow":"navigationHide"),p&&p.toggleClass(t.params.navigation.hiddenClass),m&&m.toggleClass(t.params.navigation.hiddenClass)}}),Object.assign(t.navigation,{update:a,init:u,destroy:c})}function sc(t=""){return`.${t.trim().replace(/([\.:!\/])/g,"\\$1").replace(/ /g,".")}`}function eWe({swiper:t,extendParams:e,on:n,emit:i}){const r="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:p=>p,formatFractionTotal:p=>p,bulletClass:`${r}-bullet`,bulletActiveClass:`${r}-bullet-active`,modifierClass:`${r}-`,currentClass:`${r}-current`,totalClass:`${r}-total`,hiddenClass:`${r}-hidden`,progressbarFillClass:`${r}-progressbar-fill`,progressbarOppositeClass:`${r}-progressbar-opposite`,clickableClass:`${r}-clickable`,lockClass:`${r}-lock`,horizontalClass:`${r}-horizontal`,verticalClass:`${r}-vertical`}}),t.pagination={el:null,$el:null,bullets:[]};let s,a=0;function o(){return!t.params.pagination.el||!t.pagination.el||!t.pagination.$el||t.pagination.$el.length===0}function l(p,m){const{bulletActiveClass:y}=t.params.pagination;p[m]().addClass(`${y}-${m}`)[m]().addClass(`${y}-${m}-${m}`)}function u(){const p=t.rtl,m=t.params.pagination;if(o())return;const y=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.slides.length,v=t.pagination.$el;let _;const b=t.params.loop?Math.ceil((y-t.loopedSlides*2)/t.params.slidesPerGroup):t.snapGrid.length;if(t.params.loop?(_=Math.ceil((t.activeIndex-t.loopedSlides)/t.params.slidesPerGroup),_>y-1-t.loopedSlides*2&&(_-=y-t.loopedSlides*2),_>b-1&&(_-=b),_<0&&t.params.paginationType!=="bullets"&&(_=b+_)):typeof t.snapIndex<"u"?_=t.snap
13Index:_=t.activeIndex||0,m.type==="bullets"&&t.pagination.bullets&&t.pagination.bullets.length>0){const x=t.pagination.bullets;let T,E,C;if(m.dynamicBullets&&(s=x.eq(0)[t.isHorizontal()?"outerWidth":"outerHeight"](!0),v.css(t.isHorizontal()?"width":"height",`${s*(m.dynamicMainBullets+4)}px`),m.dynamicMainBullets>1&&t.previousIndex!==void 0&&(a+=_-(t.previousIndex-t.loopedSlides||0),a>m.dynamicMainBullets-1?a=m.dynamicMainBullets-1:a<0&&(a=0)),T=Math.max(_-a,0),E=T+(Math.min(x.length,m.dynamicMainBullets)-1),C=(E+T)/2),x.removeClass(["","-next","-next-next","-prev","-prev-prev","-main"].map(D=>`${m.bulletActiveClass}${D}`).join(" ")),v.length>1)x.each(D=>{const R=mt(D),A=R.index();A===_&&R.addClass(m.bulletActiveClass),m.dynamicBullets&&(A>=T&&A<=E&&R.addClass(`${m.bulletActiveClass}-main`),A===T&&l(R,"prev"),A===E&&l(R,"next"))});else{const D=x.eq(_),R=D.index();if(D.addClass(m.bulletActiveClass),m.dynamicBullets){const A=x.eq(T),k=x.eq(E);for(let F=T;F<=E;F+=1)x.eq(F).addClass(`${m.bulletActiveClass}-main`);if(t.params.loop)if(R>=x.length){for(let F=m.dynamicMainBullets;F>=0;F-=1)x.eq(x.length-F).addClass(`${m.bulletActiveClass}-main`);x.eq(x.length-m.dynamicMainBullets-1).addClass(`${m.bulletActiveClass}-prev`)}else l(A,"prev"),l(k,"next");else l(A,"prev"),l(k,"next")}}if(m.dynamicBullets){const D=Math.min(x.length,m.dynamicMainBullets+4),R=(s*D-s)/2-C*s,A=p?"right":"left";x.css(t.isHorizontal()?A:"top",`${R}px`)}}if(m.type==="fraction"&&(v.find(sc(m.currentClass)).text(m.formatFractionCurrent(_+1)),v.find(sc(m.totalClass)).text(m.formatFractionTotal(b))),m.type==="progressbar"){let x;m.progressbarOpposite?x=t.isHorizontal()?"vertical":"horizontal":x=t.isHorizontal()?"horizontal":"vertical";const T=(_+1)/b;let E=1,C=1;x==="horizontal"?E=T:C=T,v.find(sc(m.progressbarFillClass)).transform(`translate3d(0,0,0) scaleX(${E}) scaleY(${C})`).transition(t.params.speed)}m.type==="custom"&&m.renderCustom?(v.html(m.renderCustom(t,_+1,b)),i("paginationRender",v[0])):i("paginationUpdate",v[0]),t.params.watchOverflow&&t.enabled&&v[t.isLocked?"addClass":"removeClass"](m.lockClass)}function c(){const p=t.params.pagination;if(o())return;const m=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.slides.length,y=t.pagination.$el;let v="";if(p.type==="bullets"){let _=t.params.loop?Math.ceil((m-t.loopedSlides*2)/t.params.slidesPerGroup):t.snapGrid.length;t.params.freeMode&&t.params.freeMode.enabled&&!t.params.loop&&_>m&&(_=m);for(let b=0;b<_;b+=1)p.renderBullet?v+=p.renderBullet.call(t,b,p.bulletClass):v+=`<${p.bulletElement} class="${p.bulletClass}"></${p.bulletElement}>`;y.html(v),t.pagination.bullets=y.find(sc(p.bulletClass))}p.type==="fraction"&&(p.renderFraction?v=p.renderFraction.call(t,p.currentClass,p.totalClass):v=`<span class="${p.currentClass}"></span> / <span class="${p.totalClass}"></span>`,y.html(v)),p.type==="progressbar"&&(p.renderProgressbar?v=p.renderProgressbar.call(t,p.progressbarFillClass):v=`<span class="${p.progressbarFillClass}"></span>`,y.html(v)),p.type!=="custom"&&i("paginationRender",t.pagination.$el[0])}function f(){t.params.pagination=uI(t,t.originalParams.pagination,t.params.pagination,{el:"swiper-pagination"});const p=t.params.pagination;if(!p.el)return;let m=mt(p.el);m.length!==0&&(t.params.uniqueNavElements&&typeof p.el=="string"&&m.length>1&&(m=t.$el.find(p.el),m.length>1&&(m=m.filter(y=>mt(y).parents(".swiper")[0]===t.el))),p.type==="bullets"&&p.clickable&&m.addClass(p.clickableClass),m.addClass(p.modifierClass+p.type),m.addClass(p.modifierClass+t.params.direction),p.type==="bullets"&&p.dynamicBullets&&(m.addClass(`${p.modifierClass}${p.type}-dynamic`),a=0,p.dynamicMainBullets<1&&(p.dynamicMainBullets=1)),p.type==="progressbar"&&p.progressbarOpposite&&m.addClass(p.progressbarOppositeClass),p.clickable&&m.on("click",sc(p.bulletClass),function(v){v.preventDefault();let _=mt(this).index()*t.params.slidesPerGroup;t.params.loop&&(_+=t.loopedSlides),t.slideTo(_)}),Object.assign(t.pagination,{$el:m,el:m[0]}),t.enabled||m.addClass(p.lockClass))}function h(){const p=t.params.pagination;if(o())return;const m=t.pagination.$el;m.removeClass(p.hiddenClass),m.removeClass(p.modifierClass+p.type),m.removeClass(p.modifierClass+t.params.direction),t.pagination.bullets&&t.pagination.bullets.removeClass&&t.pagination.bullets.removeClass(p.bulletActiveClass),p.clickable&&m.off("click",
13sc(p.bulletClass))}n("init",()=>{f(),c(),u()}),n("activeIndexChange",()=>{(t.params.loop||typeof t.snapIndex>"u")&&u()}),n("snapIndexChange",()=>{t.params.loop||u()}),n("slidesLengthChange",()=>{t.params.loop&&(c(),u())}),n("snapGridLengthChange",()=>{t.params.loop||(c(),u())}),n("destroy",()=>{h()}),n("enable disable",()=>{const{$el:p}=t.pagination;p&&p[t.enabled?"removeClass":"addClass"](t.params.pagination.lockClass)}),n("lock unlock",()=>{u()}),n("click",(p,m)=>{const y=m.target,{$el:v}=t.pagination;if(t.params.pagination.el&&t.params.pagination.hideOnClick&&v.length>0&&!mt(y).hasClass(t.params.pagination.bulletClass)){if(t.navigation&&(t.navigation.nextEl&&y===t.navigation.nextEl||t.navigation.prevEl&&y===t.navigation.prevEl))return;const _=v.hasClass(t.params.pagination.hiddenClass);i(_===!0?"paginationShow":"paginationHide"),v.toggleClass(t.params.pagination.hiddenClass)}}),Object.assign(t.pagination,{render:c,update:u,init:f,destroy:h})}function tWe({swiper:t,extendParams:e,on:n,emit:i}){const r=Tr();let s=!1,a=null,o=null,l,u,c,f;e({scrollbar:{el:null,dragSize:"auto",hide:!1,draggable:!1,snapOnRelease:!0,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag"}}),t.scrollbar={el:null,dragEl:null,$el:null,$dragEl:null};function h(){if(!t.params.scrollbar.el||!t.scrollbar.el)return;const{scrollbar:A,rtlTranslate:k,progress:F}=t,{$dragEl:N,$el:U}=A,$=t.params.scrollbar;let G=u,Y=(c-u)*F;k?(Y=-Y,Y>0?(G=u-Y,Y=0):-Y+u>c&&(G=c+Y)):Y<0?(G=u+Y,Y=0):Y+u>c&&(G=c-Y),t.isHorizontal()?(N.transform(`translate3d(${Y}px, 0, 0)`),N[0].style.width=`${G}px`):(N.transform(`translate3d(0px, ${Y}px, 0)`),N[0].style.height=`${G}px`),$.hide&&(clearTimeout(a),U[0].style.opacity=1,a=setTimeout(()=>{U[0].style.opacity=0,U.transition(400)},1e3))}function p(A){!t.params.scrollbar.el||!t.scrollbar.el||t.scrollbar.$dragEl.transition(A)}function m(){if(!t.params.scrollbar.el||!t.scrollbar.el)return;const{scrollbar:A}=t,{$dragEl:k,$el:F}=A;k[0].style.width="",k[0].style.height="",c=t.isHorizontal()?F[0].offsetWidth:F[0].offsetHeight,f=t.size/(t.virtualSize+t.params.slidesOffsetBefore-(t.params.centeredSlides?t.snapGrid[0]:0)),t.params.scrollbar.dragSize==="auto"?u=c*f:u=parseInt(t.params.scrollbar.dragSize,10),t.isHorizontal()?k[0].style.width=`${u}px`:k[0].style.height=`${u}px`,f>=1?F[0].style.display="none":F[0].style.display="",t.params.scrollbar.hide&&(F[0].style.opacity=0),t.params.watchOverflow&&t.enabled&&A.$el[t.isLocked?"addClass":"removeClass"](t.params.scrollbar.lockClass)}function y(A){return t.isHorizontal()?A.type==="touchstart"||A.type==="touchmove"?A.targetTouches[0].clientX:A.clientX:A.type==="touchstart"||A.type==="touchmove"?A.targetTouches[0].clientY:A.clientY}function v(A){const{scrollbar:k,rtlTranslate:F}=t,{$el:N}=k;let U;U=(y(A)-N.offset()[t.isHorizontal()?"left":"top"]-(l!==null?l:u/2))/(c-u),U=Math.max(Math.min(U,1),0),F&&(U=1-U);const $=t.minTranslate()+(t.maxTranslate()-t.minTranslate())*U;t.updateProgress($),t.setTranslate($),t.updateActiveIndex(),t.updateSlidesClasses()}function _(A){const k=t.params.scrollbar,{scrollbar:F,$wrapperEl:N}=t,{$el:U,$dragEl:$}=F;s=!0,l=A.target===$[0]||A.target===$?y(A)-A.target.getBoundingClientRect()[t.isHorizontal()?"left":"top"]:null,A.preventDefault(),A.stopPropagation(),N.transition(100),$.transition(100),v(A),clearTimeout(o),U.transition(0),k.hide&&U.css("opacity",1),t.params.cssMode&&t.$wrapperEl.css("scroll-snap-type","none"),i("scrollbarDragStart",A)}function b(A){const{scrollbar:k,$wrapperEl:F}=t,{$el:N,$dragEl:U}=k;!s||(A.preventDefault?A.preventDefault():A.returnValue=!1,v(A),F.transition(0),N.transition(0),U.transition(0),i("scrollbarDragMove",A))}function x(A){const k=t.params.scrollbar,{scrollbar:F,$wrapperEl:N}=t,{$el:U}=F;!s||(s=!1,t.params.cssMode&&(t.$wrapperEl.css("scroll-snap-type",""),N.transition("")),k.hide&&(clearTimeout(o),o=Iy(()=>{U.css("opacity",0),U.transition(400)},1e3)),i("scrollbarDragEnd",A),k.snapOnRelease&&t.slideToClosest())}function T(A){const{scrollbar:k,touchEventsTouch:F,touchEventsDesktop:N,params:U,support:$}=t,Y=k.$el[0],Q=$.passiveListener&&U.passiveListeners?{passive:!1,capture:!1}:!1,re=$.passiveListener&&U.passiveListeners?{passive:!0,capture:!1}:!1;if(!Y)return;const he=A==="on"?"addEventListener":"removeEventListener";$.touch?(Y[he](F.start,_,Q),Y[he](F.move,b,Q),Y[he](F.end,x,re)):(Y[he](N.start,_,Q),r[he](N.move,b,Q),r[he](N.end,x,re))}function E(){!t.params.scrollbar.el||T("on")}function C(){!t.params.scrollbar.el||T("off")}function D(){const{scrollbar:A,$el:k}=t;t.params.scrollbar=uI(t,t.originalParams.scrollbar,t.params.scrollbar,{el:"swiper-scrollbar"});const F=t.params.scrollbar;if(!F.el)return;let N=mt(F.el);t.params.uniqueNavElements&&typeof F.el=="string"&&N.length>1&&k.find(F.el).length===1&&(N=k.find(F.el));let U=N.find(`.${t.params.scrollbar.dragClass}`);U.length===0&&(U=mt(`<div class="${t.params.scrollbar.dragClass}"></div>`),N.append(U)),Object.assign(A,{$el:N,el:N[0],$dragEl:U,dragEl:U[0]}),F.draggable&&E(),N&&N[t.enabled?"removeClass":"addClass"](t.params.scrollbar.lockClass)}function R(){C()}n("init",()=>{D(),m(),h()}),n("update resize observerUpdate lock unlock",()=>{m()}),n("setTranslate",()=>{h()}),n("setTransition",(A,k)=>{p(k)}),n("enable disable",()=>{const{$el:A}=t.scrollbar;A&&A[t.enabled?"removeClass":"addClass"](t.params.scrollbar.lockClass)}),n("destroy",()=>{R()}),Object.assign(t.scrollbar,{updateSize:m,setTranslate:h,init:D,destroy:R})}function nWe({swiper:t,extendParams:e,on:n}
13){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,itemRoleDescriptionMessage:null,slideRole:"group"}});let i=null;function r(R){const A=i;A.length!==0&&(A.html(""),A.html(R))}function s(R=16){const A=()=>Math.round(16*Math.random()).toString(16);return"x".repeat(R).replace(/x/g,A)}function a(R){R.attr("tabIndex","0")}function o(R){R.attr("tabIndex","-1")}function l(R,A){R.attr("role",A)}function u(R,A){R.attr("aria-roledescription",A)}function c(R,A){R.attr("aria-controls",A)}function f(R,A){R.attr("aria-label",A)}function h(R,A){R.attr("id",A)}function p(R,A){R.attr("aria-live",A)}function m(R){R.attr("aria-disabled",!0)}function y(R){R.attr("aria-disabled",!1)}function v(R){if(R.keyCode!==13&&R.keyCode!==32)return;const A=t.params.a11y,k=mt(R.target);t.navigation&&t.navigation.$nextEl&&k.is(t.navigation.$nextEl)&&(t.isEnd&&!t.params.loop||t.slideNext(),t.isEnd?r(A.lastSlideMessage):r(A.nextSlideMessage)),t.navigation&&t.navigation.$prevEl&&k.is(t.navigation.$prevEl)&&(t.isBeginning&&!t.params.loop||t.slidePrev(),t.isBeginning?r(A.firstSlideMessage):r(A.prevSlideMessage)),t.pagination&&k.is(sc(t.params.pagination.bulletClass))&&k[0].click()}function _(){if(t.params.loop||t.params.rewind||!t.navigation)return;const{$nextEl:R,$prevEl:A}=t.navigation;A&&A.length>0&&(t.isBeginning?(m(A),o(A)):(y(A),a(A))),R&&R.length>0&&(t.isEnd?(m(R),o(R)):(y(R),a(R)))}function b(){return t.pagination&&t.pagination.bullets&&t.pagination.bullets.length}function x(){return b()&&t.params.pagination.clickable}function T(){const R=t.params.a11y;!b()||t.pagination.bullets.each(A=>{const k=mt(A);t.params.pagination.clickable&&(a(k),t.params.pagination.renderBullet||(l(k,"button"),f(k,R.paginationBulletMessage.replace(/\{\{index\}\}/,k.index()+1)))),k.is(`.${t.params.pagination.bulletActiveClass}`)?k.attr("aria-current","true"):k.removeAttr("aria-current")})}const E=(R,A,k)=>{a(R),R[0].tagName!=="BUTTON"&&(l(R,"button"),R.on("keydown",v)),f(R,k),c(R,A)};function C(){const R=t.params.a11y;t.$el.append(i);const A=t.$el;R.containerRoleDescriptionMessage&&u(A,R.containerRoleDescriptionMessage),R.containerMessage&&f(A,R.containerMessage);const k=t.$wrapperEl,F=k.attr("id")||`swiper-wrapper-${s(16)}`,N=t.params.autoplay&&t.params.autoplay.enabled?"off":"polite";h(k,F),p(k,N),R.itemRoleDescriptionMessage&&u(mt(t.slides),R.itemRoleDescriptionMessage),l(mt(t.slides),R.slideRole);const U=t.params.loop?t.slides.filter(Y=>!Y.classList.contains(t.params.slideDuplicateClass)).length:t.slides.length;t.slides.each((Y,Q)=>{const re=mt(Y),he=t.params.loop?parseInt(re.attr("data-swiper-slide-index"),10):Q,X=R.slideLabelMessage.replace(/\{\{index\}\}/,he+1).replace(/\{\{slidesLength\}\}/,U);f(re,X)});let $,G;t.navigation&&t.navigation.$nextEl&&($=t.navigation.$nextEl),t.navigation&&t.navigation.$prevEl&&(G=t.navigation.$prevEl),$&&$.length&&E($,F,R.nextSlideMessage),G&&G.length&&E(G,F,R.prevSlideMessage),x()&&t.pagination.$el.on("keydown",sc(t.params.pagination.bulletClass),v)}function D(){i&&i.length>0&&i.remove();let R,A;t.navigation&&t.navigation.$nextEl&&(R=t.navigation.$nextEl),t.navigation&&t.navigation.$prevEl&&(A=t.navigation.$prevEl),R&&R.off("keydown",v),A&&A.off("keydown",v),x()&&t.pagination.$el.off("keydown",sc(t.params.pagination.bulletClass),v)}n("beforeInit",()=>{i=mt(`<span class="${t.params.a11y.notificationClass}" aria-live="assertive" aria-atomic="true"></span>`)}),n("afterInit",()=>{!t.params.a11y.enabled||(C(),_())}),n("toEdge",()=>{!t.params.a11y.enabled||_()}),n("fromEdge",()=>{!t.params.a11y.enabled||_()}),n("paginationUpdate",()=>{!t.params.a11y.enabled||T()}),n("destroy",()=>{!t.params.a11y.enabled||D()})}function iWe({swiper:t,extendParams:e,on:n,emit:i}){let r;t.autoplay={running:!1,paused:!1},e({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!0,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});function s(){const y=t.slides.eq(t.activeIndex);let v=t.params.autoplay.delay;y.attr("data-swiper-autoplay")&&(v=y.attr("data-swiper-autoplay")||t.params.autoplay.delay),clearTimeout(r),r=Iy(()=>{let _;t.params.autoplay.reverseDirection?t.params.loop?(t.loopFix(),_=t.slidePrev(t.params.speed,!0,
13!0),i("autoplay")):t.isBeginning?t.params.autoplay.stopOnLastSlide?o():(_=t.slideTo(t.slides.length-1,t.params.speed,!0,!0),i("autoplay")):(_=t.slidePrev(t.params.speed,!0,!0),i("autoplay")):t.params.loop?(t.loopFix(),_=t.slideNext(t.params.speed,!0,!0),i("autoplay")):t.isEnd?t.params.autoplay.stopOnLastSlide?o():(_=t.slideTo(0,t.params.speed,!0,!0),i("autoplay")):(_=t.slideNext(t.params.speed,!0,!0),i("autoplay")),(t.params.cssMode&&t.autoplay.running||_===!1)&&s()},v)}function a(){return typeof r<"u"||t.autoplay.running?!1:(t.autoplay.running=!0,i("autoplayStart"),s(),!0)}function o(){return!t.autoplay.running||typeof r>"u"?!1:(r&&(clearTimeout(r),r=void 0),t.autoplay.running=!1,i("autoplayStop"),!0)}function l(y){!t.autoplay.running||t.autoplay.paused||(r&&clearTimeout(r),t.autoplay.paused=!0,y===0||!t.params.autoplay.waitForTransition?(t.autoplay.paused=!1,s()):["transitionend","webkitTransitionEnd"].forEach(v=>{t.$wrapperEl[0].addEventListener(v,c)}))}function u(){const y=Tr();y.visibilityState==="hidden"&&t.autoplay.running&&l(),y.visibilityState==="visible"&&t.autoplay.paused&&(s(),t.autoplay.paused=!1)}function c(y){!t||t.destroyed||!t.$wrapperEl||y.target===t.$wrapperEl[0]&&(["transitionend","webkitTransitionEnd"].forEach(v=>{t.$wrapperEl[0].removeEventListener(v,c)}),t.autoplay.paused=!1,t.autoplay.running?s():o())}function f(){t.params.autoplay.disableOnInteraction?o():l(),["transitionend","webkitTransitionEnd"].forEach(y=>{t.$wrapperEl[0].removeEventListener(y,c)})}function h(){t.params.autoplay.disableOnInteraction||(t.autoplay.paused=!1,s())}function p(){t.params.autoplay.pauseOnMouseEnter&&(t.$el.on("mouseenter",f),t.$el.on("mouseleave",h))}function m(){t.$el.off("mouseenter",f),t.$el.off("mouseleave",h)}n("init",()=>{t.params.autoplay.enabled&&(a(),Tr().addEventListener("visibilitychange",u),p())}),n("beforeTransitionStart",(y,v,_)=>{t.autoplay.running&&(_||!t.params.autoplay.disableOnInteraction?t.autoplay.pause(v):o())}),n("sliderFirstMove",()=>{t.autoplay.running&&(t.params.autoplay.disableOnInteraction?o():l())}),n("touchEnd",()=>{t.params.cssMode&&t.autoplay.paused&&!t.params.autoplay.disableOnInteraction&&s()}),n("destroy",()=>{m(),t.autoplay.running&&o(),Tr().removeEventListener("visibilitychange",u)}),Object.assign(t.autoplay,{pause:l,run:s,start:a,stop:o})}function rWe({swiper:t,extendParams:e,on:n}){e({thumbs:{swiper:null,multipleActiveThumbs:!0,autoScrollOffset:0,slideThumbActiveClass:"swiper-slide-thumb-active",thumbsContainerClass:"swiper-thumbs"}});let i=!1,r=!1;t.thumbs={swiper:null};function s(){const l=t.thumbs.swiper;if(!l)return;const u=l.clickedIndex,c=l.clickedSlide;if(c&&mt(c).hasClass(t.params.thumbs.slideThumbActiveClass)||typeof u>"u"||u===null)return;let f;if(l.params.loop?f=parseInt(mt(l.clickedSlide).attr("data-swiper-slide-index"),10):f=u,t.params.loop){let h=t.activeIndex;t.slides.eq(h).hasClass(t.params.slideDuplicateClass)&&(t.loopFix(),t._clientLeft=t.$wrapperEl[0].clientLeft,h=t.activeIndex);const p=t.slides.eq(h).prevAll(`[data-swiper-slide-index="${f}"]`).eq(0).index(),m=t.slides.eq(h).nextAll(`[data-swiper-slide-index="${f}"]`).eq(0).index();typeof p>"u"?f=m:typeof m>"u"?f=p:m-h<h-p?f=m:f=p}t.slideTo(f)}function a(){const{thumbs:l}=t.params;if(i)return!1;i=!0;const u=t.constructor;if(l.swiper instanceof u)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});else if(hv(l.swiper)){const c=Object.assign({},l.swiper);Object.assign(c,{watchSlidesProgress:!0,slideToClickedSlide:!1}),t.thumbs.swiper=new u(c),r=!0}return t.thumbs.swiper.$el.addClass(t.params.thumbs.thumbsContainerClass),t.thumbs.swiper.on("tap",s),!0}function o(l){const u=t.thumbs.swiper;if(!u)return;const c=u.params.slidesPerView==="auto"?u.slidesPerViewDynamic():u.params.slidesPerView,f=t.params.thumbs.autoScrollOffset,h=f&&!u.params.loop;if(t.realIndex!==u.realIndex||h){let y=u.activeIndex,v,_;if(u.params.loop){u.slides.eq(y).hasClass(u.params.slideDuplicateClass)&&(u.loopFix(),u._clientLeft=u.$wrapperEl[0].clientLeft,y=u.activeIndex);const b=u.slides.eq(y).prevAll(`[data-swiper-slide-index="${t.realIndex}"]`).eq(0).index(),x=u.slides.eq(y).nextAll(`[data-swiper-slide-index="${t.realIndex}"]`).eq(0).index();typeof b>"u"?v=x:typeof x>"u"?v=b:x-y===y-b?v=u.params.slidesPerGroup>1?x:y:x-y<y-b?v=x:v=b,_=t.activeIndex>t.previousIndex?"next":"prev"}else v=t.realIndex,_=v>t.previousIndex?"next":"prev";h&&(v+=_==="next"?f:-1*f),u.visibleSlidesIndexes&&u.visibleSlidesIndexes.indexOf(v)<0&&(u.params.centeredSlides?v>y?v=v-Math.floor(c/2)+1:v=v+Math.floor(c/2)-1:v>y&&u.params.slidesPerGroup,u.slideTo(v,l?0:void 0))}let p=1;const m=t.params.thumbs.slideThumbActiveClass;if(t.params.slidesPerView>1&&!t.params.centeredSlides&&(p=t.params.slidesPerView),t.params.thumbs.multipleActiveThumbs||(p=1),p=Math.floor(p),u.slides.removeClass(m),u.params.loop||u.params.virtual&&u.params.virtual.enabled)for(let y=0;y<p;y+=1)u.$wrapperEl.children(`[data-swiper-slide-index="${t.realIndex+y}"]`).addClass(m);else for(let y=0;y<p;y+=1)u.slides.eq(t.realIndex+y).addClass(m)}n("beforeInit",()=>{const{thumbs:l}=t.params;!l||!l.swiper||(a(),o(!0))}),n("slideChange update resize observerUpdate",()=>{!t.thumbs.swiper||o()}),n("setTransition",(l,u)=>{const c=t.thumbs.swiper;!c||c.setTransition(u)}),n("beforeDestroy",()=>{const l=t.thumbs.swiper;!l||r&&l&&l.destroy()}),Object.assign(t.thumbs,{init:a,update:o})}function ome(t){const{effect:e,swiper:n,on:i,setTranslate:r,setTransition:s,overwriteParams:a,perspective:o}=t;i("beforeInit",()=>{if(n.params.effect!==e)return;n.classNames.push(`${n.params.containerModifierClass}${e}`),o&&o()&&n.classNames.push(`${n.params.containerModifierClass}3d`);const l=a?a():{};Object.assign(n.params,l),Object.assign(n.originalParams,l)}),i("setTranslate",()=>{n.params.effect===e&&r()}),i("setTransition",(l,u)=>{n.params.effect===e&&s(u)})}function lme(t,e){return t.transformEl?e.find(t.transformEl).css({"backface-visibility":"hidden","-webkit-backface-visibility":"hidden"}):e}function R5(t,e,n){const i=`swiper-slide-shadow${n?`-${n}`:""}`,r=t.transformEl?e.find(t.transformEl):e;let s=r.children(`.${i}`);return s.length||(s=mt(`<div class="swiper-slide-shadow${n?`-${n}`:""}"></div>`),r.append(s)),s}function sWe({swiper:t,extendParams:e,on:n}
13){e({coverflowEffect:{rotate:50,stretch:0,depth:100,scale:1,modifier:1,slideShadows:!0,transformEl:null}}),ome({effect:"coverflow",swiper:t,on:n,setTranslate:()=>{const{width:s,height:a,slides:o,slidesSizesGrid:l}=t,u=t.params.coverflowEffect,c=t.isHorizontal(),f=t.translate,h=c?-f+s/2:-f+a/2,p=c?u.rotate:-u.rotate,m=u.depth;for(let y=0,v=o.length;y<v;y+=1){const _=o.eq(y),b=l[y],x=_[0].swiperSlideOffset,T=(h-x-b/2)/b*u.modifier;let E=c?p*T:0,C=c?0:p*T,D=-m*Math.abs(T),R=u.stretch;typeof R=="string"&&R.indexOf("%")!==-1&&(R=parseFloat(u.stretch)/100*b);let A=c?0:R*T,k=c?R*T:0,F=1-(1-u.scale)*Math.abs(T);Math.abs(k)<.001&&(k=0),Math.abs(A)<.001&&(A=0),Math.abs(D)<.001&&(D=0),Math.abs(E)<.001&&(E=0),Math.abs(C)<.001&&(C=0),Math.abs(F)<.001&&(F=0);const N=`translate3d(${k}px,${A}px,${D}px)  rotateX(${C}deg) rotateY(${E}deg) scale(${F})`;if(lme(u,_).transform(N),_[0].style.zIndex=-Math.abs(Math.round(T))+1,u.slideShadows){let $=c?_.find(".swiper-slide-shadow-left"):_.find(".swiper-slide-shadow-top"),G=c?_.find(".swiper-slide-shadow-right"):_.find(".swiper-slide-shadow-bottom");$.length===0&&($=R5(u,_,c?"left":"top")),G.length===0&&(G=R5(u,_,c?"right":"bottom")),$.length&&($[0].style.opacity=T>0?T:0),G.length&&(G[0].style.opacity=-T>0?-T:0)}}},setTransition:s=>{const{transformEl:a}=t.params.coverflowEffect;(a?t.slides.find(a):t.slides).transition(s).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(s)},perspective:()=>!0,overwriteParams:()=>({watchSlidesProgress:!0})})}function ap(t){return typeof t=="object"&&t!==null&&t.constructor&&Object.prototype.toString.call(t).slice(8,-1)==="Object"}function Rf(t,e){const n=["__proto__","constructor","prototype"];Object.keys(e).filter(i=>n.indexOf(i)<0).forEach(i=>{typeof t[i]>"u"?t[i]=e[i]:ap(e[i])&&ap(t[i])&&Object.keys(e[i]).length>0?e[i].__swiper__?t[i]=e[i]:Rf(t[i],e[i]):t[i]=e[i]})}function OG(t={}){return t.navigation&&typeof t.navigation.nextEl>"u"&&typeof t.navigation.prevEl>"u"}function RG(t={}){return t.pagination&&typeof t.pagination.el>"u"}function kG(t={}){return t.scrollbar&&typeof t.scrollbar.el>"u"}function IG(t=""){const e=t.split(" ").map(i=>i.trim()).filter(i=>!!i),n=[];return e.forEach(i=>{n.indexOf(i)<0&&n.push(i)}),n.join(" ")}const LG=["modules","init","_direction","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","_spaceBetween","_slidesPerView","_grid","_slidesPerGroup","_slidesPerGroupSkip","_slidesPerGroupAuto","_centeredSlides","_centeredSlidesBounds","_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","_preloadImages","updateOnImagesReady","_loop","_loopAdditionalSlides","_loopedSlides","_loopFillGroupWithBlank","loopPreventsSlide","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideBlankClass","slideActiveClass","slideDuplicateActiveClass","slideVisibleClass","slideDuplicateClass","slideNextClass","slideDuplicateNextClass","slidePrevClass","slideDuplicatePrevClass","wrapperClass","runCallbacksOnInit","observer","observeParents","observeSlideChildren","a11y","autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","creativeEffect","cardsEffect","hashNavigation","history","keyboard","lazy","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom"];function k5(t={}){const e={on:{}},n={};Rf(e,xs.defaults),Rf(e,xs.extendedDefaults),e._emitClasses=!0,e.init=!1;const i={},r=LG.map(a=>a.replace(/_/,"")),s=Object.assign({},t);
13return Object.keys(s).forEach(a=>{typeof t[a]>"u"||(r.indexOf(a)>=0?ap(t[a])?(e[a]={},n[a]={},Rf(e[a],t[a]),Rf(n[a],t[a])):(e[a]=t[a],n[a]=t[a]):a.search(/on[A-Z]/)===0&&typeof t[a]=="function"?e.on[`${a[2].toLowerCase()}${a.substr(3)}`]=t[a]:i[a]=t[a])}),["navigation","pagination","scrollbar"].forEach(a=>{e[a]===!0&&(e[a]={}),e[a]===!1&&delete e[a]}),{params:e,passedParams:n,rest:i}}function ume(t){return new xs(t)}function cme({el:t,nextEl:e,prevEl:n,paginationEl:i,scrollbarEl:r,swiper:s},a){OG(a)&&e&&n&&(s.params.navigation.nextEl=e,s.originalParams.navigation.nextEl=e,s.params.navigation.prevEl=n,s.originalParams.navigation.prevEl=n),RG(a)&&i&&(s.params.pagination.el=i,s.originalParams.pagination.el=i),kG(a)&&r&&(s.params.scrollbar.el=r,s.originalParams.scrollbar.el=r),s.init(t)}function FG(t,e){let n=e.slidesPerView;if(e.breakpoints){const r=xs.prototype.getBreakpoint(e.breakpoints),s=r in e.breakpoints?e.breakpoints[r]:void 0;s&&s.slidesPerView&&(n=s.slidesPerView)}let i=Math.ceil(parseFloat(e.loopedSlides||n,10));return i+=e.loopAdditionalSlides,i>t.length&&(i=t.length),i}function fme(t,e,n){const i=e.map((l,u)=>(l.props||(l.props={}),l.props.swiperRef=t,l.props["data-swiper-slide-index"]=u,l));function r(l,u,c){return l.props||(l.props={}),kr(l.type,{...l.props,key:`${l.key}-duplicate-${u}-${c}`,class:`${l.props.className||""} ${n.slideDuplicateClass} ${l.props.class||""}`},l.children)}if(n.loopFillGroupWithBlank){const l=n.slidesPerGroup-i.length%n.slidesPerGroup;if(l!==n.slidesPerGroup)for(let u=0;u<l;u+=1){const c=kr("div",{class:`${n.slideClass} ${n.slideBlankClass}`});i.push(c)}}n.slidesPerView==="auto"&&!n.loopedSlides&&(n.loopedSlides=i.length);const s=FG(i,n),a=[],o=[];return i.forEach((l,u)=>{u<s&&o.push(r(l,u,"prepend")),u<i.length&&u>=i.length-s&&a.push(r(l,u,"append"))}),t.value&&(t.value.loopedSlides=s),[...a,...i,...o]}function dme(t,e,n,i){const r=[];if(!e)return r;const s=u=>{r.indexOf(u)<0&&r.push(u)},a=i.map(u=>u.props&&u.props.key),o=n.map(u=>u.props&&u.props.key);return a.join("")!==o.join("")&&r.push("children"),i.length!==n.length&&r.push("children"),LG.filter(u=>u[0]==="_").map(u=>u.replace(/_/,"")).forEach(u=>{if(u in t&&u in e)if(ap(t[u])&&ap(e[u])){const c=Object.keys(t[u]),f=Object.keys(e[u]);c.length!==f.length?s(u):(c.forEach(h=>{t[u][h]!==e[u][h]&&s(u)}),f.forEach(h=>{t[u][h]!==e[u][h]&&s(u)}))}else t[u]!==e[u]&&s(u)}),r}function fM(t={},e,n){const i=[],r={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]},s=(a,o)=>{!Array.isArray(a)||a.forEach(l=>{const u=typeof l.type=="symbol";o==="default"&&(o="container-end"),u&&l.children?s(l.children,"default"):l.type&&(l.type.name==="SwiperSlide"||l.type.name==="AsyncComponentWrapper")?i.push(l):r[o]&&r[o].push(l)})};return Object.keys(t).forEach(a=>{const o=t[a]();s(o,a)}),n.value=e.value,e.value=i,{slides:i,slots:r}}function hme({swiper:t,slides:e,passedParams:n,changedParams:i,nextEl:r,prevEl:s,paginationEl:a,scrollbarEl:o}){const l=i.filter(E=>E!=="children"&&E!=="direction"),{params:u,pagination:c,navigation:f,scrollbar:h,virtual:p,thumbs:m}=t;let y,v,_,b,x;i.includes("thumbs")&&n.thumbs&&n.thumbs.swiper&&u.thumbs&&!u.thumbs.swiper&&(y=!0),i.includes("controller")&&n.controller&&n.controller.control&&u.controller&&!u.controller.control&&(v=!0),i.includes("pagination")&&n.pagination&&(n.pagination.el||a)&&(u.pagination||u.pagination===!1)&&c&&!c.el&&(_=!0),i.includes("scrollbar")&&n.scrollbar&&(n.scrollbar.el||o)&&(u.scrollbar||u.scrollbar===!1)&&h&&!h.el&&(b=!0),i.includes("navigation")&&n.navigation&&(n.navigation.prevEl||s)&&(n.navigation.nextEl||r)&&(u.navigation||u.navigation===!1)&&f&&!f.prevEl&&!f.nextEl&&(x=!0);const T=E=>{!t[E]||(t[E].destroy(),E==="navigation"?(u[E].prevEl=void 0,u[E].nextEl=void 0,t[E].prevEl=void 0,t[E].nextEl=void 0):(u[E].el=void 0,t[E].el=void 0))};l.forEach(E=>{if(ap(u[E])&&ap(n[E]))Rf(u[E],n[E]);else{const C=n[E];(C===!0||C===!1)&&(E==="navigation"||E==="pagination"||E==="scrollbar")?C===!1&&T(E):u[E]=n[E]}}),i.includes("children")&&p&&u.virtual.enabled?(p.slides=e,p.update(!0)):i.includes("children")&&t.lazy&&t.params.lazy.enabled&&t.lazy.load(),y&&m.init(
13)&&m.update(!0),v&&(t.controller.control=u.controller.control),_&&(a&&(u.pagination.el=a),c.init(),c.render(),c.update()),b&&(o&&(u.scrollbar.el=o),h.init(),h.updateSize(),h.setTranslate()),x&&(r&&(u.navigation.nextEl=r),s&&(u.navigation.prevEl=s),f.init(),f.update()),i.includes("allowSlideNext")&&(t.allowSlideNext=n.allowSlideNext),i.includes("allowSlidePrev")&&(t.allowSlidePrev=n.allowSlidePrev),i.includes("direction")&&t.changeDirection(n.direction,!1),t.update()}function pme(t){!t||t.destroyed||!t.params.virtual||t.params.virtual&&!t.params.virtual.enabled||(t.updateSlides(),t.updateProgress(),t.updateSlidesClasses(),t.lazy&&t.params.lazy.enabled&&t.lazy.load(),t.parallax&&t.params.parallax&&t.params.parallax.enabled&&t.parallax.setTranslate())}function mme(t,e,n){if(!n)return null;const i=t.value.isHorizontal()?{[t.value.rtlTranslate?"right":"left"]:`${n.offset}px`}:{top:`${n.offset}px`};return e.filter((r,s)=>s>=n.from&&s<=n.to).map(r=>(r.props||(r.props={}),r.props.style||(r.props.style={}),r.props.swiperRef=t,r.props.style=i,kr(r.type,{...r.props},r.children)))}const aWe={name:"Swiper",props:{tag:{type:String,default:"div"},wrapperTag:{type:String,default:"div"},modules:{type:Array,default:void 0},init:{type:Boolean,default:void 0},direction:{type:String,default:void 0},touchEventsTarget:{type:String,default:void 0},initialSlide:{type:Number,default:void 0},speed:{type:Number,default:void 0},cssMode:{type:Boolean,default:void 0},updateOnWindowResize:{type:Boolean,default:void 0},resizeObserver:{type:Boolean,default:void 0},nested:{type:Boolean,default:void 0},focusableElements:{type:String,default:void 0},width:{type:Number,default:void 0},height:{type:Number,default:void 0},preventInteractionOnTransition:{type:Boolean,default:void 0},userAgent:{type:String,default:void 0},url:{type:String,default:void 0},edgeSwipeDetection:{type:[Boolean,String],default:void 0},edgeSwipeThreshold:{type:Number,default:void 0},autoHeight:{type:Boolean,default:void 0},setWrapperSize:{type:Boolean,default:void 0},virtualTranslate:{type:Boolean,default:void 0},effect:{type:String,default:void 0},breakpoints:{type:Object,default:void 0},spaceBetween:{type:Number,default:void 0},slidesPerView:{type:[Number,String],default:void 0},slidesPerGroup:{type:Number,default:void 0},slidesPerGroupSkip:{type:Number,default:void 0},slidesPerGroupAuto:{type:Boolean,default:void 0},centeredSlides:{type:Boolean,default:void 0},centeredSlidesBounds:{type:Boolean,default:void 0},slidesOffsetBefore:{type:Number,default:void 0},slidesOffsetAfter:{type:Number,default:void 0},normalizeSlideIndex:{type:Boolean,default:void 0},centerInsufficientSlides:{type:Boolean,default:void 0},watchOverflow:{type:Boolean,default:void 0},roundLengths:{type:Boolean,default:void 0},touchRatio:{type:Number,default:void 0},touchAngle:{type:Number,default:void 0},simulateTouch:{type:Boolean,default:void 0},shortSwipes:{type:Boolean,default:void 0},longSwipes:{type:Boolean,default:void 0},longSwipesRatio:{type:Number,default:void 0},longSwipesMs:{type:Number,default:void 0},followFinger:{type:Boolean,default:void 0},allowTouchMove:{type:Boolean,default:void 0},threshold:{type:Number,default:void 0},touchMoveStopPropagation:{type:Boolean,default:void 0},touchStartPreventDefault:{type:Boolean,default:void 0},touchStartForcePreventDefault:{type:Boolean,default:void 0},touchReleaseOnEdges:{type:Boolean,default:void 0},uniqueNavElements:{type:Boolean,default:void 0},resistance:{type:Boolean,default:void 0},resistanceRatio:{type:Number,default:void 0},watchSlidesProgress:{type:Boolean,default:void 0},grabCursor:{type:Boolean,default:void 0},preventClicks:{type:Boolean,default:void 0},preventClicksPropagation:{type:Boolean,default:void 0},slideToClickedSlide:{type:Boolean,default:void 0},preloadImages:{type:Boolean,default:void 0},updateOnImagesReady:{type:Boolean,default:void 0},loop:{type:Boolean,default:void 0},loopAdditionalSlides:{type:Number,default:void 0},loopedSlides:{type:Number,default:void 0},loopFillGroupWithBlank:{type:Boolean,default:void 0},loopPreventsSlide:{type:Boolean,default:void 0},rewind:{type:Boolean,default:void 0},allowSlidePrev:{type:Boolean,default:void 0},allowSlideNext:{type:Boolean,default:void 0},swipeHandler:{type:Boolean,default:void 0},noSwiping:{type:Boolean,default:void 0},noSwipingClass:{type:String,default:void 0},noSwipingSelector:{type:String,default:void 0},passiveListeners:{type:Boolean,default:void 0},containerModifierClass:{type:String,default:void 0},slideClass:{type:String,default:void 0},slideBlankClass:{type:String,default:void 0},slideActiveClass:{type:String,default:void 0},slideDuplicateActiveClass:{type:String,default:void 0},slideVisibleClass:{type:String,default:void 0},slideDuplicateClass:{type:String,default:void 0},slideNextClass:{type:String,default:void 0},slideDuplicateNextClass:{type:String,default:void 0},slidePrevClass:{type:String,default:void 0},slideDuplicatePrevClass:{type:String,default:void 0},wrapperClass:{type:String,default:void 0},runCallbacksOnInit:{type:Boolean,default:void 0},observer:{type:Boolean,default:void 0},observeParents:{type:Boolean,default:void 0},observeSlideChildren:{type:Boolean,default:void 0},a11y:{type:[Boolean,Object],default:void 0},autoplay:{type:[Boolean,Object],default:void 0},controller:{type:Object,default:void 0},coverflowEffect:{type:Object,default:void 0},cubeEffect:{type:Object,default:void 0},fadeEffect:{type:Object,default:void 0},flipEffect:{type:Object,default:void 0},creativeEffect:{type:Object,default:void 0},cardsEffect:{type:Object,default:void 0},hashNavigation:{type:[Boolean,Object],default:void 0},history:{type:[Boolean,Object],default:void 0},keyboard:{type:[Boolean,Object],default:void 0},lazy:{type:[Boolean,Object],default:void 0},mousewheel:{type:[Boolean,Object],default:void 0},navigation:{type:[Boolean,Object],default:void 0},pagination:{type:[Boolean,Object],default:void 0},parallax:{type:[Boolean,Object],default:void 0},scrollbar:{type:[Boolean,Object],default:void 0},thumbs:{type:Object,default:void 0},virtual:{type:[Boolean,Object],default:void 0},zoom:{type:[Boolean,Object],default:void 0},grid:{type:[Object],default:void 0},freeMode:{type:[Boolean,Object],default:void 0}},emits:["_beforeBreakpoint","_containerClasses","_slideClass","_slideClasses","_swiper","activeIndexChange","afterInit","autoplay","autoplayStart","autoplayStop","beforeDestroy","beforeInit","beforeLoopFix","beforeResize","beforeSlideChangeStart","beforeTransitionStart","breakpoint","changeDirection","click","disable","doubleTap","doubleClick","destroy","enable","fromEdge","hashChange","hashSet","imagesReady","init","keyPress","lazyImageLoad","lazyImageReady","lock","loopFix","momentumBounce","navigationHide","navigationShow","observerUpdate","orientationchange","paginationHide","paginationRender","paginationShow","paginationUpdate","progress","reachBeginning","reachEnd","realIndexChange","resize","scroll","scrollbarDragEnd","scrollbarDragMove","scrollbarDragStart","setTransition","setTranslate","slideChange","slideChangeTransitionEnd","slideChangeTransitionStart","slideNextTransitionEnd","slideNextTransitionStart","slidePrevTransitionEnd","slidePrevTransitionStart","slideResetTransitionStart","slideResetTransitionEnd","sliderMove","sliderFirstMove","slidesLengthChange","slidesGridLengthChange","snapGridLengthChange","snapIndexChange","swiper","tap","toEdge","touchEnd","touchMove","touchMoveOpposite","touchStart","transitionEnd","transitionStart","unlock","update","zoomChange"],setup(t,{slots:e,emit:n}){const{tag:i,wrapperTag:r}=t,s=tn("swiper"),a=tn(null),o=tn(!1),l=tn(!1),u=tn(null),c=tn(null),f=tn(null),h={value:[]},p={value:[]},m=tn(null),y=tn(null),v=tn(null),_=tn(null),{params:b,passedParams:x}=k5(t);fM(e,h,p),f.value=x,p.value=h.value;const T=()=>{fM(e,h,p),o.value=!0};if(b.onAny=(C,...D)=>{n(C,...D)},Object.assign(b.on,{_beforeBreakpoint:T,_containerClasses(C,D){s.value=D}}),c.value=ume(b),c.value.loopCreate=()=>{},c.value.loopDestroy=()=>{},b.loop&&(c.value.loopedSlides=FG(h.value,b)),c.value.virtual&&c.value.params.virtual.enabled){c.value.virtual.slides=h.value;
13const C={cache:!1,slides:h.value,renderExternal:D=>{a.value=D},renderExternalUpdate:!1};Rf(c.value.params.virtual,C),Rf(c.value.originalParams.virtual,C)}Lg(()=>{!l.value&&c.value&&(c.value.emitSlidesClasses(),l.value=!0);const{passedParams:C}=k5(t),D=dme(C,f.value,h.value,p.value);f.value=C,(D.length||o.value)&&c.value&&!c.value.destroyed&&hme({swiper:c.value,slides:h.value,passedParams:C,changedParams:D,nextEl:m.value,prevEl:y.value,scrollbarEl:_.value,paginationEl:v.value}),o.value=!1}),or(a,()=>{Ig(()=>{pme(c.value)})}),yu(()=>{!u.value||(cme({el:u.value,nextEl:m.value,prevEl:y.value,paginationEl:v.value,scrollbarEl:_.value,swiper:c.value},b),n("swiper",c.value))}),Cp(()=>{c.value&&!c.value.destroyed&&c.value.destroy(!0,!1)});function E(C){return b.virtual?mme(c,C,a.value):!b.loop||c.value&&c.value.destroyed?(C.forEach(D=>{D.props||(D.props={}),D.props.swiperRef=c}),C):fme(c,C,b)}return()=>{const{slides:C,slots:D}=fM(e,h,p);return kr(i,{ref:u,class:IG(s.value)},[D["container-start"],OG(t)&&[kr("div",{ref:y,class:"swiper-button-prev"}),kr("div",{ref:m,class:"swiper-button-next"})],kG(t)&&kr("div",{ref:_,class:"swiper-scrollbar"}),RG(t)&&kr("div",{ref:v,class:"swiper-pagination"}),kr(r,{class:"swiper-wrapper"},[D["wrapper-start"],E(C),D["wrapper-end"]]),D["container-end"]])}}},oWe={name:"SwiperSlide",props:{tag:{type:String,default:"div"},swiperRef:{type:Object,required:!1},zoom:{type:Boolean,default:void 0},virtualIndex:{type:[String,Number],default:void 0}},setup(t,{slots:e}){let n=!1;const{swiperRef:i}=t,r=tn(null),s=tn("swiper-slide");function a(l,u,c){u===r.value&&(s.value=c)}yu(()=>{!i.value||(i.value.on("_slideClass",a),n=!0)}),Ak(()=>{n||!i||!i.value||(i.value.on("_slideClass",a),n=!0)}),Lg(()=>{!r.value||!i||!i.value||i.value.destroyed&&s.value!=="swiper-slide"&&(s.value="swiper-slide")}),Cp(()=>{!i||!i.value||i.value.off("_slideClass",a)});const o=rp(()=>({isActive:s.value.indexOf("swiper-slide-active")>=0||s.value.indexOf("swiper-slide-duplicate-active")>=0,isVisible:s.value.indexOf("swiper-slide-visible")>=0,isDuplicate:s.value.indexOf("swiper-slide-duplicate")>=0,isPrev:s.value.indexOf("swiper-slide-prev")>=0||s.value.indexOf("swiper-slide-duplicate-prev")>=0,isNext:s.value.indexOf("swiper-slide-next")>=0||s.value.indexOf("swiper-slide-duplicate-next")>=0}));return()=>kr(t.tag,{class:IG(`${s.value}`),ref:r,"data-swiper-slide-index":t.virtualIndex},t.zoom?kr("div",{class:"swiper-zoom-container","data-swiper-zoom":typeof t.zoom=="number"?t.zoom:void 0},e.default&&e.default(o.value)):e.default&&e.default(o.value))}};function nc(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function NG(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}/*!
14 * GSAP 3.14.2
15 * https://gsap.com
16 *
17 * @license Copyright 2008-2025, GreenSock. All rights reserved.
18 * Subject to the terms at https://gsap.com/standard-license
19 * @author: Jack Doyle, [email protected]
20*/var za={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},Qm={duration:.5,overwrite:!1,delay:0},cI,Br,xi,Co=1e8,Jn=1/Co,IP=Math.PI*2,gme=IP/4,_me=0,BG=Math.sqrt,vme=Math.cos,yme=Math.sin,wr=function(e){return typeof e=="string"},Bi=function(e){return typeof e=="function"},Mc=function(e){return typeof e=="number"},fI=function(e){return typeof e>"u"},fu=function(e){return typeof e=="object"},ea=function(e){return e!==!1},dI=function(){return typeof window<"u"},Ox=function(e){return Bi(e)||wr(e)},UG=typeof ArrayBuffer=="function"&&ArrayBuffer.isView||function(){},rs=Array.isArray,bme=/random\([^)]+\)/g,xme=/,\s*/g,I5=/(?:-?\.?\d|\.)+/gi,$G=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,Q0=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,dM=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,zG=/[+-]=-?[.\d]+/,Sme=/[^,'"\[\]\s]+/gi,Tme=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,Ai,Fl,LP,hI,Wa={},g2={},HG,VG=function(e){return(g2=Jm(e,Wa))&&ua},pI=function(e,n){return console.warn("Invalid property",e,"set to",n,"Missing plugin? gsap.registerPlugin()")},Fy=function(e,n){return!n&&console.warn(e)},WG=function(e,n){return e&&(Wa[e]=n)&&g2&&(g2[e]=n)||Wa},Ny=function(){return 0},Eme={suppressEvents:!0,isStart:!0,kill:!1},bT={suppressEvents:!0,kill:!1},wme={suppressEvents:!0},mI={},Yf=[],FP={},GG,Da={},hM={},L5=30,xT=[],gI="",_I=function(e){var n=e[0],i,r;if(fu(n)||Bi(n)||(e=[e]),!(i=(n._gsap||{}).harness)){for(r=xT.length;r--&&!xT[r].targetTest(n););i=xT[r]}for(r=e.length;r--;)e[r]&&(e[r]._gsap||(e[r]._gsap=new mj(e[r],i)))||e.splice(r,1);return e},Ih=function(e){return e._gsap||_I(Ao(e))[0]._gsap},jG=function(e,n,i){return(i=e[n])&&Bi(i)?e[n]():fI(i)&&e.getAttribute&&e.getAttribute(n)||i}
20,ta=function(e,n){return(e=e.split(",")).forEach(n)||e},Wi=function(e){return Math.round(e*1e5)/1e5||0},Ci=function(e){return Math.round(e*1e7)/1e7||0},Sm=function(e,n){var i=n.charAt(0),r=parseFloat(n.substr(2));return e=parseFloat(e),i==="+"?e+r:i==="-"?e-r:i==="*"?e*r:e/r},Cme=function(e,n){for(var i=n.length,r=0;e.indexOf(n[r])<0&&++r<i;);return r<i},_2=function(){var e=Yf.length,n=Yf.slice(0),i,r;for(FP={},Yf.length=0,i=0;i<e;i++)r=n[i],r&&r._lazy&&(r.render(r._lazy[0],r._lazy[1],!0)._lazy=0)},vI=function(e){return!!(e._initted||e._startAt||e.add)},qG=function(e,n,i,r){Yf.length&&!Br&&_2(),e.render(n,i,r||!!(Br&&n<0&&vI(e))),Yf.length&&!Br&&_2()},XG=function(e){var n=parseFloat(e);return(n||n===0)&&(e+"").match(Sme).length<2?n:wr(e)?e.trim():e},YG=function(e){return e},Ga=function(e,n){for(var i in n)i in e||(e[i]=n[i]);return e},Ame=function(e){return function(n,i){for(var r in i)r in n||r==="duration"&&e||r==="ease"||(n[r]=i[r])}},Jm=function(e,n){for(var i in n)e[i]=n[i];return e},F5=function t(e,n){for(var i in n)i!=="__proto__"&&i!=="constructor"&&i!=="prototype"&&(e[i]=fu(n[i])?t(e[i]||(e[i]={}),n[i]):n[i]);return e},v2=function(e,n){var i={},r;for(r in e)r in n||(i[r]=e[r]);return i},zv=function(e){var n=e.parent||Ai,i=e.keyframes?Ame(rs(e.keyframes)):Ga;if(ea(e.inherit))for(;n;)i(e,n.vars.defaults),n=n.parent||n._dp;return e},Mme=function(e,n){for(var i=e.length,r=i===n.length;r&&i--&&e[i]===n[i];);return i<0},KG=function(e,n,i,r,s){i===void 0&&(i="_first"),r===void 0&&(r="_last");var a=e[r],o;if(s)for(o=n[s];a&&a[s]>o;)a=a._prev;return a?(n._next=a._next,a._next=n):(n._next=e[i],e[i]=n),n._next?n._next._prev=n:e[r]=n,n._prev=a,n.parent=n._dp=e,n},ow=function(e,n,i,r){i===void 0&&(i="_first"),r===void 0&&(r="_last");var s=n._prev,a=n._next;s?s._next=a:e[i]===n&&(e[i]=a),a?a._prev=s:e[r]===n&&(e[r]=s),n._next=n._prev=n.parent=null},dd=function(e,n){e.parent&&(!n||e.parent.autoRemoveChildren)&&e.parent.remove&&e.parent.remove(e),e._act=0},Lh=function(e,n){if(e&&(!n||n._end>e._dur||n._start<0))for(var i=e;i;)i._dirty=1,i=i.parent;return e},Dme=function(e){for(var n=e.parent;n&&n.parent;)n._dirty=1,n.totalDuration(),n=n.parent;return e},NP=function(e,n,i,r){return e._startAt&&(Br?e._startAt.revert(bT):e.vars.immediateRender&&!e.vars.autoRevert||e._startAt.render(n,!0,r))},Pme=function t(e){return!e||e._ts&&t(e.parent)},N5=function(e){return e._repeat?eg(e._tTime,e=e.duration()+e._rDelay)*e:0},eg=function(e,n){var i=Math.floor(e=Ci(e/n));return e&&i===e?i-1:i},y2=function(e,n){return(e-n._start)*n._ts+(n._ts>=0?0:n._dirty?n.totalDuration():n._tDur)},lw=function(e){return e._end=Ci(e._start+(e._tDur/Math.abs(e._ts||e._rts||Jn)||0))},uw=function(e,n){var i=e._dp;return i&&i.smoothChildTiming&&e._ts&&(e._start=Ci(i._time-(e._ts>0?n/e._ts:((e._dirty?e.totalDuration():e._tDur)-n)/-e._ts)),lw(e),i._dirty||Lh(i,e)),e},ZG=function(e,n){var i;if((n._time||!n._dur&&n._initted||n._start<e._time&&(n._dur||!n.add))&&(i=y2(e.rawTime(),n),(!n._dur||Fb(0,n.totalDuration(),i)-n._tTime>Jn)&&n.render(i,!0)),Lh(e,n)._dp&&e._initted&&e._time>=e._dur&&e._ts){if(e._dur<e.duration())for(i=e;i._dp;)i.rawTime()>=0&&i.totalTime(i._tTime),i=i._dp;e._zTime=-Jn}},Hl=function(e,n,i,r){return n.parent&&dd(n),n._start=Ci((Mc(i)?i:i||e!==Ai?go(e,i,n):e._time)+n._delay),n._end=Ci(n._start+(n.totalDuration()/Math.abs(n.timeScale())||0)),KG(e,n,"_first","_last",e._sort?"_start":0),BP(n)||(e._recent=n),r||ZG(e,n),e._ts<0&&uw(e,e._tTime),e},QG=function(e,n){return(Wa.ScrollTrigger||pI("scrollTrigger",n))&&Wa.ScrollTrigger.create(n,e)},JG=function(e,n,i,r,s){if(bI(e,n,s),!e._initted)return 1;if(!i&&e._pt&&!Br&&(e._dur&&e.vars.lazy!==!1||!e._dur&&e.vars.lazy)&&GG!==ka.frame)return Yf.push(e),e._lazy=[s,r],1},Ome=function t(e){var n=e.parent;return n&&n._ts&&n._initted&&!n._lock&&(n.rawTime()<0||t(n))},BP=function(e){var n=e.data;return n==="isFromStart"||n==="isStart"},Rme=function(e,n,i,r){var s=e.ratio,a=n<0||!n&&(!e._start&&Ome(e)&&!(!e._initted&&BP(e))||(e._ts<0||e._dp._ts<0)&&!BP(e))?0:1,o=e._rDelay,l=0,u,c,f;if(o&&e._repeat&&(l=Fb(0,e._tDur,n),c=eg(l,o),e._yoyo&&c&1&&(a=1-a),c!==eg(e._tTime,o)&&(s=1-a,e.vars.repeatRefresh&&e._initted&&e.invali
vendor: 4,937 bytes, line 20
20date())),a!==s||Br||r||e._zTime===Jn||!n&&e._zTime){if(!e._initted&&JG(e,n,r,i,l))return;for(f=e._zTime,e._zTime=n||(i?Jn:0),i||(i=n&&!f),e.ratio=a,e._from&&(a=1-a),e._time=0,e._tTime=l,u=e._pt;u;)u.r(a,u.d),u=u._next;n<0&&NP(e,n,i,!0),e._onUpdate&&!i&&Na(e,"onUpdate"),l&&e._repeat&&!i&&e.parent&&Na(e,"onRepeat"),(n>=e._tDur||n<0)&&e.ratio===a&&(a&&dd(e,1),!i&&!Br&&(Na(e,a?"onComplete":"onReverseComplete",!0),e._prom&&e._prom()))}else e._zTime||(e._zTime=n)},kme=function(e,n,i){var r;if(i>n)for(r=e._first;r&&r._start<=i;){if(r.data==="isPause"&&r._start>n)return r;r=r._next}else for(r=e._last;r&&r._start>=i;){if(r.data==="isPause"&&r._start<n)return r;r=r._prev}},tg=function(e,n,i,r){var s=e._repeat,a=Ci(n)||0,o=e._tTime/e._tDur;return o&&!r&&(e._time*=a/e._dur),e._dur=a,e._tDur=s?s<0?1e10:Ci(a*(s+1)+e._rDelay*s):a,o>0&&!r&&uw(e,e._tTime=e._tDur*o),e.parent&&lw(e),i||Lh(e.parent,e),e},B5=function(e){return e instanceof Es?Lh(e):tg(e,e._dur)},Ime={_start:0,endTime:Ny,totalDuration:Ny},go=function t(e,n,i){var r=e.labels,s=e._recent||Ime,a=e.duration()>=Co?s.endTime(!1):e._dur,o,l,u;return wr(n)&&(isNaN(n)||n in r)?(l=n.charAt(0),u=n.substr(-1)==="%",o=n.indexOf("="),l==="<"||l===">"?(o>=0&&(n=n.replace(/=/,"")),(l==="<"?s._start:s.endTime(s._repeat>=0))+(parseFloat(n.substr(1))||0)*(u?(o<0?s:i).totalDuration()/100:1)):o<0?(n in r||(r[n]=a),r[n]):(l=parseFloat(n.charAt(o-1)+n.substr(o+1)),u&&i&&(l=l/100*(rs(i)?i[0]:i).totalDuration()),o>1?t(e,n.substr(0,o-1),i)+l:a+l)):n==null?a:+n},Hv=function(e,n,i){var r=Mc(n[1]),s=(r?2:1)+(e<2?0:1),a=n[s],o,l;if(r&&(a.duration=n[1]),a.parent=i,e){for(o=a,l=i;l&&!("immediateRender"in o);)o=l.vars.defaults||{},l=ea(l.vars.inherit)&&l.parent;a.immediateRender=ea(o.immediateRender),e<2?a.runBackwards=1:a.startAt=n[s-1]}return new Zi(n[0],a,n[s+1])},Ed=function(e,n){return e||e===0?n(e):n},Fb=function(e,n,i){return i<e?e:i>n?n:i},Zr=function(e,n){return!wr(e)||!(n=Tme.exec(e))?"":n[1]},Lme=function(e,n,i){return Ed(i,function(r){return Fb(e,n,r)})},UP=[].slice,ej=function(e,n){return e&&fu(e)&&"length"in e&&(!n&&!e.length||e.length-1 in e&&fu(e[0]))&&!e.nodeType&&e!==Fl},Fme=function(e,n,i){return i===void 0&&(i=[]),e.forEach(function(r){var s;return wr(r)&&!n||ej(r,1)?(s=i).push.apply(s,Ao(r)):i.push(r)})||i},Ao=function(e,n,i){return xi&&!n&&xi.selector?xi.selector(e):wr(e)&&!i&&(LP||!ng())?UP.call((n||hI).querySelectorAll(e),0):rs(e)?Fme(e,i):ej(e)?UP.call(e,0):e?[e]:[]},$P=function(e){return e=Ao(e)[0]||Fy("Invalid scope")||{},function(n){var i=e.current||e.nativeElement||e;return Ao(n,i.querySelectorAll?i:i===e?Fy("Invalid scope")||hI.createElement("div"):e)}},tj=function(e){return e.sort(function(){return .5-Math.random()})},nj=function(e){if(Bi(e))return e;var n=fu(e)?e:{each:e},i=Fh(n.ease),r=n.from||0,s=parseFloat(n.base)||0,a={},o=r>0&&r<1,l=isNaN(r)||o,u=n.axis,c=r,f=r;return wr(r)?c=f={center:.5,edges:.5,end:1}[r]||0:!o&&l&&(c=r[0],f=r[1]),function(h,p,m){var y=(m||n).length,v=a[y],_,b,x,T,E,C,D,R,A;if(!v){if(A=n.grid==="auto"?0:(n.grid||[1,Co])[1],!A){for(D=-Co;D<(D=m[A++].getBoundingClientRect().left)&&A<y;);A<y&&A--}for(v=a[y]=[],_=l?Math.min(A,y)*c-.5:r%A,b=A===Co?0:l?y*f/A-.5:r/A|0,D=0,R=Co,C=0;C<y;C++)x=C%A-_,T=b-(C/A|0),v[C]=E=u?Math.abs(u==="y"?T:x):BG(x*x+T*T),E>D&&(D=E),E<R&&(R=E);r==="random"&&tj(v),v.max=D-R,v.min=R,v.v=y=(parseFloat(n.amount)||parseFloat(n.each)*(A>y?y-1:u?u==="y"?y/A:A:Math.max(A,y/A))||0)*(r==="edges"?-1:1),v.b=y<0?s-y:s,v.u=Zr(n.amount||n.each)||0,i=i&&y<0?dj(i):i}return y=(v[h]-v.min)/v.max||0,Ci(v.b+(i?i(y):y)*v.v)+v.u}},zP=function(e){var n=Math.pow(10,((e+"").split(".")[1]||"").length);return function(i){var r=Ci(Math.round(parseFloat(i)/e)*e*n);return(r-r%1)/n+(Mc(i)?0:Zr(i))}},ij=function(e,n){var i=rs(e),r,s;return!i&&fu(e)&&(r=i=e.radius||Co,e.values?(e=Ao(e.values),(s=!Mc(e[0]))&&(r*=r)):e=zP(e.increment)),Ed(n,i?Bi(e)?function(a){return s=e(a),Math.abs(s-a)<=r?s:a}:function(a){for(var o=parseFloat(s?a.x:a),l=parseFloat(s?a.y:0),u=Co,c=0,f=e.length,h,p;f--;)s?(h=e[f].x-o,p=e[f].y-l,h=h*h+p*p):h=Math.abs(e[f]-o),h<u&&(u=h,c=f);return c=!r||u<=r?e[c]:a,s||c===a||Mc(a)?c:c+Zr(a)}:zP(e))},rj=function(e,n,i,r){return Ed(rs(e)?!n:i===!0?!!(i=0):!r,function(){return rs(e)?e[~~(Math.random()*e.length)]:(i=i||1e-5)&&(r=i<1?Math.pow(10,(i+"").length-2):1)&&Math.floor(Math.round((e-i/2+Math.random()*(n-e+i*.99))/i)*i*r)/r})},Nme=function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return function(r){return n.reduce(function(s,a){return a(s)},r)}},Bme=function(e,n){return function(i){return e(parseFloat(i))+(n||Zr(i))}},Ume=function(e,n,i){return aj(e,n,0,1,i)},sj=function(e,n,i){return Ed(i,function(r){return e[~~n(r)]})},$me=function t(e,n,i){var r=n-e;return rs(e)?sj(e,t(0,e.length),n):Ed(i,function(s){return(r+(s-e)%r)%r+e})},zme=function t(e,n,i){var r=n-e,s=r*2;return rs(e)?sj(e,t(0,e.length-1),n):Ed(i,function(a){return a=(s+(a-e)%s)%s||
200,e+(a>r?s-a:a)})},By=function(e){return e.replace(bme,function(n){var i=n.indexOf("[")+1,r=n.substring(i||7,i?n.indexOf("]"):n.length-1).split(xme);return rj(i?r:+r[0],i?0:+r[1],+r[2]||1e-5)})},aj=function(e,n,i,r,s){var a=n-e,o=r-i;return Ed(s,function(l){return i+((l-e)/a*o||0)})},Hme=function t(e,n,i,r){var s=isNaN(e+n)?0:function(p){return(1-p)*e+p*n};if(!s){var a=wr(e),o={},l,u,c,f,h;if(i===!0&&(r=1)&&(i=null),a)e={p:e},n={p:n};else if(rs(e)&&!rs(n)){for(c=[],f=e.length,h=f-2,u=1;u<f;u++)c.push(t(e[u-1],e[u]));f--,s=function(m){m*=f;var y=Math.min(h,~~m);return c[y](m-y)},i=n}else r||(e=Jm(rs(e)?[]:{},e));if(!c){for(l in n)yI.call(o,e,l,"get",n[l]);s=function(m){return TI(m,o)||(a?e.p:e)}}}return Ed(i,s)},U5=function(e,n,i){var r=e.labels,s=Co,a,o,l;for(a in r)o=r[a]-n,o<0==!!i&&o&&s>(o=Math.abs(o))&&(l=a,s=o);return l},Na=function(e,n,i){var r=e.vars,s=r[n],a=xi,o=e._ctx,l,u,c;if(!!s)return l=r[n+"Params"],u=r.callbackScope||e,i&&Yf.length&&_2(),o&&(xi=o),c=l?s.apply(u,l):s.call(u),xi=a,c},pv=function(e){return dd(e),e.scrollTrigger&&e.scrollTrigger.kill(!!Br),e.progress()<1&&Na(e,"onInterrupt"),e},J0,oj=[],lj=function(e){if(!!e)if(e=!e.name&&e.default||e,dI()||e.headless){var n=e.name,i=Bi(e),r=n&&!i&&e.init?function(){this._props=[]}:e,s={init:Ny,render:TI,add:yI,kill:rge,modifier:ige,rawVars:0},a={targetTest:0,get:0,getSetter:SI,aliases:{},register:0};if(ng(),e!==r){if(Da[n])return;Ga(r,Ga(v2(e,s),a)),Jm(r.prototype,Jm(s,v2(e,a))),Da[r.prop=n]=r,e.targetTest&&(xT.push(r),mI[n]=1),n=(n==="css"?"CSS":n.charAt(0).toUpperCase()+n.substr(1))+"Plugin"}WG(n,r),e.register&&e.register(ua,r,na)}else oj.push(e)},Qn=255,mv={aqua:[0,Qn,Qn],lime:[0,Qn,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,Qn],navy:[0,0,128],white:[Qn,Qn,Qn],olive:[128,128,0],yellow:[Qn,Qn,0],orange:[Qn,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[Qn,0,0],pink:[Qn,192,203],cyan:[0,Qn,Qn],transparent:[Qn,Qn,Qn,0]},pM=function(e,n,i){return e+=e<0?1:e>1?-1:0,(e*6<1?n+(i-n)*e*6:e<.5?i:e*3<2?n+(i-n)*(2/3-e)*6:n)*Qn+.5|0},uj=function(e,n,i){var r=e?Mc(e)?[e>>16,e>>8&Qn,e&Qn]:0:mv.black,s,a,o,l,u,c,f,h,p,m;if(!r){if(e.substr(-1)===","&&(e=e.substr(0,e.length-1)),mv[e])r=mv[e];else if(e.charAt(0)==="#"){if(e.length<6&&(s=e.charAt(1),a=e.charAt(2),o=e.charAt(3),e="#"+s+s+a+a+o+o+(e.length===5?e.charAt(4)+e.charAt(4):"")),e.length===9)return r=parseInt(e.substr(1,6),16),[r>>16,r>>8&Qn,r&Qn,parseInt(e.substr(7),16)/255];e=parseInt(e.substr(1),16),r=[e>>16,e>>8&Qn,e&Qn]}else if(e.substr(0,3)==="hsl"){if(r=m=e.match(I5),!n)l=+r[0]%360/360,u=+r[1]/100,c=+r[2]/100,a=c<=.5?c*(u+1):c+u-c*u,s=c*2-a,r.length>3&&(r[3]*=1),r[0]=pM(l+1/3,s,a),r[1]=pM(l,s,a),r[2]=pM(l-1/3,s,a);else if(~e.indexOf("="))return r=e.match($G),i&&r.length<4&&(r[3]=1),r}else r=e.match(I5)||mv.transparent;r=r.map(Number)}return n&&!m&&(s=r[0]/Qn,a=r[1]/Qn,o=r[2]/Qn,f=Math.max(s,a,o),h=Math.min(s,a,o),c=(f+h)/2,f===h?l=u=0:(p=f-h,u=c>.5?p/(2-f-h):p/(f+h),l=f===s?(a-o)/p+(a<o?6:0):f===a?(o-s)/p+2:(s-a)/p+4,l*=60),r[0]=~~(l+.5),r[1]=~~(u*100+.5),r[2]=~~(c*100+.5)),i&&r.length<4&&(r[3]=1),r},cj=function(e){var n=[],i=[],r=-1;return e.split(Kf).forEach(function(s){var a=s.match(Q0)||[];n.push.apply(n,a),i.push(r+=a.length+1)}),n.c=i,n},$5=function(e,n,i){var r="",s=(e+r).match(Kf),a=n?"hsla(":"rgba(",o=0,l,u,c,f;if(!s)return e;if(s=s.map(function(h){return(h=uj(h,n,1))&&a+(n?h[0]+","+h[1]+"%,"+h[2]+"%,"+h[3]:h.join(","))+")"}),i&&(c=cj(e),l=i.c,l.join(r)!==c.c.join(r)))for(u=e.replace(Kf,"1").split(Q0),f=u.length-1;o<f;o++)r+=u[o]+(~l.indexOf(o)?s.shift()||a+"0,0,0,0)":(c.length?c:s.length?s:i).shift());if(!u)for(u=e.split(Kf),f=u.length-1;o<f;o++)r+=u[o]+s[o];return r+u[f]},Kf=function(){var t="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b",e;for(e in mv)t+="|"+e+"\\b";return new RegExp(t+")","gi")}(),Vme=/hsl[a]?\(/,fj=function(e){var n=e.join(" "),i;if(Kf.lastIndex=0,Kf.test(n))return i=Vme.test(n),e[1]=$5(e[1],i),e[0]=$5(e[0],i,cj(e[1])),!0},Uy,ka=function(){var t=Date.now,e=500,n=33,i=t(),r=i,s=1e3/240,a=s,o=[],l,u,c,f,h,p,m=function y(v){var _=t()-r,b=v===!0,x,T,E,C;if((_>e||_<0)&&(i+=_-n),r+=_,E=r-i,x=E-a,(x>0||b)&&(C=++f.frame,h=E-f.time*1e3,f.time=E=E/1e3,a+=x+(x>=s?4:s-x),T=1),b||(l=u(y)),T)for(p=0;p<o.length;p++)o[p](E,h,C,v)};return f={time:0,frame:0,tick:function(){m(!0)},deltaRatio:function(v){return h/(1e3/(v||60))},wake:function(){HG&&(!LP&&dI()&&(Fl=LP=window,hI=Fl.document||{},Wa.gsap=ua,(Fl.gsapVersions||(Fl.gsapVersions=[])).push(ua.version),VG(g2||Fl.GreenSockGlobals||!Fl.gsap&&Fl||{}),oj.forEach(lj)),c=typeof requestAnimationFrame<"u"&&requestAnimationFrame,l&&f.sleep(),u=c||function(v){return setTimeout(v,a-f.time*1e3+1|0)},Uy=1,m(2))},sleep:function(){(c?cancelAnimationFrame:clearTimeout)(l),Uy=0,u=Ny},lagSmoothing:function(v,_){e=v||1/0,n=Math.min(_||33,e)},fps:function(v){s=1e3/(v||240),a=f.time*1e3+s},add:function(v,_,b){var x=_?function(T,E,C,D){v(T,E,C,D),f.remove(x)}:v;return f.remove(v),o[b?"unshift":"push"](x),ng(),x},remove:function(v,_){~(_=o.indexOf(v))&&o.splice(_,1)&&p>=_&&p--},_listeners:o},f}(),ng=function(){return!Uy&&ka.wake()},An={},Wme=/^[\d.\-M][\d.\-,\s]/,Gme=/["']/g,jme=function(e){for(var n={},i=e.substr(1,e.length-3).split(":"),r=i[0],s=1,a=i.length,o,l,u;s<a;s++)l=i[s],o=s!==a-1?l.lastIndexOf(","):l.length,u=l.substr(0,o),n[r]=isNaN(u)?u.replace(Gme,"").trim():+u,r=l.substr(o+1).trim();return n},qme=function(e){var n=e.indexOf("(")+1,i=e.indexOf(")"),r=e.indexOf("(",n);return e.substring(n,~r&&r<i?e.indexOf(")",i+1):i)},Xme=function(e){var n=(e+"").split("("),i=An[n[0]];return i&&n.length>1&&i.config?i.config.apply(null,~e.indexOf("{")?[jme(n[1])]:qme(e).split(",").map(XG)):An._CE&&Wme.test(e)?An._CE("",e):i},dj=function(e){return function(n){return 1-e(1-n)}},hj=function t(e,n){for(var i=e._first,r;i;)i instanceof Es?t(i,n):i.vars.yoyoEase&&(!i._yoyo||!i._repeat)&&i._yoyo!==n&&(i.timeline?t(i.timeline,n):(r=i._ease,i._ease=i._yEase,i._yEase=r,i._yoyo=n)),i=i._next},Fh=function(e,n){return e&&(Bi(e)?e:An[e]||Xme(e))||n},Ap=function(e,n,i,r){i===void 0&&(i=function(l){return 1-n(1-l)}),r===void 0&&(r=function(l){return l<.5?n(l*2)/2:1-n((1-l)*2)/2});var s={easeIn:n,easeOut:i,easeInOut:r},a;return ta(e,function(o){An[o]=Wa[o]=s,An[a=o.toLowerCase()]=i;for(var l in s)An[a+(l==="easeIn"?".in":l==="easeOut"?".out":".inOut")]=An[o+"."+l]=s[l]}),s},pj=function(e){return function(n){return n<.5?(1-e(1-n*2))/2:.5+e((n-.5)*2)/2}},mM=function t(e,n,i){var r=n>=1?n:1,s=(i||(e?.3:.45))/(n<1?n:1),a=s/IP*(Math.asin(1/r)||0),o=function(c){return c===1?1:r*Math.pow(2,-10*c)*yme((c-a)*s)+1},l=e==="out"?o:e==="in"?function(u){return 1-o(1-u)}:pj(o);return s=IP/s,l.config=function(u,c){return t(e,u,c)},l},gM=function t(e,n){n===void 0&&(n=1.70158);var i=function(a){return a?--a*a*((n+1)*a+n)+1:0},r=e==="out"?i:e==="in"?function(s){return 1-i(1-s)}:pj(i);return r.config=function(s){return t(e,s)},r};ta("Linear,Quad,Cubic,Quart,Quint,Strong",function(t,e){var n=e<5?e+1:e;Ap(t+",Power"+(n-1),e?function(i){return Math.pow(i,n)}:function(i){return i},function(i){return 1-Math.pow(1-i,n)},function(i){return i<.5?Math.pow(i*2,n)/2:1-Math.pow((1-i)*2,n)/2})});An.Linear.easeNone=An.none=An.Linear.easeIn;Ap("Elastic",mM("in"),mM("out"),mM());(function(t,e){var n=1/e,i=2*n,r=2.5*n,s=function(o){return o<n?t*o*o:o<i?t*Math.pow(o-1.5/e,2)+.75:o<r?t*(o-=2.25/e)*o+.9375:t*Math.pow(o-2.625/e,2)+.984375};Ap("Bounce",function(a){return 1-s(1-a)},s)})(7.5625,2.75);Ap("Expo",function(t){return Math.pow(2,10*(t-1))*t+t*t*t*t*t*t*(1-t)});Ap("Circ",function(t){return-(BG(1-t*t)-1)});Ap("Sine",function(t){return t===1?1:-vme(t*gme)+1}
vendor: 11,799 bytes, line 20
20);Ap("Back",gM("in"),gM("out"),gM());An.SteppedEase=An.steps=Wa.SteppedEase={config:function(e,n){e===void 0&&(e=1);var i=1/e,r=e+(n?0:1),s=n?1:0,a=1-Jn;return function(o){return((r*Fb(0,a,o)|0)+s)*i}}};Qm.ease=An["quad.out"];ta("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(t){return gI+=t+","+t+"Params,"});var mj=function(e,n){this.id=_me++,e._gsap=this,this.target=e,this.harness=n,this.get=n?n.get:jG,this.set=n?n.getSetter:SI},$y=function(){function t(n){this.vars=n,this._delay=+n.delay||0,(this._repeat=n.repeat===1/0?-2:n.repeat||0)&&(this._rDelay=n.repeatDelay||0,this._yoyo=!!n.yoyo||!!n.yoyoEase),this._ts=1,tg(this,+n.duration,1,1),this.data=n.data,xi&&(this._ctx=xi,xi.data.push(this)),Uy||ka.wake()}var e=t.prototype;return e.delay=function(i){return i||i===0?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+i-this._delay),this._delay=i,this):this._delay},e.duration=function(i){return arguments.length?this.totalDuration(this._repeat>0?i+(i+this._rDelay)*this._repeat:i):this.totalDuration()&&this._dur},e.totalDuration=function(i){return arguments.length?(this._dirty=0,tg(this,this._repeat<0?i:(i-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},e.totalTime=function(i,r){if(ng(),!arguments.length)return this._tTime;var s=this._dp;if(s&&s.smoothChildTiming&&this._ts){for(uw(this,i),!s._dp||s.parent||ZG(s,this);s&&s.parent;)s.parent._time!==s._start+(s._ts>=0?s._tTime/s._ts:(s.totalDuration()-s._tTime)/-s._ts)&&s.totalTime(s._tTime,!0),s=s.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&i<this._tDur||this._ts<0&&i>0||!this._tDur&&!i)&&Hl(this._dp,this,this._start-this._delay)}return(this._tTime!==i||!this._dur&&!r||this._initted&&Math.abs(this._zTime)===Jn||!this._initted&&this._dur&&i||!i&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=i),qG(this,i,r)),this},e.time=function(i,r){return arguments.length?this.totalTime(Math.min(this.totalDuration(),i+N5(this))%(this._dur+this._rDelay)||(i?this._dur:0),r):this._time},e.totalProgress=function(i,r){return arguments.length?this.totalTime(this.totalDuration()*i,r):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>=0&&this._initted?1:0},e.progress=function(i,r){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-i:i)+N5(this),r):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},e.iteration=function(i,r){var s=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(i-1)*s,r):this._repeat?eg(this._tTime,s)+1:1},e.timeScale=function(i,r){if(!arguments.length)return this._rts===-Jn?0:this._rts;if(this._rts===i)return this;var s=this.parent&&this._ts?y2(this.parent._time,this):this._tTime;return this._rts=+i||0,this._ts=this._ps||i===-Jn?0:this._rts,this.totalTime(Fb(-Math.abs(this._delay),this.totalDuration(),s),r!==!1),lw(this),Dme(this)},e.paused=function(i){return arguments.length?(this._ps!==i&&(this._ps=i,i?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(ng(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==Jn&&(this._tTime-=Jn)))),this):this._ps},e.startTime=function(i){if(arguments.length){this._start=Ci(i);var r=this.parent||this._dp;return r&&(r._sort||!this.parent)&&Hl(r,this,this._start-this._delay),this}return this._start},e.endTime=function(i){return this._start+(ea(i)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},e.rawTime=function(i){var r=this.parent||this._dp;return r?i&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?y2(r.rawTime(i),this):this._tTime:this._tTime},e.revert=function(i){i===void 0&&(i=wme);var r=Br;return Br=i,vI(this)&&(this.timeline&&this.timeline.revert(i),this.totalTime(-.01,i.suppressEvents)),this.data!=="nested"&&i.kill!==!1&&this.kill(),Br=r,this},e.globalTime=function(i){for(var r=this,s=arguments.length?i:r.rawTime();r;)s=r._start+s/(Math.abs(r._ts)||1),r=r._dp;return!this.parent&&this._sat?this._sat.globalTime(i):s},e.repeat=function(i){return arguments.length?(this._repeat=i===1/0?-2:i,B5(this)):this._repeat===-2?1/0:this._repeat},e.repeatDelay=function(i){if(arguments.length){var r=this._time;return this._rDelay=i,B5(this),r?this.time(r):this}return this._rDelay},e.yoyo=function(i){return arguments.length?(this._yoyo=i,this):this._yoyo},e.seek=function(i,r){return this.totalTime(go(this,i),ea(r))},e.restart=function(i,r){return this.play().totalTime(i?-this._delay:0,ea(r)),this._dur||(this._zTime=-Jn),this},e.play=function(i,r){return i!=null&&this.seek(i,r),this.reversed(!1).paused(!1)},e.reverse=function(i,r){return i!=null&&this.seek(i||this.totalDuration(),r),this.reversed(!0).paused(!1)},e.pause=function(i,r){return i!=null&&this.seek(i,r),this.paused(!0)},e.resume=function(){return this.paused(!1)},e.reversed=function(i){return arguments.length?(!!i!==this.reversed()&&this.timeScale(-this._rts||(i?-Jn:0)),this):this._rts<0},e.invalidate=function(){return this._initted=this._act=0,this._zTime=-Jn,this},e.isActive=function(){var i=this.parent||this._dp,r=this._start,s;return!!(!i||this._ts&&this._initted&&i.isActive()&&(s=i.rawTime(!0))>=r&&s<this.endTime(!0)-Jn)},e.eventCallback=function(i,r,s){var a=this.vars;return arguments.length>1?(r?(a[i]=r,s&&(a[i+"Params"]=s),i==="onUpdate"&&(this._onUpdate=r)):delete a[i],this):a[i]},e.then=function(i){var r=this,s=r._prom;return new Promise(function(a){var o=Bi(i)?i:YG,l=function(){var c=r.then;r.then=null,s&&s(),Bi(o)&&(o=o(r))&&(o.then||o===r)&&(r.then=c),a(o),r.then=c};r._initted&&r.totalProgress()===1&&r._ts>=0||!r._tTime&&r._ts<0?l():r._prom=l})},e.kill=function(){pv(this)},t}();Ga($y.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-Jn,_prom:0,_ps:!1,_rts:1});var Es=function(t){NG(e,t);function e(i,r){var s;return i===void 0&&(i={}),s=t.call(this,i)||this,s.labels={},s.smoothChildTiming=!!i.smoothChildTiming,s.autoRemoveChildren=!!i.autoRemoveChildren,s._sort=ea(i.sortChildren),Ai&&Hl(i.parent||Ai,nc(s),r),i.reversed&&s.reverse(),i.paused&&s.paused(!0),i.scrollTrigger&&QG(nc(s),i.scrollTrigger),s}var n=e.prototype;return n.to=function(r,s,a){return Hv(0,arguments,this),this},n.from=function(r,s,a){return Hv(1,arguments,this),this},n.fromTo=function(r,s,a,o){return Hv(2,arguments,this),this},n.set=function(r,s,a){return s.duration=0,s.parent=this,zv(s).repeatDelay||(s.repeat=0),s.immediateRender=!!s.immediateRender,new Zi(r,s,go(this,a),1),this},n.call=function(r,s,a){return Hl(this,Zi.delayedCall(0,r,s),a)},n.staggerTo=function(r,s,a,o,l,u,c){return a.duration=s,a.stagger=a.stagger||o,a.onComplete=u,a.onCompleteParams=c,a.parent=this,new Zi(r,a,go(this,l)),this},n.staggerFrom=function(r,s,a,o,l,u,c){return a.runBackwards=1,zv(a).immediateRender=ea(a.immediateRender),this.staggerTo(r,s,a,o,l,u,c)},n.staggerFromTo=function(r,s,a,o,l,u,c,f){return o.startAt=a,zv(o).immediateRender=ea(o.immediateRender),this.staggerTo(r,s,o,l,u,c,f)},n.render=function(r,s,a){var o=this._time,l=this._dirty?this.totalDuration():this._tDur,u=this._dur,c=r<=0?0:Ci(r),f=this._zTime<0!=r<0&&(this._initted||!u),h,p,m,y,v,_,b,x,T,E,C,D;if(this!==Ai&&c>l&&r>=0&&(c=l),c!==this._tTime||a||f){if(o!==this._time&&u&&(c+=this._time-o,r+=this._time-o),h=c,T=this._start,x=this._ts,_=!x,f&&(u||(o=this._zTime),(r||!s)&&(this._zTime=r)),this._repeat){if(C=this._yoyo,v=u+this._rDelay,this._repeat<-1&&r<0)return this.totalTime(v*100+r,s,a);if(h=Ci(c%v),c===l?(y=this._repeat,h=u):(E=Ci(c/v),y=~~E,y&&y===E&&(h=u,y--),h>u&&(h=u)),E=eg(this._tTime,v),!o&&this._tTime&&E!==y&&this._tTime-E*v-this._dur<=0&&(E=y),C&&y&1&&(h=u-h,D=1),y!==E&&!this._lock){var R=C&&E&1,A=R===(C&&y&1);if(y<E&&(R=!R),o=R?0:c%u?u:c,this._lock=1,this.render(o||(D?0:Ci(y*v)),s,!u)._lock=0,this._tTime=c,!s&&this.parent&&Na(this,"onRepeat"),this.vars.repeatRefresh&&!D&&(this.invalidate()._lock=1,E=y),o&&o!==this._time||_!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(u=this._dur,l=this._tDur,A&&(this._lock=2,o=R?u:-1e-4,this.render(o,!0),this.vars.repeatRefresh&&!D&&this.invalidate()),this._lock=0,!this._ts&&!_)return this;hj(this,D)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(b=kme(this,Ci(o),Ci(h)),b&&(c-=h-(h=b._start))),this._tTime=c,this._time=h,this._act=!x,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=r,o=0),!o&&c&&u&&!s&&!E&&(Na(this,"onStart"),this._tTime!==c))return this;if(h>=o&&r>=0)for(p=this._first;p;){if(m=p._next,(p._act||h>=p._start)&&p._ts&&b!==p){if(p.parent!==this)return this.render(r,s,a);if(p.render(p._ts>0?(h-p._start)*p._ts:(p._dirty?p.totalDuration():p._tDur)+(h-p._start)*p._ts,s,a),h!==this._time||!this._ts&&!_){b=0,m&&(c+=this._zTime=-Jn);break}}p=m}else{p=this._last;for(var k=r<0?r:h;p;){if(m=p._prev,(p._act||k<=p._end)&&p._ts&&b!==p){if(p.parent!==this)return this.render(r,s,a);if(p.render(p._ts>0?(k-p._start)*p._ts:(p._dirty?p.totalDuration():p._tDur)+(k-p._start)*p._ts,s,a||Br&&vI(p)),h!==this._time||!this._ts&&!_){b=0,m&&(c+=this._zTime=k?-Jn:Jn);break}}p=m}}if(b&&!s&&(this.pause(),b.render(h>=o?0:-Jn)._zTime=h>=o?1:-1,this._ts))return this._start=T,lw(this),this.render(r,s,a);this._onUpdate&&!s&&Na(this,"onUpdate",!0),(c===l&&this._tTime>=this.totalDuration()||!c&&o)&&(T===this._start||Math.abs(x)!==Math.abs(this._ts))&&(this._lock||((r||!u)&&(c===l&&this._ts>0||!c&&this._ts<0)&&dd(this,1),!s&&!(r<0&&!o)&&(c||o||!l)&&(Na(this,c===l&&r>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(c<l&&this.timeScale()>0)&&this._prom())))}return this},n.add=function(r,s){var a=this;if(Mc(s)||(s=go(this,s,r)),!(r instanceof $y)){if(rs(r))return r.forEach(function(o){return a.add(o,s)}),this;if(wr(r))return this.addLabel(r,s);if(Bi(r))r=Zi.delayedCall(0,r);else return this}return this!==r?Hl(this,r,s):this},n.getChildren=function(r,s,a,o){r===void 0&&(r=!0),s===void 0&&(s=!0),a===void 0&&(a=!0),o===void 0&&(o=-Co);for(var l=[],u=this._first;u;)u._start>=o&&(u instanceof Zi?s&&l.push(u):(a&&l.push(u),r&&l.push.apply(l,u.getChildren(!0,s,a)))),u=u._next;return l},n.getById=function(r){for(var s=this.getChildren(1,1,1),a=s.length;a--;)if(s[a].vars.id===r)return s[a]},n.remove=function(r){return wr(r)?this.removeLabel(r):Bi(r)?this.killTweensOf(r):(r.parent===this&&ow(this,r),r===this._recent&&(this._recent=this._last),Lh(this))},n.totalTime=function(r,s){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=Ci(ka.time-(this._ts>0?r/this._ts:(this.totalDuration()-r)/-this._ts))),t.prototype.totalTime.call(this,r,s),this._forcing=0,this):this._tTime},n.addLabel=function(r,s){return this.labels[r]=go(this,s),this},n.removeLabel=function(r){return delete this.labels[r],this},n.addPause=function(r,s,a){var o=Zi.delayedCall(0,s||Ny,a);return o.data="isPause",this._hasPause=1,Hl(this,o,go(this,r))},n.removePause=function(r){var s=this._first;for(r=go(this,r);s;)s._start===r&&s.data==="isPause"&&dd(s),s=s._next},n.killTweensOf=function(r,s,a){for(var o=this.getTweensOf(r,a),l=o.length;l--;)kf!==o[l]&&o[l].kill(r,s);return this},n.getTweensOf=function(r,s){for(var a=[],o=Ao(r),l=this._first,u=Mc(s),c;l;)l instanceof Zi?Cme(l._targets,o)&&(u?(!kf||l._initted&&l._ts)&&l.globalTime(0)<=s&&l.globalTime(l.totalDuration())>s:!s||l.isActive())&&a.push(l):(c=l.getTweensOf(o,s)).length&&a.push.apply(a,c),l=l._next;return a},n.tweenTo=function(r,s){s=s||{};var a=this,o=go(a,r),l=s,u=l.startAt,c=l.onStart,f=l.onStartParams,h=l.immediateRender,p,m=Zi.to(a,Ga({ease:s.ease||"none",lazy:!1,immediateRender:!1,time:o,over
20write:"auto",duration:s.duration||Math.abs((o-(u&&"time"in u?u.time:a._time))/a.timeScale())||Jn,onStart:function(){if(a.pause(),!p){var v=s.duration||Math.abs((o-(u&&"time"in u?u.time:a._time))/a.timeScale());m._dur!==v&&tg(m,v,0,1).render(m._time,!0,!0),p=1}c&&c.apply(m,f||[])}},s));return h?m.render(0):m},n.tweenFromTo=function(r,s,a){return this.tweenTo(s,Ga({startAt:{time:go(this,r)}},a))},n.recent=function(){return this._recent},n.nextLabel=function(r){return r===void 0&&(r=this._time),U5(this,go(this,r))},n.previousLabel=function(r){return r===void 0&&(r=this._time),U5(this,go(this,r),1)},n.currentLabel=function(r){return arguments.length?this.seek(r,!0):this.previousLabel(this._time+Jn)},n.shiftChildren=function(r,s,a){a===void 0&&(a=0);var o=this._first,l=this.labels,u;for(r=Ci(r);o;)o._start>=a&&(o._start+=r,o._end+=r),o=o._next;if(s)for(u in l)l[u]>=a&&(l[u]+=r);return Lh(this)},n.invalidate=function(r){var s=this._first;for(this._lock=0;s;)s.invalidate(r),s=s._next;return t.prototype.invalidate.call(this,r)},n.clear=function(r){r===void 0&&(r=!0);for(var s=this._first,a;s;)a=s._next,this.remove(s),s=a;return this._dp&&(this._time=this._tTime=this._pTime=0),r&&(this.labels={}),Lh(this)},n.totalDuration=function(r){var s=0,a=this,o=a._last,l=Co,u,c,f;if(arguments.length)return a.timeScale((a._repeat<0?a.duration():a.totalDuration())/(a.reversed()?-r:r));if(a._dirty){for(f=a.parent;o;)u=o._prev,o._dirty&&o.totalDuration(),c=o._start,c>l&&a._sort&&o._ts&&!a._lock?(a._lock=1,Hl(a,o,c-o._delay,1)._lock=0):l=c,c<0&&o._ts&&(s-=c,(!f&&!a._dp||f&&f.smoothChildTiming)&&(a._start+=Ci(c/a._ts),a._time-=c,a._tTime-=c),a.shiftChildren(-c,!1,-1/0),l=0),o._end>s&&o._ts&&(s=o._end),o=u;tg(a,a===Ai&&a._time>s?a._time:s,1,1),a._dirty=0}return a._tDur},e.updateRoot=function(r){if(Ai._ts&&(qG(Ai,y2(r,Ai)),GG=ka.frame),ka.frame>=L5){L5+=za.autoSleep||120;var s=Ai._first;if((!s||!s._ts)&&za.autoSleep&&ka._listeners.length<2){for(;s&&!s._ts;)s=s._next;s||ka.sleep()}}},e}($y);Ga(Es.prototype,{_lock:0,_hasPause:0,_forcing:0});var Yme=function(e,n,i,r,s,a,o){var l=new na(this._pt,e,n,0,1,xj,null,s),u=0,c=0,f,h,p,m,y,v,_,b;for(l.b=i,l.e=r,i+="",r+="",(_=~r.indexOf("random("))&&(r=By(r)),a&&(b=[i,r],a(b,e,n),i=b[0],r=b[1]),h=i.match(dM)||[];f=dM.exec(r);)m=f[0],y=r.substring(u,f.index),p?p=(p+1)%5:y.substr(-5)==="rgba("&&(p=1),m!==h[c++]&&(v=parseFloat(h[c-1])||0,l._pt={_next:l._pt,p:y||c===1?y:",",s:v,c:m.charAt(1)==="="?Sm(v,m)-v:parseFloat(m)-v,m:p&&p<4?Math.round:0},u=dM.lastIndex);return l.c=u<r.length?r.substring(u,r.length):"",l.fp=o,(zG.test(r)||_)&&(l.e=0),this._pt=l,l},yI=function(e,n,i,r,s,a,o,l,u,c){Bi(r)&&(r=r(s||0,e,a));var f=e[n],h=i!=="get"?i:Bi(f)?u?e[n.indexOf("set")||!Bi(e["get"+n.substr(3)])?n:"get"+n.substr(3)](u):e[n]():f,p=Bi(f)?u?ege:yj:xI,m;if(wr(r)&&(~r.indexOf("random(")&&(r=By(r)),r.charAt(1)==="="&&(m=Sm(h,r)+(Zr(h)||0),(m||m===0)&&(r=m))),!c||h!==r||HP)return!isNaN(h*r)&&r!==""?(m=new na(this._pt,e,n,+h||0,r-(h||0),typeof f=="boolean"?nge:bj,0,p),u&&(m.fp=u),o&&m.modifier(o,this,e),this._pt=m):(!f&&!(n in e)&&pI(n,r),Yme.call(this,e,n,h,r,p,l||za.stringFilter,u))},Kme=function(e,n,i,r,s){if(Bi(e)&&(e=Vv(e,s,n,i,r)),!fu(e)||e.style&&e.nodeType||rs(e)||UG(e))return wr(e)?Vv(e,s,n,i,r):e;var a={},o;for(o in e)a[o]=Vv(e[o],s,n,i,r);return a},gj=function(e,n,i,r,s,a){var o,l,u,c;if(Da[e]&&(o=new Da[e]).init(s,o.rawVars?n[e]:Kme(n[e],r,s,a,i),i,r,a)!==!1&&(i._pt=l=new na(i._pt,s,e,0,1,o.render,o,0,o.priority),i!==J0))for(u=i._ptLookup[i._targets.indexOf(s)],c=o._props.length;c--;)u[o._props[c]]=l;return o},kf,HP,bI=function t(e,n,i){var r=e.vars,s=r.ease,a=r.startAt,o=r.immediateRender,l=r.lazy,u=r.onUpdate,c=r.runBackwards,f=r.yoyoEase,h=r.keyframes,p=r.autoRevert,m=e._dur,y=e._startAt,v=e._targets,_=e.parent,b=_&&_.data==="nested"?_.vars.targets:v,x=e._overwrite==="auto"&&!cI,T=e.timeline,E,C,D,R,A,k,F,N,U,$,G,Y,Q;if(T&&(!h||!s)&&(s="none"),e._ease=Fh(s,Qm.ease),e._yEase=f?dj(Fh(f===!0?s:f,Qm.ease)):0,f&&e._yoyo&&!e._repeat&&(f=e._yEase,e._yEase=e._ease,e._ease=f),e._from=!T&&!!r.runBackwards,!T||h&&!r.stagger){if(N=v[0]?Ih(v[0]).harness:0,Y=N&&r[N.prop],E=v2(r,mI),y&&(y._zTime<0&&y.progress(1),n<0&&c&&o&&!p?y.render(-1,!0):y.revert(c&&m?bT:Eme),y._lazy=0),a){if(dd(e._startAt=Zi.set(v,Ga({data:"isStart",overwrite:!1,parent:_,immediateRender:!0,lazy:!y&&ea(l),startAt:null,delay:0,onUpdate:u&&function(){return Na(e,"onUpdate")},stagger:0},a))),e._startAt._dp=0,e._startAt._sat=e,n<0&&(Br||!o&&!p)&&e._startAt.revert(bT),o&&m&&n<=0&&i<=0){n&&(e._zTime=n);return}}else if(c&&m&&!y){if(n&&(o=!1),D=Ga({overwrite:!1,data:"isFromStart",lazy:o&&!y&&ea(l),immediateRender:o,stagger:0,parent:_},E),Y&&(D[N.prop]=Y),dd(e._startAt=Zi.set(v,D)),e._startAt._dp=0,e._startAt._sat=e,n<0&&(Br?e._startAt.revert(bT):e._startAt.render(-1,!0)),e._zTime=n,!o)t(e._startAt,Jn,Jn);else if(!n)return}for(e._pt=e._ptCache=0,l=m&&ea(l)||l&&!m,C=0;C<v.length;C++){if(A=v[C],F=A._gsap||_I(v)[C]._gsap,e._ptLookup[C]=$={},FP[F.id]&&Yf.length&&_2(),G=b===v?C:b.indexOf(A),N&&(U=new N).init(A,Y||E,e,G,b)!==!1&&(e._pt=R=new na(e._pt,A,U.name,0,1,U.render,U,0,U.priority),U._props.forEach(function(re){$[re]=R}
20),U.priority&&(k=1)),!N||Y)for(D in E)Da[D]&&(U=gj(D,E,e,G,A,b))?U.priority&&(k=1):$[D]=R=yI.call(e,A,D,"get",E[D],G,b,0,r.stringFilter);e._op&&e._op[C]&&e.kill(A,e._op[C]),x&&e._pt&&(kf=e,Ai.killTweensOf(A,$,e.globalTime(n)),Q=!e.parent,kf=0),e._pt&&l&&(FP[F.id]=1)}k&&Sj(e),e._onInit&&e._onInit(e)}e._onUpdate=u,e._initted=(!e._op||e._pt)&&!Q,h&&n<=0&&T.render(Co,!0,!0)},Zme=function(e,n,i,r,s,a,o,l){var u=(e._pt&&e._ptCache||(e._ptCache={}))[n],c,f,h,p;if(!u)for(u=e._ptCache[n]=[],h=e._ptLookup,p=e._targets.length;p--;){if(c=h[p][n],c&&c.d&&c.d._pt)for(c=c.d._pt;c&&c.p!==n&&c.fp!==n;)c=c._next;if(!c)return HP=1,e.vars[n]="+=0",bI(e,o),HP=0,l?Fy(n+" not eligible for reset"):1;u.push(c)}for(p=u.length;p--;)f=u[p],c=f._pt||f,c.s=(r||r===0)&&!s?r:c.s+(r||0)+a*c.c,c.c=i-c.s,f.e&&(f.e=Wi(i)+Zr(f.e)),f.b&&(f.b=c.s+Zr(f.b))},Qme=function(e,n){var i=e[0]?Ih(e[0]).harness:0,r=i&&i.aliases,s,a,o,l;if(!r)return n;s=Jm({},n);for(a in r)if(a in s)for(l=r[a].split(","),o=l.length;o--;)s[l[o]]=s[a];return s},Jme=function(e,n,i,r){var s=n.ease||r||"power1.inOut",a,o;
20if(rs(n))o=i[e]||(i[e]=[]),n.forEach(function(l,u){return o.push({t:u/(n.length-1)*100,v:l,e:s})});else for(a in n)o=i[a]||(i[a]=[]),a==="ease"||o.push({t:parseFloat(e),v:n[a],e:s})},Vv=function(e,n,i,r,s){return Bi(e)?e.call(n,i,r,s):wr(e)&&~e.indexOf("random(")?By(e):e},_j=gI+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert",vj={};ta(_j+",id,stagger,delay,duration,paused,scrollTrigger",function(t){return vj[t]=1});var Zi=function(t){NG(e,t);function e(i,r,s,a){var o;typeof r=="number"&&(s.duration=r,r=s,s=null),o=t.call(this,a?r:zv(r))||this;var l=o.vars,u=l.duration,c=l.delay,f=l.immediateRender,h=l.stagger,p=l.overwrite,m=l.keyframes,y=l.defaults,v=l.scrollTrigger,_=l.yoyoEase,b=r.parent||Ai,x=(rs(i)||UG(i)?Mc(i[0]):"length"in r)?[i]:Ao(i),T,E,C,D,R,A,k,F;if(o._targets=x.length?_I(x):Fy("GSAP target "+i+" not found. https://gsap.com",!za.nullTargetWarn)||[],o._ptLookup=[],o._overwrite=p,m||h||Ox(u)||Ox(c)){if(r=o.vars,T=o.timeline=new Es({data:"nested",defaults:y||{},targets:b&&b.data==="nested"?b.vars.targets:x}),T.kill(),T.parent=T._dp=nc(o),T._start=0,h||Ox(u)||Ox(c)){if(D=x.length,k=h&&nj(h),fu(h))for(R in h)~_j.indexOf(R)&&(F||(F={}),F[R]=h[R]);for(E=0;E<D;E++)C=v2(r,vj),C.stagger=0,_&&(C.yoyoEase=_),F&&Jm(C,F),A=x[E],C.duration=+Vv(u,nc(o),E,A,x),C.delay=(+Vv(c,nc(o),E,A,x)||0)-o._delay,!h&&D===1&&C.delay&&(o._delay=c=C.delay,o._start+=c,C.delay=0),T.to(A,C,k?k(E,A,x):0),T._ease=An.none;T.duration()?u=c=0:o.timeline=0}else if(m){zv(Ga(T.vars.defaults,{ease:"none"})),T._ease=Fh(m.ease||r.ease||"none");var N=0,U,$,G;if(rs(m))m.forEach(function(Y){return T.to(x,Y,">")}),T.duration();else{C={};for(R in m)R==="ease"||R==="easeEach"||Jme(R,m[R],C,m.easeEach);for(R in C)for(U=C[R].sort(function(Y,Q){return Y.t-Q.t}),N=0,E=0;E<U.length;E++)$=U[E],G={ease:$.e,duration:($.t-(E?U[E-1].t:0))/100*u},G[R]=$.v,T.to(x,G,N),N+=G.duration;T.duration()<u&&T.to({},{duration:u-T.duration()})}}u||o.duration(u=T.duration())}else o.timeline=0;return p===!0&&!cI&&(kf=nc(o),Ai.killTweensOf(x),kf=0),Hl(b,nc(o),s),r.reversed&&o.reverse(),r.paused&&o.paused(!0),(f||!u&&!m&&o._start===Ci(b._time)&&ea(f)&&Pme(nc(o))&&b.data!=="nested")&&(o._tTime=-Jn,o.render(Math.max(0,-c)||0)),v&&QG(nc(o),v),o}var n=e.prototype;return n.render=function(r,s,a){var o=this._time,l=this._tDur,u=this._dur,c=r<0,f=r>l-Jn&&!c?l:r<Jn?0:r,h,p,m,y,v,_,b,x,T;if(!u)Rme(this,r,s,a);else if(f!==this._tTime||!r||a||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==c||this._lazy){if(h=f,x=this.timeline,this._repeat){if(y=u+this._rDelay,this._repeat<-1&&c)return this.totalTime(y*100+r,s,a);if(h=Ci(f%y),f===l?(m=this._repeat,h=u):(v=Ci(f/y),m=~~v,m&&m===v?(h=u,m--):h>u&&(h=u)),_=this._yoyo&&m&1,_&&(T=this._yEase,h=u-h),v=eg(this._tTime,y),h===o&&!a&&this._initted&&m===v)return this._tTime=f,this;m!==v&&(x&&this._yEase&&hj(x,_),this.vars.repeatRefresh&&!_&&!this._lock&&h!==y&&this._initted&&(this._lock=a=1,this.render(Ci(y*m),!0).invalidate()._lock=0))}if(!this._initted){if(JG(this,c?r:h,a,s,f))return this._tTime=0,this;if(o!==this._time&&!(a&&this.vars.repeatRefresh&&m!==v))return this;if(u!==this._dur)return this.render(r,s,a)}if(this._tTime=f,this._time=h,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=b=(T||this._ease)(h/u),this._from&&(this.ratio=b=1-b),!o&&f&&!s&&!v&&(Na(this,"onStart"),this._tTime!==f))return this;for(p=this._pt;p;)p.r(b,p.d),p=p._next;x&&x.render(r<0?r:x._dur*x._ease(h/this._dur),s,a)||this._startAt&&(this._zTime=r),this._onUpdate&&!s&&(c&&NP(this,r,s,a),Na(this,"onUpdate")),this._repeat&&m!==v&&this.vars.onRepeat&&!s&&this.parent&&Na(this,"onRepeat"),(f===this._tDur||!f)&&this._tTime===f&&(c&&!this._onUpdate&&NP(this,r,!0,!0),(r||!u)&&(f===this._tDur&&this._ts>0||!f&&this._ts<0)&&dd(this,1),!s&&!(c&&!o)&&(f||o||_)&&(Na(this,f===l?"onComplete":"onReverseComplete",!0),this._prom&&!(f<l&&this.timeScale()>0)&&this._prom()))}return this},n.targets=function(){return this._targets},n.invalidate=function(r){return(!r||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(r),t.prototype.invalidate.call(this,r)},n.resetTo=function(r,s,a,o,l){Uy||ka.wake(),this._ts||this.play();
20var u=Math.min(this._dur,(this._dp._time-this._start)*this._ts),c;return this._initted||bI(this,u),c=this._ease(u/this._dur),Zme(this,r,s,a,o,c,u,l)?this.resetTo(r,s,a,o,1):(uw(this,0),this.parent||KG(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},n.kill=function(r,s){if(s===void 0&&(s="all"),!r&&(!s||s==="all"))return this._lazy=this._pt=0,this.parent?pv(this):this.scrollTrigger&&this.scrollTrigger.kill(!!Br),this;if(this.timeline){var a=this.timeline.totalDuration();return this.timeline.killTweensOf(r,s,kf&&kf.vars.overwrite!==!0)._first||pv(this),this.parent&&a!==this.timeline.totalDuration()&&tg(this,this._dur*this.timeline._tDur/a,0,1),this}var o=this._targets,l=r?Ao(r):o,u=this._ptLookup,c=this._pt,f,h,p,m,y,v,_;if((!s||s==="all")&&Mme(o,l))return s==="all"&&(this._pt=0),pv(this);for(f=this._op=this._op||[],s!=="all"&&(wr(s)&&(y={},ta(s,function(b){return y[b]=1}),s=y),s=Qme(o,s)),_=o.length;_--;)if(~l.indexOf(o[_])){h=u[_],s==="all"?(f[_]=s,m=h,p={}):(p=f[_]=f[_]||{},m=s);for(y in m)v=h&&h[y],v&&((!("kill"in v.d)||v.d.kill(y)===!0)&&ow(this,v,"_pt"),delete h[y]),p!=="all"&&(p[y]=1)}return this._initted&&!this._pt&&c&&pv(this),this},e.to=function(r,s){return new e(r,s,arguments[2])},e.from=function(r,s){return Hv(1,arguments)},e.delayedCall=function(r,s,a,o){return new e(s,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:r,onComplete:s,onReverseComplete:s,onCompleteParams:a,onReverseCompleteParams:a,callbackScope:o})},e.fromTo=function(r,s,a){return Hv(2,arguments)},e.set=function(r,s){return s.duration=0,s.repeatDelay||(s.repeat=0),new e(r,s)},e.killTweensOf=function(r,s,a){return Ai.killTweensOf(r,s,a)},e}($y);Ga(Zi.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0});ta("staggerTo,staggerFrom,staggerFromTo",function(t){Zi[t]=function(){var e=new Es,n=UP.call(arguments,0);return n.splice(t==="staggerFromTo"?5:4,0,0),e[t].apply(e,n)}});var xI=function(e,n,i){return e[n]=i},yj=function(e,n,i){return e[n](i)},ege=function(e,n,i,r){return e[n](r.fp,i)},tge=function(e,n,i){return e.setAttribute(n,i)},SI=function(e,n){return Bi(e[n])?yj:fI(e[n])&&e.setAttribute?tge:xI},bj=function(e,n){return n.set(n.t,n.p,Math.round((n.s+n.c*e)*1e6)/1e6,n)},nge=function(e,n){return n.set(n.t,n.p,!!(n.s+n.c*e),n)},xj=function(e,n){var i=n._pt,r="";if(!e&&n.b)r=n.b;else if(e===1&&n.e)r=n.e;else{for(;i;)r=i.p+(i.m?i.m(i.s+i.c*e):Math.round((i.s+i.c*e)*1e4)/1e4)+r,i=i._next;r+=n.c}n.set(n.t,n.p,r,n)},TI=function(e,n){for(var i=n._pt;i;)i.r(e,i.d),i=i._next},ige=function(e,n,i,r){for(var s=this._pt,a;s;)a=s._next,s.p===r&&s.modifier(e,n,i),s=a},rge=function(e){for(var n=this._pt,i,r;n;)r=n._next,n.p===e&&!n.op||n.op===e?ow(this,n,"_pt"):n.dep||(i=1),n=r;return!i},sge=function(e,n,i,r){r.mSet(e,n,r.m.call(r.tween,i,r.mt),r)},Sj=function(e){for(var n=e._pt,i,r,s,a;n;){for(i=n._next,r=s;r&&r.pr>n.pr;)r=r._next;(n._prev=r?r._prev:a)?n._prev._next=n:s=n,(n._next=r)?r._prev=n:a=n,n=i}e._pt=s},na=function(){function t(n,i,r,s,a,o,l,u,c){this.t=i,this.s=s,this.c=a,this.p=r,this.r=o||bj,this.d=l||this,this.set=u||xI,this.pr=c||0,this._next=n,n&&(n._prev=this)}var e=t.prototype;return e.modifier=function(i,r,s){this.mSet=this.mSet||this.set,this.set=sge,this.m=i,this.mt=s,this.tween=r},t}();ta(gI+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger",function(t){return mI[t]=1});Wa.TweenMax=Wa.TweenLite=Zi;Wa.TimelineLite=Wa.TimelineMax=Es;Ai=new Es({sortChildren:!1,defaults:Qm,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0});za.stringFilter=fj;var Nh=[],ST={},age=[],z5=0,oge=0,_M=function(e){return(ST[e]||age).map(function(n){return n()})},VP=function(){var e=Date.now(),n=[];e-z5>2&&(_M("matchMediaInit"),Nh.forEach(function(i){var r=i.queries,s=i.conditions,a,o,l,u;for(o in r)a=Fl.matchMedia(r[o]).matches,a&&(l=1),a!==s[o]&&(s[o]=a,u=1);u&&(i.revert(),l&&n.push(i))}),_M("matchMediaRevert"),n.forEach(function(i){return i.onMatch(i,function(r){return i.add(null,r)}
20)}),z5=e,_M("matchMedia"))},Tj=function(){function t(n,i){this.selector=i&&$P(i),this.data=[],this._r=[],this.isReverted=!1,this.id=oge++,n&&this.add(n)}var e=t.prototype;return e.add=function(i,r,s){Bi(i)&&(s=r,r=i,i=Bi);var a=this,o=function(){var u=xi,c=a.selector,f;return u&&u!==a&&u.data.push(a),s&&(a.selector=$P(s)),xi=a,f=r.apply(a,arguments),Bi(f)&&a._r.push(f),xi=u,a.selector=c,a.isReverted=!1,f};return a.last=o,i===Bi?o(a,function(l){return a.add(null,l)}):i?a[i]=o:o},e.ignore=function(i){var r=xi;xi=null,i(this),xi=r},e.getTweens=function(){var i=[];return this.data.forEach(function(r){return r instanceof t?i.push.apply(i,r.getTweens()):r instanceof Zi&&!(r.parent&&r.parent.data==="nested")&&i.push(r)}),i},e.clear=function(){this._r.length=this.data.length=0},e.kill=function(i,r){var s=this;if(i?function(){for(var o=s.getTweens(),l=s.data.length,u;l--;)u=s.data[l],u.data==="isFlip"&&(u.revert(),u.getChildren(!0,!0,!1).forEach(function(c){return o.splice(o.indexOf(c),1)}));for(o.map(function(c){return{g:c._dur||c._delay||c._sat&&!c._sat.vars.immediateRender?c.globalTime(0):-1/0,t:c}}).sort(function(c,f){return f.g-c.g||-1/0}).forEach(function(c){return c.t.revert(i)}),l=s.data.length;l--;)u=s.data[l],u instanceof Es?u.data!=="nested"&&(u.scrollTrigger&&u.scrollTrigger.revert(),u.kill()):!(u instanceof Zi)&&u.revert&&u.revert(i);s._r.forEach(function(c){return c(i,s)}),s.isReverted=!0}():this.data.forEach(function(o){return o.kill&&o.kill()}),this.clear(),r)for(var a=Nh.length;a--;)Nh[a].id===this.id&&Nh.splice(a,1)},e.revert=function(i){this.kill(i||{})},t}(),lge=function(){function t(n){this.contexts=[],this.scope=n,xi&&xi.data.push(this)}var e=t.prototype;return e.add=function(i,r,s){fu(i)||(i={matches:i});var a=new Tj(0,s||this.scope),o=a.conditions={},l,u,c;xi&&!a.selector&&(a.selector=xi.selector),this.contexts.push(a),r=a.add("onMatch",r),a.queries=i;for(u in i)u==="all"?c=1:(l=Fl.matchMedia(i[u]),l&&(Nh.indexOf(a)<0&&Nh.push(a),(o[u]=l.matches)&&(c=1),l.addListener?l.addListener(VP):l.addEventListener("change",VP)));return c&&r(a,function(f){return a.add(null,f)}),this},e.revert=function(i){this.kill(i||{})}
vendor: 5,701 bytes, lines 20-27
20,e.kill=function(i){this.contexts.forEach(function(r){return r.kill(i,!0)})},t}(),b2={registerPlugin:function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];n.forEach(function(r){return lj(r)})},timeline:function(e){return new Es(e)},getTweensOf:function(e,n){return Ai.getTweensOf(e,n)},getProperty:function(e,n,i,r){wr(e)&&(e=Ao(e)[0]);var s=Ih(e||{}).get,a=i?YG:XG;return i==="native"&&(i=""),e&&(n?a((Da[n]&&Da[n].get||s)(e,n,i,r)):function(o,l,u){return a((Da[o]&&Da[o].get||s)(e,o,l,u))})},quickSetter:function(e,n,i){if(e=Ao(e),e.length>1){var r=e.map(function(c){return ua.quickSetter(c,n,i)}),s=r.length;return function(c){for(var f=s;f--;)r[f](c)}}e=e[0]||{};var a=Da[n],o=Ih(e),l=o.harness&&(o.harness.aliases||{})[n]||n,u=a?function(c){var f=new a;J0._pt=0,f.init(e,i?c+i:c,J0,0,[e]),f.render(1,f),J0._pt&&TI(1,J0)}:o.set(e,l);return a?u:function(c){return u(e,l,i?c+i:c,o,1)}},quickTo:function(e,n,i){var r,s=ua.to(e,Ga((r={},r[n]="+=0.1",r.paused=!0,r.stagger=0,r),i||{})),a=function(l,u,c){return s.resetTo(n,l,u,c)};return a.tween=s,a},isTweening:function(e){return Ai.getTweensOf(e,!0).length>0},defaults:function(e){return e&&e.ease&&(e.ease=Fh(e.ease,Qm.ease)),F5(Qm,e||{})},config:function(e){return F5(za,e||{})},registerEffect:function(e){var n=e.name,i=e.effect,r=e.plugins,s=e.defaults,a=e.extendTimeline;(r||"").split(",").forEach(function(o){return o&&!Da[o]&&!Wa[o]&&Fy(n+" effect requires "+o+" plugin.")}),hM[n]=function(o,l,u){return i(Ao(o),Ga(l||{},s),u)},a&&(Es.prototype[n]=function(o,l,u){return this.add(hM[n](o,fu(l)?l:(u=l)&&{},this),u)})},registerEase:function(e,n){An[e]=Fh(n)},parseEase:function(e,n){return arguments.length?Fh(e,n):An},getById:function(e){return Ai.getById(e)},exportRoot:function(e,n){e===void 0&&(e={});var i=new Es(e),r,s;for(i.smoothChildTiming=ea(e.smoothChildTiming),Ai.remove(i),i._dp=0,i._time=i._tTime=Ai._time,r=Ai._first;r;)s=r._next,(n||!(!r._dur&&r instanceof Zi&&r.vars.onComplete===r._targets[0]))&&Hl(i,r,r._start-r._delay),r=s;return Hl(Ai,i,0),i},context:function(e,n){return e?new Tj(e,n):xi},matchMedia:function(e){return new lge(e)},matchMediaRefresh:function(){return Nh.forEach(function(e){var n=e.conditions,i,r;for(r in n)n[r]&&(n[r]=!1,i=1);i&&e.revert()})||VP()},addEventListener:function(e,n){var i=ST[e]||(ST[e]=[]);~i.indexOf(n)||i.push(n)},removeEventListener:function(e,n){var i=ST[e],r=i&&i.indexOf(n);r>=0&&i.splice(r,1)},utils:{wrap:$me,wrapYoyo:zme,distribute:nj,random:rj,snap:ij,normalize:Ume,getUnit:Zr,clamp:Lme,splitColor:uj,toArray:Ao,selector:$P,mapRange:aj,pipe:Nme,unitize:Bme,interpolate:Hme,shuffle:tj},install:VG,effects:hM,ticker:ka,updateRoot:Es.updateRoot,plugins:Da,globalTimeline:Ai,core:{PropTween:na,globals:WG,Tween:Zi,Timeline:Es,Animation:$y,getCache:Ih,_removeLinkedListItem:ow,reverting:function(){return Br},context:function(e){return e&&xi&&(xi.data.push(e),e._ctx=xi),xi},suppressOverwrites:function(e){return cI=e}}};ta("to,from,fromTo,delayedCall,set,killTweensOf",function(t){return b2[t]=Zi[t]});ka.add(Es.updateRoot);J0=b2.to({},{duration:0});var uge=function(e,n){for(var i=e._pt;i&&i.p!==n&&i.op!==n&&i.fp!==n;)i=i._next;return i},cge=function(e,n){var i=e._targets,r,s,a;for(r in n)for(s=i.length;s--;)a=e._ptLookup[s][r],a&&(a=a.d)&&(a._pt&&(a=uge(a,r)),a&&a.modifier&&a.modifier(n[r],e,i[s],r))},vM=function(e,n){return{name:e,headless:1,rawVars:1,init:function(r,s,a){a._onInit=function(o){var l,u;if(wr(s)&&(l={},ta(s,function(c){return l[c]=1}),s=l),n){l={};for(u in s)l[u]=n(s[u]);s=l}cge(o,s)}}}},ua=b2.registerPlugin({name:"attr",init:function(e,n,i,r,s){var a,o,l;this.tween=i;for(a in n)l=e.getAttribute(a)||"",o=this.add(e,"setAttribute",(l||0)+"",n[a],r,s,0,0,a),o.op=a,o.b=l,this._props.push(a)},render:function(e,n){for(var i=n._pt;i;)Br?i.set(i.t,i.p,i.b,i):i.r(e,i.d),i=i._next}},{name:"endArray",headless:1,init:function(e,n){for(var i=n.length;i--;)this.add(e,i,e[i]||0,n[i],0,0,0,0,0,1)}},vM("roundProps",zP),vM("modifiers"),vM("snap",ij))||b2;Zi.version=Es.version=ua.version="3.14.2";HG=1;dI()&&ng();An.Power0;An.Power1;An.Power2;An.Power3;An.Power4;An.Linear;An.Quad;An.Cubic;An.Quart;An.Quint;An.Strong;An.Elastic;An.Back;An.SteppedEase;An.Bounce;An.Sine;An.Expo;An.Circ;/*!
21 * CSSPlugin 3.14.2
22 * https://gsap.com
23 *
24 * Copyright 2008-2025, GreenSock. All rights reserved.
25 * Subject to the terms at https://gsap.com/standard-license
26 * @author: Jack Doyle, [email protected]
27*/var H5,If,Tm,EI,wh,V5,wI,fge=function(){return typeof window<"u"},Dc={},ch=180/Math.PI,Em=Math.PI/180,r0=Math.atan2,W5=1e8,CI=/([A-Z])/g,dge=/(left|right|width|margin|padding|x)/i,hge=/[\s,\(]\S/,Gl={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},WP=function(e,n){return n.set(n.t,n.p,Math.round((n.s+n.c*e)*1e4)/1e4+n.u,n)},pge=function(e,n){return n.set(n.t,n.p,e===1?n.e:Math.round((n.s+n.c*e)*1e4)/1e4+n.u,n)},mge=function(e,n){return n.set(n.t,n.p,e?Math.round((n.s+n.c*e)*1e4)/1e4+n.u:n.b,n)},gge=function(e,n){return n.set(n.t,n.p,e===1?n.e:e?Math.round((n.s+n.c*e)*1e4)/1e4+n.u:n.b,n)},_ge=function(e,n){var i=n.s+n.c*e;n.set(n.t,n.p,~~(i+(i<0?-.5:.5))+n.u,n)},Ej=function(e,n){return n.set(n.t,n.p,e?n.e:n.b,n)},wj=function(e,n){return n.set(n.t,n.p,e!==1?n.b:n.e,n)},vge=function(e,n,i){return e.style[n]=i},yge=function(e,n,i){return e.style.setProperty(n,i)},bge=function(e,n,i){return e._gsap[n]=i},xge=function(e,n,i){return e._gsap.scaleX=e._gsap.scaleY=i},Sge=function(e,n,i,r,s){var a=e._gsap;a.scaleX=a.scaleY=i,a.renderTransform(s,a)},Tge=function(e,n,i,r,s){var a=e._gsap;a[n]=i,a.renderTransform(s,a)},Mi="transform",ia=Mi+"Origin",Ege=function t(e,n){var i=this,r=this.target,s=r.style,a=r._gsap;
27if(e in Dc&&s){if(this.tfm=this.tfm||{},e!=="transform")e=Gl[e]||e,~e.indexOf(",")?e.split(",").forEach(function(o){return i.tfm[o]=ac(r,o)}):this.tfm[e]=a.x?a[e]:ac(r,e),e===ia&&(this.tfm.zOrigin=a.zOrigin);else return Gl.transform.split(",").forEach(function(o){return t.call(i,o,n)});if(this.props.indexOf(Mi)>=0)return;a.svg&&(this.svgo=r.getAttribute("data-svg-origin"),this.props.push(ia,n,"")),e=Mi}(s||n)&&this.props.push(e,n,s[e])},Cj=function(e){e.translate&&(e.removeProperty("translate"),e.removeProperty("scale"),e.removeProperty("rotate"))},wge=function(){var e=this.props,n=this.target,i=n.style,r=n._gsap,s,a;for(s=0;s<e.length;s+=3)e[s+1]?e[s+1]===2?n[e[s]](e[s+2]):n[e[s]]=e[s+2]:e[s+2]?i[e[s]]=e[s+2]:i.removeProperty(e[s].substr(0,2)==="--"?e[s]:e[s].replace(CI,"-$1").toLowerCase());if(this.tfm){for(a in this.tfm)r[a]=this.tfm[a];r.svg&&(r.renderTransform(),n.setAttribute("data-svg-origin",this.svgo||"")),s=wI(),(!s||!s.isStart)&&!i[Mi]&&(Cj(i),r.zOrigin&&i[ia]&&(i[ia]+=" "+r.zOrigin+"px",r.zOrigin=0,r.renderTransform()),r.uncache=1)}},Aj=function(e,n){var i={target:e,props:[],revert:wge,save:Ege};return e._gsap||ua.core.getCache(e),n&&e.style&&e.nodeType&&n.split(",").forEach(function(r){return i.save(r)}),i},Mj,GP=function(e,n){var i=If.createElementNS?If.createElementNS((n||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),e):If.createElement(e);return i&&i.style?i:If.createElement(e)},Ba=function t(e,n,i){var r=getComputedStyle(e);return r[n]||r.getPropertyValue(n.replace(CI,"-$1").toLowerCase())||r.getPropertyValue(n)||!i&&t(e,ig(n)||n,1)||""},G5="O,Moz,ms,Ms,Webkit".split(","),ig=function(e,n,i){var r=n||wh,s=r.style,a=5;if(e in s&&!i)return e;for(e=e.charAt(0).toUpperCase()+e.substr(1);a--&&!(G5[a]+e in s););return a<0?null:(a===3?"ms":a>=0?G5[a]:"")+e},jP=function(){fge()&&window.document&&(H5=window,If=H5.document,Tm=If.documentElement,wh=GP("div")||{style:{}},GP("div"),Mi=ig(Mi),ia=Mi+"Origin",wh.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",Mj=!!ig("perspective"),wI=ua.core.reverting,EI=1)},j5=function(e){var n=e.ownerSVGElement,i=GP("svg",n&&n.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),r=e.cloneNode(!0),s;r.style.display="block",i.appendChild(r),Tm.appendChild(i);try{s=r.getBBox()}catch(a){}return i.removeChild(r),Tm.removeChild(i),s},q5=function(e,n){for(var i=n.length;i--;)if(e.hasAttribute(n[i]))return e.getAttribute(n[i])},Dj=function(e){var n,i;try{n=e.getBBox()}catch(r){n=j5(e),i=1}return n&&(n.width||n.height)||i||(n=j5(e)),n&&!n.width&&!n.x&&!n.y?{x:+q5(e,["x","cx","x1"])||0,y:+q5(e,["y","cy","y1"])||0,width:0,height:0}:n},Pj=function(e){return!!(e.getCTM&&(!e.parentNode||e.ownerSVGElement)&&Dj(e))},hd=function(e,n){if(n){var i=e.style,r;n in Dc&&n!==ia&&(n=Mi),i.removeProperty?(r=n.substr(0,2),(r==="ms"||n.substr(0,6)==="webkit")&&(n="-"+n),i.removeProperty(r==="--"?n:n.replace(CI,"-$1").toLowerCase())):i.removeAttribute(n)}},Lf=function(e,n,i,r,s,a){var o=new na(e._pt,n,i,0,1,a?wj:Ej);return e._pt=o,o.b=r,o.e=s,e._props.push(i),o},X5={deg:1,rad:1,turn:1},Cge={grid:1,flex:1},pd=function t(e,n,i,r){var s=parseFloat(i)||0,a=(i+"").trim().substr((s+"").length)||"px",o=wh.style,l=dge.test(n),u=e.tagName.toLowerCase()==="svg",c=(u?"client":"offset")+(l?"Width":"Height"),f=100,h=r==="px",p=r==="%",m,y,v,_;if(r===a||!s||X5[r]||X5[a])return s;if(a!=="px"&&!h&&(s=t(e,n,i,"px")),_=e.getCTM&&Pj(e),(p||a==="%")&&(Dc[n]||~n.indexOf("adius")))return m=_?e.getBBox()[l?"width":"height"]:e[c],Wi(p?s/m*f:s/100*m);if(o[l?"width":"height"]=f+(h?a:r),y=r!=="rem"&&~n.indexOf("adius")||r==="em"&&e.appendChild&&!u?e:e.parentNode,_&&(y=(e.ownerSVGElement||{}).parentNode),(!y||y===If||!y.appendChild)&&(y=If.body),v=y._gsap,v&&p&&v.width&&l&&v.time===ka.time&&!v.uncache)return Wi(s/v.width*f);if(p&&(n==="height"||n==="width")){var b=e.style[n];e.style[n]=f+r,m=e[c],b?e.style[n]=b:hd(e,n)}else(p||a==="%")&&!Cge[Ba(y,"display")]&&(o.position=Ba(e,"position")),y===e&&(o.position="static"),y.appendChild(wh),m=wh[c],y.removeChild(wh),o.position="absolute";return l&&p&&(v=Ih(y),v.time=ka.time,v.width=y[c]),Wi(h?m*s/f:m&&s?f/m*s:0)},ac=function(e,n,i,r){var s;return EI||jP(),n in Gl&&n!=="transform"&&(n=Gl[n],~n.indexOf(",")&&(n=n.split(",")[0])),Dc[n]&&n!=="transform"?(s=Hy(e,r),s=n!=="transformOrigin"?s[n]:s.svg?s.origin:S2(Ba(e,ia))+" "+s.zOrigin+"px"):(s=e.style[n],(!s||s==="auto"||r||~(s+"").indexOf("calc("))&&(s=x2[n]&&x2[n](e,n,i)||Ba(e,n)||jG(e,n)||(n==="opacity"?1:0))),i&&!~(s+"").trim().indexOf(" ")?pd(e,n,s,i)+i:s},Age=function(e,n,i,r){if(!i||i==="none"){var s=ig(n,e,1),a=s&&Ba(e,s,1);a&&a!==i?(n=s,i=a):n==="borderColor"&&(i=Ba(e,"borderTopColor"))}var o=new na(this._pt,e.style,n,0,1,xj),l=0,u=0,c,f,h,p,m,y,v,_,b,x,T,E;if(o.b=i,o.e=r,i+="",r+="",r.substring(0,6)==="var(--"&&(r=Ba(e,r.substring(4,r.indexOf(")")))),r==="auto"&&(y=e.style[n],e.style[n]=r,r=Ba(e,n)||r,y?e.style[n]=y:hd(e,n)),c=[i,r],fj(c),i=c[0],r=c[1],h=i.match(Q0)||[],E=r.match(Q0)||[],E.length){for(;f=Q0.exec(r);)v=f[0],b=r.substring(l,f.index),m?m=(m+1)%5:(b.substr(-5)==="rgba("||b.substr(-5)==="hsla(")&&(m=1),v!==(y=h[u++]||"")&&(p=parseFloat(y)||0,T=y.substr((p+"").length),v.charAt(1)==="="&&(v=Sm(p,v)+T),_=parseFloat(v),x=v.substr((_+"").length),l=Q0.lastIndex-x.length,x||(x=x||za.units[n]||T,l===r.length&&(r+=x,o.e+=x)),T!==x&&(p=pd(e,n,y,x)||0),o._pt={_next:o._pt,p:b||u===1?b:",",s:p,c:_-p,m:m&&m<4||n==="zIndex"?Math.round:0});o.c=l<r.length?r.substring(l,r.length):""}else o.r=n==="display"&&r==="none"?wj:Ej;return zG.test(r)&&(o.e=0),this._pt=o,o},Y5={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},Mge=function(e){var n=e.split(" "),i=n[0],r=n[1]||"50%";return(i==="top"||i==="bottom"||r==="left"||r==="right")&&(e=i,i=r,r=e),n[0]=Y5[i]||i,n[1]=Y5[r]||r,n.join(" ")},Dge=function(e,n){if(n.tween&&n.tween._time===n.tween._dur){var i=n.t,r=i.style,s=n.u,a=i._gsap,o,l,u;if(s==="all"||s===!0)r.cssText="",l=1;else for(s=s.split(","),u=s.length;--u>-1;)o=s[u],Dc[o]&&(l=1,o=o==="transformOrigin"?ia:Mi),hd(i,o);l&&(hd(i,Mi),a&&(a.svg&&i.removeAttribute("transform"),r.scale=r.rotate=r.translate="none",Hy(i,1),a.uncache=1,Cj(r)))}},x2={clearProps:function(e,n,i,r,s){if(s.data!=="isFromStart"){var a=e._pt=new na(e._pt,n,i,0,0,Dge);return a.u=r,a.pr=-10,a.tween=s,e._props.push(i),1}}},zy=[1,0,0,1,0,0],Oj={},Rj=function(e){return e==="matrix(1, 0, 0, 1, 0, 0)"||e==="none"||!e},K5=function(e){var n=Ba(e,Mi);return Rj(n)?zy:n.substr(7).match($G).map(Wi)},AI=function(e,n){var i=e._gsap||Ih(e),r=e.style,s=K5(e),a,o,l,u;return i.svg&&e.getAttribute("transform")?(l=e.transform.baseVal.consolidate().matrix,s=[l.a,l.b,l.c,l.d,l.e,l.f],s.join(",")==="1,0,0,1,0,0"?zy:s):(s===zy&&!e.offsetParent&&e!==Tm&&!i.svg&&(l=r.display,r.display="block",a=e.parentNode,(!a||!e.offsetParent&&!e.getBoundingClientRect().width)&&(u=1,o=e.nextElementSibling,Tm.appendChild(e)),s=K5(e),l?r.display=l:hd(e,"display"),u&&(o?a.insertBefore(e,o):a?a.appendChild(e):Tm.removeChild(e))),n&&s.length>6?[s[0],s[1],s[4],s[5],s[12],s[13]]:s)},qP=function(e,n,i,r,s,a){var o=e._gsap,l=s||AI(e,!0),u=o.xOrigin||0,c=o.yOrigin||0,f=o.xOffset||0,h=o.yOffset||0,p=l[0],m=l[1],y=l[2],v=l[3],_=l[4],b=l[5],x=n.split(" "),T=parseFloat(x[0])||0,E=parseFloat(x[1])||0,C,D,R,A;i?l!==zy&&(D=p*v-m*y)&&(R=T*(v/D)+E*(-y/D)+(y*b-v*_)/D,A=T*(-m/D)+E*(p/D)-(p*b-m*_)/D,T=R,E=A):(C=Dj(e),T=C.x+(~x[0].indexOf("%")?T/100*C.width:T),E=C.y+(~(x[1]||x[0]).indexOf("%")?E
vendor: 3,034 bytes, line 27
27/100*C.height:E)),r||r!==!1&&o.smooth?(_=T-u,b=E-c,o.xOffset=f+(_*p+b*y)-_,o.yOffset=h+(_*m+b*v)-b):o.xOffset=o.yOffset=0,o.xOrigin=T,o.yOrigin=E,o.smooth=!!r,o.origin=n,o.originIsAbsolute=!!i,e.style[ia]="0px 0px",a&&(Lf(a,o,"xOrigin",u,T),Lf(a,o,"yOrigin",c,E),Lf(a,o,"xOffset",f,o.xOffset),Lf(a,o,"yOffset",h,o.yOffset)),e.setAttribute("data-svg-origin",T+" "+E)},Hy=function(e,n){var i=e._gsap||new mj(e);if("x"in i&&!n&&!i.uncache)return i;var r=e.style,s=i.scaleX<0,a="px",o="deg",l=getComputedStyle(e),u=Ba(e,ia)||"0",c,f,h,p,m,y,v,_,b,x,T,E,C,D,R,A,k,F,N,U,$,G,Y,Q,re,he,X,ae,de,Re,_e,xe;return c=f=h=y=v=_=b=x=T=0,p=m=1,i.svg=!!(e.getCTM&&Pj(e)),l.translate&&((l.translate!=="none"||l.scale!=="none"||l.rotate!=="none")&&(r[Mi]=(l.translate!=="none"?"translate3d("+(l.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+(l.rotate!=="none"?"rotate("+l.rotate+") ":"")+(l.scale!=="none"?"scale("+l.scale.split(" ").join(",")+") ":"")+(l[Mi]!=="none"?l[Mi]:"")),r.scale=r.rotate=r.translate="none"),D=AI(e,i.svg),i.svg&&(i.uncache?(re=e.getBBox(),u=i.xOrigin-re.x+"px "+(i.yOrigin-re.y)+"px",Q=""):Q=!n&&e.getAttribute("data-svg-origin"),qP(e,Q||u,!!Q||i.originIsAbsolute,i.smooth!==!1,D)),E=i.xOrigin||0,C=i.yOrigin||0,D!==zy&&(F=D[0],N=D[1],U=D[2],$=D[3],c=G=D[4],f=Y=D[5],D.length===6?(p=Math.sqrt(F*F+N*N),m=Math.sqrt($*$+U*U),y=F||N?r0(N,F)*ch:0,b=U||$?r0(U,$)*ch+y:0,b&&(m*=Math.abs(Math.cos(b*Em))),i.svg&&(c-=E-(E*F+C*U),f-=C-(E*N+C*$))):(xe=D[6],Re=D[7],X=D[8],ae=D[9],de=D[10],_e=D[11],c=D[12],f=D[13],h=D[14],R=r0(xe,de),v=R*ch,R&&(A=Math.cos(-R),k=Math.sin(-R),Q=G*A+X*k,re=Y*A+ae*k,he=xe*A+de*k,X=G*-k+X*A,ae=Y*-k+ae*A,de=xe*-k+de*A,_e=Re*-k+_e*A,G=Q,Y=re,xe=he),R=r0(-U,de),_=R*ch,R&&(A=Math.cos(-R),k=Math.sin(-R),Q=F*A-X*k,re=N*A-ae*k,he=U*A-de*k,_e=$*k+_e*A,F=Q,N=re,U=he),R=r0(N,F),y=R*ch,R&&(A=Math.cos(R),k=Math.sin(R),Q=F*A+N*k,re=G*A+Y*k,N=N*A-F*k,Y=Y*A-G*k,F=Q,G=re),v&&Math.abs(v)+Math.abs(y)>359.9&&(v=y=0,_=180-_),p=Wi(Math.sqrt(F*F+N*N+U*U)),m=Wi(Math.sqrt(Y*Y+xe*xe)),R=r0(G,Y),b=Math.abs(R)>2e-4?R*ch:0,T=_e?1/(_e<0?-_e:_e):0),i.svg&&(Q=e.getAttribute("transform"),i.forceCSS=e.setAttribute("transform","")||!Rj(Ba(e,Mi)),Q&&e.setAttribute("transform",Q))),Math.abs(b)>90&&Math.abs(b)<270&&(s?(p*=-1,b+=y<=0?180:-180,y+=y<=0?180:-180):(m*=-1,b+=b<=0?180:-180)),n=n||i.uncache,i.x=c-((i.xPercent=c&&(!n&&i.xPercent||(Math.round(e.offsetWidth/2)===Math.round(-c)?-50:0)))?e.offsetWidth*i.xPercent/100:0)+a,i.y=f-((i.yPercent=f&&(!n&&i.yPercent||(Math.round(e.offsetHeight/2)===Math.round(-f)?-50:0)))?e.offsetHeight*i.yPercent/100:0)+a,i.z=h+a,i.scaleX=Wi(p),i.scaleY=Wi(m),i.rotation=Wi(y)+o,i.rotationX=Wi(v)+o,i.rotationY=Wi(_)+o,i.skewX=b+o,i.skewY=x+o,i.transformPerspective=T+a,(i.zOrigin=parseFloat(u.split(" ")[2])||!n&&i.zOrigin||0)&&(r[ia]=S2(u)),i.xOffset=i.yOffset=0,i.force3D=za.force3D,i.renderTransform=i.svg?Oge:Mj?kj:Pge,i.uncache=0,i},S2=function(e){return(e=e.split(" "))[0]+" "+e[1]},yM=function(e,n,i){var r=Zr(n);return Wi(parseFloat(n)+parseFloat(pd(e,"x",i+"px",r)))+r}
27,Pge=function(e,n){n.z="0px",n.rotationY=n.rotationX="0deg",n.force3D=0,kj(e,n)},Qd="0deg",P_="0px",Jd=") ",kj=function(e,n){var i=n||this,r=i.xPercent,s=i.yPercent,a=i.x,o=i.y,l=i.z,u=i.rotation,c=i.rotationY,f=i.rotationX,h=i.skewX,p=i.skewY,m=i.scaleX,y=i.scaleY,v=i.transformPerspective,_=i.force3D,b=i.target,x=i.zOrigin,T="",E=_==="auto"&&e&&e!==1||_===!0;if(x&&(f!==Qd||c!==Qd)){var C=parseFloat(c)*Em,D=Math.sin(C),R=Math.cos(C),A;C=parseFloat(f)*Em,A=Math.cos(C),a=yM(b,a,D*A*-x),o=yM(b,o,-Math.sin(C)*-x),l=yM(b,l,R*A*-x+x)}v!==P_&&(T+="perspective("+v+Jd),(r||s)&&(T+="translate("+r+"%, "+s+"%) "),(E||a!==P_||o!==P_||l!==P_)&&(T+=l!==P_||E?"translate3d("+a+", "+o+", "+l+") ":"translate("+a+", "+o+Jd),u!==Qd&&(T+="rotate("+u+Jd),c!==Qd&&(T+="rotateY("+c+Jd),f!==Qd&&(T+="rotateX("+f+Jd),(h!==Qd||p!==Qd)&&(T+="skew("+h+", "+p+Jd),(m!==1||y!==1)&&(T+="scale("+m+", "+y+Jd),b.style[Mi]=T||"translate(0, 0)"},Oge=function(e,n){var i=n||this,r=i.xPercent,s=i.yPercent,a=i.x,o=i.y,l=i.rotation,u=i.skewX,c=i.skewY,f=i.scaleX,h=i.scaleY,p=i.target,m=i.xOrigin,y=i.yOrigin,v=i.xOffset,_=i.yOffset,b=i.forceCSS,x=parseFloat(a),T=parseFloat(o),E,C,D,R,A;l=parseFloat(l),u=parseFloat(u),c=parseFloat(c),c&&(c=parseFloat(c),u+=c,l+=c),l||u?(l*=Em,u*=Em,E=Math.cos(l)*f,C=Math.sin(l)*f,D=Math.sin(l-u)*-h,R=Math.cos(l-u)*h,u&&(c*=Em,A=Math.tan(u-c),A=Math.sqrt(1+A*A),D*=A,R*=A,c&&(A=Math.tan(c),A=Math.sqrt(1+A*A),E*=A,C*=A)),E=Wi(E),C=Wi(C),D=Wi(D),R=Wi(R)):(E=f,R=h,C=D=0),(x&&!~(a+"").indexOf("px")||T&&!~(o+"").indexOf("px"))&&(x=pd(p,"x",a,"px"),T=pd(p,"y",o,"px")),(m||y||v||_)&&(x=Wi(x+m-(m*E+y*D)+v),T=Wi(T+y-(m*C+y*R)+_)),(r||s)&&(A=p.getBBox(),x=Wi(x+r/100*A.width),T=Wi(T+s/100*A.height)),A="matrix("+E+","+C+","+D+","+R+","+x+","+T+")",p.setAttribute("transform",A),b&&(p.style[Mi]=A)},Rge=function(e,n,i,r,s){var a=360,o=wr(s),l=parseFloat(s)*(o&&~s.indexOf("rad")?ch:1),u=l-r,c=r+u+"deg",f,h;return o&&(f=s.split("_")[1],f==="short"&&(u%=a,u!==u%(a/2)&&(u+=u<0?a:-a)),f==="cw"&&u<0?u=(u+a*W5)%a-~~(u/a)*a:f==="ccw"&&u>0&&(u=(u-a*W5)%a-~~(u/a)*a)),e._pt=h=new na(e._pt,n,i,r,u,pge),h.e=c,h.u="deg",e._props.push(i),h},Z5=function(e,n){for(var i in n)e[i]=n[i];return e},kge=function(e,n,i){var r=Z5({},i._gsap),s="perspective,force3D,transformOrigin,svgOrigin",a=i.style,o,l,u,c,f,h,p,m;r.svg?(u=i.getAttribute("transform"),i.setAttribute("transform",""),a[Mi]=n,o=Hy(i,1),hd(i,Mi),i.setAttribute("transform",u)):(u=getComputedStyle(i)[Mi],a[Mi]=n,o=Hy(i,1),a[Mi]=u);for(l in Dc)u=r[l],c=o[l],u!==c&&s.indexOf(l)<0&&(p=Zr(u),m=Zr(c),f=p!==m?pd(i,l,u,m):parseFloat(u),h=parseFloat(c),e._pt=new na(e._pt,o,l,f,h-f,WP),e._pt.u=m||0,e._props.push(l));Z5(o,r)};ta("padding,margin,Width,Radius",function(t,e){var n="Top",i="Right",r="Bottom",s="Left",a=(e<3?[n,i,r,s]:[n+s,n+i,r+i,r+s]).map(function(o){return e<2?t+o:"border"+o+t});x2[e>1?"border"+t:t]=function(o,l,u,c,f){var h,p;if(arguments.length<4)return h=a.map(function(m){return ac(o,m,u)}),p=h.join(" "),p.split(h[0]).length===5?h[0]:p;h=(c+"").split(" "),p={},a.forEach(function(m,y){return p[m]=h[y]=h[y]||h[(y-1)/2|0]}),o.init(l,p,f)}});var Ij={name:"css",register:jP,targetTest:function(e){return e.style&&e.nodeType},init:function(e,n,i,r,s){var a=this._props,o=e.style,l=i.vars.startAt,u,c,f,h,p,m,y,v,_,b,x,T,E,C,D,R,A;EI||jP(),this.styles=this.styles||Aj(e),R=this.styles.props,this.tween=i;for(y in n)if(y!=="autoRound"&&(c=n[y],!(Da[y]&&gj(y,n,i,r,e,s)))){if(p=typeof c,m=x2[y],p==="function"&&(c=c.call(i,r,e,s),p=typeof c),p==="string"&&~c.indexOf("random(")&&(c=By(c)),m)m(this,e,y,c,i)&&(D=1);else if(y.substr(0,2)==="--")u=(getComputedStyle(e).getPropertyValue(y)+"").trim(),c+="",Kf.lastIndex=0,Kf.test(u)||(v=Zr(u),_=Zr(c),_?v!==_&&(u=pd(e,y,u,_)+_):v&&(c+=v)),this.add(o,"setProperty",u,c,r,s,0,0,y),a.push(y),R.push(y,0,o[y]);else if(p!=="undefined"){if(l&&y in l?(u=typeof l[y]=="function"?l[y].call(i,r,e,s):l[y],wr(u)&&~u.indexOf("random(")&&(u=By(u)),Zr(u+"")||u==="auto"||(u+=za.units[y]||Zr(ac(e,y))||""),(u+"").charAt(1)==="="&&(u=ac(e,y))):u=ac(e,y),h=parseFloat(u),b=p==="string"&&c.charAt(1)==="="&&c.substr(0,2),b&&(c=c.substr(2)),f=parseFloat(c),y in Gl&&(y==="autoAlpha"&&(h===1&&ac(e,"visibility")==="hidden"&&f&&(h=0),R.push("visibility",0,o.visibility),Lf(this,o,"visibility",h?"inherit":"hidden",f?"inherit":"hidden",!f)),y!=="scale"&&y!=="transform"&&(y=Gl[y],~y.indexOf(",")&&(y=y.split(",")[0]))),x=y in Dc,x){if(this.styles.save(y),A=c,p==="string"&&c.substring(0,6)==="var(--"){if(c=Ba(e,c.substring(4,c.indexOf(")"))),c.substring(0,5)==="calc("){var k=e.style.perspective;e.style.perspective=c,c=Ba(e,"perspective"),k?e.style.perspective=k:hd(e,"perspective")}f=parseFloat(c)}if(T||(E=e._gsap,E.renderTransform&&!n.parseTransform||Hy(e,n.parseTransform),C=n.smoothOrigin!==!1&&E.smooth,T=this._pt=new na(this._pt,o,Mi,0,1,E.renderTransform,E,0,-1),T.dep=1),y==="scale")this._pt=new na(this._pt,E,"scaleY",E.scaleY,(b?Sm(E.scaleY,b+f):f)-E.scaleY||0,WP),this._pt.u=0,a.push("scaleY",y),y+="X";else if(y==="transformOrigin"){R.push(ia,0,o[ia]),c=Mge(c),E.svg?qP(e,c,0,C,0,this):(_=parseFloat(c.split(" ")[2])||0,_!==E.zOrigin&&Lf(this,E,"zOrigin",E.zOrigin,_),Lf(this,o,y,S2(u),S2(c)));continue}else if(y==="svgOrigin"){qP(e,c,1,C,0,this);continue}else if(y in Oj){Rge(this,E,y,h,b?Sm(h,b+c):c);continue}else if(y==="smoothOrigin"){Lf(this,E,"smooth",E.smooth,c);continue}else if(y==="force3D"){E[y]=c;continue}else if(y==="transform"){kge(this,c,e);continue}}else y in o||(y=ig(y)||y);if(x||(f||f===0)&&(h||h===0)&&!hge.test(c)&&y in o)v=(u+"").substr((h+"").length),f||(f=0),_=Zr(c)||(y in za.units?za.units[y]:v),v!==_&&(h=pd(e,y,u,_)),this._pt=new na(this._pt,x?E:o,y,h,(b?Sm(h,b+f):f)-h,!x&&(_==="px"||y==="zIndex")&&n.autoRound!==!1?_ge:WP),this._pt.u=_||0,x&&A!==c?(this._pt.b=u,this._pt.e=A,this._pt.r=gge):v!==_&&_!=="%"&&(this._pt.b=u,this._pt.r=mge);else if(y in o)Age.call(this,e,y,u,b?b+c:c);else if(y in e)this.add(e,y,u||e[y],b?b+c:c,r,s);else if(y!=="parseTransform"){pI(y,c);continue}x||(y in o?R.push(y,0,o[y]):typeof e[y]=="function"?R.push(y,2,e[y]()):R.push(y,1,u||e[y])),a.push(y)}}D&&Sj(this)},render:function(e,n){if(n.tween._time||!wI())for(var i=n._pt;i;)i.r(e,i.d),i=i._next;else n.styles.revert()},get:ac,aliases:Gl,getSetter:function(e,n,i){var r=Gl[n];return r&&r.indexOf(",")<0&&(n=r),n in Dc&&n!==ia&&(e._gsap.x||ac(e,"x"))?i&&V5===i?n==="scale"?xge:bge:(V5=i||{})&&(n==="scale"?Sge:Tge):e.style&&!fI(e.style[n])?vge:~n.indexOf("-")?yge:SI(e,n
27)},core:{_removeProperty:hd,_getMatrix:AI}};ua.utils.checkPrefix=ig;ua.core.getStyleSaver=Aj;(function(t,e,n,i){var r=ta(t+","+e+","+n,function(s){Dc[s]=1});ta(e,function(s){za.units[s]="deg",Oj[s]=1}),Gl[r[13]]=t+","+e,ta(i,function(s){var a=s.split(":");Gl[a[1]]=r[a[0]]})})("x,y,z,scale,scaleX,scaleY,xPercent,yPercent","rotation,rotationX,rotationY,skewX,skewY","transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective","0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY");ta("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(t){za.units[t]="px"});ua.registerPlugin(Ij);var Ige=ua.registerPlugin(Ij)||ua;Ige.core.Tween;function Q5(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function Lge(t,e,n){return e&&Q5(t.prototype,e),n&&Q5(t,n),t}/*!
28 * Observer 3.14.2
29 * https://gsap.com
30 *
31 * @license Copyright 2008-2025, GreenSock. All rights reserved.
32 * Subject to the terms at https://gsap.com/standard-license
33 * @author: Jack Doyle, [email protected]
34*/var Lr,TT,Ia,Ff,Nf,wm,Lj,fh,Wv,Fj,gc,Yo,Nj,Bj=function(){return Lr||typeof window<"u"&&(Lr=window.gsap)&&Lr.registerPlugin&&Lr},Uj=1,em=[],gn=[],ru=[],Gv=Date.now,XP=function(e,n){return n},Fge=function(){var e=Wv.core,n=e.bridge||{},i=e._scrollers,r=e._proxies;i.push.apply(i,gn),r.push.apply(r,ru),gn=i,ru=r,XP=function(a,o){return n[a](o)}},Zf=function(e,n){return~ru.indexOf(e)&&ru[ru.indexOf(e)+1][n]},jv=function(e){return!!~Fj.indexOf(e)},gs=function(e,n,i,r,s){return e.addEventListener(n,i,{passive:r!==!1,capture:!!s})},ds=function(e,n,i,r){return e.removeEventListener(n,i,!!r)},Rx="scrollLeft",kx="scrollTop",YP=function(){return gc&&gc.isPressed||gn.cache++},T2=function(e,n){var i=function r(s){if(s||s===0){Uj&&(Ia.history.scrollRestoration="manual");var a=gc&&gc.isPressed;s=r.v=Math.round(s)||(gc&&gc.iOS?1:0),e(s),r.cacheID=gn.cache,a&&XP("ss",s)}else(n||gn.cache!==r.cacheID||XP("ref"))&&(r.cacheID=gn.cache,r.v=e());return r.v+r.offset};return i.offset=0,e&&i},ws={s:Rx,p:"left",p2:"Left",os:"right",os2:"Right",d:"width",d2:"Width",a:"x",sc:T2(function(t){return arguments.length?Ia.scrollTo(t,ar.sc()):Ia.pageXOffset||Ff[Rx]||Nf[Rx]||wm[Rx]||0})},ar={s:kx,p:"top",p2:"Top",os:"bottom",os2:"Bottom",d:"height",d2:"Height",a:"y",op:ws,sc:T2(function(t){return arguments.length?Ia.scrollTo(ws.sc(),t):Ia.pageYOffset||Ff[kx]||Nf[kx]||wm[kx]||0})},Ws=function(e,n){return(n&&n._ctx&&n._ctx.selector||Lr.utils.toArray)(e)[0]||(typeof e=="string"&&Lr.config().nullTargetWarn!==!1?console.warn("Element not found:",e):null)},Nge=function(e,n){for(var i=n.length;i--;)if(n[i]===e||n[i].contains(e))return!0;return!1},md=function(e,n){var i=n.s,r=n.sc;jv(e)&&(e=Ff.scrollingElement||Nf);var s=gn.indexOf(e),a=r===ar.sc?1:2;!~s&&(s=gn.push(e)-1),gn[s+a]||gs(e,"scroll",YP);var o=gn[s+a],l=o||(gn[s+a]=T2(Zf(e,i),!0)||(jv(e)?r:T2(function(u){return arguments.length?e[i]=u:e[i]})));return l.target=e,o||(l.smooth=Lr.getProperty(e,"scrollBehavior")==="smooth"),l},KP=function(e,n,i){var r=e,s=e,a=Gv(),o=a,l=n||50,u=Math.max(500,l*3),c=function(m,y){var v=Gv();y||v-a>l?(s=r,r=m,o=a,a=v):i?r+=m:r=s+(m-s)/(v-o)*(a-o)},f=function(){s=r=i?0:r,o=a=0},h=function(m){var y=o,v=s,_=Gv();return(m||m===0)&&m!==r&&c(m),a===o||_-o>u?0:(r+(i?v:-v))/((i?_:a)-y)*1e3};return{update:c,reset:f,getVelocity:h}},O_=function(e,n){return n&&!e._gsapAllow&&e.preventDefault(),e.changedTouches?e.changedTouches[0]:e},J5=function(e){var n=Math.max.apply(Math,e),i=Math.min.apply(Math,e);return Math.abs(n)>=Math.abs(i)?n:i},$j=function(){Wv=Lr.core.globals().ScrollTrigger,Wv&&Wv.core&&Fge()},zj=function(e){return Lr=e||Bj(),!TT&&Lr&&typeof document<"u"&&document.body&&(Ia=window,Ff=document,Nf=Ff.documentElement,wm=Ff.body,Fj=[Ia,Ff,Nf,wm],Lr.utils.clamp,Nj=Lr.core.context||function(){},fh="onpointerenter"in wm?"pointer":"mouse",Lj=ji.isTouch=Ia.matchMedia&&Ia.matchMedia("(hover: none), (pointer: coarse)").matches?1:"ontouchstart"in Ia||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0?2:0,Yo=ji.eventTypes=("ontouchstart"in Nf?"touchstart,touchmove,touchcancel,touchend":"onpointerdown"in Nf?"pointerdown,pointermove,pointercancel,pointerup":"mousedown,mousemove,mouseup,mouseup").split(","),setTimeout(function(){return Uj=0},500),$j(),TT=1),TT};ws.op=ar;gn.cache=0;var ji=function(){function t(n){this.init(n)}var e=t.prototype;return e.init=function(i){TT||zj(Lr)||console.warn("Please gsap.registerPlugin(Observer)"),Wv||$j();var r=i.tolerance,s=i.dragMinimum,a=i.type,o=i.target,l=i.lineHeight,u=i.debounce,c=i.preventDefault,f=i.onStop,h=i.onStopDelay,p=i.ignore,m=i.wheelSpeed,y=i.event,v=i.onDragStart,_=i.onDragEnd,b=i.onDrag,x=i.onPress,T=i.onRelease,E=i.onRight,C=i.onLeft,D=i.onUp,R=i.onDown,A=i.onChangeX,k=i.onChangeY,F=i.onChange,N=i.onToggleX,U=i.onToggleY,$=i.on
34Hover,G=i.onHoverEnd,Y=i.onMove,Q=i.ignoreCheck,re=i.isNormalizer,he=i.onGestureStart,X=i.onGestureEnd,ae=i.onWheel,de=i.onEnable,Re=i.onDisable,_e=i.onClick,xe=i.scrollSpeed,we=i.capture,ve=i.allowClicks,De=i.lockAxis,We=i.onLockAxis;this.target=o=Ws(o)||Nf,this.vars=i,p&&(p=Lr.utils.toArray(p)),r=r||1e-9,s=s||0,m=m||1,xe=xe||1,a=a||"wheel,touch,pointer",u=u!==!1,l||(l=parseFloat(Ia.getComputedStyle(wm).lineHeight)||22);var lt,Ze,z,J,te,pe,me,ne=this,Le=0,Pe=0,Ce=i.passive||!c&&i.passive!==!1,Te=md(o,ws),et=md(o,ar),j=Te(),V=et(),oe=~a.indexOf("touch")&&!~a.indexOf("pointer")&&Yo[0]==="pointerdown",Ne=jv(o),Ae=o.ownerDocument||Ff,Ue=[0,0,0],tt=[0,0,0],qe=0,ke=function(){return qe=Gv()},ie=function(Et,It){return(ne.event=Et)&&p&&Nge(Et.target,p)||It&&oe&&Et.pointerType!=="touch"||Q&&Q(Et,It)},Ve=function(){ne._vx.reset(),ne._vy.reset(),Ze.pause(),f&&f(ne)},rt=function(){var Et=ne.deltaX=J5(Ue),It=ne.deltaY=J5(tt),ft=Math.abs(Et)>=r,Ot=Math.abs(It)>=r;F&&(ft||Ot)&&F(ne,Et,It,Ue,tt),ft&&(E&&ne.deltaX>0&&E(ne),C&&ne.deltaX<0&&C(ne),A&&A(ne),N&&ne.deltaX<0!=Le<0&&N(ne),Le=ne.deltaX,Ue[0]=Ue[1]=Ue[2]=0),Ot&&(R&&ne.deltaY>0&&R(ne),D&&ne.deltaY<0&&D(ne),k&&k(ne),U&&ne.deltaY<0!=Pe<0&&U(ne),Pe=ne.deltaY,tt[0]=tt[1]=tt[2]=0),(J||z)&&(Y&&Y(ne),z&&(v&&z===1&&v(ne),b&&b(ne),z=0),J=!1),pe&&!(pe=!1)&&We&&We(ne),te&&(ae(ne),te=!1),lt=0},Je=function(Et,It,ft){Ue[ft]+=Et,tt[ft]+=It,ne._vx.update(Et),ne._vy.update(It),u?lt||(lt=requestAnimationFrame(rt)):rt()},nt=function(Et,It){De&&!me&&(ne.axis=me=Math.abs(Et)>Math.abs(It)?"x":"y",pe=!0),me!=="y"&&(Ue[2]+=Et,ne._vx.update(Et,!0)),me!=="x"&&(tt[2]+=It,ne._vy.update(It,!0)),u?lt||(lt=requestAnimationFrame(rt)):rt()},Tt=function(Et){if(!ie(Et,1)){Et=O_(Et,c);var It=Et.clientX,ft=Et.clientY,Ot=It-ne.x,bt=ft-ne.y,Dt=ne.isDragging;ne.x=It,ne.y=ft,(Dt||(Ot||bt)&&(Math.abs(ne.startX-It)>=s||Math.abs(ne.startY-ft)>=s))&&(z||(z=Dt?2:1),Dt||(ne.isDragging=!0),nt(Ot,bt))}},Mt=ne.onPress=function(ht){ie(ht,1)||ht&&ht.button||(ne.axis=me=null,Ze.pause(),ne.isPressed=!0,ht=O_(ht),Le=Pe=0,ne.startX=ne.x=ht.clientX,ne.startY=ne.y=ht.clientY,ne._vx.reset(),ne._vy.reset(),gs(re?o:Ae,Yo[1],Tt,Ce,!0),ne.deltaX=ne.deltaY=0,x&&x(ne))},ce=ne.onRelease=function(ht){if(!ie(ht,1)){ds(re?o:Ae,Yo[1],Tt,!0);var Et=!isNaN(ne.y-ne.startY),It=ne.isDragging,ft=It&&(Math.abs(ne.x-ne.startX)>3||Math.abs(ne.y-ne.startY)>3),Ot=O_(ht);!ft&&Et&&(ne._vx.reset(),ne._vy.reset(),c&&ve&&Lr.delayedCall(.08,function(){if(Gv()-qe>300&&!ht.defaultPrevented){if(ht.target.click)ht.target.click();else if(Ae.createEvent){var bt=Ae.createEvent("MouseEvents");bt.initMouseEvent("click",!0,!0,Ia,1,Ot.screenX,Ot.screenY,Ot.clientX,Ot.clientY,!1,!1,!1,!1,0,null),ht.target.dispatchEvent(bt)}}})),ne.isDragging=ne.isGesturing=ne.isPressed=!1,f&&It&&!re&&Ze.restart(!0),z&&rt(),_&&It&&_(ne),T&&T(ne,ft)}},ot=function(Et){return Et.touches&&Et.touches.length>1&&(ne.isGesturing=!0)&&he(Et,ne.isDragging)},Oe=function(){return(ne.isGesturing=!1)||X(ne)},Qe=function(Et){if(!ie(Et)){var It=Te(),ft=et();Je((It-j)*xe,(ft-V)*xe,1),j=It,V=ft,f&&Ze.restart(!0)}},st=function(Et){if(!ie(Et)){Et=O_(Et,c),ae&&(te=!0);var It=(Et.deltaMode===1?l:Et.deltaMode===2?Ia.innerHeight:1)*m;Je(Et.deltaX*It,Et.deltaY*It,0),f&&!re&&Ze.restart(!0)}},Rt=function(Et){if(!ie(Et)){var It=Et.clientX,ft=Et.clientY,Ot=It-ne.x,bt=ft-ne.y;ne.x=It,ne.y=ft,J=!0,f&&Ze.restart(!0),(Ot||bt)&&nt(Ot,bt)}},Vt=function(Et){ne.event=Et,$(ne)},Wt=function(Et){ne.event=Et,G(ne)},Vn=function(Et){return ie(Et)||O_(Et,c)&&_e(ne)};Ze=ne._dc=Lr.delayedCall(h||.25,Ve).pause(),ne.deltaX=ne.deltaY=0,ne._vx=KP(0,50,!0),ne._vy=KP(0,50,!0),ne.scrollX=Te,ne.scrollY=et,ne.isDragging=ne.isGesturing=ne.isPressed=!1,Nj(this),ne.enable=function(ht){return ne.isEnabled||(gs(Ne?Ae:o,"scroll",YP),a.indexOf("scroll")>=0&&gs(Ne?Ae:o,"scroll",Qe,Ce,we),a.indexOf("wheel")>=0&&gs(o,"wheel",st,Ce,we),(a.indexOf("touch")>=0&&Lj||a.indexOf("pointer")>=0)&&(gs(o,Yo[0],Mt,Ce,we),gs(Ae,Yo[2],ce),gs(Ae,Yo[3],ce),ve&&gs(o,"click",ke,!0,!0),_e&&gs(o,"click",Vn),he&&gs(Ae,"gesturestart",ot),X&&gs(Ae,"gestureend",Oe),$&&gs(o,fh+"enter",Vt),G&&gs(o,fh+"leave",Wt),Y&&gs(o,fh+"move",Rt)),ne.isEnabled=!0,ne.isDragging=ne.isGesturing=ne.isPressed=J=z=!1,ne._vx.reset(),ne._vy.reset(),j=Te(),V=et(),ht&&ht.type&&Mt(ht),de&&de(ne)),ne},ne.disable=function(){ne.isEnabled&&(em.filter(function(ht){return ht!==ne&&jv(ht.target)}).length||ds(Ne?Ae:o,"scroll",YP),ne.isPressed&&(ne._vx.reset(),ne._vy.reset(),ds(re?o:Ae,Yo[1],Tt,!0)),ds(Ne?Ae:o,"scroll",Qe,we),ds(o,"wheel",st,we),ds(o,Yo[0],Mt,we),ds(Ae,Yo[2],ce),ds(Ae,Yo[3],ce),ds(o,"click",ke,!0),ds(o,"click",Vn),ds(Ae,"gesturestart",ot),ds(Ae,"gestureend",Oe),ds(o,fh+"enter",Vt),ds(o,fh+"leave",Wt),ds(o,fh+"move",Rt),ne.isEnabled=ne.isPressed=ne.isDragging=!1,Re&&Re(ne))},ne.kill=ne.revert=function(){ne.disable();var ht=em.indexOf(ne);ht>=0&&em.splice(ht,1),gc===ne&&(gc=0)},em.push(ne),re&&jv(o)&&(gc=ne),ne.enable(y)},Lge(t,[{key:"velocityX",get:function(){return this._vx.getVelocity()}},{key:"velocityY",get:function(){return this._vy.getVelocity()}}]),t}();ji.version="3.14.2";ji.create=function(t){return new ji(t)};ji.register=zj;ji.getAll=function(){return em.slice()};ji.getById=function(t){return em.filter(function(e){return e.vars.id===t})[0]};Bj()&&Lr.registerPlugin(ji);/*!
35 * ScrollTrigger 3.14.2
36 * https://gsap.com
37 *
38 * @license Copyright 2008-2025, GreenSock. All rights reserved.
39 * Subject to the terms at https://gsap.com/standard-license
40 * @author: Jack Doyle, [email protected]
41*/var wt,V0,pn,ni,Oa,Nn,MI,E2,Vy,qv,gv,Ix,Gr,cw,ZP,ys,e8,t8,W0,Hj,bM,Vj,vs,QP,Wj,Gj,Ef,JP,DI,Cm,PI,Xv,eO,xM,Lx=1,Xr=Date.now,SM=Xr(),Mo=0,_v=0,n8=function(e,n,i){var r=Ca(e)&&(e.substr(0,6)==="clamp("||e.indexOf("max")>-1);return i["_"+n+"Clamp"]=r,r?e.substr(6,e.length-7):e},i8=function(e,n){return n&&(!Ca(e)||e.substr(0,6)!=="clamp(")?"clamp("+e+")":e},Bge=function t(){return _v&&requestAnimationFrame(t)},r8=function(){return cw=1},s8=function(){return cw=0},Nl=function(e){return e},vv=function(e){return Math.round(e*1e5)/1e5||0},jj=function(){return typeof window<"u"},qj=function(){return wt||jj()&&(wt=window.gsap)&&wt.registerPlugin&&wt},op=function(e){return!!~MI.indexOf(e)},Xj=function(e){return(e==="Height"?PI:pn["inner"+e])||Oa["client"+e]||Nn["client"+e]},Yj=function(e){return Zf(e,"getBoundingClientRect")||(op(e)?function(){return MT.width=pn.innerWidth,MT.height=PI,MT}:function(){return uc(e)})},Uge=function(e,n,i){var r=i.d,s=i.d2,a=i.a;return(a=Zf(e,"getBoundingClientRect"))?function(){return a()[r]}:function(){return(n?Xj(s):e["client"+s])||0}},$ge=function(e,n){return!n||~ru.indexOf(e)?Yj(e):function(){return MT}},jl=function(e,n){var i=n.s,r=n.d2,s=n.d,a=n.a;return Math.max(0,(i="scroll"+r)&&(a=Zf(e,i))?a()-Yj(e)()[s]:op(e)?(Oa[i]||Nn[i])-Xj(r):e[i]-e["offset"+r])},Fx=function(e,n){for(var i=0;i<W0.length;i+=3)(!n||~n.indexOf(W0[i+1]))&&e(W0[i],W0[i+1],W0[i+2])},Ca=function(e){return typeof e=="string"},Qr=function(e){return typeof e=="function"},yv=function(e){return typeof e=="number"},dh=function(e){return typeof e=="object"},R_=function(e,n,i){return e&&e.progress(n?0:1)&&i&&e.pause()},TM=function(e,n){if(e.enabled){var i=e._ctx?e._ctx.add(function(){return n(e)}):n(e);
41i&&i.totalTime&&(e.callbackAnimation=i)}},s0=Math.abs,Kj="left",Zj="top",OI="right",RI="bottom",Bh="width",Uh="height",Yv="Right",Kv="Left",Zv="Top",Qv="Bottom",Ki="padding",yo="margin",rg="Width",kI="Height",rr="px",bo=function(e){return pn.getComputedStyle(e)},zge=function(e){var n=bo(e).position;e.style.position=n==="absolute"||n==="fixed"?n:"relative"},a8=function(e,n){for(var i in n)i in e||(e[i]=n[i]);return e},uc=function(e,n){var i=n&&bo(e)[ZP]!=="matrix(1, 0, 0, 1, 0, 0)"&&wt.to(e,{x:0,y:0,xPercent:0,yPercent:0,rotation:0,rotationX:0,rotationY:0,scale:1,skewX:0,skewY:0}).progress(1),r=e.getBoundingClientRect();return i&&i.progress(0).kill(),r},w2=function(e,n){var i=n.d2;return e["offset"+i]||e["client"+i]||0},Qj=function(e){var n=[],i=e.labels,r=e.duration(),s;for(s in i)n.push(i[s]/r);return n},Hge=function(e){return function(n){return wt.utils.snap(Qj(e),n)}},II=function(e){var n=wt.utils.snap(e),i=Array.isArray(e)&&e.slice(0).sort(function(r,s){return r-s});return i?function(r,s,a){a===void 0&&(a=.001);var o;if(!s)return n(r);if(s>0){for(r-=a,o=0;o<i.length;o++)if(i[o]>=r)return i[o];return i[o-1]}else for(o=i.length,r+=a;o--;)if(i[o]<=r)return i[o];return i[0]}:function(r,s,a){a===void 0&&(a=.001);var o=n(r);return!s||Math.abs(o-r)<a||o-r<0==s<0?o:n(s<0?r-e:r+e)}},Vge=function(e){return function(n,i){return II(Qj(e))(n,i.direction)}},Nx=function(e,n,i,r){return i.split(",").forEach(function(s){return e(n,s,r)})},gr=function(e,n,i,r,s){return e.addEventListener(n,i,{passive:!r,capture:!!s})},mr=function(e,n,i,r){return e.removeEventListener(n,i,!!r)},Bx=function(e,n,i){i=i&&i.wheelHandler,i&&(e(n,"wheel",i),e(n,"touchmove",i))},o8={startColor:"green",endColor:"red",indent:0,fontSize:"16px",fontWeight:"normal"},Ux={toggleActions:"play",anticipatePin:0},C2={top:0,left:0,center:.5,bottom:1,right:1},ET=function(e,n){if(Ca(e)){var i=e.indexOf("="),r=~i?+(e.charAt(i-1)+1)*parseFloat(e.substr(i+1)):0;~i&&(e.indexOf("%")>i&&(r*=n/100),e=e.substr(0,i-1)),e=r+(e in C2?C2[e]*n:~e.indexOf("%")?parseFloat(e)*n/100:parseFloat(e)||0)}return e},$x=function(e,n,i,r,s,a,o,l){var u=s.startColor,c=s.endColor,f=s.fontSize,h=s.indent,p=s.fontWeight,m=ni.createElement("div"),y=op(i)||Zf(i,"pinType")==="fixed",v=e.indexOf("scroller")!==-1,_=y?Nn:i,b=e.indexOf("start")!==-1,x=b?u:c,T="border-color:"+x+";font-size:"+f+";color:"+x+";font-weight:"+p+";pointer-events:none;white-space:nowrap;font-family:sans-serif,Arial;z-index:1000;padding:4px 8px;border-width:0;border-style:solid;";return T+="position:"+((v||l)&&y?"fixed;":"absolute;"),(v||l||!y)&&(T+=(r===ar?OI:RI)+":"+(a+parseFloat(h))+"px;"),o&&(T+="box-sizing:border-box;text-align:left;width:"+o.offsetWidth+"px;"),m._isStart=b,m.setAttribute("class","gsap-marker-"+e+(n?" marker-"+n:"")),m.style.cssText=T,m.innerText=n||n===0?e+"-"+n:e,_.children[0]?_.insertBefore(m,_.children[0]):_.appendChild(m),m._offset=m["offset"+r.op.d2],wT(m,0,r,b),m},wT=function(e,n,i,r){var s={display:"block"},a=i[r?"os2":"p2"],o=i[r?"p2":"os2"];e._isFlipped=r,s[i.a+"Percent"]=r?-100:0,s[i.a]=r?"1px":0,s["border"+a+rg]=1,s["border"+o+rg]=0,s[i.p]=n+"px",wt.set(e,s)},fn=[],tO={},Wy,l8=function(){return Xr()-Mo>34&&(Wy||(Wy=requestAnimationFrame(xc)))},a0=function(){(!vs||!vs.isPressed||vs.startX>Nn.clientWidth)&&(gn.cache++,vs?Wy||(Wy=requestAnimationFrame(xc)):xc(),Mo||up("scrollStart"),Mo=Xr())},EM=function(){Gj=pn.innerWidth,Wj=pn.innerHeight},bv=function(e){gn.cache++,(e===!0||!Gr&&!Vj&&!ni.fullscreenElement&&!ni.webkitFullscreenElement&&(!QP||Gj!==pn.innerWidth||Math.abs(pn.innerHeight-Wj)>pn.innerHeight*.25))&&E2.restart(!0)},lp={},Wge=[],Jj=function t(){return mr(Tn,"scrollEnd",t)||Ch(!0)},up=function(e){return lp[e]&&lp[e].map(function(n){return n()})||Wge},wa=[],eq=function(e){for(var n=0;n<wa.length;n+=5)(!e||wa[n+4]&&wa[n+4].query===e)&&(wa[n].style.cssText=wa[n+1],wa[n].getBBox&&wa[n].setAttribute("transform",wa[n+2]||""),wa[n+3].uncache=1)},tq=function(){return gn.forEach(function(e){return Qr(e)&&++e.cacheID&&(e.rec=e())})},LI=function(e,n){var i;for(ys=0;ys<fn.length;ys++)i=fn[ys],i&&(!n||i._ctx===n)&&(e?i.kill(1):i.revert(!0,!0));Xv=!0,n&&eq(n),n||up("revert")}
41,nq=function(e,n){gn.cache++,(n||!bs)&&gn.forEach(function(i){return Qr(i)&&i.cacheID++&&(i.rec=0)}),Ca(e)&&(pn.history.scrollRestoration=DI=e)},bs,$h=0,u8,Gge=function(){if(u8!==$h){var e=u8=$h;requestAnimationFrame(function(){return e===$h&&Ch(!0)})}},iq=function(){Nn.appendChild(Cm),PI=!vs&&Cm.offsetHeight||pn.innerHeight,Nn.removeChild(Cm)},c8=function(e){return Vy(".gsap-marker-start, .gsap-marker-end, .gsap-marker-scroller-start, .gsap-marker-scroller-end").forEach(function(n){return n.style.display=e?"none":"block"})},Ch=function(e,n){if(Oa=ni.documentElement,Nn=ni.body,MI=[pn,ni,Oa,Nn],Mo&&!e&&!Xv){gr(Tn,"scrollEnd",Jj);return}iq(),bs=Tn.isRefreshing=!0,Xv||tq();var i=up("refreshInit");Hj&&Tn.sort(),n||LI(),gn.forEach(function(r){Qr(r)&&(r.smooth&&(r.target.style.scrollBehavior="auto"),r(0))}),fn.slice(0).forEach(function(r){return r.refresh()}),Xv=!1,fn.forEach(function(r){if(r._subPinOffset&&r.pin){var s=r.vars.horizontal?"offsetWidth":"offsetHeight",a=r.pin[s];r.revert(!0,1),r.adjustPinSpacing(r.pin[s]-a),r.refresh()}}),eO=1,c8(!0),fn.forEach(function(r){var s=jl(r.scroller,r._dir),a=r.vars.end==="max"||r._endClamp&&r.end>s,o=r._startClamp&&r.start>=s;(a||o)&&r.setPositions(o?s-1:r.start,a?Math.max(o?s:r.start+1,s):r.end,!0)}),c8(!1),eO=0,i.forEach(function(r){return r&&r.render&&r.render(-1)}),gn.forEach(function(r){Qr(r)&&(r.smooth&&requestAnimationFrame(function(){return r.target.style.scrollBehavior="smooth"}),r.rec&&r(r.rec))}),nq(DI,1),E2.pause(),$h++,bs=2,xc(2),fn.forEach(function(r){return Qr(r.vars.onRefresh)&&r.vars.onRefresh(r)}),bs=Tn.isRefreshing=!1,up("refresh")},nO=0,CT=1,Jv,xc=function(e){if(e===2||!bs&&!Xv){Tn.isUpdating=!0,Jv&&Jv.update(0);var n=fn.length,i=Xr(),r=i-SM>=50,s=n&&fn[0].scroll();if(CT=nO>s?-1:1,bs||(nO=s),r&&(Mo&&!cw&&i-Mo>200&&(Mo=0,up("scrollEnd")),gv=SM,SM=i),CT<0){for(ys=n;ys-- >0;)fn[ys]&&fn[ys].update(0,r);CT=1}else for(ys=0;ys<n;ys++)fn[ys]&&fn[ys].update(0,r);Tn.isUpdating=!1}Wy=0},iO=[Kj,Zj,RI,OI,yo+Qv,yo+Yv,yo+Zv,yo+Kv,"display","flexShrink","float","zIndex","gridColumnStart","gridColumnEnd","gridRowStart","gridRowEnd","gridArea","justifySelf","alignSelf","placeSelf","order"],AT=iO.concat([Bh,Uh,"boxSizing","max"+rg,"max"+kI,"position",yo,Ki,Ki+Zv,Ki+Yv,Ki+Qv,Ki+Kv]),jge=function(e,n,i){Am(i);var r=e._gsap;if(r.spacerIsNative)Am(r.spacerState);else if(e._gsap.swappedIn){var s=n.parentNode;s&&(s.insertBefore(e,n),s.removeChild(n))}e._gsap.swappedIn=!1},wM=function(e,n,i,r){if(!e._gsap.swappedIn){for(var s=iO.length,a=n.style,o=e.style,l;s--;)l=iO[s],a[l]=i[l];a.position=i.position==="absolute"?"absolute":"relative",i.display==="inline"&&(a.display="inline-block"),o[RI]=o[OI]="auto",a.flexBasis=i.flexBasis||"auto",a.overflow="visible",a.boxSizing="border-box",a[Bh]=w2(e,ws)+rr,a[Uh]=w2(e,ar)+rr,a[Ki]=o[yo]=o[Zj]=o[Kj]="0",Am(r),o[Bh]=o["max"+rg]=i[Bh],o[Uh]=o["max"+kI]=i[Uh],o[Ki]=i[Ki],e.parentNode!==n&&(e.parentNode.insertBefore(n,e),n.appendChild(e)),e._gsap.swappedIn=!0}},qge=/([A-Z])/g,Am=function(e){if(e){var n=e.t.style,i=e.length,r=0,s,a;for((e.t._gsap||wt.core.getCache(e.t)).uncache=1;r<i;r+=2)a=e[r+1],s=e[r],a?n[s]=a:n[s]&&n.removeProperty(s.replace(qge,"-$1").toLowerCase())}},zx=function(e){for(var n=AT.length,i=e.style,r=[],s=0;s<n;s++)r.push(AT[s],i[AT[s]]);return r.t=e,r},Xge=function(e,n,i){for(var r=[],s=e.length,a=i?8:0,o;a<s;a+=2)o=e[a],r.push(o,o in n?n[o]:e[a+1]);return r.t=e.t,r},MT={left:0,top:0},f8=function(e,n,i,r,s,a,o,l,u,c,f,h,p,m){Qr(e)&&(e=e(l)),Ca(e)&&e.substr(0,3)==="max"&&(e=h+(e.charAt(4)==="="?ET("0"+e.substr(3),i):0));var y=p?p.time():0,v,_,b;if(p&&p.seek(0),isNaN(e)||(e=+e),yv(e))p&&(e=wt.utils.mapRange(p.scrollTrigger.start,p.scrollTrigger.end,0,h,e)),o&&wT(o,i,r,!0);else{Qr(n)&&(n=n(l));var x=(e||"0").split(" "),T,E,C,D;b=Ws(n,l)||Nn,T=uc(b)||{},(!T||!T.left&&!T.top)&&bo(b).display==="none"&&(D=b.style.display,b.style.display="block",T=uc(b),D?b.style.display=D:b.style.removeProperty("display")),E=ET(x[0],T[r.d]),C=ET(x[1]||"0",i),e=T[r.p]-u[r.p]-c+E+s-C,o&&wT(o,C,r,i-C<20||o._isStart&&C>20),i-=i-C}if(m&&(l[m]=e||-.001,e<0&&(e=0)),a){var R=e+i,A=a._isStart;v="scroll"+r.d2,wT(a,R,r,A&&R>20||!A&&(f?Math.max(Nn[v],Oa[v]):a.parentNode[v])<=R+1),f&&(u=uc(o),f&&(a.style[r.op.p]=u[r.op.p]-r.op.m-a._offset+rr))}return p&&b&&(v=uc(b),p.seek(h),_=uc(b),p._caScrollDist=v[r.p]-_[r.p],e=e/p._c
41aScrollDist*h),p&&p.seek(y),p?e:Math.round(e)},Yge=/(webkit|moz|length|cssText|inset)/i,d8=function(e,n,i,r){if(e.parentNode!==n){var s=e.style,a,o;if(n===Nn){e._stOrig=s.cssText,o=bo(e);for(a in o)!+a&&!Yge.test(a)&&o[a]&&typeof s[a]=="string"&&a!=="0"&&(s[a]=o[a]);s.top=i,s.left=r}else s.cssText=e._stOrig;wt.core.getCache(e).uncache=1,n.appendChild(e)}},rq=function(e,n,i){var r=n,s=r;return function(a){var o=Math.round(e());return o!==r&&o!==s&&Math.abs(o-r)>3&&Math.abs(o-s)>3&&(a=o,i&&i()),s=r,r=Math.round(a),r}},Hx=function(e,n,i){var r={};r[n.p]="+="+i,wt.set(e,r)},h8=function(e,n){var i=md(e,n),r="_scroll"+n.p2,s=function a(o,l,u,c,f){var h=a.tween,p=l.onComplete,m={};u=u||i();var y=rq(i,u,function(){h.kill(),a.tween=0});return f=c&&f||0,c=c||o-u,h&&h.kill(),l[r]=o,l.inherit=!1,l.modifiers=m,m[r]=function(){return y(u+c*h.ratio+f*h.ratio*h.ratio)},l.onUpdate=function(){gn.cache++,a.tween&&xc()},l.onComplete=function(){a.tween=0,p&&p.call(h)},h=a.tween=wt.to(e,l),h};return e[r]=i,i.wheelHandler=function(){return s.tween&&s.tween.kill()&&(s.tween=0)},gr(e,"wheel",i.wheelHandler),Tn.isTouch&&gr(e,"touchmove",i.wheelHandler),s},Tn=function(){function t(n,i){V0||t.register(wt)||console.warn("Please gsap.registerPlugin(ScrollTrigger)"),JP(this),this.init(n,i)}var e=t.prototype;return e.init=function(i,r){if(this.progress=this.start=0,this.vars&&this.kill(!0,!0),!_v){this.update=this.refresh=this.kill=Nl;return}i=a8(Ca(i)||yv(i)||i.nodeType?{trigger:i}:i,Ux);var s=i,a=s.onUpdate,o=s.toggleClass,l=s.id,u=s.onToggle,c=s.onRefresh,f=s.scrub,h=s.trigger,p=s.pin,m=s.pinSpacing,y=s.invalidateOnRefresh,v=s.anticipatePin,_=s.onScrubComplete,b=s.onSnapComplete,x=s.once,T=s.snap,E=s.pinReparent,C=s.pinSpacer,D=s.containerAnimation,R=s.fastScrollEnd,A=s.preventOverlaps,k=i.horizontal||i.containerAnimation&&i.horizontal!==!1?ws:ar,F=!f&&f!==0,N=Ws(i.scroller||pn),U=wt.core.getCache(N),$=op(N),G=("pinType"in i?i.pinType:Zf(N,"pinType")||$&&"fixed")==="fixed",Y=[i.onEnter,i.onLeave,i.onEnterBack,i.onLeaveBack],Q=F&&i.toggleActions.split(" "),re="markers"in i?i.markers:Ux.markers,he=$?0:parseFloat(bo(N)["border"+k.p2+rg])||0,X=this,ae=i.onRefreshInit&&function(){return i.onRefreshInit(X)},de=Uge(N,$,k),Re=$ge(N,$),_e=0,xe=0,we=0,ve=md(N,k),De,We,lt,Ze,z,J,te,pe,me,ne,Le,Pe,Ce,Te,et,j,V,oe,Ne,Ae,Ue,tt,qe,ke,ie,Ve,rt,Je,nt,Tt,Mt,ce,ot,Oe,Qe,st,Rt,Vt,Wt;if(X._startClamp=X._endClamp=!1,X._dir=k,v*=45,X.scroller=N,X.scroll=D?D.time.bind(D):ve,Ze=ve(),X.vars=i,r=r||i.animation,"refreshPriority"in i&&(Hj=1,i.refreshPriority===-9999&&(Jv=X)),U.tweenScroll=U.tweenScroll||{top:h8(N,ar),left:h8(N,ws)},X.tweenTo=De=U.tweenScroll[k.p],X.scrubDuration=function(ft){ot=yv(ft)&&ft,ot?ce?ce.duration(ft):ce=wt.to(r,{ease:"expo",totalProgress:"+=0",inherit:!1,duration:ot,paused:!0,onComplete:function(){return _&&_(X)}}):(ce&&ce.progress(1).kill(),ce=0)},r&&(r.vars.lazy=!1,r._initted&&!X.isReverted||r.vars.immediateRender!==!1&&i.immediateRender!==!1&&r.duration()&&r.render(0,!0,!0),X.animation=r.pause(),r.scrollTrigger=X,X.scrubDuration(f),Tt=0,l||(l=r.vars.id)),T&&((!dh(T)||T.push)&&(T={snapTo:T}),"scrollBehavior"in Nn.style&&wt.set($?[Nn,Oa]:N,{scrollBehavior:"auto"}),gn.forEach(function(ft){return Qr(ft)&&ft.target===($?ni.scrollingElement||Oa:N)&&(ft.smooth=!1)}),lt=Qr(T.snapTo)?T.snapTo:T.snapTo==="labels"?Hge(r):T.snapTo==="labelsDirectional"?Vge(r):T.directional!==!1?function(ft,Ot){return II(T.snapTo)(ft,Xr()-xe<500?0:Ot.direction)}:wt.utils.snap(T.snapTo),Oe=T.duration||{min:.1,max:2},Oe=dh(Oe)?qv(Oe.min,Oe.max):qv(Oe,Oe),Qe=wt.delayedCall(T.delay||ot/2||.1,function(){var ft=ve(),Ot=Xr()-xe<500,bt=De.tween;if((Ot||Math.abs(X.getVelocity())<10)&&!bt&&!cw&&_e!==ft){var Dt=(ft-J)/Te,sn=r&&!F?r.totalProgress():Dt,Ht=Ot?0:(sn-Mt)/(Xr()-gv)*1e3||0,Wn=wt.utils.clamp(-Dt,1-Dt,s0(Ht/2)*Ht/.185),li=Dt+(T.inertia===!1?0:Wn),vn,Pn,q=T,Me=q.onStart,Fe=q.onInterrupt,Se=q.onComplete;if(vn=lt(li,X),yv(vn)||(vn=li),Pn=Math.max(0,Math.round(J+vn*Te)),ft<=te&&ft>=J&&Pn!==ft){if(bt&&!bt._initted&&bt.data<=s0(Pn-ft))return;T.inertia===!1&&(Wn=vn-Dt),De(Pn,{duration:Oe(s0(Math.max(s0(li-sn),s0(vn-sn))*.185/Ht/.05||0)),ease:T.ease||"power3",data:s0(Pn-ft),onInterrupt:function(){return Qe.restart(!0)&&Fe&&Fe(X)},onComplete:function(){X.update(),_e=ve(),r&&!F&&(ce?ce.resetTo("totalProgress",vn,r._tTime/r._tDur):r.progress(vn)),Tt=Mt=r&&!F?r.totalProgress():X.progress,b&&b(X),Se&&Se(X)}},ft,Wn*Te,Pn-ft-Wn*Te),Me&&Me(X,De.tween)}}else X.isActive&&_e!==ft&&Qe.restart(!0)}).pause()),l&&(tO[l]=X),h=X.trigger=Ws(h||p!==!0&&p),Wt=h&&h._gsap&&h._gsap.stRevert,Wt&&(Wt=Wt(X)),p=p===!0?h:Ws(p),
41Ca(o)&&(o={targets:h,className:o}),p&&(m===!1||m===yo||(m=!m&&p.parentNode&&p.parentNode.style&&bo(p.parentNode).display==="flex"?!1:Ki),X.pin=p,We=wt.core.getCache(p),We.spacer?et=We.pinState:(C&&(C=Ws(C),C&&!C.nodeType&&(C=C.current||C.nativeElement),We.spacerIsNative=!!C,C&&(We.spacerState=zx(C))),We.spacer=oe=C||ni.createElement("div"),oe.classList.add("pin-spacer"),l&&oe.classList.add("pin-spacer-"+l),We.pinState=et=zx(p)),i.force3D!==!1&&wt.set(p,{force3D:!0}),X.spacer=oe=We.spacer,nt=bo(p),ke=nt[m+k.os2],Ae=wt.getProperty(p),Ue=wt.quickSetter(p,k.a,rr),wM(p,oe,nt),V=zx(p)),re){Pe=dh(re)?a8(re,o8):o8,ne=$x("scroller-start",l,N,k,Pe,0),Le=$x("scroller-end",l,N,k,Pe,0,ne),Ne=ne["offset"+k.op.d2];var Vn=Ws(Zf(N,"content")||N);pe=this.markerStart=$x("start",l,Vn,k,Pe,Ne,0,D),me=this.markerEnd=$x("end",l,Vn,k,Pe,Ne,0,D),D&&(Vt=wt.quickSetter([pe,me],k.a,rr)),!G&&!(ru.length&&Zf(N,"fixedMarkers")===!0)&&(zge($?Nn:N),wt.set([ne,Le],{force3D:!0}),Ve=wt.quickSetter(ne,k.a,rr),Je=wt.quickSetter(Le,k.a,rr))}if(D){var ht=D.vars.onUpdate,Et=D.vars.onUpdateParams;D.eventCallback("onUpdate",function(){X.update(0,0,1),ht&&ht.apply(D,Et||[])})}if(X.previous=function(){return fn[fn.indexOf(X)-1]},X.next=function(){return fn[fn.indexOf(X)+1]},X.revert=function(ft,Ot){if(!Ot)return X.kill(!0);var bt=ft!==!1||!X.enabled,Dt=Gr;bt!==X.isReverted&&(bt&&(st=Math.max(ve(),X.scroll.rec||0),we=X.progress,Rt=r&&r.progress()),pe&&[pe,me,ne,Le].forEach(function(sn){return sn.style.display=bt?"none":"block"}),bt&&(Gr=X,X.update(bt)),p&&(!E||!X.isActive)&&(bt?jge(p,oe,et):wM(p,oe,bo(p),ie)),bt||X.update(bt),Gr=Dt,X.isReverted=bt)},X.refresh=function(ft,Ot,bt,Dt){if(!((Gr||!X.enabled)&&!Ot)){if(p&&ft&&Mo){gr(t,"scrollEnd",Jj);return}!bs&&ae&&ae(X),Gr=X,De.tween&&!bt&&(De.tween.kill(),De.tween=0),ce&&ce.pause(),y&&r&&(r.revert({kill:!1}).invalidate(),r.getChildren?r.getChildren(!0,!0,!1).forEach(function(bn){return bn.vars.immediateRender&&bn.render(0,!0,!0)}):r.vars.immediateRender&&r.render(0,!0,!0)),X.isReverted||X.revert(!0,!0),X._subPinOffset=!1;var sn=de(),Ht=Re(),Wn=D?D.duration():jl(N,k),li=Te<=.01||!Te,vn=0,Pn=Dt||0,q=dh(bt)?bt.end:i.end,Me=i.endTrigger||h,Fe=dh(bt)?bt.start:i.start||(i.start===0||!h?0:p?"0 0":"0 100%"),Se=X.pinnedContainer=i.pinnedContainer&&Ws(i.pinnedContainer,X),He=h&&Math.max(0,fn.indexOf(X))||0,ut=He,at,xt,At,Gt,vt,Ct,hn,In,ki,$i,yn,jt,os;for(re&&dh(bt)&&(jt=wt.getProperty(ne,k.p),os=wt.getProperty(Le,k.p));ut-- >0;)Ct=fn[ut],Ct.end||Ct.refresh(0,1)||(Gr=X),hn=Ct.pin,hn&&(hn===h||hn===p||hn===Se)&&!Ct.isReverted&&($i||($i=[]),$i.unshift(Ct),Ct.revert(!0,!0)),Ct!==fn[ut]&&(He--,ut--);for(Qr(Fe)&&(Fe=Fe(X)),Fe=n8(Fe,"start",X),J=f8(Fe,h,sn,k,ve(),pe,ne,X,Ht,he,G,Wn,D,X._startClamp&&"_startClamp")||(p?-.001:0),Qr(q)&&(q=q(X)),Ca(q)&&!q.indexOf("+=")&&(~q.indexOf(" ")?q=(Ca(Fe)?Fe.split(" ")[0]:"")+q:(vn=ET(q.substr(2),sn),q=Ca(Fe)?Fe:(D?wt.utils.mapRange(0,D.duration(),D.scrollTrigger.start,D.scrollTrigger.end,J):J)+vn,Me=h)),q=n8(q,"end",X),te=Math.max(J,f8(q||(Me?"100% 0":Wn),Me,sn,k,ve()+vn,me,Le,X,Ht,he,G,Wn,D,X._endClamp&&"_endClamp"))||-.001,vn=0,ut=He;ut--;)Ct=fn[ut]||{},hn=Ct.pin,hn&&Ct.start-Ct._pinPush<=J&&!D&&Ct.end>0&&(at=Ct.end-(X._startClamp?Math.max(0,Ct.start):Ct.start),(hn===h&&Ct.start-Ct._pinPush<J||hn===Se)&&isNaN(Fe)&&(vn+=at*(1-Ct.progress)),hn===p&&(Pn+=at));if(J+=vn,te+=vn,X._startClamp&&(X._startClamp+=vn),X._endClamp&&!bs&&(X._endClamp=te||-.001,te=Math.min(te,jl(N,k))),Te=te-J||(J-=.01)&&.001,li&&(we=wt.utils.clamp(0,1,wt.utils.normalize(J,te,st))),X._pinPush=Pn,pe&&vn&&(at={},at[k.a]="+="+vn,Se&&(at[k.p]="-="+ve()),wt.set([pe,me],at)),p&&!(eO&&X.end>=jl(N,k)))at=bo(p),Gt=k===ar,At=ve(),tt=parseFloat(Ae(k.a))+Pn,!Wn&&te>1&&(yn=($?ni.scrollingElement||Oa:N).style,yn={style:yn,value:yn["overflow"+k.a.toUpperCase()]},$&&bo(Nn)["overflow"+k.a.toUpperCase()]!=="scroll"&&(yn.style["overflow"+k.a.toUpperCase()]="scroll")),wM(p,oe,at),V=zx(p),xt=uc(p,!0),In=G&&md(N,Gt?ws:ar)(),m?(ie=[m+k.os2,Te+Pn+rr],ie.t=oe,ut=m===Ki?w2(p,k)+Te+Pn:0,ut&&(ie.push(k.d,ut+rr),oe.style.flexBasis!=="auto"&&(oe.style.flexBasis=ut+rr)),Am(ie),Se&&fn.forEac
41h(function(bn){bn.pin===Se&&bn.vars.pinSpacing!==!1&&(bn._subPinOffset=!0)}),G&&ve(st)):(ut=w2(p,k),ut&&oe.style.flexBasis!=="auto"&&(oe.style.flexBasis=ut+rr)),G&&(vt={top:xt.top+(Gt?At-J:In)+rr,left:xt.left+(Gt?In:At-J)+rr,boxSizing:"border-box",position:"fixed"},vt[Bh]=vt["max"+rg]=Math.ceil(xt.width)+rr,vt[Uh]=vt["max"+kI]=Math.ceil(xt.height)+rr,vt[yo]=vt[yo+Zv]=vt[yo+Yv]=vt[yo+Qv]=vt[yo+Kv]="0",vt[Ki]=at[Ki],vt[Ki+Zv]=at[Ki+Zv],vt[Ki+Yv]=at[Ki+Yv],vt[Ki+Qv]=at[Ki+Qv],vt[Ki+Kv]=at[Ki+Kv],j=Xge(et,vt,E),bs&&ve(0)),r?(ki=r._initted,bM(1),r.render(r.duration(),!0,!0),qe=Ae(k.a)-tt+Te+Pn,rt=Math.abs(Te-qe)>1,G&&rt&&j.splice(j.length-2,2),r.render(0,!0,!0),ki||r.invalidate(!0),r.parent||r.totalTime(r.totalTime()),bM(0)):qe=Te,yn&&(yn.value?yn.style["overflow"+k.a.toUpperCase()]=yn.value:yn.style.removeProperty("overflow-"+k.a));else if(h&&ve()&&!D)for(xt=h.parentNode;xt&&xt!==Nn;)xt._pinOffset&&(J-=xt._pinOffset,te-=xt._pinOffset),xt=xt.parentNode;$i&&$i.forEach(function(bn){return bn.revert(!1,!0)}),X.start=J,X.end=te,Ze=z=bs?st:ve(),!D&&!bs&&(Ze<st&&ve(st),X.scroll.rec=0),X.revert(!1,!0),xe=Xr(),Qe&&(_e=-1,Qe.restart(!0)),Gr=0,r&&F&&(r._initted||Rt)&&r.progress()!==Rt&&r.progress(Rt||0,!0).render(r.time(),!0,!0),(li||we!==X.progress||D||y||r&&!r._initted)&&(r&&!F&&(r._initted||we||r.vars.immediateRender!==!1)&&r.totalProgress(D&&J<-.001&&!we?wt.utils.normalize(J,te,0):we,!0),X.progress=li||(Ze-J)/Te===we?0:we),p&&m&&(oe._pinOffset=Math.round(X.progress*qe)),ce&&ce.invalidate(),isNaN(jt)||(jt-=wt.getProperty(ne,k.p),os-=wt.getProperty(Le,k.p),Hx(ne,k,jt),Hx(pe,k,jt-(Dt||0)),Hx(Le,k,os),Hx(me,k,os-(Dt||0))),li&&!bs&&X.update(),c&&!bs&&!Ce&&(Ce=!0,c(X),Ce=!1)}},X.getVelocity=function(){return(ve()-z)/(Xr()-gv)*1e3||0},X.endAnimation=function(){R_(X.callbackAnimation),r&&(ce?ce.progress(1):r.paused()?F||R_(r,X.direction<0,1):R_(r,r.reversed()))},X.labelToScroll=function(ft){return r&&r.labels&&(J||X.refresh()||J)+r.labels[ft]/r.duration()*Te||0},X.getTrailing=function(ft){var Ot=fn.indexOf(X),bt=X.direction>0?fn.slice(0,Ot).reverse():fn.slice(Ot+1);return(Ca(ft)?bt.filter(function(Dt){return Dt.vars.preventOverlaps===ft}):bt).filter(function(Dt){return X.direction>0?Dt.end<=J:Dt.start>=te})},X.update=function(ft,Ot,bt){if(!(D&&!bt&&!ft)){var Dt=bs===!0?st:X.scroll(),sn=ft?0:(Dt-J)/Te,Ht=sn<0?0:sn>1?1:sn||0,Wn=X.progress,li,vn,Pn,q,Me,Fe,Se,He;if(Ot&&(z=Ze,Ze=D?ve():Dt,T&&(Mt=Tt,Tt=r&&!F?r.totalProgress():Ht)),v&&p&&!Gr&&!Lx&&Mo&&(!Ht&&J<Dt+(Dt-z)/(Xr()-gv)*v?Ht=1e-4:Ht===1&&te>Dt+(Dt-z)/(Xr()-gv)*v&&(Ht=.9999)),Ht!==Wn&&X.enabled){if(li=X.isActive=!!Ht&&Ht<1,vn=!!Wn&&Wn<1,Fe=li!==vn,Me=Fe||!!Ht!=!!Wn,X.direction=Ht>Wn?1:-1,X.progress=Ht,Me&&!Gr&&(Pn=Ht&&!Wn?0:Ht===1?1:Wn===1?2:3,F&&(q=!Fe&&Q[Pn+1]!=="none"&&Q[Pn+1]||Q[Pn],He=r&&(q==="complete"||q==="reset"||q in r))),A&&(Fe||He)&&(He||f||!r)&&(Qr(A)?A(X):X.getTrailing(A).forEach(function(At){return At.endAnimation()})),F||(ce&&!Gr&&!Lx?(ce._dp._time-ce._start!==ce._time&&ce.render(ce._dp._time-ce._start),ce.resetTo?ce.resetTo("totalProgress",Ht,r._tTime/r._tDur):(ce.vars.totalProgress=Ht,ce.invalidate().restart())):r&&r.totalProgress(Ht,!!(Gr&&(xe||ft)))),p){if(ft&&m&&(oe.style[m+k.os2]=ke),!G)Ue(vv(tt+qe*Ht));else if(Me){if(Se=!ft&&Ht>Wn&&te+1>Dt&&Dt+1>=jl(N,k),E)if(!ft&&(li||Se)){var ut=uc(p,!0),at=Dt-J;d8(p,Nn,ut.top+(k===ar?at:0)+rr,ut.left+(k===ar?0:at)+rr)}else d8(p,oe);Am(li||Se?j:V),rt&&Ht<1&&li||Ue(tt+(Ht===1&&!Se?qe:0))}}T&&!De.tween&&!Gr&&!Lx&&Qe.restart(!0),o&&(Fe||x&&Ht&&(Ht<1||!xM))&&Vy(o.targets).forEach(function(At){return At.classList[li||x?"add":"remove"](o.className)}),a&&!F&&!ft&&a(X),Me&&!Gr?(F&&(He&&(q==="complete"?r.pause().totalProgress(1):q==="reset"?r.restart(!0).pause():q==="restart"?r.restart(!0):r[q]()),a&&a(X)),(Fe||!xM)&&(u&&Fe&&TM(X,u),Y[Pn]&&TM(X,Y[Pn]),x&&(Ht===1?X.kill(!1,1):Y[Pn]=0),Fe||(Pn=Ht===1?1:3,Y[Pn]&&TM(X,Y[Pn]))),R&&!li&&Math.abs(X.getVelocity())>(yv(R)?R:2500)&&(R_(X.callbackAnimation),ce?ce.progress(1):R_(r,q==="reverse"?1:!Ht,1))):F&&a&&!Gr&&a(X)}if(Je){var xt=D?Dt/D.duration()*(D._caScrollDist||0):Dt;Ve(xt+(ne._isFlipped?1:0)),Je(xt)}Vt&&Vt(-Dt/D.duration()*(D._caScrollDist||0))}},X.enable=function(ft,Ot){X.enabled||(X.enabled=!0,gr(N,"resize",bv),$||gr(N,"scroll",a0),ae&&gr(t,"refreshInit",ae),ft!==!1&&(X.progress=we=0,Ze=z=_e=ve()),Ot!==!1&&X.refresh())},X.getTween=function(ft){return ft&&De?De.tween:ce},X.setPositions=function(ft,Ot,bt,Dt){if(D){var sn=D.scrollTrigger,Ht=D.duration(),Wn=sn.end-sn.start;ft=sn.start+Wn*ft/Ht,Ot=sn.start+Wn*Ot/Ht}X.refresh(!1,!1,{start:i8(ft,bt&&!!X._startClamp),end:i8(Ot,bt&&!!X._endClamp)},Dt),X.update()},X.adjustPinSpacing=function(ft){if(ie&&ft){var Ot=ie.indexOf(k.d)+1;
41ie[Ot]=parseFloat(ie[Ot])+ft+rr,ie[1]=parseFloat(ie[1])+ft+rr,Am(ie)}},X.disable=function(ft,Ot){if(ft!==!1&&X.revert(!0,!0),X.enabled&&(X.enabled=X.isActive=!1,Ot||ce&&ce.pause(),st=0,We&&(We.uncache=1),ae&&mr(t,"refreshInit",ae),Qe&&(Qe.pause(),De.tween&&De.tween.kill()&&(De.tween=0)),!$)){for(var bt=fn.length;bt--;)if(fn[bt].scroller===N&&fn[bt]!==X)return;mr(N,"resize",bv),$||mr(N,"scroll",a0)}},X.kill=function(ft,Ot){X.disable(ft,Ot),ce&&!Ot&&ce.kill(),l&&delete tO[l];var bt=fn.indexOf(X);bt>=0&&fn.splice(bt,1),bt===ys&&CT>0&&ys--,bt=0,fn.forEach(function(Dt){return Dt.scroller===X.scroller&&(bt=1)}),bt||bs||(X.scroll.rec=0),r&&(r.scrollTrigger=null,ft&&r.revert({kill:!1}),Ot||r.kill()),pe&&[pe,me,ne,Le].forEach(function(Dt){return Dt.parentNode&&Dt.parentNode.removeChild(Dt)}),Jv===X&&(Jv=0),p&&(We&&(We.uncache=1),bt=0,fn.forEach(function(Dt){return Dt.pin===p&&bt++}),bt||(We.spacer=0)),i.onKill&&i.onKill(X)},fn.push(X),X.enable(!1,!1),Wt&&Wt(X),r&&r.add&&!Te){var It=X.update;X.update=function(){X.update=It,gn.cache++,J||te||X.refresh()},wt.delayedCall(.01,X.update),Te=.01,J=te=0}else X.refresh();p&&Gge()},t.register=function(i){return V0||(wt=i||qj(),jj()&&window.document&&t.enable(),V0=_v),V0},t.defaults=function(i){if(i)for(var r in i)Ux[r]=i[r];return Ux},t.disable=function(i,r){_v=0,fn.forEach(function(a){return a[r?"kill":"disable"](i)}),mr(pn,"wheel",a0),mr(ni,"scroll",a0),clearInterval(Ix),mr(ni,"touchcancel",Nl),mr(Nn,"touchstart",Nl),Nx(mr,ni,"pointerdown,touchstart,mousedown",r8),Nx(mr,ni,"pointerup,touchend,mouseup",s8),E2.kill(),Fx(mr);for(var s=0;s<gn.length;s+=3)Bx(mr,gn[s],gn[s+1]),Bx(mr,gn[s],gn[s+2])},t.enable=function(){if(pn=window,ni=document,Oa=ni.documentElement,Nn=ni.body,wt&&(Vy=wt.utils.toArray,qv=wt.utils.clamp,JP=wt.core.context||Nl,bM=wt.core.suppressOverwrites||Nl,DI=pn.history.scrollRestoration||"auto",nO=pn.pageYOffset||0,wt.core.globals("ScrollTrigger",t),Nn)){_v=1,Cm=document.createElement("div"),Cm.style.height="100vh",Cm.style.position="absolute",iq(),Bge(),ji.register(wt),t.isTouch=ji.isTouch,Ef=ji.isTouch&&/(iPad|iPhone|iPod|Mac)/g.test(navigator.userAgent),QP=ji.isTouch===1,gr(pn,"wheel",a0),MI=[pn,ni,Oa,Nn],wt.matchMedia?(t.matchMedia=function(u){var c=wt.matchMedia(),f;for(f in u)c.add(f,u[f]);return c},wt.addEventListener("matchMediaInit",function(){tq(),LI()}),wt.addEventListener("matchMediaRevert",function(){return eq()}),wt.addEventListener("matchMedia",function(){Ch(0,1),up("matchMedia")}),wt.matchMedia().add("(orientation: portrait)",function(){return EM(),EM})):console.warn("Requires GSAP 3.11.0 or later"),EM(),gr(ni,"scroll",a0);var i=Nn.hasAttribute("style"),r=Nn.style,s=r.borderTopStyle,a=wt.core.Animation.prototype,o,l;for(a.revert||Object.defineProperty(a,"revert",{value:function(){return this.time(-.01,!0)}}),r.borderTopStyle="solid",o=uc(Nn),ar.m=Math.round(o.top+ar.sc())||0,ws.m=Math.round(o.left+ws.sc())||0,s?r.borderTopStyle=s:r.removeProperty("border-top-style"),i||(Nn.setAttribute("style",""),Nn.removeAttribute("style")),Ix=setInterval(l8,250),wt.delayedCall(.5,function(){return Lx=0}),gr(ni,"touchcancel",Nl),gr(Nn,"touchstart",Nl),Nx(gr,ni,"pointerdown,touchstart,mousedown",r8),Nx(gr,ni,"pointerup,touchend,mouseup",s8),ZP=wt.utils.checkPrefix("transform"),AT.push(ZP),V0=Xr(),E2=wt.delayedCall(.2,Ch).pause(),W0=[ni,"visibilitychange",function(){var u=pn.innerWidth,c=pn.innerHeight;ni.hidden?(e8=u,t8=c):(e8!==u||t8!==c)&&bv()},ni,"DOMContentLoaded",Ch,pn,"load",Ch,pn,"resize",bv],Fx(gr),fn.forEach(function(u){return u.enable(0,1)}),l=0;l<gn.length;l+=3)Bx(mr,gn[l],gn[l+1]),Bx(mr,gn[l],gn[l+2])}},t.config=function(i){"limitCallbacks"in i&&(xM=!!i.limitCallbacks);var r=i.syncInterval;r&&clearInterval(Ix)||(Ix=r)&&setInterval(l8,r),"ignoreMobileResize"in i&&(QP=t.isTouch===1&&i.ignoreMobileResize),"autoRefreshEvents"in i&&(Fx(mr)||Fx(gr,i.autoRefreshEvents||"none"),Vj=(i.autoRefreshEvents+"").indexOf("resize")===-1)},t.scrollerProxy=function(i,r){var s=Ws(i),a=gn.indexOf(s),o=op(s);~a&&gn.splice(a,o?6:2),r&&(o?ru.unshift(pn,r,Nn,r,Oa,r):ru.unshift(s,r))}
41,t.clearMatchMedia=function(i){fn.forEach(function(r){return r._ctx&&r._ctx.query===i&&r._ctx.kill(!0,!0)})},t.isInViewport=function(i,r,s){var a=(Ca(i)?Ws(i):i).getBoundingClientRect(),o=a[s?Bh:Uh]*r||0;return s?a.right-o>0&&a.left+o<pn.innerWidth:a.bottom-o>0&&a.top+o<pn.innerHeight},t.positionInViewport=function(i,r,s){Ca(i)&&(i=Ws(i));var a=i.getBoundingClientRect(),o=a[s?Bh:Uh],l=r==null?o/2:r in C2?C2[r]*o:~r.indexOf("%")?parseFloat(r)*o/100:parseFloat(r)||0;return s?(a.left+l)/pn.innerWidth:(a.top+l)/pn.innerHeight},t.killAll=function(i){if(fn.slice(0).forEach(function(s){return s.vars.id!=="ScrollSmoother"&&s.kill()}),i!==!0){var r=lp.killAll||[];lp={},r.forEach(function(s){return s()})}},t}();Tn.version="3.14.2";Tn.saveStyles=function(t){return t?Vy(t).forEach(function(e){if(e&&e.style){var n=wa.indexOf(e);n>=0&&wa.splice(n,5),wa.push(e,e.style.cssText,e.getBBox&&e.getAttribute("transform"),wt.core.getCache(e),JP())}}):wa};Tn.revert=function(t,e){return LI(!t,e)};Tn.create=function(t,e){return new Tn(t,e)};Tn.refresh=function(t){return t?bv(!0):(V0||Tn.register())&&Ch(!0)};Tn.update=function(t){return++gn.cache&&xc(t===!0?2:0)};Tn.clearScrollMemory=nq;Tn.maxScroll=function(t,e){return jl(t,e?ws:ar)};Tn.getScrollFunc=function(t,e){return md(Ws(t),e?ws:ar)};Tn.getById=function(t){return tO[t]};Tn.getAll=function(){return fn.filter(function(t){return t.vars.id!=="ScrollSmoother"})};Tn.isScrolling=function(){return!!Mo};Tn.snapDirectional=II;Tn.addEventListener=function(t,e){var n=lp[t]||(lp[t]=[]);~n.indexOf(e)||n.push(e)};Tn.removeEventListener=function(t,e){var n=lp[t],i=n&&n.indexOf(e);i>=0&&n.splice(i,1)};Tn.batch=function(t,e){var n=[],i={},r=e.interval||.016,s=e.batchMax||1e9,a=function(u,c){var f=[],h=[],p=wt.delayedCall(r,function(){c(f,h),f=[],h=[]}).pause();return function(m){f.length||p.restart(!0),f.push(m.trigger),h.push(m),s<=f.length&&p.progress(1)}},o;for(o in e)i[o]=o.substr(0,2)==="on"&&Qr(e[o])&&o!=="onRefreshInit"?a(o,e[o]):e[o];return Qr(s)&&(s=s(),gr(Tn,"refresh",function(){return s=e.batchMax()})),Vy(t).forEach(function(l){var u={};for(o in i)u[o]=i[o];u.trigger=l,n.push(Tn.create(u))}),n};var p8=function(e,n,i,r){return n>r?e(r):n<0&&e(0),i>r?(r-n)/(i-n):i<0?n/(n-i):1},CM=function t(e,n){n===!0?e.style.removeProperty("touch-action"):e.style.touchAction=n===!0?"auto":n?"pan-"+n+(ji.isTouch?" pinch-zoom":""):"none",e===Oa&&t(Nn,n)},Vx={auto:1,scroll:1},Kge=function(e){var n=e.event,i=e.target,r=e.axis,s=(n.changedTouches?n.changedTouches[0]:n).target,a=s._gsap||wt.core.getCache(s),o=Xr(),l;if(!a._isScrollT||o-a._isScrollT>2e3){for(;s&&s!==Nn&&(s.scrollHeight<=s.clientHeight&&s.scrollWidth<=s.clientWidth||!(Vx[(l=bo(s)).overflowY]||Vx[l.overflowX]));)s=s.parentNode;a._isScroll=s&&s!==i&&!op(s)&&(Vx[(l=bo(s)).overflowY]||Vx[l.overflowX]),a._isScrollT=o}(a._isScroll||r==="x")&&(n.stopPropagation(),n._gsapAllow=!0)},sq=function(e,n,i,r){return ji.create({target:e,capture:!0,debounce:!1,lockAxis:!0,type:n,onWheel:r=r&&Kge,onPress:r,onDrag:r,onScroll:r,onEnable:function(){return i&&gr(ni,ji.eventTypes[0],g8,!1,!0)},onDisable:function(){return mr(ni,ji.eventTypes[0],g8,!0)}})},Zge=/(input|label|select|textarea)/i,m8,g8=function(e){var n=Zge.test(e.target.tagName);(n||m8)&&(e._gsapAllow=!0,m8=n)},Qge=function(e){dh(e)||(e={}),e.preventDefault=e.isNormalizer=e.allowClicks=!0,e.type||(e.type="wheel,touch"),e.debounce=!!e.debounce,e.id=e.id||"normalizer";var n=e,i=n.normalizeScrollX,r=n.momentum,s=n.allowNestedScroll,a=n.onRelease,o,l,u=Ws(e.target)||Oa,c=wt.core.globals().ScrollSmoother,f=c&&c.get(),h=Ef&&(e.content&&Ws(e.content)||f&&e.content!==!1&&!f.smooth()&&f.content()),p=md(u,ar),m=md(u,ws),y=1,v=(ji.isTouch&&pn.visualViewport?pn.visualViewport.scale*pn.visualViewport.width:pn.outerWidth)/pn.innerWidth,_=0,b=Qr(r)?function(){return r(o)}:function(){return r||2.8},x,T,E=sq(u,e.type,!0,s),C=function(){return T=!1},D=Nl,R=Nl,A=function(){l=jl(u,ar),R=qv(Ef?1:0,l),i&&(D=qv(0,jl(u,ws))),x=$h},k=function(){h._gsap.y=vv(parseFloat(h._gsap.y)+p.offset)+"px",h.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+parseFloat(h._gsap.y)+", 0, 1)",p.offset=p.cacheID=0},F=function(){if(T){requestAnimationFrame(C);
41var re=vv(o.deltaY/2),he=R(p.v-re);if(h&&he!==p.v+p.offset){p.offset=he-p.v;var X=vv((parseFloat(h&&h._gsap.y)||0)-p.offset);h.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+X+", 0, 1)",h._gsap.y=X+"px",p.cacheID=gn.cache,xc()}return!0}p.offset&&k(),T=!0},N,U,$,G,Y=function(){A(),N.isActive()&&N.vars.scrollY>l&&(p()>l?N.progress(1)&&p(l):N.resetTo("scrollY",l))};return h&&wt.set(h,{y:"+=0"}),e.ignoreCheck=function(Q){return Ef&&Q.type==="touchmove"&&F()||y>1.05&&Q.type!=="touchstart"||o.isGesturing||Q.touches&&Q.touches.length>1},e.onPress=function(){T=!1;var Q=y;y=vv((pn.visualViewport&&pn.visualViewport.scale||1)/v),N.pause(),Q!==y&&CM(u,y>1.01?!0:i?!1:"x"),U=m(),$=p(),A(),x=$h},e.onRelease=e.onGestureStart=function(Q,re){if(p.offset&&k(),!re)G.restart(!0);else{gn.cache++;var he=b(),X,ae;i&&(X=m(),ae=X+he*.05*-Q.velocityX/.227,he*=p8(m,X,ae,jl(u,ws)),N.vars.scrollX=D(ae)),X=p(),ae=X+he*.05*-Q.velocityY/.227,he*=p8(p,X,ae,jl(u,ar)),N.vars.scrollY=R(ae),N.invalidate().duration(he).play(.01),(Ef&&N.vars.scrollY>=l||X>=l-1)&&wt.to({},{onUpdate:Y,duration:he})}a&&a(Q)},e.onWheel=function(){N._ts&&N.pause(),Xr()-_>1e3&&(x=0,_=Xr())},e.onChange=function(Q,re,he,X,ae){if($h!==x&&A(),re&&i&&m(D(X[2]===re?U+(Q.startX-Q.x):m()+re-X[1])),he){p.offset&&k();var de=ae[2]===he,Re=de?$+Q.startY-Q.y:p()+he-ae[1],_e=R(Re);de&&Re!==_e&&($+=_e-Re),p(_e)}(he||re)&&xc()},e.onEnable=function(){CM(u,i?!1:"x"),Tn.addEventListener("refresh",Y),gr(pn,"resize",Y),p.smooth&&(p.target.style.scrollBehavior="auto",p.smooth=m.smooth=!1),E.enable()},e.onDisable=function(){CM(u,!0),mr(pn,"resize",Y),Tn.removeEventListener("refresh",Y),E.kill()},e.lockAxis=e.lockAxis!==!1,o=new ji(e),o.iOS=Ef,Ef&&!p()&&p(1),Ef&&wt.ticker.add(Nl),G=o._dc,N=wt.to(o,{ease:"power4",paused:!0,inherit:!1,scrollX:i?"+=0.1":"+=0",scrollY:"+=0.1",modifiers:{scrollY:rq(p,p(),function(){return N.pause()})},onUpdate:xc,onComplete:G.vars.onComplete}),o};Tn.sort=function(t){if(Qr(t))return fn.sort(t);var e=pn.pageYOffset||0;return Tn.getAll().forEach(function(n){return n._sortY=n.trigger?e+n.trigger.getBoundingClientRect().top:n.start+pn.innerHeight}),fn.sort(t||function(n,i){return(n.vars.refreshPriority||0)*-1e6+(n.vars.containerAnimation?1e6:n._sortY)-((i.vars.containerAnimation?1e6:i._sortY)+(i.vars.refreshPriority||0)*-1e6)})};Tn.observe=function(t){return new ji(t)};Tn.normalizeScroll=function(t){if(typeof t>"u")return vs;if(t===!0&&vs)return vs.enable();if(t===!1){vs&&vs.kill(),vs=t;return}var e=t instanceof ji?t:Qge(t);return vs&&vs.target===e.target&&vs.kill(),op(e.target)&&(vs=e),e};Tn.core={_getVelocityProp:KP,_inputObserver:sq,_scrollers:gn,_proxies:ru,bridge:{ss:function(){Mo||up("scrollStart"),Mo=Xr()},ref:function(){return Gr}}};qj()&&wt.registerPlugin(Tn);/*! js-cookie v3.0.1 | MIT */function Wx(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)t[i]=n[i]}return t}var Jge={read:function(t){return t[0]==='"'&&(t=t.slice(1,-1)),t.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(t){return encodeURIComponent(t).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function rO(t,e){function n(r,s,a){if(!(typeof document>"u")){a=Wx({},e,a),typeof a.expires=="number"&&(a.expires=new Date(Date.now()+a.expires*864e5)),a.expires&&(a.expires=a.expires.toUTCString()),r=encodeURIComponent(r).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var o="";for(var l in a)!a[l]||(o+="; "+l,a[l]!==!0&&(o+="="+a[l].split(";")[0]));return document.cookie=r+"="+t.write(s,r)+o}}function i(r){if(!(typeof document>"u"||arguments.length&&!r)){for(var s=document.cookie?document.cookie.split("; "):[],a={},o=0;o<s.length;o++){var l=s[o].split("="),u=l.slice(1).join("=");try{var c=decodeURIComponent(l[0]);if(a[c]=t.read(u,c),r===c)break}catch(f){}}return r?a[r]:a}}return Object.create({set:n,get:i,remove:function(r,s){n(r,"",Wx({},s,{expires:-1}))},withAttributes:function(r){return rO(this.converter,Wx({},this.attributes,r))},withConverter:function(r){return rO(Wx({},this.converter,r),this.attributes)}},{attributes:{value:Object.freeze(e)},converter:{value:Object.freeze(t)}})}var lWe=rO(Jge,{path:"/"}),si=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function FI(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function aq(t){var e=t.default;if(typeof e=="function"){var n=function(){return e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(i){var r=Object.getOwnPropertyDescriptor(t,i);Object.defineProperty(n,i,r.get?r:{enumerable:!0,get:function(){return t[i]}})}),n}var oq={exports:{}};(function(t,e){(function(n,i){t.exports=i()})(si,function(){var n={required:"This field is required",email:"This field requires a valid e-mail address",number:"This field requires a number",integer:"This field requires an integer value",url:"This field requires a valid website URL",tel:"This field requires a valid telephone number",maxlength:"This fields length must be < ${1}",minlength:"This fields length must be > ${1}",min:"Minimum value for this field is ${1}",max:"Maximum value for this field is ${1}",pattern:"Please match the requested format"};function i(v,_){for(;(v=v.parentElement)&&!v.classList.contains(_););return v}function r(v){var _=arguments;return this.replace(/\${([^{}]*)}/g,function(b,x){return _[x]})}function s(v){return v.pristine.self.form.querySelectorAll('input[name="'+v.getAttribute("name")+'"]:checked').length}function a(v,_){for(var b in _)b in v||(v[b]=_[b]);return v}function o(v){return!!(v&&v.constructor&&v.call&&v.apply)}var l={classTo:"form-group",errorClass:"has-danger",successClass:"has-success",errorTextParent:"form-group",errorTextTag:"div",errorTextClass:"text-help"}
41,u="pristine-error",c="input:not([type^=hidden]):not([type^=submit]), select, textarea",f=["required","min","max","minlength","maxlength","pattern"],h=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,p={},m=function(_,b){b.name=_,b.msg||(b.msg=n[_]),b.priority===void 0&&(b.priority=1),p[_]=b};m("text",{fn:function(_){return!0},priority:0}),m("required",{fn:function(_){return this.type==="radio"||this.type==="checkbox"?s(this):_!==void 0&&_!==""},priority:99,halt:!0}),m("email",{fn:function(_){return!_||h.test(_)}}),m("number",{fn:function(_){return!_||!isNaN(parseFloat(_))},priority:2}),m("integer",{fn:function(_){return!_||/^\d+$/.test(_)}}),m("minlength",{fn:function(_,b){return!_||_.length>=parseInt(b)}}),m("maxlength",{fn:function(_,b){return!_||_.length<=parseInt(b)}}),m("min",{fn:function(_,b){return!_||(this.type==="checkbox"?s(this)>=parseInt(b):parseFloat(_)>=parseFloat(b))}}),m("max",{fn:function(_,b){return!_||(this.type==="checkbox"?s(this)<=parseInt(b):parseFloat(_)<=parseFloat(b))}}),m("pattern",{fn:function(_,b){var x=b.match(new RegExp("^/(.*?)/([gimy]*)$"));return!_||new RegExp(x[1],x[2]).test(_)}});function y(v,_,b){var x=this;T(v,_,b);function T(F,N,U){F.setAttribute("novalidate","true"),x.form=F,x.config=a(N||{},l),x.live=U!==!1,x.fields=Array.from(F.querySelectorAll(c)).map(function($){var G=[],Y={},Q={};
41return[].forEach.call($.attributes,function(re){if(/^data-pristine-/.test(re.name)){var he=re.name.substr(14);if(he.endsWith("-message")){Q[he.slice(0,he.length-8)]=re.value;return}he==="type"&&(he=re.value),E(G,Y,he,re.value)}else~f.indexOf(re.name)?E(G,Y,re.name,re.value):re.name==="type"&&E(G,Y,re.value)}),G.sort(function(re,he){return he.priority-re.priority}),x.live&&$.addEventListener(~["radio","checkbox"].indexOf($.getAttribute("type"))?"change":"input",function(re){x.validate(re.target)}.bind(x)),$.pristine={input:$,validators:G,params:Y,messages:Q,self:x}}.bind(x))}function E(F,N,U,$){var G=p[U];if(G&&(F.push(G),$)){var Y=$.split(",");Y.unshift(null),N[U]=Y}}x.validate=function(F,N){N=F&&N===!0||F===!0;var U=x.fields;F!==!0&&F!==!1&&(F instanceof HTMLElement?U=[F.pristine]:(F instanceof NodeList||F instanceof(window.$||Array)||F instanceof Array)&&(U=Array.from(F).map(function(Q){return Q.pristine})));for(var $=!0,G=0;U[G];G++){var Y=U[G];C(Y)?!N&&k(Y):($=!1,!N&&R(Y))}return $},x.getErrors=function(F){if(!F){for(var N=[],U=0;U<x.fields.length;U++){var $=x.fields[U];$.errors.length&&N.push({input:$.input,errors:$.errors})}return N}return F.tagName&&F.tagName.toLowerCase()==="select"?F.pristine.errors:F.length?F[0].pristine.errors:F.pristine.errors};function C(F){for(var N=[],U=!0,$=0;F.validators[$];$++){var G=F.validators[$],Y=F.params[G.name]?F.params[G.name]:[];if(Y[0]=F.input.value,!G.fn.apply(F.input,Y)){if(U=!1,o(G.msg))N.push(G.msg(F.input.value,Y));else{var Q=F.messages[G.name]||G.msg;N.push(r.apply(Q,Y))}if(G.halt===!0)break}}return F.errors=N,U}x.addValidator=function(F,N,U,$,G){F instanceof HTMLElement?(F.pristine.validators.push({fn:N,msg:U,priority:$,halt:G}),F.pristine.validators.sort(function(Y,Q){return Q.priority-Y.priority})):console.warn("The parameter elem must be a dom element")};function D(F){if(F.errorElements)return F.errorElements;var N=i(F.input,x.config.classTo),U=null,$=null;return x.config.classTo===x.config.errorTextParent?U=N:U=N.querySelector("."+x.config.errorTextParent),U&&($=U.querySelector("."+u),$||($=document.createElement(x.config.errorTextTag),$.className=u+" "+x.config.errorTextClass,U.appendChild($),$.pristineDisplay=$.style.display)),F.errorElements=[N,$]}function R(F){var N=D(F),U=N[0],$=N[1];U&&(U.classList.remove(x.config.successClass),U.classList.add(x.config.errorClass)),$&&($.innerHTML=F.errors.join("<br/>"),$.style.display=$.pristineDisplay||"")}x.addError=function(F,N){F=F.length?F[0]:F,F.pristine.errors.push(N),R(F.pristine)};function A(F){var N=D(F),U=N[0],$=N[1];return U&&(U.classList.remove(x.config.errorClass),U.classList.remove(x.config.successClass)),$&&($.innerHTML="",$.style.display="none"),N}function k(F){var N=A(F)[0];N&&N.classList.add(x.config.successClass)}return x.reset=function(){for(var F=0;x.fields[F];F++)x.fields[F].errorElements=null;Array.from(x.form.querySelectorAll("."+u)).map(function(N){N.parentNode.removeChild(N)}),Array.from(x.form.querySelectorAll("."+x.config.classTo)).map(function(N){N.classList.remove(x.config.successClass),N.classList.remove(x.config.errorClass)})},x.destroy=function(){x.reset(),x.fields.forEach(function(F){delete F.input.pristine}),x.fields=[]},x.setGlobalConfig=function(F){l=F},x}return y.addValidator=function(v,_,b,x,T){m(v,{fn:_,msg:b,priority:x,halt:T})},y})})(oq);const uWe=oq.exports;function NI(t){return t[t.length-1]}function Nb(t,...e){return e.forEach(n=>{t.includes(n)||t.push(n)}),t}function _8(t,e){return t?t.split(e):[]}function BI(t,e,n){const i=e===void 0||t>=e,r=n===void 0||t<=n;return i&&r}function lq(t,e,n){return t<e?e:t>n?n:t}function sg(t,e,n={},i=0,r=""){const s=Object.keys(n).reduce((o,l)=>{let u=n[l];return typeof u=="function"&&(u=u(i)),`${o} ${l}="${u}"`},t);r+=`<${s}></${t}>`;const a=i+1;return a<e?sg(t,e,n,a,r):r}function UI(t){return t.replace(/>\s+/g,">").replace(/\s+</,"<")}function sO(t){return new Date(t).setHours(0,0,0,0)}function Mp(){return new Date().setHours(0,0,0,0)}function ag(...t){switch(t.length){case 0:return Mp();case 1:return sO(t[0])}const e=new Date(0);return e.setFullYear(...t),e.setHours(0,0,0,0)}function Gy(t,e){const n=new Date(t);return n.setDate(n.getDate()+e)}function e_e(t,e){return Gy(t,e*7)}function A2(t,e){const n=new Date(t),i=n.getMonth()+e;let r=i%12;r<0&&(r+=12);const s=n.setMonth(i);return n.getMonth()!==r?n.setDate(0):s}function jy(t,e){const n=new Date(t),i=n.getMonth(),r=n.setFullYear(n.getFullYear()+e);return i===1&&n.getMonth()===2?n.setDate(0):r}function v8(t,e){return(t-e+7)%7}function zh(t,e,n=0){const i=new Date(t).getDay();return Gy(t,v8(e,n)-v8(i,n))}function uq(t,e){return Math.round((t-e)/6048e5)+1}function t_e(t){const e=zh(t,4,1),n=zh(new Date(e).setMonth(0,4),4,1);return uq(e,n)}function cq(t,e){const n=zh(new Date(t).setMonth(0,1),e,e),i=zh(t,e,e),r=uq(i,n);if(r<53)return r;const s=zh(new Date(t).setDate(32),e,e);return i===s?1:r}function n_e(t){return cq(t,0)}function i_e(t){return cq(t,6)}function o0(t,e){const n=new Date(t).getFullYear();return Math.floor(n/e)*e}function Qf(t,e,n){if(e!==1&&e!==2)return t;const i=new Date(t);return e===1?n?i.setMonth(i.getMonth()+1,0):i.setDate(1):n?i.setFullYear(i.getFullYear()+1,0,0):i.setMonth(0,1),i.setHours(0,0,0,0)}const aO=/dd?|DD?|mm?|MM?|yy?(?:yy)?/,r_e=/[\s!-/:-@[-`{-~年月日]+/;let AM={};const y8={y(t,e){return new Date(t).setFullYear(parseInt(e,10))},m(t,e,n){const i=new Date(t);let r=parseInt(e,10)-1;if(isNaN(r)){if(!e)return NaN;const s=e.toLowerCase(),a=o=>o.toLowerCase().startsWith(s);if(r=n.monthsShort.findIndex(a),r<0&&(r=n.months.findIndex(a)),r<0)return NaN}return i.setMonth(r),i.getMonth()!==fq(r)?i.setDate(0):i.getTime()},d(t,e){return new Date(t).setDate(parseInt(e,10))}},s_e={d(t){return t.getDate()},dd(t){return Gx(t.getDate(),2)},D(t,e){return e.daysShort[t.getDay()]},DD(t,e){return e.days[t.getDay()]},m(t){return t.getMonth()+1},mm(t){return Gx(t.getMonth()+1,2)},M(t,e){return e.monthsShort[t.getMonth()]},MM(t,e){return e.months[t.getMonth()]},y(t){return t.getFullYear()},yy(t){return Gx(t.getFullYear(),2).slice(-2)},yyyy(t){return Gx(t.getFullYear(),4)}};function fq(t){return t>-1?t%12:fq(t+12)}function Gx(t,e){return t.toString().padStart(e,"0")}function dq(t){if(typeof t!="string")throw new Error("Invalid date format.");if(t in AM)return AM[t];const e=t.split(aO),n=t.match(new RegExp(aO,"g"));if(e.length===0||!n)throw new Error("Invalid date format.");const i=n.map(s=>s_e[s]),r=Object.keys(y8).reduce((s,a)=>(n.find(l=>l[0]!=="D"&&l[0].toLowerCase()===a)&&s.push(a),s),[]);return AM[t]={parser(s,a){const o=s.split(r_e).reduce((l,u,c)=>{if(u.length>0&&n[c]){const f=n[c][0];f==="M"?l.m=u:f!=="D"&&(l[f]=u)}return l},{});return r.reduce((l,u)=>{const c=y8[u](l,o[u],a);return isNaN(c)?l:c},Mp())},formatter(s,a){let o=i.reduce((l,u,c)=>l+=`${e[c]}${u(s,a)}`,"");return o+=NI(e)}}}function cp(t,e,n){if(t instanceof Date||typeof t=="number"){const i=sO(t);return isNaN(i)?void 0:i}if(!!t){if(t==="today")return Mp();if(e&&e.toValue){const i=e.toValue(t,e,n);return isNaN(i)?void 0:sO(i)}return dq(e).parser(t,n)}}function fw(t,e,n){if(isNaN(t)||!t&&t!==0)return"";const i=typeof t=="number"?new Date(t):t;return e.toDisplay?e.toDisplay(i,e,n):dq(e).formatter(i,n)}const a_e=document.createRange();function Pc(t){return a_e.createContextualFragment(t)}function hq(t){return t.parentElement||(t.parentNode instanceof ShadowRoot?t.parentNode.host:void 0)}function dw(t){return t.getRootNode().activeElement===t}function ey(t){t.style.display!=="none"&&(t.style.display&&(t.dataset.styleDisplay=t.style.display),t.style.display="none")}function ty(t){t.style.display==="none"&&(t.dataset.styleDisplay?(t.style.display=t.dataset.styleDisplay,delete t.dataset.styleDisplay):t.style.display="")}function M2(t){t.firstChild&&(t.removeChild(t.firstChild),M2(t))}function o_e(t,e){M2(t),e instanceof DocumentFragment?t.appendChild(e):typeof e=="string"?t.appendChild(Pc(e)):typeof e.forEach=="function"&&e.forEach(n=>{t.appendChild(n)})}const D2=new WeakMap,{addEventListener:l_e,removeEventListener:u_e}=EventTarget.prototype;function oO(t,e){let n=D2.get(t);n||(n=[],D2.set(t,n)),e.forEach(i=>
41{l_e.call(...i),n.push(i)})}function c_e(t){let e=D2.get(t);!e||(e.forEach(n=>{u_e.call(...n)}),D2.delete(t))}if(!Event.prototype.composedPath){const t=(e,n=[])=>{n.push(e);let i;return e.parentNode?i=e.parentNode:e.host?i=e.host:e.defaultView&&(i=e.defaultView),i?t(i,n):n};Event.prototype.composedPath=function(){return t(this.target)}}function pq(t,e,n){const[i,...r]=t;if(e(i))return i;if(!(i===n||i.tagName==="HTML"||r.length===0))return pq(r,e,n)}function mq(t,e){const n=typeof e=="function"?e:i=>i instanceof Element&&i.matches(e);return pq(t.composedPath(),n,t.currentTarget)}const k_={en:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],daysMin:["Su","Mo","Tu","We","Th","Fr","Sa"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],today:"Today",clear:"Clear",titleFormat:"MM y"}},$I={autohide:!1,beforeShowDay:null,beforeShowDecade:null,beforeShowMonth:null,beforeShowYear:null,clearButton:!1,dateDelimiter:",",datesDisabled:[],daysOfWeekDisabled:[],daysOfWeekHighlighted:[],defaultViewDate:void 0,disableTouchKeyboard:!1,enableOnReadonly:!0,format:"mm/dd/yyyy",language:"en",maxDate:null,maxNumberOfDates:1,maxView:3,minDate:null,nextArrow:"\xBB",orientation:"auto",pickLevel:0,prevArrow:"\xAB",showDaysOfWeek:!0,showOnClick:!0,showOnFocus:!0,startView:0,title:"",todayButton:!1,todayButtonMode:0,todayHighlight:!1,updateOnBlur:!0,weekNumbers:0,weekStart:0},{language:MM,format:f_e,weekStart:d_e}=$I;function b8(t,e){return t.length<6&&e>=0&&e<7?Nb(t,e):t}function gq(t,e){switch(t===4?e===6?3:!e+1:t){case 1:return t_e;case 2:return n_e;case 3:return i_e}}function x8(t,e,n){return e.weekStart=t,e.weekEnd=(t+6)%7,n===4&&(e.getWeekNumber=gq(4,t)),t}function S8(t,e,n,i){const r=cp(t,e,n);return r!==void 0?r:i}function DM(t,e,n=3){const i=parseInt(t,10);return i>=0&&i<=n?i:e}function jx(t,e,n,i=void 0){e in t&&(n in t||(t[n]=i?i(t[e]):t[e]),delete t[e])}function PM(t,e){const n=Object.assign({},t),i={},r=e.constructor.locales,s=!!e.rangeSideIndex;let{datesDisabled:a,format:o,language:l,locale:u,maxDate:c,maxView:f,minDate:h,pickLevel:p,startView:m,weekNumbers:y,weekStart:v}=e.config||{};if(jx(n,"calendarWeeks","weekNumbers",C=>C?1:0),jx(n,"clearBtn","clearButton"),jx(n,"todayBtn","todayButton"),jx(n,"todayBtnMode","todayButtonMode"),n.language){let C;if(n.language!==l&&(r[n.language]?C=n.language:(C=n.language.split("-")[0],r[C]||(C=!1))),delete n.language,C){l=i.language=C;const D=u||r[MM];u=Object.assign({format:f_e,weekStart:d_e},r[MM]),l!==MM&&Object.assign(u,r[l]),i.locale=u,o===D.format&&(o=i.format=u.format),v===D.weekStart&&(v=x8(u.weekStart,i,y))}}if(n.format){const C=typeof n.format.toDisplay=="function",D=typeof n.format.toValue=="function",R=aO.test(n.format);(C&&D||R)&&(o=i.format=n.format),delete n.format}let _=p;"pickLevel"in n&&(_=DM(n.pickLevel,p,2),delete n.pickLevel),_!==p&&(_>p&&("minDate"in n||(n.minDate=h),"maxDate"in n||(n.maxDate=c)),a&&!n.datesDisabled&&(n.datesDisabled=[]),p=i.pickLevel=_);let b=h,x=c;if("minDate"in n){const C=ag(0,0,1);b=n.minDate===null?C:S8(n.minDate,o,u,b),b!==C&&(b=Qf(b,p,!1)),delete n.minDate}if("maxDate"in n&&(x=n.maxDate===null?void 0:S8(n.maxDate,o,u,x),x!==void 0&&(x=Qf(x,p,!0)),delete n.maxDate),x<b?(h=i.minDate=x,c=i.maxDate=b):(h!==b&&(h=i.minDate=b),c!==x&&(c=i.maxDate=x)),n.datesDisabled){const C=n.datesDisabled;if(typeof C=="function")i.datesDisabled=null,i.checkDisabled=(D,R)=>C(new Date(D),R,s);else{const D=i.datesDisabled=C.reduce((R,A)=>{const k=cp(A,o,u);return k!==void 0?Nb(R,Qf(k,p,s)):R},[]);i.checkDisabled=R=>D.includes(R)}delete n.datesDisabled}if("defaultViewDate"in n){const C=cp(n.defaultViewDate,o,u);C!==void 0&&(i.defaultViewDate=C),delete n.defaultViewDate}if("weekStart"in n){const C=Number(n.weekStart)%7;isNaN(C)||(v=x8(C,i,y)),delete n.weekStart}if(n.daysOfWeekDisabled&&(i.daysOfWeekDisabled=n.daysOfWeekDisabled.reduce(b8,[]),delete n.daysOfWeekDisabled),n.daysOfWeekHighlighted&&(i.daysOfWeekHighlighted=n.daysOfWeekHighlighted.reduce(b8,[]),delete n.daysOfWeekHighlighted),"weekNumbers"in n){let C=n.weekNumbers;if(C){const D=typeof C=="function"?(R,A)=>C(new Date(R),A):gq(C=parseInt(C,10),v);D&&(y=i.weekNumbers=C,i.getWeekNumber=D)}else y=i.weekNumbers=0,i.getWeekNumber=null;delete n.weekNumbers}if("maxNumberOfDates"in n){const C=parseInt(n.maxNumberOfDates,10);C>=0&&(i.maxNumberOfDates=C,i.multidate=C!==1),delete n.maxNumberOfDates}n.dateDelimiter&&(i.dateDelimiter=String(n.dateDelimiter),delete n.dateDelimiter);let T=f;
vendor: 8,892 bytes, lines 41-62
41"maxView"in n&&(T=DM(n.maxView,f),delete n.maxView),T=p>T?p:T,T!==f&&(f=i.maxView=T);let E=m;if("startView"in n&&(E=DM(n.startView,E),delete n.startView),E<p?E=p:E>f&&(E=f),E!==m&&(i.startView=E),n.prevArrow){const C=Pc(n.prevArrow);C.childNodes.length>0&&(i.prevArrow=C.childNodes),delete n.prevArrow}if(n.nextArrow){const C=Pc(n.nextArrow);C.childNodes.length>0&&(i.nextArrow=C.childNodes),delete n.nextArrow}if("disableTouchKeyboard"in n&&(i.disableTouchKeyboard="ontouchstart"in document&&!!n.disableTouchKeyboard,delete n.disableTouchKeyboard),n.orientation){const C=n.orientation.toLowerCase().split(/\s+/g);i.orientation={x:C.find(D=>D==="left"||D==="right")||"auto",y:C.find(D=>D==="top"||D==="bottom")||"auto"},delete n.orientation}if("todayButtonMode"in n){switch(n.todayButtonMode){case 0:case 1:i.todayButtonMode=n.todayButtonMode}delete n.todayButtonMode}return Object.entries(n).forEach(([C,D])=>{D!==void 0&&C in $I&&(i[C]=D)}),i}const T8={show:{key:"ArrowDown"},hide:null,toggle:{key:"Escape"},prevButton:{key:"ArrowLeft",ctrlOrMetaKey:!0},nextButton:{key:"ArrowRight",ctrlOrMetaKey:!0},viewSwitch:{key:"ArrowUp",ctrlOrMetaKey:!0},clearButton:{key:"Backspace",ctrlOrMetaKey:!0},todayButton:{key:".",ctrlOrMetaKey:!0},exitEditMode:{key:"ArrowDown",ctrlOrMetaKey:!0}};function h_e(t){return Object.keys(T8).reduce((e,n)=>{const i=t[n]===void 0?T8[n]:t[n],r=i&&i.key;if(!r||typeof r!="string")return e;const s={key:r,ctrlOrMetaKey:!!(i.ctrlOrMetaKey||i.ctrlKey||i.metaKey)};return r.length>1&&(s.altKey=!!i.altKey,s.shiftKey=!!i.shiftKey),e[n]=s,e},{})}const E8=t=>t.map(e=>`<button type="button" class="%buttonClass% ${e}" tabindex="-1"></button>`).join(""),p_e=UI(`<div class="datepicker">
42  <div class="datepicker-picker">
43    <div class="datepicker-header">
44      <div class="datepicker-title"></div>
45      <div class="datepicker-controls">
46        ${E8(["prev-button prev-btn","view-switch","next-button next-btn"])}
47      </div>
48    </div>
49    <div class="datepicker-main"></div>
50    <div class="datepicker-footer">
51      <div class="datepicker-controls">
52        ${E8(["today-button today-btn","clear-button clear-btn"])}
53      </div>
54    </div>
55  </div>
56</div>`),m_e=UI(`<div class="days">
57  <div class="days-of-week">${sg("span",7,{class:"dow"})}</div>
58  <div class="datepicker-grid">${sg("span",42)}</div>
59</div>`),g_e=UI(`<div class="week-numbers calendar-weeks">
60  <div class="days-of-week"><span class="dow"></span></div>
61  <div class="weeks">${sg("span",6,{class:"week"})}</div>
62</div>`);class zI{constructor(e,n){Object.assign(this,n,{picker:e,element:Pc('<div class="datepicker-view"></div>').firstChild,selected:[],isRangeEnd:!!e.datepicker.rangeSideIndex}),this.init(this.picker.datepicker.config)}init(e){"pickLevel"in e&&(this.isMinView=this.id===e.pickLevel),this.setOptions(e),this.updateFocus(),this.updateSelection()}prepareForRender(e,n,i){this.disabled=[];const r=this.picker;r.setViewSwitchLabel(e),r.setPrevButtonDisabled(n),r.setNextButtonDisabled(i)}setDisabled(e,n){n.add("disabled"),Nb(this.disabled,e)}performBeforeHook(e,n){let i=this.beforeShow(new Date(n));switch(typeof i){case"boolean":i={enabled:i};break;case"string":i={classes:i}}if(i){const r=e.classList;if(i.enabled===!1&&this.setDisabled(n,r),i.classes){const s=i.classes.split(/\s+/);r.add(...s),s.includes("disabled")&&this.setDisabled(n,r)}i.content&&o_e(e,i.content)}}renderCell(e,n,i,r,{selected:s,range:a},o,l=[]){e.textContent=n,this.isMinView&&(e.dataset.date=r);const u=e.classList;if(e.className=`datepicker-cell ${this.cellClass}`,i<this.first?u.add("prev"):i>this.last&&u.add("next"),u.add(...l),(o||this.checkDisabled(r,this.id))&&this.setDisabled(r,u),a){const[c,f]=a;i>c&&i<f&&u.add("range"),i===c&&u.add("range-start"),i===f&&u.add("range-end")}s.includes(i)&&u.add("selected"),i===this.focused&&u.add("focused"),this.beforeShow&&this.performBeforeHook(e,r)}refreshCell(e,n,i,[r,s]){const a=e.classList;a.remove("range","range-start","range-end","selected","focused"),n>r&&n<s&&a.add("range"),n===r&&a.add("range-start"),n===s&&a.add("range-end"),i.includes(n)&&a.add("selected"),n===this.focused&&a.add("focused")}changeFocusedCell(e){this.grid.querySelectorAll(".focused").forEach(n=>{n.classList.remove("focused")}),this.grid.children[e].classList.add("focused")}}class __e extends zI{constructor(e){super(e,{id:0,name:"days",cellClass:"day"})}init(e,n=!0){if(n){const i=Pc(m_e).firstChild;this.dow=i.firstChild,this.grid=i.lastChild,this.element.appendChild(i)}super.init(e)}setOptions(e){let n;if("minDate"in e&&(this.minDate=e.minDate),"maxDate"in e&&(this.maxDate=e.maxDate),e.checkDisabled&&(this.checkDisabled=e.checkDisabled),e.daysOfWeekDisabled&&(this.daysOfWeekDisabled=e.daysOfWeekDisabled,n=!0),e.daysOfWeekHighlighted&&(this.daysOfWeekHighlighted=e.daysOfWeekHighlighted),"todayHighlight"in e&&(this.todayHighlight=e.todayHighlight),"weekStart"in e&&(this.weekStart=e.weekStart,this.weekEnd=e.weekEnd,n=!0),e.locale){const i=this.locale=e.locale;this.dayNames=i.daysMin,this.switchLabelFormat=i.titleFormat,n=!0}if("beforeShowDay"in e&&(this.beforeShow=typeof e.beforeShowDay=="function"?e.beforeShowDay:void 0),"weekNumbers"in e)if(e.weekNumbers&&!this.weekNumbers){const i=Pc(g_e).firstChild;this.weekNumbers={element:i,dow:i.firstChild,weeks:i.lastChild},this.element.insertBefore(i,this.element.firstChild)}else this.weekNumbers&&!e.weekNumbers&&(this.element.removeChild(this.weekNumbers.element),this.weekNumbers=null);"getWeekNumber"in e&&(this.getWeekNumber=e.getWeekNumber),"showDaysOfWeek"in e&&(e.showDaysOfWeek?(ty(this.dow),this.weekNumbers&&ty(this.weekNumbers.dow)):(ey(this.dow),this.weekNumbers&&ey(this.weekNumbers.dow))),n&&Array.from(this.dow.children).forEach((i,r)=>{const s=(this.weekStart+r)%7;i.textContent=this.dayNames[s],i.className=this.daysOfWeekDisabled.includes(s)?"dow disabled":"dow"})}updateFocus(){const e=new Date(this.picker.viewDate),n=e.getFullYear(),i=e.getMonth(),r=ag(n,i,1),s=zh(r,this.weekStart,this.weekStart);this.first=r,this.last=ag(n,i+1,0),this.start=s,this.focused=this.picker.viewDate}updateSelection(){const{dates:e,rangepicker:n}=this.picker.datepicker;this.selected=e,n&&(this.range=n.dates)}render(){if(this.today=this.todayHighlight?Mp():void 0,this.prepareForRender(fw(this.focused,this.switchLabelFormat,this.locale),this.first<=this.minDate,this.last>=this.maxDate),this.weekNumbers){const e=this.weekStart,n=zh(this.first,e,e);Array.from(this.weekNumbers.weeks.children).forEach((i,r)=>{const s=e_e(n,r);i.textContent=this.getWeekNumber(s,e),r>3&&i.classList[s>this.last?"add":"remove"]("next")})}Array.from(this.grid.children).forEach((e,n)=>{const i=Gy(this.start,n),r=new Date(i),s=r.getDay(),a=[];this.today===i&&a.push("today"),this.daysOfWeekHighlighted.includes(s)&&a.push("highlighted"),this.renderCell(e,r.getDate(),i,i,this,i<this.minDate||i>this.maxDate||this.daysOfWeekDisabled.includes(s),a)})}refresh(){const e=this.range||[];Array.from(this.grid.children).forEach(n=>{this.refreshCell(n,Number(n.dataset.date),this.selected,e)})}refreshFocus(){this.changeFocusedCell(Math.round((this.focused-this.start)/864e5))}}function w8(t,e){if(!t||!t[0]||!t[1])return;const[[n,i],[r,s]]=t;if(!(n>e||r<e))return[n===e?i:-1,r===e?s:12]}class v_e extends zI{constructor(e){super(e,{id:1,name:"months",cellClass:"month"})}init(e,n=!0){n&&(this.grid=this.element,this.element.classList.add("months","datepicker-grid"),this.grid.appendChild(Pc(sg("span",12,{"data-month":i=>i}))),this.first=0,this.last=11),super.init(e)}setOptions(e){if(e.locale&&(this.monthNames=e.locale.monthsShort),"minDate"in e)if(e.minDate===void 0)this.minYear=this.minMonth=this.minDate=void 0;else{const n=new Date(e.minDate);this.minYear=n.getFullYear(),this.minMonth=n.getMonth(),this.minDate=n.setDate(1)}if("maxDate"in e)if(e.maxDate===void 0)this.maxYear=this.maxMonth=this.maxDate=void 0;else{const n=new Date(e.maxDate);this.maxYear=n.getFullYear(),this.maxMonth=n.getMonth(),this.maxDate=ag(this.maxYear,this.maxMonth+1,0)}e.checkDisabled&&(this.checkDisabled=this.isMinView||e.datesDisabled===null?e.checkDisabled:()=>!1),"beforeShowMonth"in e&&(this.beforeShow=typeof e.beforeShowMonth=="function"?e.beforeShowMonth:void 0)}updateFocus(){const e=new Date(this.picker.viewDate);this.year=e.getFullYear(),this.focused=e.getMonth()}updateSelection(){const{dates:e,rangepicker:n}=this.picker.datepicker;this.selected=e.reduce((i,r)=>{const s=new Date(r),a=s.getFullYear(),o=s.getMonth();return i[a]===void 0?i[a]=[o]:Nb(i[a],o),i},{}),n&&n.dates&&(this.range=n.dates.map(i=>{const r=new Date(i);return isNaN(r)?void 0:[r.getFullYear(),r.getMonth()]}))}render(){this.prepareForRender(this.year,this.year<=this.minYear,this.year>=this.maxYear);const e=this.selected[this.year]||[],n=this.year<this.minYear||this.year>this.maxYear,i=this.year===this.minYear,r=this.year===this.maxYear,s=w8(this.range,this.year);
62Array.from(this.grid.children).forEach((a,o)=>{const l=Qf(new Date(this.year,o,1),1,this.isRangeEnd);this.renderCell(a,this.monthNames[o],o,l,{selected:e,range:s},n||i&&o<this.minMonth||r&&o>this.maxMonth)})}refresh(){const e=this.selected[this.year]||[],n=w8(this.range,this.year)||[];Array.from(this.grid.children).forEach((i,r)=>{this.refreshCell(i,r,e,n)})}refreshFocus(){this.changeFocusedCell(this.focused)}}function y_e(t){return[...t].reduce((e,n,i)=>e+=i?n:n.toUpperCase(),"")}class C8 extends zI{constructor(e,n){super(e,n)}init(e,n=!0){n&&(this.navStep=this.step*10,this.beforeShowOption=`beforeShow${y_e(this.cellClass)}`,this.grid=this.element,this.element.classList.add(this.name,"datepicker-grid"),this.grid.appendChild(Pc(sg("span",12)))),super.init(e)}setOptions(e){if("minDate"in e&&(e.minDate===void 0?this.minYear=this.minDate=void 0:(this.minYear=o0(e.minDate,this.step),this.minDate=ag(this.minYear,0,1))),"maxDate"in e&&(e.maxDate===void 0?this.maxYear=this.maxDate=void 0:(this.maxYear=o0(e.maxDate,this.step),this.maxDate=ag(this.maxYear,11,31))),e.checkDisabled&&(this.checkDisabled=this.isMinView||e.datesDisabled===null?e.checkDisabled:()=>!1),this.beforeShowOption in e){const n=e[this.beforeShowOption];this.beforeShow=typeof n=="function"?n:void 0}}updateFocus(){const e=new Date(this.picker.viewDate),n=o0(e,this.navStep),i=n+9*this.step;this.first=n,this.last=i,this.start=n-this.step,this.focused=o0(e,this.step)}updateSelection(){const{dates:e,rangepicker:n}=this.picker.datepicker;this.selected=e.reduce((i,r)=>Nb(i,o0(r,this.step)),[]),n&&n.dates&&(this.range=n.dates.map(i=>{if(i!==void 0)return o0(i,this.step)}))}render(){this.prepareForRender(`${this.first}-${this.last}`,this.first<=this.minYear,this.last>=this.maxYear),Array.from(this.grid.children).forEach((e,n)=>{const i=this.start+n*this.step,r=Qf(new Date(i,0,1),2,this.isRangeEnd);e.dataset.year=i,this.renderCell(e,i,i,r,this,i<this.minYear||i>this.maxYear)})}refresh(){const e=this.range||[];Array.from(this.grid.children).forEach(n=>{this.refreshCell(n,Number(n.textContent),this.selected,e)})}refreshFocus(){this.changeFocusedCell(Math.round((this.focused-this.start)/this.step))}}function G0(t,e){const n={bubbles:!0,cancelable:!0,detail:{date:t.getDate(),viewDate:new Date(t.picker.viewDate),viewId:t.picker.currentView.id,datepicker:t}};t.element.dispatchEvent(new CustomEvent(e,n))}function P2(t,e){const{config:n,picker:i}=t,{currentView:r,viewDate:s}=i;let a;switch(r.id){case 0:a=A2(s,e);break;case 1:a=jy(s,e);break;default:a=jy(s,e*r.navStep)}a=lq(a,n.minDate,n.maxDate),i.changeFocus(a).render()}function _q(t){const e=t.picker.currentView.id;e!==t.config.maxView&&t.picker.changeView(e+1).render()}function vq(t){t.setDate({clear:!0})}function yq(t){const e=Mp();t.config.todayButtonMode===1?t.setDate(e,{forceRefresh:!0,viewDate:e}):t.setFocusedDate(e,!0)}function bq(t){const e=()=>{t.config.updateOnBlur?t.update({revert:!0}):t.refresh("input"),t.hide()},n=t.element;dw(n)?n.addEventListener("blur",e,{once:!0}):e()}function A8(t,e){const n=t.picker,i=new Date(n.viewDate),r=n.currentView.id,s=r===1?A2(i,e-i.getMonth()):jy(i,e-i.getFullYear());n.changeFocus(s).changeView(r-1).render()}function b_e(t){_q(t)}function x_e(t){P2(t,-1)}function S_e(t){P2(t,1)}function T_e(t,e){const n=mq(e,".datepicker-cell");if(!n||n.classList.contains("disabled"))return;const{id:i,isMinView:r}=t.picker.currentView,s=n.dataset;r?t.setDate(Number(s.date)):i===1?A8(t,Number(s.month)):A8(t,Number(s.year))}function E_e(t){t.preventDefault()}const OM=["left","top","right","bottom"].reduce((t,e)=>(t[e]=`datepicker-orient-${e}`,t),{}),M8=t=>t&&`${t}px`;function D8(t,e){if("title"in e&&(e.title?(t.controls.title.textContent=e.title,ty(t.controls.title)):(t.controls.title.textContent="",ey(t.controls.title))),e.prevArrow){const n=t.controls.prevButton;M2(n),e.prevArrow.forEach(i=>{n.appendChild(i.cloneNode(!0))})}if(e.nextArrow){const n=t.controls.nextButton;M2(n),e.nextArrow.forEach(i=>{n.appendChild(i.cloneNode(!0))})}if(e.locale&&(t.controls.todayButton.textContent=e.locale.today,t.controls.clearButton.textContent=e.locale.clear),"todayButton"in e&&(e.todayButton?ty(t.controls.todayButton):ey(t.controls.todayButton)),"minDate"in e||"maxDate"in e){const{minDate:n,maxDate:i}=t.datepicker.config;t.controls.todayButton.disabled=!BI(Mp(),n,i)}"clearButton"in e&&(e.clearButton?ty(t.controls.clearButton):ey(t.controls.clearButton))}function P8(t){const{dates:e,config:n,rangeSideIndex:i}=t,r=e.length>0?NI(e):Qf(n.defaultViewDate,n.pickLevel,i);return lq(r,n.minDate,n.maxDate)}function O8(t,e){!("_oldViewDate"in t)&&e!==t.viewDate&&(t._oldViewDate=t.viewDate),t.viewDate=e;const{id:n,year:i,first:r,last:s}=t.currentView,a=new Date(e).getFullYear();switch(n){case 0:return e<r||e>s;case 1:return a!==i;default:return a<r||a>s}}function RM(t){return window.getComputedStyle(t).direction}function xq(t){const e=hq(t);if(!(e===document.body||!e))return window.getComputedStyle(e).overflow!=="visible"?e:xq(e)}class w_e{constructor(e){const{config:n,inputField:i}=this.datepicker=e,r=p_e.replace(/%buttonClass%/g,n.buttonClass),s=this.element=Pc(r).firstChild,[a,o,l]=s.firstChild.children,u=a.firstElementChild,[c,f,h]=a.lastElementChild.children,[p,m]=l.firstChild.children,y={title:u,prevButton:c,viewSwitch:f,
62nextButton:h,todayButton:p,clearButton:m};this.main=o,this.controls=y;const v=i?"dropdown":"inline";s.classList.add(`datepicker-${v}`),D8(this,n),this.viewDate=P8(e),oO(e,[[s,"mousedown",E_e],[o,"click",T_e.bind(null,e)],[y.viewSwitch,"click",b_e.bind(null,e)],[y.prevButton,"click",x_e.bind(null,e)],[y.nextButton,"click",S_e.bind(null,e)],[y.todayButton,"click",yq.bind(null,e)],[y.clearButton,"click",vq.bind(null,e)]]),this.views=[new __e(this),new v_e(this),new C8(this,{id:2,name:"years",cellClass:"year",step:1}),new C8(this,{id:3,name:"decades",cellClass:"decade",step:10})],this.currentView=this.views[n.startView],this.currentView.render(),this.main.appendChild(this.currentView.element),n.container?n.container.appendChild(this.element):i.after(this.element)}setOptions(e){D8(this,e),this.views.forEach(n=>{n.init(e,!1)}),this.currentView.render()}detach(){this.element.remove()}show(){if(this.active)return;const{datepicker:e,element:n}=this,i=e.inputField;if(i){const r=RM(i);r!==RM(hq(n))?n.dir=r:n.dir&&n.removeAttribute("dir"),this.place(),n.classList.add("active"),e.config.disableTouchKeyboard&&i.blur()}else n.classList.add("active");this.active=!0,G0(e,"show")}hide(){!this.active||(this.datepicker.exitEditMode(),this.element.classList.remove("active"),this.active=!1,G0(this.datepicker,"hide"))}place(){const{classList:e,style:n}=this.element;n.display="block";const{width:i,height:r}=this.element.getBoundingClientRect(),s=this.element.offsetParent;n.display="";const{config:a,inputField:o}=this.datepicker,{left:l,top:u,right:c,bottom:f,width:h,height:p}=o.getBoundingClientRect();let{x:m,y}=a.orientation,v=l,_=u;if(s===document.body||!s)v+=window.scrollX,_+=window.scrollY;else{const R=s.getBoundingClientRect();v-=R.left-s.scrollLeft,_-=R.top-s.scrollTop}const b=xq(o);let x=0,T=0,{clientWidth:E,clientHeight:C}=document.documentElement;if(b){const R=b.getBoundingClientRect();R.top>0&&(T=R.top),R.left>0&&(x=R.left),R.right<E&&(E=R.right),R.bottom<C&&(C=R.bottom)}let D=0;m==="auto"&&(l<x?(m="left",D=x-l):l+i>E?(m="right",E<c&&(D=E-c)):RM(o)==="rtl"?m=c-i<x?"left":"right":m="left"),m==="right"&&(v+=h-i),v+=D,y==="auto"&&(u-r>T?y=f+r>C?"top":"bottom":y="bottom"),y==="top"?_-=r:_+=p,e.remove(...Object.values(OM)),e.add(OM[m],OM[y]),n.left=M8(v),n.top=M8(_)}setViewSwitchLabel(e){this.controls.viewSwitch.textContent=e}setPrevButtonDisabled(e){this.controls.prevButton.disabled=e}setNextButtonDisabled(e){this.controls.nextButton.disabled=e}changeView(e){const n=this.currentView;return e!==n.id&&(this._oldView||(this._oldView=n),this.currentView=this.views[e],this._renderMethod="render"),this}changeFocus(e){return this._renderMethod=O8(this,e)?"render":"refreshFocus",this.views.forEach(n=>{n.updateFocus()}),this}update(e=void 0){const n=e===void 0?P8(this.datepicker):e;return this._renderMethod=O8(this,n)?"render":"refresh",this.views.forEach(i=>{i.updateFocus(),i.updateSelection()}),this}render(e=!0){const{currentView:n,datepicker:i,_oldView:r}=this,s=new Date(this._oldViewDate),a=e&&this._renderMethod||"render";if(delete this._oldView,delete this._oldViewDate,delete this._renderMethod,n[a](),r&&(this.main.replaceChild(n.element,r.element),G0(i,"changeView")),!isNaN(s)){const o=new Date(this.viewDate);o.getFullYear()!==s.getFullYear()&&G0(i,"changeYear"),o.getMonth()!==s.getMonth()&&G0(i,"changeMonth")}}}function Sq(t,e,n,i,r,s){if(!!BI(t,r,s)){if(i(t)){const a=e(t,n);return Sq(a,e,n,i,r,s)}return t}}function C_e(t,e,n){const i=t.picker,r=i.currentView,s=r.step||1;let a=i.viewDate,o;switch(r.id){case 0:a=Gy(a,n?e*7:e),o=Gy;break;case 1:a=A2(a,n?e*4:e),o=A2;break;default:a=jy(a,e*(n?4:1)*s),o=jy}a=Sq(a,o,e<0?-s:s,l=>r.disabled.includes(l),r.minDate,r.maxDate),a!==void 0&&i.changeFocus(a).render()}function A_e(t,e){const{config:n,picker:i,editMode:r}=t,s=i.active,{key:a,altKey:o,shiftKey:l}=e,u=e.ctrlKey||e.metaKey,c=()=>{e.preventDefault(),e.stopPropagation()};if(a==="Tab"){bq(t);return}if(a==="Enter"){if(!s)t.update();else if(r)t.exitEditMode({update:!0,autohide:n.autohide});else{const y=i.currentView;y.isMinView?t.setDate(i.viewDate):(i.changeView(y.id-1).render(),c())}return}
62const f=n.shortcutKeys,h={key:a,ctrlOrMetaKey:u,altKey:o,shiftKey:l},p=Object.keys(f).find(y=>{const v=f[y];return!Object.keys(v).find(_=>v[_]!==h[_])});if(p){let y;if(p==="toggle"?y=p:r?p==="exitEditMode"&&(y=p):s?p==="hide"?y=p:p==="prevButton"?y=[P2,[t,-1]]:p==="nextButton"?y=[P2,[t,1]]:p==="viewSwitch"?y=[_q,[t]]:n.clearButton&&p==="clearButton"?y=[vq,[t]]:n.todayButton&&p==="todayButton"&&(y=[yq,[t]]):p==="show"&&(y=p),y){Array.isArray(y)?y[0].apply(null,y[1]):t[y](),c();return}}if(!s||r)return;const m=(y,v)=>{l||u||o?t.enterEditMode():(C_e(t,y,v),e.preventDefault())};a==="ArrowLeft"?m(-1,!1):a==="ArrowRight"?m(1,!1):a==="ArrowUp"?m(-1,!0):a==="ArrowDown"?m(1,!0):(a==="Backspace"||a==="Delete"||a&&a.length===1&&!u)&&t.enterEditMode()}function M_e(t){t.config.showOnFocus&&!t._showing&&t.show()}function D_e(t,e){const n=e.target;(t.picker.active||t.config.showOnClick)&&(n._active=dw(n),n._clicking=setTimeout(()=>{delete n._active,delete n._clicking},2e3))}function P_e(t,e){const n=e.target;!n._clicking||(clearTimeout(n._clicking),delete n._clicking,n._active&&t.enterEditMode(),delete n._active,t.config.showOnClick&&t.show())}function O_e(t,e){e.clipboardData.types.includes("text/plain")&&t.enterEditMode()}function R_e(t,e){const{element:n,picker:i}=t;if(!i.active&&!dw(n))return;const r=i.element;mq(e,s=>s===n||s===r)||bq(t)}function Tq(t,e){return t.map(n=>fw(n,e.format,e.locale)).join(e.dateDelimiter)}function Eq(t,e,n=!1){if(e.length===0)return n?[]:void 0;const{config:i,dates:r,rangeSideIndex:s}=t,{pickLevel:a,maxNumberOfDates:o}=i;let l=e.reduce((u,c)=>{let f=cp(c,i.format,i.locale);return f===void 0||(f=Qf(f,a,s),BI(f,i.minDate,i.maxDate)&&!u.includes(f)&&!i.checkDisabled(f,a)&&(a>0||!i.daysOfWeekDisabled.includes(new Date(f).getDay()))&&u.push(f)),u},[]);if(l.length!==0)return i.multidate&&!n&&(l=l.reduce((u,c)=>(r.includes(c)||u.push(c),u),r.filter(u=>!l.includes(u)))),o&&l.length>o?l.slice(o*-1):l}function O2(t,e=3,n=!0,i=void 0){const{config:r,picker:s,inputField:a}=t;if(e&2){const o=s.active?r.pickLevel:r.startView;s.update(i).changeView(o).render(n)}e&1&&a&&(a.value=Tq(t.dates,r))}function R8(t,e,n){const i=t.config;let{clear:r,render:s,autohide:a,revert:o,forceRefresh:l,viewDate:u}=n;s===void 0&&(s=!0),s?a===void 0&&(a=i.autohide):a=l=!1,u=cp(u,i.format,i.locale);const c=Eq(t,e,r);!c&&!o||(c&&c.toString()!==t.dates.toString()?(t.dates=c,O2(t,s?3:1,!0,u),G0(t,"changeDate")):O2(t,l?3:1,!0,u),a&&t.hide())}function k8(t,e){return e?n=>fw(n,e,t.config.locale):n=>new Date(n)}class cWe{constructor(e,n={},i=void 0){e.datepicker=this,this.element=e,this.dates=[];const r=this.config=Object.assign({buttonClass:n.buttonClass&&String(n.buttonClass)||"button",container:null,defaultViewDate:Mp(),maxDate:void 0,minDate:void 0},PM($I,this));let s;if(e.tagName==="INPUT"?(s=this.inputField=e,s.classList.add("datepicker-input"),n.container&&(r.container=n.container instanceof HTMLElement?n.container:document.querySelector(n.container))):r.container=e,i){const c=i.inputs.indexOf(s),f=i.datepickers;if(c<0||c>1||!Array.isArray(f))throw Error("Invalid rangepicker object.");f[c]=this,this.rangepicker=i,this.rangeSideIndex=c}this._options=n,Object.assign(r,PM(n,this)),r.shortcutKeys=h_e(n.shortcutKeys||{});const a=_8(e.value||e.dataset.date,r.dateDelimiter);delete e.dataset.date;const o=Eq(this,a);o&&o.length>0&&(this.dates=o),s&&(s.value=Tq(this.dates,r));const l=this.picker=new w_e(this),u=[e,"keydown",A_e.bind(null,this)];s?oO(this,[u,[s,"focus",M_e.bind(null,this)],[s,"mousedown",D_e.bind(null,this)],[s,"click",P_e.bind(null,this)],[s,"paste",O_e.bind(null,this)],[document,"mousedown",R_e.bind(null,this)],[window,"resize",l.place.bind(l)]]):(oO(this,[u]),this.show())}static formatDate(e,n,i){return fw(e,n,i&&k_[i]||k_.en)}static parseDate(e,n,i){return cp(e,n,i&&k_[i]||k_.en)}static get locales(){return k_}get active(){return!!(this.picker&&this.picker.active)}get pickerElement(){return this.picker?this.picker.element:void 0}setOptions(e){const n=PM(e,this);Object.assign(this._options,e),Object.assign(this.config,n),this.picker.setOptions(n),O2(this,3)}show(){if(this.inputField){const{config:e,inputField:n}=this;
62if(n.disabled||n.readOnly&&!e.enableOnReadonly)return;!dw(n)&&!e.disableTouchKeyboard&&(this._showing=!0,n.focus(),delete this._showing)}this.picker.show()}hide(){!this.inputField||(this.picker.hide(),this.picker.update().changeView(this.config.startView).render())}toggle(){this.picker.active?this.inputField&&this.picker.hide():this.show()}destroy(){this.hide(),c_e(this),this.picker.detach();const e=this.element;return e.classList.remove("datepicker-input"),delete e.datepicker,this}getDate(e=void 0){const n=k8(this,e);if(this.config.multidate)return this.dates.map(n);if(this.dates.length>0)return n(this.dates[0])}setDate(...e){const n=[...e],i={},r=NI(e);r&&typeof r=="object"&&!Array.isArray(r)&&!(r instanceof Date)&&Object.assign(i,n.pop());const s=Array.isArray(n[0])?n[0]:n;R8(this,s,i)}update(e=void 0){if(!this.inputField)return;const n=Object.assign(e||{},{clear:!0,render:!0,viewDate:void 0}),i=_8(this.inputField.value,this.config.dateDelimiter);R8(this,i,n)}getFocusedDate(e=void 0){return k8(this,e)(this.picker.viewDate)}setFocusedDate(e,n=!1){const{config:i,picker:r,active:s,rangeSideIndex:a}=this,o=i.pickLevel,l=cp(e,i.format,i.locale);l!==void 0&&(r.changeFocus(Qf(l,o,a)),s&&n&&r.changeView(o),r.render())}refresh(e=void 0,n=!1){e&&typeof e!="string"&&(n=e,e=void 0);let i;e==="picker"?i=2:e==="input"?i=1:i=3,O2(this,i,!n)}enterEditMode(){const e=this.inputField;!e||e.readOnly||!this.picker.active||this.editMode||(this.editMode=!0,e.classList.add("in-edit"))}exitEditMode(e=void 0){if(!this.inputField||!this.editMode)return;const n=Object.assign({update:!1},e);delete this.editMode,this.inputField.classList.remove("in-edit"),n.update&&this.update(n)}}function lO(){return lO=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},lO.apply(this,arguments)}var k_e=function(){var e=!1,n=[],i=function(){if(!e){e=!0;for(var o=0,l=n.length;o<l;o++)n[o]()}},r=function(o){if(!e){n.push(o);return}o()},s={resolved:function(){return e},resolve:i,promise:{then:r}};return s},I8=Object.prototype.hasOwnProperty;function I_e(){var t=k_e();return{notify:function(){t.resolve()},wait:function(){return t.promise},render:function(n,i,r){this.wait().then(function(){r(window.grecaptcha.render(n,i))})},reset:function(n){typeof n>"u"||(this.assertLoaded(),this.wait().then(function(){return window.grecaptcha.reset(n)}))},execute:function(n){typeof n>"u"||(this.assertLoaded(),this.wait().then(function(){return window.grecaptcha.execute(n)}))},checkRecaptchaLoad:function(){I8.call(window,"grecaptcha")&&I8.call(window.grecaptcha,"render")&&this.notify()},assertLoaded:function(){if(!t.resolved())throw new Error("ReCAPTCHA has not been loaded")}}}var xv=I_e();typeof window<"u"&&(window.vueRecaptchaApiLoaded=xv.notify);var fWe=wp({name:"VueRecaptcha",props:{sitekey:{type:String,required:!0},theme:{type:String},badge:{type:String},type:{type:String},size:{type:String},tabindex:{type:String},loadRecaptchaScript:{type:Boolean,default:!0},recaptchaScriptId:{type:String,default:"__RECAPTCHA_SCRIPT"},recaptchaHost:{type:String,default:"www.google.com"},language:{type:String,default:""}},emits:["render","verify","expired","error"],setup:function(e,n){var i=n.slots,r=n.emit,s=tn(null),a=tn(null),o=function(f){r("verify",f)},l=function(){r("expired")},u=function(){r("error")};return yu(function(){if(xv.checkRecaptchaLoad(),e.loadRecaptchaScript&&!document.getElementById(e.recaptchaScriptId)){var c=document.createElement("script");c.id=e.recaptchaScriptId,c.src="https://"+e.recaptchaHost+"/recaptcha/api.js?onload=vueRecaptchaApiLoaded&render=explicit&hl="+e.language,c.async=!0,c.defer=!0,document.head.appendChild(c)}var f=lO({},e,{callback:o,"expired-callback":l,"error-callback":u}),h=s.value,p=i.default?h.children[0]:h;xv.render(p,f,function(m){a.value=m,r("render",m)})}),{root:s,widgetId:a,reset:function(){xv.reset(a.value)},execute:function(){xv.execute(a.value)}}},render:function(){var e=this.$slots.default,n;return typeof e=="function"?n=e():n=e,kr("div",{ref:"root"},n)}});/*!
63 * @author yomotsu
64 * MatchHeight
65 * https://github.com/yomotsu/MatchHeight
66 * Released under the MIT License.
67 */function L_e(t,e){let n,i;return function(){const r=Date.now();n&&r<n+e?(clearTimeout(i),i=setTimeout(function(){n=r,t()},e)):(n=r,t())}}const L8=1;class dWe{constructor(e="[data-mh]"){this._remains=[],this._selector=e;const n=this.update.bind(this),i=L_e(n,200);document.readyState==="loading"&&document.addEventListener("DOMContentLoaded",n,{once:!0}),document.readyState==="interactive"?document.addEventListener("load",n,{once:!0}):n(),window.addEventListener("resize",i),this.disconnect=()=>{window.removeEventListener("resize",i)}}update(){const e=document.querySelectorAll(this._selector);e.length!==0&&(this._remains=Array.prototype.map.call(e,n=>({el:n,top:0,height:0})),this._remains.forEach(n=>
67{n.el.style.minHeight=""}),this._process())}_process(){this._remains.forEach(r=>{const s=r.el.getBoundingClientRect();r.top=s.top,r.height=s.height}),this._remains.sort((r,s)=>r.top-s.top);const e=this._remains[0].top,n=this._remains.filter(r=>Math.abs(r.top-e)<=L8),i=Math.max(...n.map(r=>r.height));n.forEach(r=>{const s=e-r.top+L8,a=l=>window.getComputedStyle(r.el).getPropertyValue(l);if(a("box-sizing")==="border-box")r.el.style.minHeight=`${i+s}px`;else{const l=parseFloat(a("padding-top"))+parseFloat(a("padding-bottom"))+parseFloat(a("border-top-width"))+parseFloat(a("border-bottom-width"));r.el.style.minHeight=`${i-l+s}px`}}),this._remains.splice(0,n.length),0<this._remains.length&&this._process()}}var Sv;typeof window<"u"?Sv=window:typeof si<"u"?Sv=si:typeof self<"u"?Sv=self:Sv={};var ue=Sv;const F_e={},N_e=Object.freeze(Object.defineProperty({__proto__:null,default:F_e},Symbol.toStringTag,{value:"Module"})),B_e=aq(N_e);var F8=typeof si<"u"?si:typeof window<"u"?window:{},U_e=B_e,Tv;typeof document<"u"?Tv=document:(Tv=F8["__GLOBAL_DOCUMENT_CACHE@4"],Tv||(Tv=F8["__GLOBAL_DOCUMENT_CACHE@4"]=U_e));var ct=Tv,uO={exports:{}};(function(t,e){function n(l){if(l&&typeof l=="object"){var u=l.which||l.keyCode||l.charCode;u&&(l=u)}if(typeof l=="number")return a[l];var c=String(l),f=i[c.toLowerCase()];if(f)return f;var f=r[c.toLowerCase()];if(f)return f;if(c.length===1)return c.charCodeAt(0)}n.isEventKey=function(u,c){if(u&&typeof u=="object"){var f=u.which||u.keyCode||u.charCode;if(f==null)return!1;if(typeof c=="string"){var h=i[c.toLowerCase()];if(h)return h===f;var h=r[c.toLowerCase()];if(h)return h===f}else if(typeof c=="number")return c===f;return!1}},e=t.exports=n;var i=e.code=e.codes={backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,"pause/break":19,"caps lock":20,esc:27,space:32,"page up":33,"page down":34,end:35,home:36,left:37,up:38,right:39,down:40,insert:45,delete:46,command:91,"left command":91,"right command":93,"numpad *":106,"numpad +":107,"numpad -":109,"numpad .":110,"numpad /":111,"num lock":144,"scroll lock":145,"my computer":182,"my calculator":183,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},r=e.aliases={windows:91,"\u21E7":16,"\u2325":18,"\u2303":17,"\u2318":91,ctl:17,control:17,option:18,pause:19,break:19,caps:20,return:13,escape:27,spc:32,spacebar:32,pgup:33,pgdn:34,ins:45,del:46,cmd:91};/*!
68 * Programatically add the following
69 */for(s=97;s<123;s++)i[String.fromCharCode(s)]=s-32;for(var s=48;s<58;s++)i[s-48]=s;for(s=1;s<13;s++)i["f"+s]=s+111;for(s=0;s<10;s++)i["numpad "+s]=s+96;var a=e.names=e.title={};for(s in i)a[i[s]]=s;for(var o in r)i[o]=r[o]})(uO,uO.exports);const Kt=uO.exports;var $_e=z_e;function z_e(t,e){var n,i=null;try{n=JSON.parse(t,e)}catch(r){i=r}return[i,n]}var hw={exports:{}};function Do(){return Do=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)({}).hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Do.apply(null,arguments)}const H_e=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Do}},Symbol.toStringTag,{value:"Module"})),V_e=aq(H_e);var W_e=j_e,G_e=Object.prototype.toString;function j_e(t){if(!t)return!1;var e=G_e.call(t);return e==="[object Function]"||typeof t=="function"&&e!=="[object RegExp]"||typeof window<"u"&&(t===window.setTimeout||t===window.alert||t===window.confirm||t===window.prompt)}var q_e=ue,X_e=function(e,n){return n===void 0&&(n=!1),function(i,r,s){if(i){e(i);return}if(r.statusCode>=400&&r.statusCode<=599){var a=s;if(n)if(q_e.TextDecoder){var o=Y_e(r.headers&&r.headers["content-type"]);try{a=new TextDecoder(o).decode(s)}catch(l){}}else a=String.fromCharCode.apply(null,new Uint8Array(s));e({cause:a});return}e(null,s)}};function Y_e(t){return t===void 0&&(t=""),t.toLowerCase().split(";").reduce(function(e,n){var i=n.split("="),r=i[0],s=i[1];return r.trim()==="charset"?s.trim():e},"utf-8")}var K_e=X_e,wq=ue,Z_e=V_e,Q_e=W_e;su.httpHandler=K_e;/**
70 * @license
71 * slighly modified parse-headers 2.0.2 <https://github.com/kesla/parse-headers/>
72 * Copyright (c) 2014 David Björklund
73 * Available under the MIT license
74 * <https://github.com/kesla/parse-headers/blob/master/LICENCE>
75 */var J_e=function(e){var n={};return e&&e.trim().split(`
76`).forEach(function(i){var r=i.indexOf(":"),s=i.slice(0,r).trim().toLowerCase(),a=i.slice(r+1).trim();typeof n[s]>"u"?n[s]=a:Array.isArray(n[s])?n[s].push(a):n[s]=[n[s],a]}),n};hw.exports=su;hw.exports.default=su;su.XMLHttpRequest=wq.XMLHttpRequest||ive;su.XDomainRequest="withCredentials"in new su.XMLHttpRequest?su.XMLHttpRequest:wq.X
76DomainRequest;eve(["get","put","post","patch","head","delete"],function(t){su[t==="delete"?"del":t]=function(e,n,i){return n=Cq(e,n,i),n.method=t.toUpperCase(),Aq(n)}});function eve(t,e){for(var n=0;n<t.length;n++)e(t[n])}function tve(t){for(var e in t)if(t.hasOwnProperty(e))return!1;return!0}function Cq(t,e,n){var i=t;return Q_e(e)?(n=e,typeof t=="string"&&(i={uri:t})):i=Z_e({},e,{uri:t}),i.callback=n,i}function su(t,e,n){return e=Cq(t,e,n),Aq(e)}function Aq(t){if(typeof t.callback>"u")throw new Error("callback argument missing");var e=!1,n=function(x,T,E){e||(e=!0,t.callback(x,T,E))};function i(){o.readyState===4&&setTimeout(a,0)}function r(){var b=void 0;if(o.response?b=o.response:b=o.responseText||nve(o),y)try{b=JSON.parse(b)}catch(x){}return b}function s(b){return clearTimeout(v),b instanceof Error||(b=new Error(""+(b||"Unknown XMLHttpRequest Error"))),b.statusCode=0,n(b,_)}function a(){if(!u){var b;clearTimeout(v),t.useXDR&&o.status===void 0?b=200:b=o.status===1223?204:o.status;var x=_,T=null;return b!==0?(x={body:r(),statusCode:b,method:f,headers:{},url:c,rawRequest:o},o.getAllResponseHeaders&&(x.headers=J_e(o.getAllResponseHeaders()))):T=new Error("Internal XMLHttpRequest Error"),n(T,x,x.body)}}var o=t.xhr||null;o||(t.cors||t.useXDR?o=new su.XDomainRequest:o=new su.XMLHttpRequest);var l,u,c=o.url=t.uri||t.url,f=o.method=t.method||"GET",h=t.body||t.data,p=o.headers=t.headers||{},m=!!t.sync,y=!1,v,_={body:void 0,headers:{},statusCode:0,method:f,url:c,rawRequest:o};if("json"in t&&t.json!==!1&&(y=!0,p.accept||p.Accept||(p.Accept="application/json"),f!=="GET"&&f!=="HEAD"&&(p["content-type"]||p["Content-Type"]||(p["Content-Type"]="application/json"),h=JSON.stringify(t.json===!0?h:t.json))),o.onreadystatechange=i,o.onload=a,o.onerror=s,o.onprogress=function(){},o.onabort=function(){u=!0},o.ontimeout=s,o.open(f,c,!m,t.username,t.password),m||(o.withCredentials=!!t.withCredentials),!m&&t.timeout>0&&(v=setTimeout(function(){if(!u){u=!0,o.abort("timeout");var b=new Error("XMLHttpRequest timeout");b.code="ETIMEDOUT",s(b)}},t.timeout)),o.setRequestHeader)for(l in p)p.hasOwnProperty(l)&&o.setRequestHeader(l,p[l]);else if(t.headers&&!tve(t.headers))throw new Error("Headers cannot be set on an XDomainRequest object");return"responseType"in t&&(o.responseType=t.responseType),"beforeSend"in t&&typeof t.beforeSend=="function"&&t.beforeSend(o),o.send(h||null),o}function nve(t){try{if(t.responseType==="document")return t.responseXML;var e=t.responseXML&&t.responseXML.documentElement.nodeName==="parsererror";if(t.responseType===""&&!e)return t.responseXML}catch(n){}return null}function ive(){}var cO={exports:{}},N8=ct,HI=Object.create||function(){function t(){}return function(e){if(arguments.length!==1)throw new Error("Object.create shim only accepts one parameter.");return t.prototype=e,new t}}();function La(t,e){this.name="ParsingError",this.code=t.code,this.message=e||t.message}La.prototype=HI(Error.prototype);La.prototype.constructor=La;La.Errors={BadSignature:{code:0,message:"Malformed WebVTT signature."},BadTimeStamp:{code:1,message:"Malformed time stamp."}};function VI(t){function e(i,r,s,a){return(i|0)*3600+(r|0)*60+(s|0)+(a|0)/1e3}var n=t.match(/^(\d+):(\d{1,2})(:\d{1,2})?\.(\d{3})/);return n?n[3]?e(n[1],n[2],n[3].replace(":",""),n[4]):n[1]>59?e(n[1],n[2],0,n[4]):e(0,n[1],n[2],n[4]):null}function ny(){this.values=HI(null)}ny.prototype={set:function(t,e){!this.get(t)&&e!==""&&(this.values[t]=e)},get:function(t,e,n){return n?this.has(t)?this.values[t]:e[n]:this.has(t)?this.values[t]:e},has:function(t){return t in this.values},alt:function(t,e,n){for(var i=0;i<n.length;++i)if(e===n[i]){this.set(t,e);break}},integer:function(t,e){/^-?\d+$/.test(e)&&this.set(t,parseInt(e,10))},percent:function(t,e){return e.match(/^([\d]{1,3})(\.[\d]*)?%$/)&&(e=parseFloat(e),e>=0&&e<=100)?(this.set(t,e),!0):!1}};function Ev(t,e,n,i){var r=i?t.split(i):[t];for(var s in r)if(typeof r[s]=="string"){var a=r[s].split(n);if(a.length===2){var o=a[0].trim(),l=a[1].trim();e(o,l)}}}function rve(t,e,n){var i=t;function r(){var o=VI(t);if(o===null)throw new La(La.Errors.BadTimeStamp,"Malformed timestamp: "+i);return t=t.replace(/^[^\sa-zA-Z-]+/,""),o}function s(o,l){var u=new ny;Ev(o,function(c,f){switch(c){case"region":for(var h=n.length-1;h>=0;h--)if(n[h].id===f){u.set(c,n[h].region);break}break;case"vertical":u.alt(c,f,["rl","lr"]);break;case"line":var p=f.split(","),m=p[0];u.integer(c,m),u.percent(c,m)&&u.set("snapToLines",!1),u.alt(c,m,["auto"]),p.length===2&&u.alt("lineAlign",p[1],["start","center","end"]);break;case"position":p=f.split(","),u.percent(c,p[0]),p.length===2&&u.alt("positionAlign",p[1],["start","center","end"]);break;case"size":u.percent(c,f);break;case"align":u.alt(c,f,["start","center","end","left","right"]);break}}
76,/:/,/\s/),l.region=u.get("region",null),l.vertical=u.get("vertical","");try{l.line=u.get("line","auto")}catch(c){}l.lineAlign=u.get("lineAlign","start"),l.snapToLines=u.get("snapToLines",!0),l.size=u.get("size",100);try{l.align=u.get("align","center")}catch(c){l.align=u.get("align","middle")}try{l.position=u.get("position","auto")}catch(c){l.position=u.get("position",{start:0,left:0,center:50,middle:50,end:100,right:100},l.align)}l.positionAlign=u.get("positionAlign",{start:"start",left:"start",center:"center",middle:"center",end:"end",right:"end"},l.align)}function a(){t=t.replace(/^\s+/,"")}if(a(),e.startTime=r(),a(),t.substr(0,3)!=="-->")throw new La(La.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by '-->'): "+i);t=t.substr(3),a(),e.endTime=r(),a(),s(t,e)}var kM=N8.createElement&&N8.createElement("textarea"),sve={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"},B8={white:"rgba(255,255,255,1)",lime:"rgba(0,255,0,1)",cyan:"rgba(0,255,255,1)",red:"rgba(255,0,0,1)",yellow:"rgba(255,255,0,1)",magenta:"rgba(255,0,255,1)",blue:"rgba(0,0,255,1)",black:"rgba(0,0,0,1)"},ave={v:"title",lang:"lang"},U8={rt:"ruby"};function Mq(t,e){function n(){if(!e)return null;function m(v){return e=e.substr(v.length),v}var y=e.match(/^([^<]*)(<[^>]*>?)?/);return m(y[1]?y[1]:y[2])}function i(m){return kM.innerHTML=m,m=kM.textContent,kM.textContent="",m}function r(m,y){return!U8[y.localName]||U8[y.localName]===m.localName}function s(m,y){var v=sve[m];if(!v)return null;var _=t.document.createElement(v),b=ave[m];return b&&y&&(_[b]=y.trim()),_}for(var a=t.document.createElement("div"),o=a,l,u=[];(l=n())!==null;){if(l[0]==="<"){if(l[1]==="/"){u.length&&u[u.length-1]===l.substr(2).replace(">","")&&(u.pop(),o=o.parentNode);continue}var c=VI(l.substr(1,l.length-2)),f;if(c){f=t.document.createProcessingInstruction("timestamp",c),o.appendChild(f);continue}var h=l.match(/^<([^.\s/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/);if(!h||(f=s(h[1],h[3]),!f)||!r(o,f))continue;if(h[2]){var p=h[2].split(".");p.forEach(function(m){var y=/^bg_/.test(m),v=y?m.slice(3):m;if(B8.hasOwnProperty(v)){var _=y?"background-color":"color",b=B8[v];f.style[_]=b}}),f.className=p.join(" ")}u.push(h[1]),o.appendChild(f),o=f;continue}o.appendChild(t.document.createTextNode(i(l)))}return a}var $8=[[1470,1470],[1472,1472],[1475,1475],[1478,1478],[1488,1514],[1520,1524],[1544,1544],[1547,1547],[1549,1549],[1563,1563],[1566,1610],[1645,1647],[1649,1749],[1765,1766],[1774,1775],[1786,1805],[1807,1808],[1810,1839],[1869,1957],[1969,1969],[1984,2026],[2036,2037],[2042,2042],[2048,2069],[2074,2074],[2084,2084],[2088,2088],[2096,2110],[2112,2136],[2142,2142],[2208,2208],[2210,2220],[8207,8207],[64285,64285],[64287,64296],[64298,64310],[64312,64316],[64318,64318],[64320,64321],[64323,64324],[64326,64449],[64467,64829],[64848,64911],[64914,64967],[65008,65020],[65136,65140],[65142,65276],[67584,67589],[67592,67592],[67594,67637],[67639,67640],[67644,67644],[67647,67669],[67671,67679],[67840,67867],[67872,67897],[67903,67903],[67968,68023],[68030,68031],[68096,68096],[68112,68115],[68117,68119],[68121,68147],[68160,68167],[68176,68184],[68192,68223],[68352,68405],[68416,68437],[68440,68466],[68472,68479],[68608,68680],[126464,126467],[126469,126495],[126497,126498],[126500,126500],[126503,126503],[126505,126514],[126516,126519],[126521,126521],[126523,126523],[126530,126530],[126535,126535],[126537,126537],[126539,126539],[126541,126543],[126545,126546],[126548,126548],[126551,126551],[126553,126553],[126555,126555],[126557,126557],[126559,126559],[126561,126562],[126564,126564],[126567,126570],[126572,126578],[126580,126583],[126585,126588],[126590,126590],[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[1114109,1114109]];function ove(t){for(var e=0;e<$8.length;e++){var n=$8[e];if(t>=n[0]&&t<=n[1])return!0}return!1}function lve(t){var e=[],n="",i;if(!t||!t.childNodes)return"ltr";function r(o,l){for(var u=l.childNodes.length-1;u>=0;u--)o.push(l.childNodes[u])}function s(o){if(!o||!o.length)return null;var l=o.pop(),u=l.textContent||l.innerText;if(u){var c=u.match(/^.*(\n|\r)/);return c?(o.length=0,c[0]):u}if(l.tagName==="ruby")return s(o);if(l.childNodes)return r(o,l),s(o)}for(r(e,t);n=s(e);)for(var a=0;a<n.length;a++)if(i=n.charCodeAt(a),ove(i))return"rtl";return"ltr"}function uve(t){if(typeof t.line=="number"&&(t.snapToLines||t.line>=0&&t.line<=100))return t.line;if(!t.track||!t.track.textTrackList||!t.track.textTrackList.mediaElement)return-1;for(var e=t.track,n=e.textTrackList,i=0,r=0;r<n.length&&n[r]!==e;r++)n[r].mode==="showing"&&i++;return++i*-1}function pw(){}pw.prototype.applyStyles=function(t,e){e=e||this.div;for(var n in t)t.hasOwnProperty(n)&&(e.style[n]=t[n])};pw.prototype.formatStyle=function(t,e){return t===0?0:t+e};function R2(t,e,n){pw.call(this),this.cue=e,this.cueDiv=Mq(t,e.text);var i={color:"rgba(255, 255, 255, 1)",backgroundColor:"rgba(0, 0, 0, 0.8)",position:"relative",left:0,right:0,top:0,bottom:0,display:"inline",writingMode:e.vertical===""?"horizontal-tb":e.vertical==="lr"?"vertical-lr":"vertical-rl",unicodeBidi:"plaintext"};this.applyStyles(i,this.cueDiv),this.div=t.document.createElement("div"),i={direction:lve(this.cueDiv),writingMode:e.vertical===""?"horizontal-tb":e.vertical==="lr"?"vertical-lr":"vertical-rl",unicodeBidi:"plaintext",textAlign:e.align==="middle"?"center":e.align,font:n.font,whiteSpace:"pre-line",position:"absolute"},this.applyStyles(i),this.div.appendChild(this.cueDiv);var r=0;switch(e.positionAlign){case"start":case"line-left":r=e.position;break;case"center":r=e.position-e.size/2;break;case"end":case"line-right":r=e.position-e.size;break}e.vertical===""?this.applyStyles({left:this.formatStyle(r,"%"),width:this.formatStyle(e.size,"%")}):this.applyStyles({top:this.formatStyle(r,"%"),height:this.formatStyle(e.size,"%")}),this.move=function(s){this.applyStyles({top:this.formatStyle(s.top,"px"),bottom:this.formatStyle(s.bottom,"px"),left:this.formatStyle(s.left,"px"),right:this.formatStyle(s.right,"px"),height:this.formatStyle(s.height,"px"),width:this.formatStyle(s.width,"px")}
76)}}R2.prototype=HI(pw.prototype);R2.prototype.constructor=R2;function Cs(t){var e,n,i,r;if(t.div){n=t.div.offsetHeight,i=t.div.offsetWidth,r=t.div.offsetTop;var s=(s=t.div.childNodes)&&(s=s[0])&&s.getClientRects&&s.getClientRects();t=t.div.getBoundingClientRect(),e=s?Math.max(s[0]&&s[0].height||0,t.height/s.length):0}this.left=t.left,this.right=t.right,this.top=t.top||r,this.height=t.height||n,this.bottom=t.bottom||r+(t.height||n),this.width=t.width||i,this.lineHeight=e!==void 0?e:t.lineHeight}Cs.prototype.move=function(t,e){switch(e=e!==void 0?e:this.lineHeight,t){case"+x":this.left+=e,this.right+=e;break;case"-x":this.left-=e,this.right-=e;break;case"+y":this.top+=e,this.bottom+=e;break;case"-y":this.top-=e,this.bottom-=e;break}};Cs.prototype.overlaps=function(t){return this.left<t.right&&this.right>t.left&&this.top<t.bottom&&this.bottom>t.top};Cs.prototype.overlapsAny=function(t){for(var e=0;e<t.length;e++)if(this.overlaps(t[e]))return!0;return!1};Cs.prototype.within=function(t){return this.top>=t.top&&this.bottom<=t.bottom&&this.left>=t.left&&this.right<=t.right};Cs.prototype.overlapsOppositeAxis=function(t,e){switch(e){case"+x":return this.left<t.left;case"-x":return this.right>t.right;case"+y":return this.top<t.top;case"-y":return this.bottom>t.bottom}};Cs.prototype.intersectPercentage=function(t){var e=Math.max(0,Math.min(this.right,t.right)-Math.max(this.left,t.left)),n=Math.max(0,Math.min(this.bottom,t.bottom)-Math.max(this.top,t.top)),i=e*n;return i/(this.height*this.width)};Cs.prototype.toCSSCompatValues=function(t){return{top:this.top-t.top,bottom:t.bottom-this.bottom,left:this.left-t.left,right:t.right-this.right,height:this.height,width:this.width}};Cs.getSimpleBoxPosition=function(t){var e=t.div?t.div.offsetHeight:t.tagName?t.offsetHeight:0,n=t.div?t.div.offsetWidth:t.tagName?t.offsetWidth:0,i=t.div?t.div.offsetTop:t.tagName?t.offsetTop:0;t=t.div?t.div.getBoundingClientRect():t.tagName?t.getBoundingClientRect():t;var r={left:t.left,right:t.right,top:t.top||i,height:t.height||e,bottom:t.bottom||i+(t.height||e),width:t.width||n};return r};function cve(t,e,n,i){function r(v,_){for(var b,x=new Cs(v),T=1,E=0;E<_.length;E++){for(;v.overlapsOppositeAxis(n,_[E])||v.within(n)&&v.overlapsAny(i);)v.move(_[E]);if(v.within(n))return v;var C=v.intersectPercentage(n);T>C&&(b=new Cs(v),T=C),v=new Cs(x)}return b||x}var s=new Cs(e),a=e.cue,o=uve(a),l=[];if(a.snapToLines){var u;switch(a.vertical){case"":l=["+y","-y"],u="height";break;case"rl":l=["+x","-x"],u="width";break;case"lr":l=["-x","+x"],u="width";break}var c=s.lineHeight,f=c*Math.round(o),h=n[u]+c,p=l[0];Math.abs(f)>h&&(f=f<0?-1:1,f*=Math.ceil(h/c)*c),o<0&&(f+=a.vertical===""?n.height:n.width,l=l.reverse()),s.move(p,f)}else{var m=s.lineHeight/n.height*100;switch(a.lineAlign){case"center":o-=m/2;break;case"end":o-=m;break}switch(a.vertical){case"":e.applyStyles({top:e.formatStyle(o,"%")});break;case"rl":e.applyStyles({left:e.formatStyle(o,"%")});break;case"lr":e.applyStyles({right:e.formatStyle(o,"%")});break}l=["+y","-x","+x","-y"],s=new Cs(e)}var y=r(s,l);e.move(y.toCSSCompatValues(n))}function Ng(){}Ng.StringDecoder=function(){return{decode:function(t){if(!t)return"";if(typeof t!="string")throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(t))}}};Ng.convertCueToDOMTree=function(t,e){return!t||!e?null:Mq(t,e)};var fve=.05,dve="sans-serif",hve="1.5%";Ng.processCues=function(t,e,n){if(!t||!e||!n)return null;for(;n.firstChild;)n.removeChild(n.firstChild);var i=t.document.createElement("div");i.style.position="absolute",i.style.left="0",i.style.right="0",i.style.top="0",i.style.bottom="0",i.style.margin=hve,n.appendChild(i);function r(c){for(var f=0;f<c.length;f++)if(c[f].hasBeenReset||!c[f].displayState)return!0;return!1}if(!r(e)){for(var s=0;s<e.length;s++)i.appendChild(e[s].displayState);return}var a=[],o=Cs.getSimpleBoxPosition(i),l=Math.round(o.height*fve*100)/100,u={font:l+"px "+dve};(function(){for(var c,f,h=0;h<e.length;h++)f=e[h],c=new R2(t,f,u),i.appendChild(c.div),cve(t,c,o,a),f.displayState=c.div,a.push(Cs.getSimpleBoxPosition(c))})()};Ng.Parser=function(t,e,n){n||(n=e,e={}),e||(e={}),this.window=t,this.vttjs=e,this.state="INITIAL",this.buffer="",this.decoder=n||new TextDecoder("utf8"),this.regionList=[]};Ng.Parser.prototype={reportOrThrowError:function(t){if(t instanceof La)this.onparsingerror&&this.onparsingerror(t);else throw t},parse:function(t){var e=this;t&&(e.buffer+=e.decoder.decode(t,{stream:!0}));function n(){for(var c=e.buffer,f=0;f<c.length&&c[f]!=="\r"&&c[f]!==`
77`;)++f;var h=c.substr(0,f);return c[f]==="\r"&&++f,c[f]===`
78`&&++f,e.buffer=c.substr(f),h}function i(c){var f=new ny;if(Ev(c,function(p,m){switch(p){case"id":f.set(p,m);break;case"width":f.percent(p,m);break;case"lines":f.integer(p,m);break;case"regionanchor":case"viewportanchor":var y=m.split(",");if(y.length!==2)break;var v=new ny;if(v.percent("x",y[0]),v.percent("y",y[1]),!v.has("x")||!v.has("y"))break;f.set(p+"X",v.get("x")),f.set(p+"Y",v.get("y"));break;case"scroll":f.alt(p,m,["up"]);break}},/=/,/\s/),f.has("id")){var h=new(e.vttjs.VTTRegion||e.window.VTTRegion);h.width=f.get("width",100),h.lines=f.get("lines",3),h.regionAnchorX=f.get("regionanchorX",0),h.regionAnchorY=f.get("regionanchorY",100),h.viewportAnchorX=f.get("viewportanchorX",0),h.viewportAnchorY=f.get("viewportanchorY",100),h.scroll=f.get("scroll",""),e.onregion&&e.onregion(h),e.regi
78onList.push({id:f.get("id"),region:h})}}function r(c){var f=new ny;Ev(c,function(h,p){switch(h){case"MPEGT":f.integer(h+"S",p);break;case"LOCA":f.set(h+"L",VI(p));break}},/[^\d]:/,/,/),e.ontimestampmap&&e.ontimestampmap({MPEGTS:f.get("MPEGTS"),LOCAL:f.get("LOCAL")})}function s(c){c.match(/X-TIMESTAMP-MAP/)?Ev(c,function(f,h){switch(f){case"X-TIMESTAMP-MAP":r(h);break}},/=/):Ev(c,function(f,h){switch(f){case"Region":i(h);break}},/:/)}try{var a;if(e.state==="INITIAL"){if(!/\r\n|\n/.test(e.buffer))return this;a=n();var o=a.match(/^WEBVTT([ \t].*)?$/);if(!o||!o[0])throw new La(La.Errors.BadSignature);e.state="HEADER"}for(var l=!1;e.buffer;){if(!/\r\n|\n/.test(e.buffer))return this;switch(l?l=!1:a=n(),e.state){case"HEADER":/:/.test(a)?s(a):a||(e.state="ID");continue;case"NOTE":a||(e.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(a)){e.state="NOTE";break}if(!a)continue;e.cue=new(e.vttjs.VTTCue||e.window.VTTCue)(0,0,"");try{e.cue.align="center"}catch(c){e.cue.align="middle"}if(e.state="CUE",a.indexOf("-->")===-1){e.cue.id=a;continue}case"CUE":try{rve(a,e.cue,e.regionList)}catch(c){e.reportOrThrowError(c),e.cue=null,e.state="BADCUE";continue}e.state="CUETEXT";continue;case"CUETEXT":var u=a.indexOf("-->")!==-1;if(!a||u&&(l=!0)){e.oncue&&e.oncue(e.cue),e.cue=null,e.state="ID";continue}e.cue.text&&(e.cue.text+=`
79`),e.cue.text+=a.replace(/\u2028/g,`
80`).replace(/u2029/g,`
81`);continue;case"BADCUE":a||(e.state="ID");continue}}}catch(c){e.reportOrThrowError(c),e.state==="CUETEXT"&&e.cue&&e.oncue&&e.oncue(e.cue),e.cue=null,e.state=e.state==="INITIAL"?"BADWEBVTT":"BADCUE"}return this},flush:function(){var t=this;try{if(t.buffer+=t.decoder.decode(),(t.cue||t.state==="HEADER")&&(t.buffer+=`
82
83`,t.parse()),t.state==="INITIAL")throw new La(La.Errors.BadSignature)}catch(e){t.reportOrThrowError(e)}return t.onflush&&t.onflush(),this}};var pve=Ng,mve="auto",gve={"":1,lr:1,rl:1},_ve={start:1,center:1,end:1,left:1,right:1,auto:1,"line-left":1,"line-right":1};function vve(t){if(typeof t!="string")return!1;var e=gve[t.toLowerCase()];return e?t.toLowerCase():!1}function IM(t){if(typeof t!="string")return!1;var e=_ve[t.toLowerCase()];return e?t.toLowerCase():!1}function Dq(t,e,n){this.hasBeenReset=!1;var i="",r=!1,s=t,a=e,o=n,l=null,u="",c=!0,f="auto",h="start",p="auto",m="auto",y=100,v="center";Object.defineProperties(this,{id:{enumerable:!0,get:function(){return i},set:function(_){i=""+_}},pauseOnExit:{enumerable:!0,get:function(){return r},set:function(_){r=!!_}},startTime:{enumerable:!0,get:function(){return s},set:function(_){if(typeof _!="number")throw new TypeError("Start time must be set to a number.");s=_,this.hasBeenReset=!0}},endTime:{enumerable:!0,get:function(){return a}
83,set:function(_){if(typeof _!="number")throw new TypeError("End time must be set to a number.");a=_,this.hasBeenReset=!0}},text:{enumerable:!0,get:function(){return o},set:function(_){o=""+_,this.hasBeenReset=!0}},region:{enumerable:!0,get:function(){return l},set:function(_){l=_,this.hasBeenReset=!0}},vertical:{enumerable:!0,get:function(){return u},set:function(_){var b=vve(_);if(b===!1)throw new SyntaxError("Vertical: an invalid or illegal direction string was specified.");u=b,this.hasBeenReset=!0}},snapToLines:{enumerable:!0,get:function(){return c},set:function(_){c=!!_,this.hasBeenReset=!0}},line:{enumerable:!0,get:function(){return f},set:function(_){if(typeof _!="number"&&_!==mve)throw new SyntaxError("Line: an invalid number or illegal string was specified.");f=_,this.hasBeenReset=!0}},lineAlign:{enumerable:!0,get:function(){return h},set:function(_){var b=IM(_);b?(h=b,this.hasBeenReset=!0):console.warn("lineAlign: an invalid or illegal string was specified.")}},position:{enumerable:!0,get:function(){return p},set:function(_){if(_<0||_>100)throw new Error("Position must be between 0 and 100.");p=_,this.hasBeenReset=!0}},positionAlign:{enumerable:!0,get:function(){return m},set:function(_){var b=IM(_);b?(m=b,this.hasBeenReset=!0):console.warn("positionAlign: an invalid or illegal string was specified.")}},size:{enumerable:!0,get:function(){return y},set:function(_){if(_<0||_>100)throw new Error("Size must be between 0 and 100.");y=_,this.hasBeenReset=!0}},align:{enumerable:!0,get:function(){return v},set:function(_){var b=IM(_);if(!b)throw new SyntaxError("align: an invalid or illegal alignment string was specified.");v=b,this.hasBeenReset=!0}}}),this.displayState=void 0}Dq.prototype.getCueAsHTML=function(){return WebVTT.convertCueToDOMTree(window,this.text)};var yve=Dq,bve={"":!0,up:!0};function xve(t){if(typeof t!="string")return!1;var e=bve[t.toLowerCase()];return e?t.toLowerCase():!1}function I_(t){return typeof t=="number"&&t>=0&&t<=100}function Sve(){var t=100,e=3,n=0,i=100,r=0,s=100,a="";Object.defineProperties(this,{width:{enumerable:!0,get:function(){return t},set:function(o){if(!I_(o))throw new Error("Width must be between 0 and 100.");t=o}},lines:{enumerable:!0,get:function(){return e},set:function(o){if(typeof o!="number")throw new TypeError("Lines must be set to a number.");e=o}},regionAnchorY:{enumerable:!0,get:function(){return i},set:function(o){if(!I_(o))throw new Error("RegionAnchorX must be between 0 and 100.");i=o}},regionAnchorX:{enumerable:!0,get:function(){return n},set:function(o){if(!I_(o))throw new Error("RegionAnchorY must be between 0 and 100.");n=o}},viewportAnchorY:{enumerable:!0,get:function(){return s},set:function(o){if(!I_(o))throw new Error("ViewportAnchorY must be between 0 and 100.");s=o}},viewportAnchorX:{enumerable:!0,get:function(){return r},set:function(o){if(!I_(o))throw new Error("ViewportAnchorX must be between 0 and 100.");r=o}},scroll:{enumerable:!0,get:function(){return a}
83,set:function(o){var l=xve(o);l===!1?console.warn("Scroll: an invalid or illegal string was specified."):a=l}}})}var Tve=Sve,Oc=ue,Dp=cO.exports={WebVTT:pve,VTTCue:yve,VTTRegion:Tve};Oc.vttjs=Dp;Oc.WebVTT=Dp.WebVTT;var Eve=Dp.VTTCue,wve=Dp.VTTRegion,Cve=Oc.VTTCue,Ave=Oc.VTTRegion;Dp.shim=function(){Oc.VTTCue=Eve,Oc.VTTRegion=wve};Dp.restore=function(){Oc.VTTCue=Cve,Oc.VTTRegion=Ave};Oc.VTTCue||Dp.shim();var Pq={exports:{}};(function(t,e){(function(n){var i=/^(?=((?:[a-zA-Z0-9+\-.]+:)?))\1(?=((?:\/\/[^\/?#]*)?))\2(?=((?:(?:[^?#\/]*\/)*[^;?#\/]*)?))\3((?:;[^?#]*)?)(\?[^#]*)?(#[^]*)?$/,r=/^(?=([^\/?#]*))\1([^]*)$/,s=/(?:\/|^)\.(?=\/)/g,a=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g,o={buildAbsoluteURL:function(l,u,c){if(c=c||{},l=l.trim(),u=u.trim(),!u){if(!c.alwaysNormalize)return l;var f=o.parseURL(l);if(!f)throw new Error("Error trying to parse base URL.");return f.path=o.normalizePath(f.path),o.buildURLFromParts(f)}var h=o.parseURL(u);if(!h)throw new Error("Error trying to parse relative URL.");if(h.scheme)return c.alwaysNormalize?(h.path=o.normalizePath(h.path),o.buildURLFromParts(h)):u;var p=o.parseURL(l);if(!p)throw new Error("Error trying to parse base URL.");if(!p.netLoc&&p.path&&p.path[0]!=="/"){var m=r.exec(p.path);p.netLoc=m[1],p.path=m[2]}p.netLoc&&!p.path&&(p.path="/");var y={scheme:p.scheme,netLoc:h.netLoc,path:null,params:h.params,query:h.query,fragment:h.fragment};if(!h.netLoc&&(y.netLoc=p.netLoc,h.path[0]!=="/"))if(!h.path)y.path=p.path,h.params||(y.params=p.params,h.query||(y.query=p.query));else{var v=p.path,_=v.substring(0,v.lastIndexOf("/")+1)+h.path;y.path=o.normalizePath(_)}return y.path===null&&(y.path=c.alwaysNormalize?o.normalizePath(h.path):h.path),o.buildURLFromParts(y)},parseURL:function(l){var u=i.exec(l);return u?{scheme:u[1]||"",netLoc:u[2]||"",path:u[3]||"",params:u[4]||"",query:u[5]||"",fragment:u[6]||""}:null},normalizePath:function(l){for(l=l.split("").reverse().join("").replace(s,"");l.length!==(l=l.replace(a,"")).length;);return l.split("").reverse().join("")},buildURLFromParts:function(l){return l.scheme+l.netLoc+l.path+l.params+l.query+l.fragment}};t.exports=o})()})(Pq);const z8=Pq.exports;var H8="http://example.com",mw=function(e,n){if(/^[a-z]+:/i.test(n))return n;/^data:/.test(e)&&(e=ue.location&&ue.location.href||"");var i=typeof ue.URL=="function",r=/^\/\//.test(e),s=!ue.location&&!/\/\//i.test(e);if(i?e=new ue.URL(e,ue.location||H8):/\/\//i.test(e)||(e=z8.buildAbsoluteURL(ue.location&&ue.location.href||"",e)),i){var a=new URL(n,e);return s?a.href.slice(H8.length):r?a.href.slice(a.protocol.length):a.href}return z8.buildAbsoluteURL(e,n)},WI=function(){function t(){this.listeners={}}var e=t.prototype;return e.on=function(i,r){this.listeners[i]||(this.listeners[i]=[]),this.listeners[i].push(r)},e.off=function(i,r){if(!this.listeners[i])return!1;var s=this.listeners[i].indexOf(r);return this.listeners[i]=this.listeners[i].slice(0),this.listeners[i].splice(s,1),s>-1},e.trigger=function(i){var r=this.listeners[i];if(!!r)if(arguments.length===2)for(var s=r.length,a=0;a<s;++a)r[a].call(this,arguments[1]);else for(var o=Array.prototype.slice.call(arguments,1),l=r.length,u=0;u<l;++u)r[u].apply(this,o)},e.dispose=function(){this.listeners={}},e.pipe=function(i){this.on("data",function(r){i.push(r)})},t}(),Mve=function(e){return ue.atob?ue.atob(e):Buffer.from(e,"base64").toString("binary")};function Dve(t){for(var e=Mve(t),n=new Uint8Array(e.length),i=0;i<e.length;i++)n[i]=e.charCodeAt(i);return n}/*! @name m3u8-parser @version 7.1.0 @license Apache-2.0 */class Pve extends WI{constructor(){super(),this.buffer=""}push(e){let n;for(this.buffer+=e,n=this.buffer.indexOf(`
84`);n>-1;n=this.buffer.indexOf(`
85`))this.trigger("data",this.buffer.substring(0,n)),this.buffer=this.buffer.substring(n+1)}}const Ove=String.fromCharCode(9),LM=function(t){const e=/([0-9.]*)?@?([0-9.]*)?/.exec(t||""),n={};return e[1]&&(n.length=parseInt(e[1],10)),e[2]&&(n.offset=parseInt(e[2],10)),n},Rve=function(){const t="[^=]*",e='"[^"]*"|[^,]*',n="(?:"+t+")=(?:"+e+")";return new RegExp("(?:^|,)("+n+")")},ya=function(t){const e={};if(!t)return e;const n=t.split(Rve());let i=n.length,r;for(;i--;)n[i]!==""&&(r=/([^=]*)=(.*)/.exec(n[i]).slice(1),r[0]=r[0].replace(/^\s+|\s+$/g,""),r[1]=r[1].replace(/^\s+|\s+$/g,""),r[1]=r[1].replace(/^['"](.*)['"]$/g,"$1"),e[r[0]]=r[1]);return e};class kve extends WI{constructor(){super(),this.customParsers=[],this.tagMappers=[]}push(e){let n,i;if(e=e.trim(),e.length===0)return;if(e[0]!=="#"){this.trigger("data",{type:"uri",uri:e});return}this.tagMappers.reduce((s,a)=>{const o=a(e);return o===e?s:s.concat([o])}
85,[e]).forEach(s=>{for(let a=0;a<this.customParsers.length;a++)if(this.customParsers[a].call(this,s))return;if(s.indexOf("#EXT")!==0){this.trigger("data",{type:"comment",text:s.slice(1)});return}if(s=s.replace("\r",""),n=/^#EXTM3U/.exec(s),n){this.trigger("data",{type:"tag",tagType:"m3u"});return}if(n=/^#EXTINF:([0-9\.]*)?,?(.*)?$/.exec(s),n){i={type:"tag",tagType:"inf"},n[1]&&(i.duration=parseFloat(n[1])),n[2]&&(i.title=n[2]),this.trigger("data",i);return}if(n=/^#EXT-X-TARGETDURATION:([0-9.]*)?/.exec(s),n){i={type:"tag",tagType:"targetduration"},n[1]&&(i.duration=parseInt(n[1],10)),this.trigger("data",i);return}if(n=/^#EXT-X-VERSION:([0-9.]*)?/.exec(s),n){i={type:"tag",tagType:"version"},n[1]&&(i.version=parseInt(n[1],10)),this.trigger("data",i);return}if(n=/^#EXT-X-MEDIA-SEQUENCE:(\-?[0-9.]*)?/.exec(s),n){i={type:"tag",tagType:"media-sequence"},n[1]&&(i.number=parseInt(n[1],10)),this.trigger("data",i);return}if(n=/^#EXT-X-DISCONTINUITY-SEQUENCE:(\-?[0-9.]*)?/.exec(s),n){i={type:"tag",tagType:"discontinuity-sequence"},n[1]&&(i.number=parseInt(n[1],10)),this.trigger("data",i);return}if(n=/^#EXT-X-PLAYLIST-TYPE:(.*)?$/.exec(s),n){i={type:"tag",tagType:"playlist-type"},n[1]&&(i.playlistType=n[1]),this.trigger("data",i);return}if(n=/^#EXT-X-BYTERANGE:(.*)?$/.exec(s),n){i=Do(LM(n[1]),{type:"tag",tagType:"byterange"}),this.trigger("data",i);return}if(n=/^#EXT-X-ALLOW-CACHE:(YES|NO)?/.exec(s),n){i={type:"tag",tagType:"allow-cache"},n[1]&&(i.allowed=!/NO/.test(n[1])),this.trigger("data",i);return}if(n=/^#EXT-X-MAP:(.*)$/.exec(s),n){if(i={type:"tag",tagType:"map"},n[1]){const a=ya(n[1]);a.URI&&(i.uri=a.URI),a.BYTERANGE&&(i.byterange=LM(a.BYTERANGE))}this.trigger("data",i);return}if(n=/^#EXT-X-STREAM-INF:(.*)$/.exec(s),n){if(i={type:"tag",tagType:"stream-inf"}
85,n[1]){if(i.attributes=ya(n[1]),i.attributes.RESOLUTION){const a=i.attributes.RESOLUTION.split("x"),o={};a[0]&&(o.width=parseInt(a[0],10)),a[1]&&(o.height=parseInt(a[1],10)),i.attributes.RESOLUTION=o}i.attributes.BANDWIDTH&&(i.attributes.BANDWIDTH=parseInt(i.attributes.BANDWIDTH,10)),i.attributes["FRAME-RATE"]&&(i.attributes["FRAME-RATE"]=parseFloat(i.attributes["FRAME-RATE"])),i.attributes["PROGRAM-ID"]&&(i.attributes["PROGRAM-ID"]=parseInt(i.attributes["PROGRAM-ID"],10))}this.trigger("data",i);return}if(n=/^#EXT-X-MEDIA:(.*)$/.exec(s),n){i={type:"tag",tagType:"media"},n[1]&&(i.attributes=ya(n[1])),this.trigger("data",i);return}if(n=/^#EXT-X-ENDLIST/.exec(s),n){this.trigger("data",{type:"tag",tagType:"endlist"});return}if(n=/^#EXT-X-DISCONTINUITY/.exec(s),n){this.trigger("data",{type:"tag",tagType:"discontinuity"});return}if(n=/^#EXT-X-PROGRAM-DATE-TIME:(.*)$/.exec(s),n){i={type:"tag",tagType:"program-date-time"},n[1]&&(i.dateTimeString=n[1],i.dateTimeObject=new Date(n[1])),this.trigger("data",i);return}if(n=/^#EXT-X-KEY:(.*)$/.exec(s),n){i={type:"tag",tagType:"key"},n[1]&&(i.attributes=ya(n[1]),i.attributes.IV&&(i.attributes.IV.substring(0,2).toLowerCase()==="0x"&&(i.attributes.IV=i.attributes.IV.substring(2)),i.attributes.IV=i.attributes.IV.match(/.{8}/g),i.attributes.IV[0]=parseInt(i.attributes.IV[0],16),i.attributes.IV[1]=parseInt(i.attributes.IV[1],16),i.attributes.IV[2]=parseInt(i.attributes.IV[2],16),i.attributes.IV[3]=parseInt(i.attributes.IV[3],16),i.attributes.IV=new Uint32Array(i.attributes.IV))),this.trigger("data",i);return}if(n=/^#EXT-X-START:(.*)$/.exec(s),n){i={type:"tag",tagType:"start"},n[1]&&(i.attributes=ya(n[1]),i.attributes["TIME-OFFSET"]=parseFloat(i.attributes["TIME-OFFSET"]),i.attributes.PRECISE=/YES/.test(i.attributes.PRECISE)),this.trigger("data",i);return}if(n=/^#EXT-X-CUE-OUT-CONT:(.*)?$/.exec(s),n){i={type:"tag",tagType:"cue-out-cont"},n[1]?i.data=n[1]:i.data="",this.trigger("data",i);return}if(n=/^#EXT-X-CUE-OUT:(.*)?$/.exec(s),n){i={type:"tag",tagType:"cue-out"},n[1]?i.data=n[1]:i.data="",this.trigger("data",i);return}if(n=/^#EXT-X-CUE-IN:(.*)?$/.exec(s),n){i={type:"tag",tagType:"cue-in"},n[1]?i.data=n[1]:i.data="",this.trigger("data",i);return}if(n=/^#EXT-X-SKIP:(.*)$/.exec(s),n&&n[1]){i={type:"tag",tagType:"skip"},i.attributes=ya(n[1]),i.attributes.hasOwnProperty("SKIPPED-SEGMENTS")&&(i.attributes["SKIPPED-SEGMENTS"]=parseInt(i.attributes["SKIPPED-SEGMENTS"],10)),i.attributes.hasOwnProperty("RECENTLY-REMOVED-DATERANGES")&&(i.attributes["RECENTLY-REMOVED-DATERANGES"]=i.attributes["RECENTLY-REMOVED-DATERANGES"].split(Ove)),this.trigger("data",i);return}if(n=/^#EXT-X-PART:(.*)$/.exec(s),n&&n[1]){i={type:"tag",tagType:"part"},i.attributes=ya(n[1]),["DURATION"].forEach(function(a){i.attributes.hasOwnProperty(a)&&(i.attributes[a]=parseFloat(i.attributes[a]))}),["INDEPENDENT","GAP"].forEach(function(a){i.attributes.hasOwnProperty(a)&&(i.attributes[a]=/YES/.test(i.attributes[a]))}),i.attributes.hasOwnProperty("BYTERANGE")&&(i.attributes.byterange=LM(i.attributes.BYTERANGE)),this.trigger("data",i);return}if(n=/^#EXT-X-SERVER-CONTROL:(.*)$/.exec(s),n&&n[1]){i={type:"tag",tagType:"server-control"},i.attributes=ya(n[1]),["CAN-SKIP-UNTIL","PART-HOLD-BACK","HOLD-BACK"].forEach(function(a){i.attributes.hasOwnProperty(a)&&(i.attributes[a]=parseFloat(i.attributes[a]))}),["CAN-SKIP-DATERANGES","CAN-BLOCK-RELOAD"].forEach(function(a){i.attributes.hasOwnProperty(a)&&(i.attributes[a]=/YES/.test(i.attributes[a]))}),this.trigger("data",i);return}if(n=/^#EXT-X-PART-INF:(.*)$/.exec(s),n&&n[1]){i={type:"tag",tagType:"part-inf"},i.attributes=ya(n[1]),["PART-TARGET"].forEach(function(a){i.attributes.hasOwnProperty(a)&&(i.attributes[a]=parseFloat(i.attributes[a]))}),this.trigger("data",i);return}if(n=/^#EXT-X-PRELOAD-HINT:(.*)$/.exec(s),n&&n[1]){i={type:"tag",tagType:"preload-hint"},i.attributes=ya(n[1]),["BYTERANGE-START","BYTERANGE-LENGTH"].forEach(function(a){if(i.attributes.hasOwnProperty(a)){i.attributes[a]=parseInt(i.attributes[a],10);const o=a==="BYTERANGE-LENGTH"?"length":"offset";i.attributes.byterange=i.attributes.byterange||{},i.attributes.byterange[o]=i.attributes[a],delete i.attributes[a]}}),this.trigger("data",i);return}if(n=/^#EXT-X-RENDITION-REPORT:(.*)$/.exec(s),n&&n[1]){i={type:"tag",tagType:"rendition-report"},i.attributes=ya(n[1]),["LAST-MSN","LAST-PART"].forEach(function(a){i.attributes.hasOwnProperty(a)&&(i.attributes[a]=parseInt(i.attributes[a],10))}),this.trigger("data",i);return}if(n=/^#EXT-X-DATERANGE:(.*)$/.exec(s),n&&n[1]){i={type:"tag",tagType:"daterange"},i.attributes=ya(n[1]),["ID","CLASS"].forEach(function(o){i.attributes.hasOwnProperty(o)&&(i.attributes[o]=String(i.attributes[o]))}),["START-DATE","END-DATE"].forEach(function(o){i.attributes.hasOwnProperty(o)&&(i.attributes[o]=new Date(i.attributes[o]))}),["DURATION","PLANNED-DURATION"].forEach(function(o){i.attributes.hasOwnProperty(o)&&(i.attributes[o]=parseFloat(i.attributes[o]))}),["END-ON-NEXT"].forEach(function(o){i.attributes.hasOwnProperty(o)&&(i.attributes[o]=/YES/i.test(i.attributes[o]))}),["SCTE35-CMD"," SCTE35-OUT","SCTE35-IN"].forEach(function(o){i.attributes.hasOwnProperty(o)&&(i.attributes[o]=i.attributes[o].toString(16))});const a=/^X-([A-Z]+-)+[A-Z]+$/;
85for(const o in i.attributes){if(!a.test(o))continue;const l=/[0-9A-Fa-f]{6}/g.test(i.attributes[o]),u=/^\d+(\.\d+)?$/.test(i.attributes[o]);i.attributes[o]=l?i.attributes[o].toString(16):u?parseFloat(i.attributes[o]):String(i.attributes[o])}this.trigger("data",i);return}if(n=/^#EXT-X-INDEPENDENT-SEGMENTS/.exec(s),n){this.trigger("data",{type:"tag",tagType:"independent-segments"});return}if(n=/^#EXT-X-CONTENT-STEERING:(.*)$/.exec(s),n){i={type:"tag",tagType:"content-steering"},i.attributes=ya(n[1]),this.trigger("data",i);return}this.trigger("data",{type:"tag",data:s.slice(4)})})}addParser({expression:e,customType:n,dataParser:i,segment:r}){typeof i!="function"&&(i=s=>s),this.customParsers.push(s=>{if(e.exec(s))return this.trigger("data",{type:"custom",data:i(s),customType:n,segment:r}),!0})}addTagMapper({expression:e,map:n}){const i=r=>e.test(r)?n(r):r;this.tagMappers.push(i)}}const Ive=t=>t.toLowerCase().replace(/-(\w)/g,e=>e[1].toUpperCase()),uf=function(t){const e={};return Object.keys(t).forEach(function(n){e[Ive(n)]=t[n]}),e},FM=function(t){const{serverControl:e,targetDuration:n,partTargetDuration:i}=t;if(!e)return;const r="#EXT-X-SERVER-CONTROL",s="holdBack",a="partHoldBack",o=n&&n*3,l=i&&i*2;n&&!e.hasOwnProperty(s)&&(e[s]=o,this.trigger("info",{message:`${r} defaulting HOLD-BACK to targetDuration * 3 (${o}).`})),o&&e[s]<o&&(this.trigger("warn",{message:`${r} clamping HOLD-BACK (${e[s]}) to targetDuration * 3 (${o})`}),e[s]=o),i&&!e.hasOwnProperty(a)&&(e[a]=i*3,this.trigger("info",{message:`${r} defaulting PART-HOLD-BACK to partTargetDuration * 3 (${e[a]}).`})),i&&e[a]<l&&(this.trigger("warn",{message:`${r} clamping PART-HOLD-BACK (${e[a]}) to partTargetDuration * 2 (${l}).`}),e[a]=l)};class Lve extends WI{constructor(){super(),this.lineStream=new Pve,this.parseStream=new kve,this.lineStream.pipe(this.parseStream),this.lastProgramDateTime=null;const e=this,n=[];let i={},r,s,a=!1;const o=function(){},l={AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},u="urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed";let c=0;this.manifest={allowCache:!0,discontinuityStarts:[],dateRanges:[],segments:[]};let f=0,h=0;const p={};this.on("end",()=>{i.uri||!i.parts&&!i.preloadHints||(!i.map&&r&&(i.map=r),!i.key&&s&&(i.key=s),!i.timeline&&typeof c=="number"&&(i.timeline=c),this.manifest.preloadSegment=i)}),this.parseStream.on("data",function(m){let y,v;({tag(){({version(){m.version&&(this.manifest.version=m.version)},"allow-cache"(){this.manifest.allowCache=m.allowed,"allowed"in m||(this.trigger("info",{message:"defaulting allowCache to YES"}),this.manifest.allowCache=!0)},byterange(){const _={};"length"in m&&(i.byterange=_,_.length=m.length,"offset"in m||(m.offset=f)),"offset"in m&&(i.byterange=_,_.offset=m.offset),f=_.offset+_.length},endlist(){this.manifest.endList=!0},inf(){"mediaSequence"in this.manifest||(this.manifest.mediaSequence=0,this.trigger("info",{message:"defaulting media sequence to zero"})),"discontinuitySequence"in this.manifest||(this.manifest.discontinuitySequence=0,this.trigger("info",{message:"defaulting discontinuity sequence to zero"})),m.title&&(i.title=m.title),m.duration>0&&(i.duration=m.duration),m.duration===0&&(i.duration=.01,this.trigger("info",{message:"updating zero segment duration to a small value"})),this.manifest.segments=n},key(){if(!m.attributes){this.trigger("warn",{message:"ignoring key declaration without attribute list"});return}if(m.attributes.METHOD==="NONE"){s=null;return}if(!m.attributes.URI){this.trigger("warn",{message:"ignoring key declaration without URI"});return}if(m.attributes.KEYFORMAT==="com.apple.streamingkeydelivery"){this.manifest.contentProtection=this.manifest.contentProtection||{},this.manifest.contentProtection["com.apple.fps.1_0"]={attributes:m.attributes};return}if(m.attributes.KEYFORMAT==="com.microsoft.playready"){this.manifest.contentProtection=this.manifest.contentProtection||{},this.manifest.contentProtection["com.microsoft.playready"]={uri:m.attributes.URI};return}if(m.attributes.KEYFORMAT===u){if(["SAMPLE-AES","SAMPLE-AES-CTR","SAMPLE-AES-CENC"].indexOf(m.attributes.METHOD)===-1){this.trigger("warn",{message:"invalid key method provided for Widevine"});return}if(m.attributes.METHOD==="SAMPLE-AES-CENC"&&this.trigger("warn",{message:"SAMPLE-AES-CENC is deprecated, please use SAMPLE-AES-CTR instead"}),m.attributes.URI.substring(0,23)!=="data:text/plain;base64,"){this.trigger("warn",{message:"invalid key URI provided for Widevine"});return}if(!(m.attributes.KEYID&&m.attributes.KEYID.substring(0,2)==="0x")){this.trigger("warn",{message:"invalid key ID provided for Widevine"});return}this.manifest.contentProtection=this.manifest.contentProtection||{},this.manifest.contentProtection["com.widevine.alpha"]={attributes:{schemeIdUri:m.attributes.KEYFORMAT,keyId:m.attributes.KEYID.substring(2)},pssh:Dve(m.attributes.URI.split(",")[1])};return}m.attributes.METHOD||this.trigger("warn",{message:"defaulting key method to AES-128"}),s={method:m.attributes.METHOD||"AES-128",uri:m.attributes.URI},typeof m.attributes.IV<"u"&&(s.iv=m.attributes.IV)},"media-sequence"(){if(!isFinite(m.number)){this.trigger("warn",{message:"ignoring invalid media sequence: "+m.number});return}this.manifest.mediaSequence=m.number},"discontinuity-sequence"(){if(!isFinite(m.number)){this.trigger("warn",{message:"ignoring invalid discontinuity sequence: "+m.number});return}this.manifest.discontinuitySequence=m.number,c=m.number},"playlist-type"(){if(!/VOD|EVENT/.test(m.playlistType)){this.trigger("warn",{message:"ignoring unknown playlist type: "+m.playlist});return}this.manifest.playlistType=m.playlistType},map(){r={},m.uri&&(r.uri=m.uri),m.byterange&&(r.byterange=m.byterange),s&&(r.key=s)}
85,"stream-inf"(){if(this.manifest.playlists=n,this.manifest.mediaGroups=this.manifest.mediaGroups||l,!m.attributes){this.trigger("warn",{message:"ignoring empty stream-inf attributes"});return}i.attributes||(i.attributes={}),Do(i.attributes,m.attributes)},media(){if(this.manifest.mediaGroups=this.manifest.mediaGroups||l,!(m.attributes&&m.attributes.TYPE&&m.attributes["GROUP-ID"]&&m.attributes.NAME)){this.trigger("warn",{message:"ignoring incomplete or missing media group"});return}const _=this.manifest.mediaGroups[m.attributes.TYPE];_[m.attributes["GROUP-ID"]]=_[m.attributes["GROUP-ID"]]||{},y=_[m.attributes["GROUP-ID"]],v={default:/yes/i.test(m.attributes.DEFAULT)},v.default?v.autoselect=!0:v.autoselect=/yes/i.test(m.attributes.AUTOSELECT),m.attributes.LANGUAGE&&(v.language=m.attributes.LANGUAGE),m.attributes.URI&&(v.uri=m.attributes.URI),m.attributes["INSTREAM-ID"]&&(v.instreamId=m.attributes["INSTREAM-ID"]),m.attributes.CHARACTERISTICS&&(v.characteristics=m.attributes.CHARACTERISTICS),m.attributes.FORCED&&(v.forced=/yes/i.test(m.attributes.FORCED)),y[m.attributes.NAME]=v},discontinuity(){c+=1,i.discontinuity=!0,this.manifest.discontinuityStarts.push(n.length)},"program-date-time"(){typeof this.manifest.dateTimeString>"u"&&(this.manifest.dateTimeString=m.dateTimeString,this.manifest.dateTimeObject=m.dateTimeObject),i.dateTimeString=m.dateTimeString,i.dateTimeObject=m.dateTimeObject;const{lastProgramDateTime:_}=this;this.lastProgramDateTime=new Date(m.dateTimeString).getTime(),_===null&&this.manifest.segments.reduceRight((b,x)=>(x.programDateTime=b-x.duration*1e3,x.programDateTime),this.lastProgramDateTime)},targetduration(){if(!isFinite(m.duration)||m.duration<0){this.trigger("warn",{message:"ignoring invalid target duration: "+m.duration});return}this.manifest.targetDuration=m.duration,FM.call(this,this.manifest)},start(){if(!m.attributes||isNaN(m.attributes["TIME-OFFSET"])){this.trigger("warn",{message:"ignoring start declaration without appropriate attribute list"});return}this.manifest.start={timeOffset:m.attributes["TIME-OFFSET"],precise:m.attributes.PRECISE}},"cue-out"(){i.cueOut=m.data},"cue-out-cont"(){i.cueOutCont=m.data},"cue-in"(){i.cueIn=m.data},skip(){this.manifest.skip=uf(m.attributes),this.warnOnMissingAttributes_("#EXT-X-SKIP",m.attributes,["SKIPPED-SEGMENTS"])},part(){a=!0;const _=this.manifest.segments.length,b=uf(m.attributes);i.parts=i.parts||[],i.parts.push(b),b.byterange&&(b.byterange.hasOwnProperty("offset")||(b.byterange.offset=h),h=b.byterange.offset+b.byterange.length);const x=i.parts.length-1;this.warnOnMissingAttributes_(`#EXT-X-PART #${x} for segment #${_}`,m.attributes,["URI","DURATION"]),this.manifest.renditionReports&&this.manifest.renditionReports.forEach((T,E)=>{T.hasOwnProperty("lastPart")||this.trigger("warn",{message:`#EXT-X-RENDITION-REPORT #${E} lacks required attribute(s): LAST-PART`})})},"server-control"(){const _=this.manifest.serverControl=uf(m.attributes);_.hasOwnProperty("canBlockReload")||(_.canBlockReload=!1,this.trigger("info",{message:"#EXT-X-SERVER-CONTROL defaulting CAN-BLOCK-RELOAD to false"})),FM.call(this,this.manifest),_.canSkipDateranges&&!_.hasOwnProperty("canSkipUntil")&&this.trigger("warn",{message:"#EXT-X-SERVER-CONTROL lacks required attribute CAN-SKIP-UNTIL which is required when CAN-SKIP-DATERANGES is set"})},"preload-hint"(){const _=this.manifest.segments.length,b=uf(m.attributes),x=b.type&&b.type==="PART";i.preloadHints=i.preloadHints||[],i.preloadHints.push(b),b.byterange&&(b.byterange.hasOwnProperty("offset")||(b.byterange.offset=x?h:0,x&&(h=b.byterange.offset+b.byterange.length)));const T=i.preloadHints.length-1;if(this.warnOnMissingAttributes_(`#EXT-X-PRELOAD-HINT #${T} for segment #${_}`,m.attributes,["TYPE","URI"]),!!b.type)for(let E=0;E<i.preloadHints.length-1;E++){const C=i.preloadHints[E];!C.type||C.type===b.type&&this.trigger("warn",{message:`#EXT-X-PRELOAD-HINT #${T} for segment #${_} has the same TYPE ${b.type} as preload hint #${E}`})}},"rendition-report"(){const _=uf(m.attributes);this.manifest.renditionReports=this.manifest.renditionReports||[],this.manifest.renditionReports.push(_);const b=this.manifest.renditionReports.length-1,x=["LAST-MSN","URI"];a&&x.push("LAST-PART"),this.warnOnMissingAttributes_(`#EXT-X-RENDITION-REPORT #${b}`,m.attributes,x)},"part-inf"(){this.manifest.partInf=uf(m.attributes),this.warnOnMissingAttributes_("#EXT-X-PART-INF",m.attributes,["PART-TARGET"]),this.manifest.partInf.partTarget&&(this.manifest.partTargetDuration=this.manifest.partInf.partTarget),FM.call(this,this.manifest)},daterange(){this.manifest.dateRanges.push(uf(m.attributes));const _=this.manifest.dateRanges.length-1;this.warnOnMissingAttributes_(`#EXT-X-DATERANGE #${_}`,m.attributes,["ID","START-DATE"]);const b=this.manifest.dateRanges[_];
85b.endDate&&b.startDate&&new Date(b.endDate)<new Date(b.startDate)&&this.trigger("warn",{message:"EXT-X-DATERANGE END-DATE must be equal to or later than the value of the START-DATE"}),b.duration&&b.duration<0&&this.trigger("warn",{message:"EXT-X-DATERANGE DURATION must not be negative"}),b.plannedDuration&&b.plannedDuration<0&&this.trigger("warn",{message:"EXT-X-DATERANGE PLANNED-DURATION must not be negative"});const x=!!b.endOnNext;if(x&&!b.class&&this.trigger("warn",{message:"EXT-X-DATERANGE with an END-ON-NEXT=YES attribute must have a CLASS attribute"}),x&&(b.duration||b.endDate)&&this.trigger("warn",{message:"EXT-X-DATERANGE with an END-ON-NEXT=YES attribute must not contain DURATION or END-DATE attributes"}),b.duration&&b.endDate){const E=b.startDate.getTime()+b.duration*1e3;this.manifest.dateRanges[_].endDate=new Date(E)}if(!p[b.id])p[b.id]=b;else{for(const E in p[b.id])if(!!b[E]&&JSON.stringify(p[b.id][E])!==JSON.stringify(b[E])){this.trigger("warn",{message:"EXT-X-DATERANGE tags with the same ID in a playlist must have the same attributes values"});break}const T=this.manifest.dateRanges.findIndex(E=>E.id===b.id);this.manifest.dateRanges[T]=Do(this.manifest.dateRanges[T],b),p[b.id]=Do(p[b.id],b),this.manifest.dateRanges.pop()}},"independent-segments"(){this.manifest.independentSegments=!0},"content-steering"(){this.manifest.contentSteering=uf(m.attributes),this.warnOnMissingAttributes_("#EXT-X-CONTENT-STEERING",m.attributes,["SERVER-URI"])}}[m.tagType]||o).call(e)},uri(){i.uri=m.uri,n.push(i),this.manifest.targetDuration&&!("duration"in i)&&(this.trigger("warn",{message:"defaulting segment duration to the target duration"}),i.duration=this.manifest.targetDuration),s&&(i.key=s),i.timeline=c,r&&(i.map=r),h=0,this.lastProgramDateTime!==null&&(i.programDateTime=this.lastProgramDateTime,this.lastProgramDateTime+=i.duration*1e3),i={}},comment(){},custom(){m.segment?(i.custom=i.custom||{},i.custom[m.customType]=m.data):(this.manifest.custom=this.manifest.custom||{},this.manifest.custom[m.customType]=m.data)}})[m.type].call(e)})}warnOnMissingAttributes_(e,n,i){const r=[];i.forEach(function(s){n.hasOwnProperty(s)||r.push(s)}),r.length&&this.trigger("warn",{message:`${e} lacks required attribute(s): ${r.join(", ")}`})}push(e){this.lineStream.push(e)}end(){this.lineStream.push(`
86`),this.manifest.dateRanges.length&&this.lastProgramDateTime===null&&this.trigger("warn",{message:"A playlist with EXT-X-DATERANGE tag must contain atleast one EXT-X-PROGRAM-DATE-TIME tag"}),this.lastProgramDateTime=null,this.trigger("end")}addParser(e){this.parseStream.addParser(e)}addTagMapper(e){this.parseStream.addTagMapper(e)}}var Hh={mp4:/^(av0?1|avc0?[1234]|vp0?9|flac|opus|mp3|mp4a|mp4v|stpp.ttml.im1t)/,webm:/^(vp0?[89]|av0?1|opus|vorbis)/,ogg:/^(vp0?[89]|theora|flac|opus|vorbis)/,video:/^(av0?1|avc0?[1234]|vp0?[89]|hvc1|hev1|theora|mp4v)/,audio:/^(mp4a|flac|vorbis|opus|ac-[34]|ec-3|alac|mp3|speex|aac)/,text:/^(stpp.ttml.im1t)/,muxerVideo:/^(avc0?1)/,muxerAudio:/^(mp4a)/,muxerText:/a^/},Fve=["video","audio","text"],V8=["Video","Audio","Text"],Oq=function(e){return e&&e.replace(/avc1\.(\d+)\.(\d+)/i,function(n,i,r){var s=("00"+Number(i).toString(16)).slice(-2),a=("00"+Number(r).toString(16)).slice(-2);return"avc1."+s+"00"+a})},Bl=function(e){e===void 0&&(e="");var n=e.split(","),i=[];return n.forEach(function(r){r=r.trim();var s;Fve.forEach(function(a){var o=Hh[a].exec(r.toLowerCase());if(!(!o||o.length<=1)){s=a;var l=r.substring(0,o[1].length),u=r.replace(l,"");i.push({type:l,details:u,mediaType:a})}}),s||i.push({type:r,details:"",mediaType:"unknown"})}),i},Nve=function(e,n){if(!e.mediaGroups.AUDIO||!n)return null;var i=e.mediaGroups.AUDIO[n];if(!i)return null;for(var r in i){var s=i[r];if(s.default&&s.playlists)return Bl(s.playlists[0].attributes.CODECS)}return null},Rq=function(e){return e===void 0&&(e=""),Hh.audio.test(e.trim().toLowerCase())},Bve=function(e){return e===void 0&&(e=""),Hh.text.test(e.trim().toLowerCase())},qy=function(e){if(!(!e||typeof e!="string")){var n=e.toLowerCase().split(",").map(function(s){return Oq(s.trim())}),i="video";n.length===1&&Rq(n[0])?i="audio":n.length===1&&Bve(n[0])&&(i="application");var r="mp4";return n.every(function(s){return Hh.mp4.test(s)})?r="mp4":n.every(function(s){return Hh.webm.test(s)})?r="webm":n.every(function(s){return Hh.ogg.test(s)})&&(r="ogg"),i+"/"+r+';codecs="'+e+'"'}},DT=function(e){return e===void 0&&(e=""),ue.MediaSource&&ue.MediaSource.isTypeSupp
86orted&&ue.MediaSource.isTypeSupported(qy(e))||!1},NM=function(e){return e===void 0&&(e=""),e.toLowerCase().split(",").every(function(n){n=n.trim();for(var i=0;i<V8.length;i++){var r=V8[i];if(Hh["muxer"+r].test(n))return!0}return!1})},W8="mp4a.40.2",Uve="avc1.4d400d",$ve=/^(audio|video|application)\/(x-|vnd\.apple\.)?mpegurl/i,zve=/^application\/dash\+xml/i,kq=function(e){return $ve.test(e)?"hls":zve.test(e)?"dash":e==="application/vnd.videojs.vhs+json"?"vhs-json":null},Hve=function(e){return e.toString(2).length},Vve=function(e){return Math.ceil(Hve(e)/8)},Iq=function(e){return ArrayBuffer.isView==="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer},Wve=function(e){return Iq(e)},Lt=function(e){return e instanceof Uint8Array?e:(!Array.isArray(e)&&!Wve(e)&&!(e instanceof ArrayBuffer)&&(typeof e!="number"||typeof e=="number"&&e!==e?e=0:e=[e]),new Uint8Array(e&&e.buffer||e,e&&e.byteOffset||0,e&&e.byteLength||0))},Rr=ue.BigInt||Number,fO=[Rr("0x1"),Rr("0x100"),Rr("0x10000"),Rr("0x1000000"),Rr("0x100000000"),Rr("0x10000000000"),Rr("0x1000000000000"),Rr("0x100000000000000"),Rr("0x10000000000000000")];(function(){var t=new Uint16Array([65484]),e=new Uint8Array(t.buffer,t.byteOffset,t.byteLength);return e[0]===255?"big":e[0]===204?"little":"unknown"})();var Gve=function(e,n){var i=n===void 0?{}:n,r=i.signed,s=r===void 0?!1:r,a=i.le,o=a===void 0?!1:a;e=Lt(e);var l=o?"reduce":"reduceRight",u=e[l]?e[l]:Array.prototype[l],c=u.call(e,function(h,p,m){var y=o?m:Math.abs(m+1-e.length);return h+Rr(p)*fO[y]},Rr(0));if(s){var f=fO[e.length]/Rr(2)-Rr(1);c=Rr(c),c>f&&(c-=f,c-=f,c-=Rr(2))}return Number(c)},jve=function(e,n){var i=n===void 0?{}:n,r=i.le,s=r===void 0?!1:r;(typeof e!="bigint"&&typeof e!="number"||typeof e=="number"&&e!==e)&&(e=0),e=Rr(e);for(var a=Vve(e),o=new Uint8Array(new ArrayBuffer(a)),l=0;l<a;l++){var u=s?l:Math.abs(l+1-o.length);o[u]=Number(e/fO[l]&Rr(255)),e<0&&(o[u]=Math.abs(~o[u]),o[u]-=l===0?1:2)}return o},Lq=function(e,n){if(typeof e!="string"&&e&&typeof e.toString=="function"&&(e=e.toString()),typeof e!="string")return new Uint8Array;n||(e=unescape(encodeURIComponent(e)));for(var i=new Uint8Array(e.length),r=0;r<e.length;r++)i[r]=e.charCodeAt(r);return i},qve=function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];if(n=n.filter(function(o){return o&&(o.byteLength||o.length)&&typeof o!="string"}),n.length<=1)return Lt(n[0]);var r=n.reduce(function(o,l,u){return o+(l.byteLength||l.length)},0),s=new Uint8Array(r),a=0;return n.forEach(function(o){o=Lt(o),s.set(o,a),a+=o.byteLength}),s},yi=function(e,n,i){var r=i===void 0?{}:i,s=r.offset,a=s===void 0?0:s,o=r.mask,l=o===void 0?[]:o;e=Lt(e),n=Lt(n);var u=n.every?n.every:Array.prototype.every;return n.length&&e.length-a>=n.length&&u.call(n,function(c,f){var h=l[f]?l[f]&e[a+f]:e[a+f];return c===h})},Xve=function(e,n,i){n.forEach(function(r){for(var s in e.mediaGroups[r])for(var a in e.mediaGroups[r][s]){var o=e.mediaGroups[r][s][a];i(o,r,s,a)}})},Yve=function(e){return ue.atob?ue.atob(e):Buffer.from(e,"base64").toString("binary")};function Kve(t){for(var e=Yve(t),n=new Uint8Array(e.length),i=0;i<e.length;i++)n[i]=e.charCodeAt(i);return n}var wd={},Nc={};function Zve(t,e,n){if(n===void 0&&(n=Array.prototype),t&&typeof n.find=="function")return n.find.call(t,e);for(var i=0;i<t.length;i++)if(Object.prototype.hasOwnProperty.call(t,i)){var r=t[i];if(e.call(void 0,r,i,t))return r}}function GI(t,e){return e===void 0&&(e=Object),e&&typeof e.freeze=="function"?e.freeze(t):t}function Qve(t,e){if(t===null||typeof t!="object")throw new TypeError("target is not an object");for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}var Fq=GI({HTML:"text/html",isHTML:function(t){return t===Fq.HTML},XML_APPLICATION:"application/xml",XML_TEXT:"text/xml",XML_XHTML_APPLICATION:"application/xhtml+xml",XML_SVG_IMAGE:"image/svg+xml"}),Nq=GI({HTML:"http://www.w3.org/1999/xhtml",isHTML:function(t){return t===Nq.HTML},SVG:"http://www.w3.org/2000/svg",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"});Nc.assign=Qve;Nc.find=Zve;Nc.freeze=GI;Nc.MIME_TYPE=Fq;Nc.NAMESPACE=Nq;var Bq=Nc,au=Bq.find,Xy=Bq.NAMESPACE;function Jve(t){return t!==""}function eye(t){return t?t.split(/[\t\n\f\r ]+/).filter(Jve):[]}function tye(t,e){return t.hasOwnProperty(e)||(t[e]=!0),t}function G8(t){if(!t)return[];var e=eye(t);return Object.keys(e.reduce(tye,{}))}function nye(t){return function(e){return t&&t.indexOf(e)!==-1}}function Bb(t,e){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}function da(t,e){var n=t.prototype;if(!(n instanceof e)){let i=function(){};i.prototype=e.prototype,i=new i,Bb(n,i),t.prototype=n=i}n.constructor!=t&&(typeof t!="function"&&console.error("unknown Class:"+t),n.constructor=t)}var ha={},cl=ha.ELEMENT_NODE=1,og=ha.ATTRIBUTE_NODE=2,k2=ha.TEXT_NODE=3,Uq=ha.CDATA_SECTION_NODE=4,$q=ha.ENTITY_REFERENCE_NODE=5,iye=ha.ENTITY_NODE=6,zq=ha.PROCESSING_INSTRUCTION_NODE=7,Hq=ha.COMMENT_NODE=8,Vq=ha.DOCUMENT_NODE=9,Wq=ha.DOCUMENT_TYPE_NODE=10,Rc=ha.DOCUMENT_FRAGMENT_NODE=11,rye=ha.NOTATION_NODE=12,as={},Cr={};as.INDEX_SIZE_ERR=(Cr[1]="Index size error",1);as.DOMSTRING_SIZE_ERR=(Cr[2]="DOMString size error",2);var Gs=as.HIERARCHY_REQUEST_ERR=(Cr[3]="Hierarchy request error",3);as.WRONG_DOCUMENT_ERR=(Cr[4]="Wrong document",4);as.INVALID_CHARACTER_ERR=(Cr[5]="Invalid character",5);
vendor: 15,881 bytes, line 86
86as.NO_DATA_ALLOWED_ERR=(Cr[6]="No data allowed",6);as.NO_MODIFICATION_ALLOWED_ERR=(Cr[7]="No modification allowed",7);var Gq=as.NOT_FOUND_ERR=(Cr[8]="Not found",8);as.NOT_SUPPORTED_ERR=(Cr[9]="Not supported",9);var j8=as.INUSE_ATTRIBUTE_ERR=(Cr[10]="Attribute in use",10);as.INVALID_STATE_ERR=(Cr[11]="Invalid state",11);as.SYNTAX_ERR=(Cr[12]="Syntax error",12);as.INVALID_MODIFICATION_ERR=(Cr[13]="Invalid modification",13);as.NAMESPACE_ERR=(Cr[14]="Invalid namespace",14);as.INVALID_ACCESS_ERR=(Cr[15]="Invalid access",15);function Gi(t,e){if(e instanceof Error)var n=e;else n=this,Error.call(this,Cr[t]),this.message=Cr[t],Error.captureStackTrace&&Error.captureStackTrace(this,Gi);return n.code=t,e&&(this.message=this.message+": "+e),n}Gi.prototype=Error.prototype;Bb(as,Gi);function Sc(){}Sc.prototype={length:0,item:function(t){return t>=0&&t<this.length?this[t]:null},toString:function(t,e){for(var n=[],i=0;i<this.length;i++)tm(this[i],n,t,e);return n.join("")},filter:function(t){return Array.prototype.filter.call(this,t)},indexOf:function(t){return Array.prototype.indexOf.call(this,t)}};function lg(t,e){this._node=t,this._refresh=e,jI(this)}function jI(t){var e=t._node._inc||t._node.ownerDocument._inc;if(t._inc!==e){var n=t._refresh(t._node);if(iX(t,"length",n.length),!t.$$length||n.length<t.$$length)for(var i=n.length;i in t;i++)Object.prototype.hasOwnProperty.call(t,i)&&delete t[i];Bb(n,t),t._inc=e}}lg.prototype.item=function(t){return jI(this),this[t]||null};da(lg,Sc);function I2(){}function jq(t,e){for(var n=t.length;n--;)if(t[n]===e)return n}function q8(t,e,n,i){if(i?e[jq(e,i)]=n:e[e.length++]=n,t){n.ownerElement=t;var r=t.ownerDocument;r&&(i&&Yq(r,t,i),sye(r,t,n))}}function X8(t,e,n){var i=jq(e,n);if(i>=0){for(var r=e.length-1;i<r;)e[i]=e[++i];if(e.length=r,t){var s=t.ownerDocument;s&&(Yq(s,t,n),n.ownerElement=null)}}else throw new Gi(Gq,new Error(t.tagName+"@"+n))}I2.prototype={length:0,item:Sc.prototype.item,getNamedItem:function(t){for(var e=this.length;e--;){var n=this[e];if(n.nodeName==t)return n}},setNamedItem:function(t){var e=t.ownerElement;if(e&&e!=this._ownerElement)throw new Gi(j8);var n=this.getNamedItem(t.nodeName);return q8(this._ownerElement,this,t,n),n},setNamedItemNS:function(t){var e=t.ownerElement,n;if(e&&e!=this._ownerElement)throw new Gi(j8);return n=this.getNamedItemNS(t.namespaceURI,t.localName),q8(this._ownerElement,this,t,n),n},removeNamedItem:function(t){var e=this.getNamedItem(t);return X8(this._ownerElement,this,e),e},removeNamedItemNS:function(t,e){var n=this.getNamedItemNS(t,e);return X8(this._ownerElement,this,n),n},getNamedItemNS:function(t,e){for(var n=this.length;n--;){var i=this[n];if(i.localName==e&&i.namespaceURI==t)return i}return null}};function qq(){}qq.prototype={hasFeature:function(t,e){return!0},createDocument:function(t,e,n){var i=new Ub;if(i.implementation=this,i.childNodes=new Sc,i.doctype=n||null,n&&i.appendChild(n),e){var r=i.createElementNS(t,e);i.appendChild(r)}return i},createDocumentType:function(t,e,n){var i=new gw;return i.name=t,i.nodeName=t,i.publicId=e||"",i.systemId=n||"",i}};function Hn(){}Hn.prototype={firstChild:null,lastChild:null,previousSibling:null,nextSibling:null,attributes:null,parentNode:null,childNodes:null,ownerDocument:null,nodeValue:null,namespaceURI:null,prefix:null,localName:null,insertBefore:function(t,e){return L2(this,t,e)},replaceChild:function(t,e){L2(this,t,e,Zq),e&&this.removeChild(e)},removeChild:function(t){return Kq(this,t)},appendChild:function(t){return this.insertBefore(t,null)},hasChildNodes:function(){return this.firstChild!=null},cloneNode:function(t){return dO(this.ownerDocument||this,this,t)},normalize:function(){for(var t=this.firstChild;t;){var e=t.nextSibling;e&&e.nodeType==k2&&t.nodeType==k2?(this.removeChild(e),t.appendData(e.data)):(t.normalize(),t=e)}},isSupported:function(t,e){return this.ownerDocument.implementation.hasFeature(t,e)},hasAttributes:function(){return this.attributes.length>0},lookupPrefix:function(t){for(var e=this;e;){var n=e._nsMap;if(n){for(var i in n)if(Object.prototype.hasOwnProperty.call(n,i)&&n[i]===t)return i}e=e.nodeType==og?e.ownerDocument:e.parentNode}return null},lookupNamespaceURI:function(t){for(var e=this;e;){var n=e._nsMap;if(n&&Object.prototype.hasOwnProperty.call(n,t))return n[t];e=e.nodeType==og?e.ownerDocument:e.parentNode}return null},isDefaultNamespace:function(t){var e=this.lookupPrefix(t);return e==null}};function Xq(t){return t=="<"&&"&lt;"||t==">"&&"&gt;"||t=="&"&&"&amp;"||t=='"'&&"&quot;"||"&#"+t.charCodeAt()+";"}Bb(ha,Hn);Bb(ha,Hn.prototype);function Yy(t,e){if(e(t))return!0;if(t=t.firstChild)do if(Yy(t,e))return!0;while(t=t.nextSibling)}function Ub(){this.ownerDocument=this}function sye(t,e,n){t&&t._inc++;var i=n.namespaceURI;i===Xy.XMLNS&&(e._nsMap[n.prefix?n.localName:""]=n.value)}function Yq(t,e,n,i){t&&t._inc++;var r=n.namespaceURI;r===Xy.XMLNS&&delete e._nsMap[n.prefix?n.localName:""]}function qI(t,e,n){if(t&&t._inc){t._inc++;var i=e.childNodes;if(n)i[i.length++]=n;else{for(var r=e.firstChild,s=0;r;)i[s++]=r,r=r.nextSibling;i.length=s,delete i[i.length]}}}function Kq(t,e){var n=e.previousSibling,i=e.nextSibling;return n?n.nextSibling=i:t.firstChild=i,i?i.previousSibling=n:t.lastChild=n,e.parentNode=null,e.previousSibling=null,e.nextSibling=null,qI(t.ownerDocument,t),e}function aye(t){return t&&(t.nodeType===Hn.DOCUMENT_NODE||t.nodeType===Hn.DOCUMENT_FRAGMENT_NODE||t.nodeType===Hn.ELEMENT_NODE)}function oye(t){return t&&(ou(t)||XI(t)||kc(t)||t.nodeType===Hn.DOCUMENT_FRAGMENT_NODE||t.nodeType===Hn.COMMENT_NODE||t.nodeType===Hn.PROCESSING_INSTRUCTION_NODE)}function kc(t){return t&&t.nodeType===Hn.DOCUMENT_TYPE_NODE}function ou(t){return t&&t.nodeType===Hn.ELEMENT_NODE}function XI(t){return t&&t.nodeType===Hn.TEXT_NODE}function Y8(t,e){var n=t.childNodes||[];if(au(n,ou)||kc(e))return!1;var i=au(n,kc);return!(e&&i&&n.indexOf(i)>n.indexOf(e))}function K8(t,e){var n=t.childNodes||[];function i(s){return ou(s)&&s!==e}if(au(n,i))return!1;var r=au(n,kc);return!(e&&r&&n.indexOf(r)>n.indexOf(e))}function lye(t,e,n){if(!aye(t))throw new Gi(Gs,"Unexpected parent node type "+t.nodeType);if(n&&n.parentNode!==t)throw new Gi(Gq,"child not in parent");if(!oye(e)||kc(e)&&t.nodeType!==Hn.DOCUMENT_NODE)throw new Gi(Gs,"Unexpected node type "+e.nodeType+" for parent node type "+t.nodeType)}function uye(t,e,n){var i=t.childNodes||[],r=e.childNodes||[];if(e.nodeType===Hn.DOCUMENT_FRAGMENT_NODE){var s=r.filter(ou);if(s.length>1||au(r,XI))throw new Gi(Gs,"More than one element or text in fragment");if(s.length===1&&!Y8(t,n))throw new Gi(Gs,"Element in fragment can not be inserted before doctype")}if(ou(e)&&!Y8(t,n))throw new Gi(Gs,"Only one element can be added and only after doctype");if(kc(e)){if(au(i,kc))throw new Gi(Gs,"Only one doctype is allowed");var a=au(i,ou);if(n&&i.indexOf(a)<i.indexOf(n))throw new Gi(Gs,"Doctype can only be inserted before an element");if(!n&&a)throw new Gi(Gs,"Doctype can not be appended since element is present")}}function Zq(t,e,n){var i=t.childNodes||[],r=e.childNodes||[];if(e.nodeType===Hn.DOCUMENT_FRAGMENT_NODE){var s=r.filter(ou);if(s.length>1||au(r,XI))throw new Gi(Gs,"More than one element or text in fragment");if(s.length===1&&!K8(t,n))throw new Gi(Gs,"Element in fragment can not be inserted before doctype")}if(ou(e)&&!K8(t,n))throw new Gi(Gs,"Only one element can be added and only after doctype");if(kc(e)){if(au(i,function(l){return kc(l)&&l!==n}))throw new Gi(Gs,"Only one doctype is allowed");var a=au(i,ou);if(n&&i.indexOf(a)<i.indexOf(n))throw new Gi(Gs,"Doctype can only be inserted before an element")}}function L2(t,e,n,i){lye(t,e,n),t.nodeType===Hn.DOCUMENT_NODE&&(i||uye)(t,e,n);var r=e.parentNode;if(r&&r.removeChild(e),e.nodeType===Rc){var s=e.firstChild;if(s==null)return e;var a=e.lastChild}else s=a=e;var o=n?n.previousSibling:t.lastChild;s.previousSibling=o,a.nextSibling=n,o?o.nextSibling=s:t.firstChild=s,n==null?t.lastChild=a:n.previousSibling=a;do s.parentNode=t;while(s!==a&&(s=s.nextSibling));return qI(t.ownerDocument||t,t),e.nodeType==Rc&&(e.firstChild=e.lastChild=null),e}function cye(t,e){return e.parentNode&&e.parentNode.removeChild(e),e.parentNode=t,e.previousSibling=t.lastChild,e.nextSibling=null,e.previousSibling?e.previousSibling.nextSibling=e:t.firstChild=e,t.lastChild=e,qI(t.ownerDocument,t,e),e}Ub.prototype={nodeName:"#document",nodeType:Vq,doctype:null,documentElement:null,_inc:1,insertBefore:function(t,e){if(t.nodeType==Rc){for(var n=t.firstChild;n;){var i=n.nextSibling;this.insertBefore(n,e),n=i}return t}return L2(this,t,e),t.ownerDocument=this,this.documentElement===null&&t.nodeType===cl&&(this.documentElement=t),t},removeChild:function(t){return this.documentElement==t&&(this.documentElement=null),Kq(this,t)},replaceChild:function(t,e){L2(this,t,e,Zq),t.ownerDocument=this,e&&this.removeChild(e),ou(t)&&(this.documentElement=t)},importNode:function(t,e){return nX(this,t,e)},getElementById:function(t){var e=null;return Yy(this.documentElement,function(n){if(n.nodeType==cl&&n.getAttribute("id")==t)return e=n,!0}),e},getElementsByClassName:function(t){var e=G8(t);return new lg(this,function(n){var i=[];return e.length>0&&Yy(n.documentElement,function(r){if(r!==n&&r.nodeType===cl){var s=r.getAttribute("class");if(s){var a=t===s;if(!a){var o=G8(s);a=e.every(nye(o))}a&&i.push(r)}}}),i})},createElement:function(t){var e=new fp;e.ownerDocument=this,e.nodeName=t,e.tagName=t,e.localName=t,e.childNodes=new Sc;var n=e.attributes=new I2;return n._ownerElement=e,e},createDocumentFragment:function(){var t=new _w;return t.ownerDocument=this,t.childNodes=new Sc,t},createTextNode:function(t){var e=new YI;return e.ownerDocument=this,e.appendData(t),e},createComment:function(t){var e=new KI;return e.ownerDocument=this,e.appendData(t),e},createCDATASection:function(t){var e=new ZI;return e.ownerDocument=this,e.appendData(t),e},createProcessingInstruction:function(t,e){var n=new JI;return n.ownerDocument=this,n.tagName=n.nodeName=n.target=t,n.nodeValue=n.data=e,n},createAttribute:function(t){var e=new F2;return e.ownerDocument=this,e.name=t,e.nodeName=t,e.localName=t,e.specified=!0,e},createEntityReference:function(t){var e=new QI;return e.ownerDocument=this,e.nodeName=t,e},createElementNS:function(t,e){var n=new fp,i=e.split(":"),r=n.attributes=new I2;return n.childNodes=new Sc,n.ownerDocument=this,n.nodeName=e,n.tagName=e,n.namespaceURI=t,i.length==2?(n.prefix=i[0],n.localName=i[1]):n.localName=e,r._ownerElement=n,n},createAttributeNS:function(t,e){var n=new F2,i=e.split(":");return n.ownerDocument=this,n.nodeName=e,n.name=e,n.namespaceURI=t,n.specified=!0,i.length==2?(n.prefix=i[0],n.localName=i[1]):n.localName=e,n}};da(Ub,Hn);function fp(){this._nsMap={}}fp.prototype={nodeType:cl,hasAttribute:function(t){return this.getAttributeNode(t)!=null},getAttribute:function(t){var e=this.getAttributeNode(t);return e&&e.value||""},getAttributeNode:function(t){return this.attributes.getNamedItem(t)},setAttribute:function(t,e){var n=this.ownerDocument.createAttribute(t);n.value=n.nodeValue=""+e,this.setAttributeNode(n)},removeAttribute:function(t){var e=this.getAttributeNode(t);e&&this.removeAttributeNode(e)},appendChild:function(t){return t.nodeType===Rc?this.insertBefore(t,null):cye(this,t)},setAttributeNode:function(t){return this.attributes.setNamedItem(t)},setAttributeNodeNS:function(t){return this.attributes.setNamedItemNS(t)},removeAttributeNode:function(t){return this.attributes.removeNamedItem(t.nodeName)},removeAttributeNS:function(t,e){var n=this.getAttributeNodeNS(t,e);n&&this.removeAttributeNode(n)},hasAttributeNS:function(t,e){return this.getAttributeNodeNS(t,e)!=null},getAttributeNS:function(t,e){var n=this.getAttributeNodeNS(t,e);return n&&n.value||""},setAttributeNS:function(t,e,n){var i=this.ownerDocument.createAttributeNS(t,e);i.value=i.nodeValue=""+n,this.setAttributeNode(i)},getAttributeNodeNS:function(t,e){return this.attributes.getNamedItemNS(t,e)},getElementsByTagName:function(t){return new lg(this,function(e){var n=[];return Yy(e,function(i){i!==e&&i.nodeType==cl&&(t==="*"||i.tagName==t)&&n.push(i)}),n})},getElementsByTagNameNS:function(t,e){return new lg(this,function(n){var i=[];return Yy(n,function(r){r!==n&&r.nodeType===cl&&(t==="*"||r.namespaceURI===t)&&(e==="*"||r.localName==e)&&i.push(r)}),i})}};Ub.prototype.getElementsByTagName=fp.prototype.getElementsByTagName;Ub.prototype.getElementsByTagNameNS=fp.prototype.getElementsByTagNameNS;da(fp,Hn);function F2(){}F2.prototype.nodeType=og;da(F2,Hn);function $b(){}$b.prototype={data:"",substringData:function(t,e){return this.data.substring(t,t+e)},appendData:function(t){t=this.data+t,this.nodeValue=this.data=t,this.length=t.length},insertData:function(t,e){this.replaceData(t,0,e)},appendChild:function(t){throw new Error(Cr[Gs])},deleteData:function(t,e){this.replaceData(t,e,"")},replaceData:function(t,e,n){var i=this.data.substring(0,t),r=this.data.substring(t+e);n=i+n+r,this.nodeValue=this.data=n,this.length=n.length}};da($b,Hn);function YI(){}YI.prototype={nodeName:"#text",nodeType:k2,splitText:function(t){var e=this.data,n=e.substring(t);e=e.substring(0,t),this.data=this.nodeValue=e,this.length=e.length;var i=this.ownerDocument.createTextNode(n);return this.parentNode&&this.parentNode.insertBefore(i,this.nextSibling),i}};da(YI,$b);function KI(){}KI.prototype={nodeName:"#comment",nodeType:Hq};da(KI,$b);function ZI(){}ZI.prototype={nodeName:"#cdata-section",nodeType:Uq};da(ZI,$b);function gw(){}gw.prototype.nodeType=Wq;da(gw,Hn);function Qq(){}Qq.prototype.nodeType=rye;da(Qq,Hn);function Jq(){}Jq.prototype.nodeType=iye;da(Jq,Hn);function QI(){}QI.prototype.nodeType=$q;da(QI,Hn);function _w(){}_w.prototype.nodeName="#document-fragment";_w.prototype.nodeType=Rc;da(_w,Hn);function JI(){}JI.prototype.nodeType=zq;da(JI,Hn);function eX(){}eX.prototype.serializeToString=function(t,e,n){return tX.call(t,e,n)};Hn.prototype.toString=tX;function tX(t,e){var n=[],i=this.nodeType==9&&this.documentElement||this,r=i.prefix,s=i.namespaceURI;if(s&&r==null){var r=i.lookupPrefix(s);if(r==null)var a=[{namespace:s,prefix:null}]}return tm(this,n,t,e,a),n.join("")}function Z8(t,e,n){var i=t.prefix||"",r=t.namespaceURI;if(!r||i==="xml"&&r===Xy.XML||r===Xy.XMLNS)return!1;for(var s=n.length;s--;){var a=n[s];if(a.prefix===i)return a.namespace!==r}return!0}function BM(t,e,n){t.push(" ",e,'="',n.replace(/[<>&"\t\n\r]/g,Xq),'"')}function tm(t,e,n,i,r){if(r||(r=[]),i)if(t=i(t),t){if(typeof t=="string"){e.push(t);return}}else return;switch(t.nodeType){case cl:var s=t.attributes,a=s.length,_=t.firstChild,o=t.tagName;n=Xy.isHTML(t.namespaceURI)||n;var l=o;if(!n&&!t.prefix&&t.namespaceURI){for(var u,c=0;c<s.length;c++)if(s.item(c).name==="xmlns"){u=s.item(c).value;break}if(!u)for(var f=r.length-1;f>=0;f--){var h=r[f];if(h.prefix===""&&h.namespace===t.namespaceURI){u=h.namespace;break}}if(u!==t.namespaceURI)for(var f=r.length-1;f>=0;f--){var h=r[f];if(h.namespace===t.namespaceURI){h.prefix&&(l=h.prefix+":"+o);break}}}e.push("<",l);for(var p=0;p<a;p++){var m=s.item(p);m.prefix=="xmlns"?r.push({prefix:m.localName,namespace:m.value}):m.nodeName=="xmlns"&&r.push({prefix:"",namespace:m.value})}for(var p=0;p<a;p++){var m=s.item(p);if(Z8(m,n,r)){var y=m.prefix||"",v=m.namespaceURI;BM(e,y?"xmlns:"+y:"xmlns",v),r.push({prefix:y,namespace:v})}tm(m,e,n,i,r)}if(o===l&&Z8(t,n,r)){var y=t.prefix||"",v=t.namespaceURI;BM(e,y?"xmlns:"+y:"xmlns",v),r.push({prefix:y,namespace:v})}if(_||n&&!/^(?:meta|link|img|br|hr|input)$/i.test(o)){if(e.push(">"),n&&/^script$/i.test(o))for(;_;)_.data?e.push(_.data):tm(_,e,n,i,r.slice()),_=_.nextSibling;else for(;_;)tm(_,e,n,i,r.slice()),_=_.nextSibling;e.push("</",l,">")}else e.push("/>");return;case Vq:case Rc:for(var _=t.firstChild;_;)tm(_,e,n,i,r.slice()),_=_.nextSibling;return;case og:return BM(e,t.name,t.value);case k2:return e.push(t.data.replace(/[<&>]/g,Xq));
vendor: 2,134 bytes, line 86
86case Uq:return e.push("<![CDATA[",t.data,"]]>");case Hq:return e.push("<!--",t.data,"-->");case Wq:var b=t.publicId,x=t.systemId;if(e.push("<!DOCTYPE ",t.name),b)e.push(" PUBLIC ",b),x&&x!="."&&e.push(" ",x),e.push(">");else if(x&&x!=".")e.push(" SYSTEM ",x,">");else{var T=t.internalSubset;T&&e.push(" [",T,"]"),e.push(">")}return;case zq:return e.push("<?",t.target," ",t.data,"?>");case $q:return e.push("&",t.nodeName,";");default:e.push("??",t.nodeName)}}function nX(t,e,n){var i;switch(e.nodeType){case cl:i=e.cloneNode(!1),i.ownerDocument=t;case Rc:break;case og:n=!0;break}if(i||(i=e.cloneNode(!1)),i.ownerDocument=t,i.parentNode=null,n)for(var r=e.firstChild;r;)i.appendChild(nX(t,r,n)),r=r.nextSibling;return i}function dO(t,e,n){var i=new e.constructor;for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var s=e[r];typeof s!="object"&&s!=i[r]&&(i[r]=s)}switch(e.childNodes&&(i.childNodes=new Sc),i.ownerDocument=t,i.nodeType){case cl:var a=e.attributes,o=i.attributes=new I2,l=a.length;o._ownerElement=i;for(var u=0;u<l;u++)i.setAttributeNode(dO(t,a.item(u),!0));break;case og:n=!0}if(n)for(var c=e.firstChild;c;)i.appendChild(dO(t,c,n)),c=c.nextSibling;return i}function iX(t,e,n){t[e]=n}try{if(Object.defineProperty){let t=function(e){switch(e.nodeType){case cl:case Rc:var n=[];for(e=e.firstChild;e;)e.nodeType!==7&&e.nodeType!==8&&n.push(t(e)),e=e.nextSibling;return n.join("");default:return e.nodeValue}};Object.defineProperty(lg.prototype,"length",{get:function(){return jI(this),this.$$length}}),Object.defineProperty(Hn.prototype,"textContent",{get:function(){return t(this)},set:function(e){switch(this.nodeType){case cl:case Rc:for(;this.firstChild;)this.removeChild(this.firstChild);(e||String(e))&&this.appendChild(this.ownerDocument.createTextNode(e));break;default:this.data=e,this.value=e,this.nodeValue=e}}}),iX=function(e,n,i){e["$$"+n]=i}}}catch(t){}wd.DocumentType=gw;wd.DOMException=Gi;wd.DOMImplementation=qq;wd.Element=fp;wd.Node=Hn;wd.NodeList=Sc;wd.XMLSerializer=eX;var vw={},rX={};(function(t){var e=Nc.freeze;t.XML_ENTITIES=e({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}),t.HTML_ENTITIES=e
vendor: 35,740 bytes, lines 86-87
86({Aacute:"\xC1",aacute:"\xE1",Abreve:"\u0102",abreve:"\u0103",ac:"\u223E",acd:"\u223F",acE:"\u223E\u0333",Acirc:"\xC2",acirc:"\xE2",acute:"\xB4",Acy:"\u0410",acy:"\u0430",AElig:"\xC6",aelig:"\xE6",af:"\u2061",Afr:"\u{1D504}",afr:"\u{1D51E}",Agrave:"\xC0",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",Alpha:"\u0391",alpha:"\u03B1",Amacr:"\u0100",amacr:"\u0101",amalg:"\u2A3F",AMP:"&",amp:"&",And:"\u2A53",and:"\u2227",andand:"\u2A55",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",ange:"\u29A4",angle:"\u2220",angmsd:"\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",angst:"\xC5",angzarr:"\u237C",Aogon:"\u0104",aogon:"\u0105",Aopf:"\u{1D538}",aopf:"\u{1D552}",ap:"\u2248",apacir:"\u2A6F",apE:"\u2A70",ape:"\u224A",apid:"\u224B",apos:"'",ApplyFunction:"\u2061",approx:"\u2248",approxeq:"\u224A",Aring:"\xC5",aring:"\xE5",Ascr:"\u{1D49C}",ascr:"\u{1D4B6}",Assign:"\u2254",ast:"*",asymp:"\u2248",asympeq:"\u224D",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",awconint:"\u2233",awint:"\u2A11",backcong:"\u224C",backepsilon:"\u03F6",backprime:"\u2035",backsim:"\u223D",backsimeq:"\u22CD",Backslash:"\u2216",Barv:"\u2AE7",barvee:"\u22BD",Barwed:"\u2306",barwed:"\u2305",barwedge:"\u2305",bbrk:"\u23B5",bbrktbrk:"\u23B6",bcong:"\u224C",Bcy:"\u0411",bcy:"\u0431",bdquo:"\u201E",becaus:"\u2235",Because:"\u2235",because:"\u2235",bemptyv:"\u29B0",bepsi:"\u03F6",bernou:"\u212C",Bernoullis:"\u212C",Beta:"\u0392",beta:"\u03B2",beth:"\u2136",between:"\u226C",Bfr:"\u{1D505}",bfr:"\u{1D51F}",bigcap:"\u22C2",bigcirc:"\u25EF",bigcup:"\u22C3",bigodot:"\u2A00",bigoplus:"\u2A01",bigotimes:"\u2A02",bigsqcup:"\u2A06",bigstar:"\u2605",bigtriangledown:"\u25BD",bigtriangleup:"\u25B3",biguplus:"\u2A04",bigvee:"\u22C1",bigwedge:"\u22C0",bkarow:"\u290D",blacklozenge:"\u29EB",blacksquare:"\u25AA",blacktriangle:"\u25B4",blacktriangledown:"\u25BE",blacktriangleleft:"\u25C2",blacktriangleright:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bNot:"\u2AED",bnot:"\u2310",Bopf:"\u{1D539}",bopf:"\u{1D553}",bot:"\u22A5",bottom:"\u22A5",bowtie:"\u22C8",boxbox:"\u29C9",boxDL:"\u2557",boxDl:"\u2556",boxdL:"\u2555",boxdl:"\u2510",boxDR:"\u2554",boxDr:"\u2553",boxdR:"\u2552",boxdr:"\u250C",boxH:"\u2550",boxh:"\u2500",boxHD:"\u2566",boxHd:"\u2564",boxhD:"\u2565",boxhd:"\u252C",boxHU:"\u2569",boxHu:"\u2567",boxhU:"\u2568",boxhu:"\u2534",boxminus:"\u229F",boxplus:"\u229E",boxtimes:"\u22A0",boxUL:"\u255D",boxUl:"\u255C",boxuL:"\u255B",boxul:"\u2518",boxUR:"\u255A",boxUr:"\u2559",boxuR:"\u2558",boxur:"\u2514",boxV:"\u2551",boxv:"\u2502",boxVH:"\u256C",boxVh:"\u256B",boxvH:"\u256A",boxvh:"\u253C",boxVL:"\u2563",boxVl:"\u2562",boxvL:"\u2561",boxvl:"\u2524",boxVR:"\u2560",boxVr:"\u255F",boxvR:"\u255E",boxvr:"\u251C",bprime:"\u2035",Breve:"\u02D8",breve:"\u02D8",brvbar:"\xA6",Bscr:"\u212C",bscr:"\u{1D4B7}",bsemi:"\u204F",bsim:"\u223D",bsime:"\u22CD",bsol:"\\",bsolb:"\u29C5",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bump:"\u224E",bumpE:"\u2AAE",bumpe:"\u224F",Bumpeq:"\u224E",bumpeq:"\u224F",Cacute:"\u0106",cacute:"\u0107",Cap:"\u22D2",cap:"\u2229",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",capcup:"\u2A47",capdot:"\u2A40",CapitalDifferentialD:"\u2145",caps:"\u2229\uFE00",caret:"\u2041",caron:"\u02C7",Cayleys:"\u212D",ccaps:"\u2A4D",Ccaron:"\u010C",ccaron:"\u010D",Ccedil:"\xC7",ccedil:"\xE7",Ccirc:"\u0108",ccirc:"\u0109",Cconint:"\u2230",ccups:"\u2A4C",ccupssm:"\u2A50",Cdot:"\u010A",cdot:"\u010B",cedil:"\xB8",Cedilla:"\xB8",cemptyv:"\u29B2",cent:"\xA2",CenterDot:"\xB7",centerdot:"\xB7",Cfr:"\u212D",cfr:"\u{1D520}",CHcy:"\u0427",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",Chi:"\u03A7",chi:"\u03C7",cir:"\u25CB",circ:"\u02C6",circeq:"\u2257",circlearrowleft:"\u21BA",circlearrowright:"\u21BB",circledast:"\u229B",circledcirc:"\u229A",circleddash:"\u229D",CircleDot:"\u2299",circledR:"\xAE",circledS:"\u24C8",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",cirE:"\u29C3",cire:"\u2257",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201D",CloseCurlyQuote:"\u2019",clubs:"\u2663",clubsuit:"\u2663",Colon:"\u2237",colon:":",Colone:"\u2A74",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2A6D",Congruent:"\u2261",Conint:"\u222F",conint:"\u222E",ContourIntegral:"\u222E",Copf:"\u2102",copf:"\u{1D554}",coprod:"\u2210",Coproduct:"\u2210",COPY:"\xA9",copy:"\xA9",copysr:"\u2117",CounterClockwiseContourIntegral:"\u2233",crarr:"\u21B5",Cross:"\u2A2F",cross:"\u2717",Cscr:"\u{1D49E}",cscr:"\u{1D4B8}",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",cuesc:"\u22DF",cularr:"\u21B6",cularrp:"\u293D",Cup:"\u22D3",cup:"\u222A",cupbrcap:"\u2A48",CupCap:"\u224D",cupcap:"\u2A46",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curarrm:"\u293C",curlyeqprec:"\u22DE",curlyeqsucc:"\u22DF",curlyvee:"\u22CE",curlywedge:"\u22CF",curren:"\xA4",curvearrowleft:"\u21B6",curvearrowright:"\u21B7",cuvee:"\u22CE",cuwed:"\u22CF",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232D",Dagger:"\u2021",dagger:"\u2020",daleth:"\u2138",Darr:"\u21A1",dArr:"\u21D3",darr:"\u2193",dash:"\u2010",Dashv:"\u2AE4",dashv:"\u22A3",dbkarow:"\u290F",dblac:"\u02DD",Dcaron:"\u010E",dcaron:"\u010F",Dcy:"\u0414",dcy:"\u0434",DD:"\u2145",dd:"\u2146",ddagger:"\u2021",ddarr:"\u21CA",DDotrahd:"\u2911",ddotseq:"\u2A77",deg:"\xB0",Del:"\u2207",Delta:"\u0394",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",Dfr:"\u{1D507}",dfr:"\u{1D521}",dHar:"\u2965",dharl:"\u21C3",dharr:"\u21C2",DiacriticalAcute:"\xB4",DiacriticalDot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",DiacriticalGrave:"`",DiacriticalTilde:"\u02DC",diam:"\u22C4",Diamond:"\u22C4",diamond:"\u22C4",diamondsuit:"\u2666",diams:"\u2666",die:"\xA8",DifferentialD:"\u2146",digamma:"\u03DD",disin:"\u22F2",div:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",DJcy:"\u0402",djcy:"\u0452",dlcorn:"\u231E",dlcrop:"\u230D",dollar:"$",Dopf:"\u{1D53B}",dopf:"\u{1D555}",Dot:"\xA8",dot:"\u02D9",DotDot:"\u20DC",doteq:"\u2250",doteqdot:"\u2251",DotEqual:"\u2250",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22A1",doublebarwedge:"\u2306",DoubleContourIntegral:"\u222F",DoubleDot:"\xA8",DoubleDownArrow:"\u21D3",DoubleLeftArrow:"\u21D0",DoubleLeftRightArrow:"\u21D4",DoubleLeftTee:"\u2AE4",DoubleLongLeftArrow:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",DoubleLongRightArrow:"\u27F9",DoubleRightArrow:"\u21D2",DoubleRightTee:"\u22A8",DoubleUpArrow:"\u21D1",DoubleUpDownArrow:"\u21D5",DoubleVerticalBar:"\u2225",DownArrow:"\u2193",Downarrow:"\u21D3",downarrow:"\u2193",DownArrowBar:"\u2913",DownArrowUpArrow:"\u21F5",DownBreve:"\u0311",downdownarrows:"\u21CA",downharpoonleft:"\u21C3",downharpoonright:"\u21C2",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVector:"\u21BD",DownLeftVectorBar:"\u2956",DownRightTeeVector:"\u295F",DownRightVector:"\u21C1",DownRightVectorBar:"\u2957",DownTee:"\u22A4",DownTeeArrow:"\u21A7",drbkarow:"\u2910",drcorn:"\u231F",drcrop:"\u230C",Dscr:"\u{1D49F}",dscr:"\u{1D4B9}",DScy:"\u0405",dscy:"\u0455",dsol:"\u29F6",Dstrok:"\u0110",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",dtrif:"\u25BE",duarr:"\u21F5",duhar:"\u296F",dwangle:"\u29A6",DZcy:"\u040F",dzcy:"\u045F",dzigrarr:"\u27FF",Eacute:"\xC9",eacute:"\xE9",easter:"\u2A6E",Ecaron:"\u011A",ecaron:"\u011B",ecir:"\u2256",Ecirc:"\xCA",ecirc:"\xEA",ecolon:"\u2255",Ecy:"\u042D",ecy:"\u044D",eDDot:"\u2A77",Edot:"\u0116",eDot:"\u2251",edot:"\u0117",ee:"\u2147",efDot:"\u2252",Efr:"\u{1D508}",efr:"\u{1D522}",eg:"\u2A9A",Egrave:"\xC8",egrave:"\xE8",egs:"\u2A96",egsdot:"\u2A98",el:"\u2A99",Element:"\u2208",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",elsdot:"\u2A97",Emacr:"\u0112",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",EmptySmallSquare:"\u25FB",emptyv:"\u2205",EmptyVerySmallSquare:"\u25AB",emsp:"\u2003",emsp13:"\u2004",emsp14:"\u2005",ENG:"\u014A",eng:"\u014B",ensp:"\u2002",Eogon:"\u0118",eogon:"\u0119",Eopf:"\u{1D53C}",eopf:"\u{1D556}",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",Epsilon:"\u0395",epsilon:"\u03B5",epsiv:"\u03F5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2A96",eqslantless:"\u2A95",Equal:"\u2A75",equals:"=",EqualTilde:"\u2242",equest:"\u225F",Equilibrium:"\u21CC",equiv:"\u2261",equivDD:"\u2A78",eqvparsl:"\u29E5",erarr:"\u2971",erDot:"\u2253",Escr:"\u2130",escr:"\u212F",esdot:"\u2250",Esim:"\u2A73",esim:"\u2242",Eta:"\u0397",eta:"\u03B7",ETH:"\xD0",eth:"\xF0",Euml:"\xCB",euml:"\xEB",euro:"\u20AC",excl:"!",exist:"\u2203",Exists:"\u2203",expectation:"\u2130",ExponentialE:"\u2147",exponentiale:"\u2147",fallingdotseq:"\u2252",Fcy:"\u0424",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",Ffr:"\u{1D509}",ffr:"\u{1D523}",filig:"\uFB01",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",Fopf:"\u{1D53D}",fopf:"\u{1D557}",ForAll:"\u2200",forall:"\u2200",fork:"\u22D4",forkv:"\u2AD9",Fouriertrf:"\u2131",fpartint:"\u2A0D",frac12:"\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",Fscr:"\u2131",fscr:"\u{1D4BB}",gacute:"\u01F5",Gamma:"\u0393",gamma:"\u03B3",Gammad:"\u03DC",gammad:"\u03DD",gap:"\u2A86",Gbreve:"\u011E",gbreve:"\u011F",Gcedil:"\u0122",Gcirc:"\u011C",gcirc:"\u011D",Gcy:"\u0413",gcy:"\u0433",Gdot:"\u0120",gdot:"\u0121",gE:"\u2267",ge:"\u2265",gEl:"\u2A8C",gel:"\u22DB",geq:"\u2265",geqq:"\u2267",geqslant:"\u2A7E",ges:"\u2A7E",gescc:"\u2AA9",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",Gfr:"\u{1D50A}",gfr:"\u{1D524}",Gg:"\u22D9",gg:"\u226B",ggg:"\u22D9",gimel:"\u2137",GJcy:"\u0403",gjcy:"\u0453",gl:"\u2277",gla:"\u2AA5",glE:"\u2A92",glj:"\u2AA4",gnap:"\u2A8A",gnapprox:"\u2A8A",gnE:"\u2269",gne:"\u2A88",gneq:"\u2A88",gneqq:"\u2269",gnsim:"\u22E7",Gopf:"\u{1D53E}",gopf:"\u{1D558}",grave:"`",GreaterEqual:"\u2265",GreaterEqualLess:"\u22DB",GreaterFullEqual:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2A7E",GreaterTilde:"\u2273",Gscr:"\u{1D4A2}",gscr:"\u210A",gsim:"\u2273",gsime:"\u2A8E",gsiml:"\u2A90",Gt:"\u226B",GT:">",gt:">",gtcc:"\u2AA7",gtcir:"\u2A7A",gtdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrapprox:"\u2A86",gtrarr:"\u2978",gtrdot:"\u22D7",gtreqless:"\u22DB",gtreqqless:"\u2A8C",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",Hacek:"\u02C7",hairsp:"\u200A",half:"\xBD",hamilt:"\u210B",HARDcy:"\u042A",hardcy:"\u044A",hArr:"\u21D4",harr:"\u2194",harrcir:"\u2948",harrw:"\u21AD",Hat:"^",hbar:"\u210F",Hcirc:"\u0124",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22B9",Hfr:"\u210C",hfr:"\u{1D525}",HilbertSpace:"\u210B",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",hookrightarrow:"\u21AA",Hopf:"\u210D",hopf:"\u{1D559}",horbar:"\u2015",HorizontalLine:"\u2500",Hscr:"\u210B",hscr:"\u{1D4BD}",hslash:"\u210F",Hstrok:"\u0126",hstrok:"\u0127",HumpDownHump:"\u224E",HumpEqual:"\u224F",hybull:"\u2043",hyphen:"\u2010",Iacute:"\xCD",iacute:"\xED",ic:"\u2063",Icirc:"\xCE",icirc:"\xEE",Icy:"\u0418",icy:"\u0438",Idot:"\u0130",IEcy:"\u0415",iecy:"\u0435",iexcl:"\xA1",iff:"\u21D4",Ifr:"\u2111",ifr:"\u{1D526}",Igrave:"\xCC",igrave:"\xEC",ii:"\u2148",iiiint:"\u2A0C",iiint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",IJlig:"\u0132",ijlig:"\u0133",Im:"\u2111",Imacr:"\u012A",imacr:"\u012B",image:"\u2111",ImaginaryI:"\u2148",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",imof:"\u22B7",imped:"\u01B5",Implies:"\u21D2",in:"\u2208",incare:"\u2105",infin:"\u221E",infintie:"\u29DD",inodot:"\u0131",Int:"\u222C",int:"\u222B",intcal:"\u22BA",integers:"\u2124",Integral:"\u222B",intercal:"\u22BA",Intersection:"\u22C2",intlarhk:"\u2A17",intprod:"\u2A3C",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",IOcy:"\u0401",iocy:"\u0451",Iogon:"\u012E",iogon:"\u012F",Iopf:"\u{1D540}",iopf:"\u{1D55A}",Iota:"\u0399",iota:"\u03B9",iprod:"\u2A3C",iquest:"\xBF",Iscr:"\u2110",iscr:"\u{1D4BE}",isin:"\u2208",isindot:"\u22F5",isinE:"\u22F9",isins:"\u22F4",isinsv:"\u22F3",isinv:"\u2208",it:"\u2062",Itilde:"\u0128",itilde:"\u0129",Iukcy:"\u0406",iukcy:"\u0456",Iuml:"\xCF",iuml:"\xEF",Jcirc:"\u0134",jcirc:"\u0135",Jcy:"\u0419",jcy:"\u0439",Jfr:"\u{1D50D}",jfr:"\u{1D527}",jmath:"\u0237",Jopf:"\u{1D541}",jopf:"\u{1D55B}",Jscr:"\u{1D4A5}",jscr:"\u{1D4BF}",Jsercy:"\u0408",jsercy:"\u0458",Jukcy:"\u0404",jukcy:"\u0454",Kappa:"\u039A",kappa:"\u03BA",kappav:"\u03F0",Kcedil:"\u0136",kcedil:"\u0137",Kcy:"\u041A",kcy:"\u043A",Kfr:"\u{1D50E}",kfr:"\u{1D528}",kgreen:"\u0138",KHcy:"\u0425",khcy:"\u0445",KJcy:"\u040C",kjcy:"\u045C",Kopf:"\u{1D542}",kopf:"\u{1D55C}",Kscr:"\u{1D4A6}",kscr:"\u{1D4C0}",lAarr:"\u21DA",Lacute:"\u0139",lacute:"\u013A",laemptyv:"\u29B4",lagran:"\u2112",Lambda:"\u039B",lambda:"\u03BB",Lang:"\u27EA",lang:"\u27E8",langd:"\u2991",langle:"\u27E8",lap:"\u2A85",Laplacetrf:"\u2112",laquo:"\xAB",Larr:"\u219E",lArr:"\u21D0",larr:"\u2190",larrb:"\u21E4",larrbfs:"\u291F",larrfs:"\u291D",larrhk:"\u21A9",larrlp:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",lat:"\u2AAB",lAtail:"\u291B",latail:"\u2919",late:"\u2AAD",lates:"\u2AAD\uFE00",lBarr:"\u290E",lbarr:"\u290C",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",Lcaron:"\u013D",lcaron:"\u013E",Lcedil:"\u013B",lcedil:"\u013C",lceil:"\u2308",lcub:"{",Lcy:"\u041B",lcy:"\u043B",ldca:"\u2936",ldquo:"\u201C",ldquor:"\u201E",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",lE:"\u2266",le:"\u2264",LeftAngleBracket:"\u27E8",LeftArrow:"\u2190",Leftarrow:"\u21D0",leftarrow:"\u2190",LeftArrowBar:"\u21E4",LeftArrowRightArrow:"\u21C6",leftarrowtail:"\u21A2",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVector:"\u21C3",LeftDownVectorBar:"\u2959",LeftFloor:"\u230A",leftharpoondown:"\u21BD",leftharpoonup:"\u21BC",leftleftarrows:"\u21C7",LeftRightArrow:"\u2194",Leftrightarrow:"\u21D4",leftrightarrow:"\u2194",leftrightarrows:"\u21C6",leftrightharpoons:"\u21CB",leftrightsquigarrow:"\u21AD",LeftRightVector:"\u294E",LeftTee:"\u22A3",LeftTeeArrow:"\u21A4",LeftTeeVector:"\u295A",leftthreetimes:"\u22CB",LeftTriangle:"\u22B2",LeftTriangleBar:"\u29CF",LeftTriangleEqual:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVector:"\u21BF",LeftUpVectorBar:"\u2958",LeftVector:"\u21BC",LeftVectorBar:"\u2952",lEg:"\u2A8B",leg:"\u22DA",leq:"\u2264",leqq:"\u2266",leqslant:"\u2A7D",les:"\u2A7D",lescc:"\u2AA8",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessapprox:"\u2A85",lessdot:"\u22D6",lesseqgtr:"\u22DA",lesseqqgtr:"\u2A8B",LessEqualGreater:"\u22DA",LessFullEqual:"\u2266",LessGreater:"\u2276",lessgtr:"\u2276",LessLess:"\u2AA1",lesssim:"\u2272",LessSlantEqual:"\u2A7D",LessTilde:"\u2272",lfisht:"\u297C",lfloor:"\u230A",Lfr:"\u{1D50F}",lfr:"\u{1D529}",lg:"\u2276",lgE:"\u2A91",lHar:"\u2962",lhard:"\u21BD",lharu:"\u21BC",lharul:"\u296A",lhblk:"\u2584",LJcy:"\u0409",ljcy:"\u0459",Ll:"\u22D8",ll:"\u226A",llarr:"\u21C7",llcorner:"\u231E",Lleftarrow:"\u21DA",llhard:"\u296B",lltri:"\u25FA",Lmidot:"\u013F",lmidot:"\u0140",lmoust:"\u23B0",lmoustache:"\u23B0",lnap:"\u2A89",lnapprox:"\u2A89",lnE:"\u2268",lne:"\u2A87",lneq:"\u2A87",lneqq:"\u2268",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",lobrk:"\u27E6",LongLeftArrow:"\u27F5",Longleftarrow:"\u27F8",longleftarrow:"\u27F5",LongLeftRightArrow:"\u27F7",Longleftrightarrow:"\u27FA",longleftrightarrow:"\u27F7",longmapsto:"\u27FC",LongRightArrow:"\u27F6",Longrightarrow:"\u27F9",longrightarrow:"\u27F6",looparrowleft:"\u21AB",looparrowright:"\u21AC",lopar:"\u2985",Lopf:"\u{1D543}",lopf:"\u{1D55D}",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",lowbar:"_",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",loz:"\u25CA",lozenge:"\u25CA",lozf:"\u29EB",lpar:"(",lparlt:"\u2993",lrarr:"\u21C6",lrcorner:"\u231F",lrhar:"\u21CB",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",Lscr:"\u2112",lscr:"\u{1D4C1}",Lsh:"\u21B0",lsh:"\u21B0",lsim:"\u2272",lsime:"\u2A8D",lsimg:"\u2A8F",lsqb:"[",lsquo:"\u2018",lsquor:"\u201A",Lstrok:"\u0141",lstrok:"\u0142",Lt:"\u226A",LT:"<",lt:"<",ltcc:"\u2AA6",ltcir:"\u2A79",ltdot:"\u22D6",lthree:"\u22CB",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltri:"\u25C3",ltrie:"\u22B4",ltrif:"\u25C2",ltrPar:"\u2996",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",macr:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",Map:"\u2905",map:"\u21A6",mapsto:"\u21A6",mapstodown:"\u21A7",mapstoleft:"\u21A4",mapstoup:"\u21A5",marker:"\u25AE",mcomma:"\u2A29",Mcy:"\u041C",mcy:"\u043C",mdash:"\u2014",mDDot:"\u223A",measuredangle:"\u2221",MediumSpace:"\u205F",Mellintrf:"\u2133",Mfr:"\u{1D510}",mfr:"\u{1D52A}",mho:"\u2127",micro:"\xB5",mid:"\u2223",midast:"*",midcir:"\u2AF0",middot:"\xB7",minus:"\u2212",minusb:"\u229F",minusd:"\u2238",minusdu:"\u2A2A",MinusPlus:"\u2213",mlcp:"\u2ADB",mldr:"\u2026",mnplus:"\u2213",models:"\u22A7",Mopf:"\u{1D544}",mopf:"\u{1D55E}",mp:"\u2213",Mscr:"\u2133",mscr:"\u{1D4C2}",mstpos:"\u223E",Mu:"\u039C",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nabla:"\u2207",Nacute:"\u0143",nacute:"\u0144",nang:"\u2220\u20D2",nap:"\u2249",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",napprox:"\u2249",natur:"\u266E",natural:"\u266E",naturals:"\u2115",nbsp:"\xA0",nbump:"\u224E\u0338",nbumpe:"\u224F\u0338",ncap:"\u2A43",Ncaron:"\u0147",ncaron:"\u0148",Ncedil:"\u0145",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",Ncy:"\u041D",ncy:"\u043D",ndash:"\u2013",ne:"\u2260",nearhk:"\u2924",neArr:"\u21D7",nearr:"\u2197",nearrow:"\u2197",nedot:"\u2250\u0338",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",NestedGreaterGreater:"\u226B",NestedLessLess:"\u226A",NewLine:`
87`,nexist:"\u2204",nexists:"\u2204",Nfr:"\u{1D511}",nfr:"\u{1D52B}",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",nGg:"\u22D9\u0338",ngsim:"\u2275",nGt:"\u226B\u20D2",ngt:"\u226F",ngtr:"\u226F",nGtv:"\u226B\u0338",nhArr:"\u21CE",nharr:"\u21AE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",NJcy:"\u040A",njcy:"\u045A",nlArr:"\u21CD",nlarr:"\u219A",nldr:"\u2025",nlE:"\u2266\u0338",nle:"\u2270",nLeftarrow:"\u21CD",nleftarrow:"\u219A",nLeftrightarrow:"\u21CE",nleftrightarrow:"\u21AE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nLl:"\u22D8\u0338",nlsim:"\u2274",nLt:"\u226A\u20D2",nlt:"\u226E",nltri:"\u22EA",nltrie:"\u22EC",nLtv:"\u226A\u0338",nmid:"\u2224",NoBreak:"\u2060",NonBreakingSpace:"\xA0",Nopf:"\u2115",nopf:"\u{1D55F}",Not:"\u2AEC",not:"\xAC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",notin:"\u2209",notindot:"\u22F5\u0338",notinE:"\u22F9\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",NotLeftTriangle:"\u22EA",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangle:"\u22EB",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",npar:"\u2226",nparallel:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",npre:"\u2AAF\u0338",nprec:"\u2280",npreceq:"\u2AAF\u0338",nrArr:"\u21CF",nrarr:"\u219B",nrarrc:"\u2933\u0338",nrarrw:"\u219D\u0338",nRightarrow:"\u21CF",nrightarrow:"\u219B",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",Nscr:"\u{1D4A9}",nscr:"\u{1D4C3}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsube:"\u2288",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",Ntilde:"\xD1",ntilde:"\xF1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",Nu:"\u039D",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvap:"\u224D\u20D2",nVDash:"\u22AF",nVdash:"\u22AE",nvDash:"\u22AD",nvdash:"\u22AC",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvHarr:"\u2904",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwarhk:"\u2923",nwArr:"\u21D6",nwarr:"\u2196",nwarrow:"\u2196",nwnear:"\u2927",Oacute:"\xD3",oacute:"\xF3",oast:"\u229B",ocir:"\u229A",Ocirc:"\xD4",ocirc:"\xF4",Ocy:"\u041E",ocy:"\u043E",odash:"\u229D",Odblac:"\u0150",odblac:"\u0151",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",OElig:"\u0152",oelig:"\u0153",ofcir:"\u29BF",Ofr:"\u{1D512}",ofr:"\u{1D52C}",ogon:"\u02DB",Ograve:"\xD2",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",ohm:"\u03A9",oint:"\u222E",olarr:"\u21BA",olcir:"\u29BE",olcross:"\u29BB",oline:"\u203E",olt:"\u29C0",Omacr:"\u014C",omacr:"\u014D",Omega:"\u03A9",omega:"\u03C9",Omicron:"\u039F",omicron:"\u03BF",omid:"\u29B6",ominus:"\u2296",Oopf:"\u{1D546}",oopf:"\u{1D560}",opar:"\u29B7",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",operp:"\u29B9",oplus:"\u2295",Or:"\u2A54",or:"\u2228",orarr:"\u21BB",ord:"\u2A5D",order:"\u2134",orderof:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oS:"\u24C8",Oscr:"\u{1D4AA}",oscr:"\u2134",Oslash:"\xD8",oslash:"\xF8",osol:"\u2298",Otilde:"\xD5",otilde:"\xF5",Otimes:"\u2A37",otimes:"\u2297",otimesas:"\u2A36",Ouml:"\xD6",ouml:"\xF6",ovbar:"\u233D",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",OverParenthesis:"\u23DC",par:"\u2225",para:"\xB6",parallel:"\u2225",parsim:"\u2AF3",parsl:"\u2AFD",part:"\u2202",PartialD:"\u2202",Pcy:"\u041F",pcy:"\u043F",percnt:"%",period:".",permil:"\u2030",perp:"\u22A5",pertenk:"\u2031",Pfr:"\u{1D513}",pfr:"\u{1D52D}",Phi:"\u03A6",phi:"\u03C6",phiv:"\u03D5",phmmat:"\u2133",phone:"\u260E",Pi:"\u03A0",pi:"\u03C0",pitchfork:"\u22D4",piv:"\u03D6",planck:"\u210F",planckh:"\u210E",plankv:"\u210F",plus:"+",plusacir:"\u2A23",plusb:"\u229E",pluscir:"\u2A22",plusdo:"\u2214",plusdu:"\u2A25",pluse:"\u2A72",PlusMinus:"\xB1",plusmn:"\xB1",plussim:"\u2A26",plustwo:"\u2A27",pm:"\xB1",Poincareplane:"\u210C",pointint:"\u2A15",Popf:"\u2119",popf:"\u{1D561}",pound:"\xA3",Pr:"\u2ABB",pr:"\u227A",prap:"\u2AB7",prcue:"\u227C",prE:"\u2AB3",pre:"\u2AAF",prec:"\u227A",precapprox:"\u2AB7",preccurlyeq:"\u227C",Precedes:"\u227A",PrecedesEqual:"\u2AAF",PrecedesSlantEqual:"\u227C",PrecedesTilde:"\u227E",preceq:"\u2AAF",precnapprox:"\u2AB9",precneqq:"\u2AB5",precnsim:"\u22E8",precsim:"\u227E",Prime:"\u2033",prime:"\u2032",primes:"\u2119",prnap:"\u2AB9",prnE:"\u2AB5",prnsim:"\u22E8",prod:"\u220F",Product:"\u220F",profalar:"\u232E",profline:"\u2312",profsurf:"\u2313",prop:"\u221D",Proportion:"\u2237",Proportional:"\u221D",propto:"\u221D",prsim:"\u227E",prurel:"\u22B0",Pscr:"\u{1D4AB}",pscr:"\u{1D4C5}",Psi:"\u03A8",psi:"\u03C8",puncsp:"\u2008",Qfr:"\u{1D514}",qfr:"\u{1D52E}",qint:"\u2A0C",Qopf:"\u211A",qopf:"\u{1D562}",qprime:"\u2057",Qscr:"\u{1D4AC}",qscr:"\u{1D4C6}",quaternions:"\u210D",quatint:"\u2A16",quest:"?",questeq:"\u225F",QUOT:'"',quot:'"',rAarr:"\u21DB",race:"\u223D\u0331",Racute:"\u0154",racute:"\u0155",radic:"\u221A",raemptyv:"\u29B3",Rang:"\u27EB",rang:"\u27E9",rangd:"\u2992",range:"\u29A5",rangle:"\u27E9",raquo:"\xBB",Rarr:"\u21A0",rArr:"\u21D2",rarr:"\u2192",rarrap:"\u2975",rarrb:"\u21E5",rarrbfs:"\u2920",rarrc:"\u2933",rarrfs:"\u291E",rarrhk:"\u21AA",rarrlp:"\u21AC",rarrpl:"\u2945",rarrsim:"\u2974",Rarrtl:"\u2916",rarrtl:"\u21A3",rarrw:"\u219D",rAtail:"\u291C",ratail:"\u291A",ratio:"\u2236",rationals:"\u211A",RBarr:"\u2910",rBarr:"\u290F",rbarr:"\u290D",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298C",rbrksld:"\u298E",rbrkslu:"\u2990",Rcaron:"\u0158",rcaron:"\u0159",Rcedil:"\u0156",rcedil:"\u0157",rceil:"\u2309",rcub:"}",Rcy:"\u0420",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201D",rdquor:"\u201D",rdsh:"\u21B3",Re:"\u211C",real:"\u211C",realine:"\u211B",realpart:"\u211C",reals:"\u211D",rect:"\u25AD",REG:"\xAE",reg:"\xAE",ReverseElement:"\u220B",ReverseEquilibrium:"\u21CB",ReverseUpEquilibrium:"\u296F",rfisht:"\u297D",rfloor:"\u230B",Rfr:"\u211C",rfr:"\u{1D52F}",rHar:"\u2964",rhard:"\u21C1",rharu:"\u21C0",rharul:"\u296C",Rho:"\u03A1",rho:"\u03C1",rhov:"\u03F1",RightAngleBracket:"\u27E9",RightArrow:"\u2192",Rightarrow:"\u21D2",rightarrow:"\u2192",RightArrowBar:"\u21E5",RightArrowLeftArrow:"\u21C4",rightarrowtail:"\u21A3",RightCeiling:"\u2309",RightDoubleBracket:"\u27E7",RightDownTeeVector:"\u295D",RightDownVector:"\u21C2",RightDownVectorBar:"\u2955",RightFloor:"\u230B",rightharpoondown:"\u21C1",rightharpoonup:"\u21C0",rightleftarrows:"\u21C4",rightleftharpoons:"\u21CC",rightrightarrows:"\u21C9",rightsquigarrow:"\u219D",RightTee:"\u22A2",RightTeeArrow:"\u21A6",RightTeeVector:"\u295B",rightthreetimes:"\u22CC",RightTriangle:"\u22B3",RightTriangleBar:"\u29D0",RightTriangleEqual:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVector:"\u21BE",RightUpVectorBar:"\u2954",RightVector:"\u21C0",RightVectorBar:"\u2953",ring:"\u02DA",risingdotseq:"\u2253",rlarr:"\u21C4",rlhar:"\u21CC",rlm:"\u200F",rmoust:"\u23B1",rmoustache:"\u23B1",rnmid:"\u2AEE",roang:"\u27ED",roarr:"\u21FE",robrk:"\u27E7",ropar:"\u2986",Ropf:"\u211D",ropf:"\u{1D563}",roplus:"\u2A2E",rotimes:"\u2A35",RoundImplies:"\u2970",rpar:")",rpargt:"\u2994",rppolint:"\u2A12",rrarr:"\u21C9",Rrightarrow:"\u21DB",rsaquo:"\u203A",Rscr:"\u211B",rscr:"\u{1D4C7}",Rsh:"\u21B1",rsh:"\u21B1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22CC",rtimes:"\u22CA",rtri:"\u25B9",rtrie:"\u22B5",rtrif:"\u25B8",rtriltri:"\u29CE",RuleDelayed:"\u29F4",ruluhar:"\u2968",rx:"\u211E",Sacute:"\u015A",sacute:"\u015B",sbquo:"\u201A",Sc:"\u2ABC",sc:"\u227B",scap:"\u2AB8",Scaron:"\u0160",scaron:"\u0161",sccue:"\u227D",scE:"\u2AB4",sce:"\u2AB0",Scedil:"\u015E",scedil:"\u015F",Scirc:"\u015C",scirc:"\u015D",scnap:"\u2ABA",scnE:"\u2AB6",scnsim:"\u22E9",scpolint:"\u2A13",scsim:"\u227F",Scy:"\u0421",scy:"\u0441",sdot:"\u22C5",sdotb:"\u22A1",sdote:"\u2A66",searhk:"\u2925",seArr:"\u21D8",searr:"\u2198",searrow:"\u2198",sect:"\xA7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",Sfr:"\u{1D516}",sfr:"\u{1D530}",sfrown:"\u2322",sharp:"\u266F",SHCHcy:"\u0429",shchcy:"\u0449",SHcy:"\u0428",shcy:"\u0448",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",shortmid:"\u2223",shortparallel:"\u2225",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",shy:"\xAD",Sigma:"\u03A3",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",sim:"\u223C",simdot:"\u2A6A",sime:"\u2243",simeq:"\u2243",simg:"\u2A9E",simgE:"\u2AA0",siml:"\u2A9D",simlE:"\u2A9F",simne:"\u2246",simplus:"\u2A24",simrarr:"\u2972",slarr:"\u2190",SmallCircle:"\u2218",smallsetminus:"\u2216",smashp:"\u2A33",smeparsl:"\u29E4",smid:"\u2223",smile:"\u2323",smt:"\u2AAA",smte:"\u2AAC",smtes:"\u2AAC\uFE00",SOFTcy:"\u042C",softcy:"\u044C",sol:"/",solb:"\u29C4",solbar:"\u233F",Sopf:"\u{1D54A}",sopf:"\u{1D564}",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\uFE00",sqcup:"\u2294",sqcups:"\u2294\uFE00",Sqrt:"\u221A",sqsub:"\u228F",sqsube:"\u2291",sqsubset:"\u228F",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",squ:"\u25A1",Square:"\u25A1",square:"\u25A1",SquareIntersection:"\u2293",SquareSubset:"\u228F",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",squarf:"\u25AA",squf:"\u25AA",srarr:"\u2192",Sscr:"\u{1D4AE}",sscr:"\u{1D4C8}",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22C6",Star:"\u22C6",star:"\u2606",starf:"\u2605",straightepsilon:"\u03F5",straightphi:"\u03D5",strns:"\xAF",Sub:"\u22D0",sub:"\u2282",subdot:"\u2ABD",subE:"\u2AC5",sube:"\u2286",subedot:"\u2AC3",submult:"\u2AC1",subnE:"\u2ACB",subne:"\u228A",subplus:"\u2ABF",subrarr:"\u2979",Subset:"\u22D0",subset:"\u2282",subseteq:"\u2286",subseteqq:"\u2AC5",SubsetEqual:"\u2286",subsetneq:"\u228A",subsetneqq:"\u2ACB",subsim:"\u2AC7",subsub:"\u2AD5",subsup:"\u2AD3",succ:"\u227B",succapprox:"\u2AB8",succcurlyeq:"\u227D",Succeeds:"\u227B",SucceedsEqual:"\u2AB0",SucceedsSlantEqual:"\u227D",SucceedsTilde:"\u227F",succeq:"\u2AB0",succnapprox:"\u2ABA",succneqq:"\u2AB6",succnsim:"\u22E9",succsim:"\u227F",SuchThat:"\u220B",Sum:"\u2211",sum:"\u2211",sung:"\u266A",Sup:"\u22D1",sup:"\u2283",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",supdot:"\u2ABE",supdsub:"\u2AD8",supE:"\u2AC6",supe:"\u2287",supedot:"\u2AC4",Superset:"\u2283",SupersetEqual:"\u2287",suphsol:"\u27C9",suphsub:"\u2AD7",suplarr:"\u297B",supmult:"\u2AC2",supnE:"\u2ACC",supne:"\u228B",supplus:"\u2AC0",Supset:"\u22D1",supset:"\u2283",supseteq:"\u2287",supseteqq:"\u2AC6",supsetneq:"\u228B",supsetneqq:"\u2ACC",supsim:"\u2AC8",supsub:"\u2AD4",supsup:"\u2AD6",swarhk:"\u2926",swArr:"\u21D9",swarr:"\u2199",swarrow:"\u2199",swnwar:"\u292A",szlig:"\xDF",Tab:"	",target:"\u2316",Tau:"\u03A4",tau:"\u03C4",tbrk:"\u23B4",Tcaron:"\u0164",tcaron:"\u0165",Tcedil:"\u0162",tcedil:"\u0163",Tcy:"\u0422",tcy:"\u0442",tdot:"\u20DB",telrec:"\u2315",Tfr:"\u{1D517}",tfr:"\u{1D531}",there4:"\u2234",Therefore:"\u2234",therefore:"\u2234",Theta:"\u0398",theta:"\u03B8",thetasym:"\u03D1",thetav:"\u03D1",thickapprox:"\u2248",thicksim:"\u223C",ThickSpace:"\u205F\u200A",thinsp:"\u2009",ThinSpace:"\u2009",thkap:"\u2248",thksim:"\u223C",THORN:"\xDE",thorn:"\xFE",Tilde:"\u223C",tilde:"\u02DC",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",times:"\xD7",timesb:"\u22A0",timesbar:"\u2A31",timesd:"\u2A30",tint:"\u222D",toea:"\u2928",top:"\u22A4",topbot:"\u2336",topcir:"\u2AF1",Topf:"\u{1D54B}",topf:"\u{1D565}",topfork:"\u2ADA",tosa:"\u2929",tprime:"\u2034",TRADE:"\u2122",trade:"\u2122",triangle:"\u25B5",triangledown:"\u25BF",triangleleft:"\u25C3",trianglelefteq:"\u22B4",triangleq:"\u225C",triangleright:"\u25B9",trianglerighteq:"\u22B5",tridot:"\u25EC",trie:"\u225C",triminus:"\u2A3A",TripleDot:"\u20DB",triplus:"\u2A39",trisb:"\u29CD",tritime:"\u2A3B",trpezium:"\u23E2",Tscr:"\u{1D4AF}",tscr:"\u{1D4C9}",TScy:"\u0426",tscy:"\u0446",TSHcy:"\u040B",tshcy:"\u045B",Tstrok:"\u0166",tstrok:"\u0167",twixt:"\u226C",twoheadleftarrow:"\u219E",twoheadrightarrow:"\u21A0",Uacute:"\xDA",uacute:"\xFA",Uarr:"\u219F",uArr:"\u21D1",uarr:"\u2191",Uarrocir:"\u2949",Ubrcy:"\u040E",ubrcy:"\u045E",Ubreve:"\u016C",ubreve:"\u016D",Ucirc:"\xDB",ucirc:"\xFB",Ucy:"\u0423",ucy:"\u0443",udarr:"\u21C5",Udblac:"\u0170",udblac:"\u0171",udhar:"\u296E",ufisht:"\u297E",Ufr:"\u{1D518}",ufr:"\u{1D532}",Ugrave:"\xD9",ugrave:"\xF9",uHar:"\u2963",uharl:"\u21BF",uharr:"\u21BE",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",Umacr:"\u016A",umacr:"\u016B",uml:"\xA8",UnderBar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",UnionPlus:"\u228E",Uogon:"\u0172",uogon:"\u0173",Uopf:"\u{1D54C}",uopf:"\u{1D566}",UpArrow:"\u2191",Uparrow:"\u21D1",uparrow:"\u2191",UpArrowBar:"\u2912",UpArrowDownArrow:"\u21C5",UpDownArrow:"\u2195",Updownarrow:"\u21D5",updownarrow:"\u2195",UpEquilibrium:"\u296E",upharpoonleft:"\u21BF",upharpoonright:"\u21BE",uplus:"\u228E",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",Upsi:"\u03D2",upsi:"\u03C5",upsih:"\u03D2",Upsilon:"\u03A5",upsilon:"\u03C5",UpTee:"\u22A5",UpTeeArrow:"\u21A5",upuparrows:"\u21C8",urcorn:"\u231D",urcorner:"\u231D",urcrop:"\u230E",Uring:"\u016E",uring:"\u016F",urtri:"\u25F9",Uscr:"\u{1D4B0}",uscr:"\u{1D4CA}",utdot:"\u22F0",Utilde:"\u0168",utilde:"\u0169",utri:"\u25B5",utrif:"\u25B4",uuarr:"\u21C8",Uuml:"\xDC",uuml:"\xFC",uwangle:"\u29A7",vangrt:"\u299C",varepsilon:"\u03F5",varkappa:"\u03F0",varnothing:"\u2205",varphi:"\u03D5",varpi:"\u03D6",varpropto:"\u221D",vArr:"\u21D5",varr:"\u2195",varrho:"\u03F1",varsigma:"\u03C2",varsubsetneq:"\u228A\uFE00",varsubsetneqq:"\u2ACB\uFE00",varsupsetneq:"\u228B\uFE00",varsupsetneqq:"\u2ACC\uFE00",vartheta:"\u03D1",vartriangleleft:"\u22B2",vartriangleright:"\u22B3",Vbar:"\u2AEB",vBar:"\u2AE8",vBarv:"\u2AE9",Vcy:"\u0412",vcy:"\u0432",VDash:"\u22AB",Vdash:"\u22A9",vDash:"\u22A8",vdash:"\u22A2",Vdashl:"\u2AE6",Vee:"\u22C1",vee:"\u2228",veebar:"\u22BB",veeeq:"\u225A",vellip:"\u22EE",Verbar:"\u2016",verbar:"|",Vert:"\u2016",vert:"|",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200A",Vfr:"\u{1D519}",vfr:"\u{1D533}",vltri:"\u22B2",vnsub:"\u2282\u20D2",vnsup:"\u2283\u20D2",Vopf:"\u{1D54D}",vopf:"\u{1D567}",vprop:"\u221D",vrtri:"\u22B3",Vscr:"\u{1D4B1}",vscr:"\u{1D4CB}",vsubnE:"\u2ACB\uFE00",vsubne:"\u228A\uFE00",vsupnE:"\u2ACC\uFE00",vsupne:"\u228B\uFE00",Vvdash:"\u22AA",vzigzag:"\u299A",Wcirc:"\u0174",wcirc:"\u0175",wedbar:"\u2A5F",Wedge:"\u22C0",wedge:"\u2227",wedgeq:"\u2259",weierp:"\u2118",Wfr:"\u{1D51A}",wfr:"\u{1D534}",Wopf:"\u{1D54E}",wopf:"\u{1D568}",wp:"\u2118",wr:"\u2240",wreath:"\u2240",Wscr:"\u{1D4B2}",wscr:"\u{1D4CC}",xcap:"\u22C2",xcirc:"\u25EF",xcup:"\u22C3",xdtri:"\u25BD",Xfr:"\u{1D51B}",xfr:"\u{1D535}",xhArr:"\u27FA",xharr:"\u27F7",Xi:"\u039E",xi:"\u03BE",xlArr:"\u27F8",xlarr:"\u27F5",xmap:"\u27FC",xnis:"\u22FB",xodot:"\u2A00",Xopf:"\u{1D54F}",xopf:"\u{1D569}",xoplus:"\u2A01",xotime:"\u2A02",xrArr:"\u27F9",xrarr:"\u27F6",Xscr:"\u{1D4B3}",xscr:"\u{1D4CD}",xsqcup:"\u2A06",xuplus:"\u2A04",xutri:"\u25B3",xvee:"\u22C1",xwedge:"\u22C0",Yacute:"\xDD",yacute:"\xFD",YAcy:"\u042F",yacy:"\u044F",Ycirc:"\u0176",ycirc:"\u0177",Ycy:"\u042B",ycy:"\u044B",yen:"\xA5",Yfr:"\u{1D51C}",yfr:"\u{1D536}",YIcy:"\u0407",yicy:"\u0457",Yopf:"\u{1D550}",yopf:"\u{1D56A}",Yscr:"\u{1D4B4}",yscr:"\u{1D4CE}",YUcy:"\u042E",yucy:"\u044E",Yuml:"\u0178",yuml:"\xFF",Zacute:"\u0179",zacute:"\u017A",Zcaron:"\u017D",zcaron:"\u017E",Zcy:"\u0417",zcy:"\u0437",Zdot:"\u017B",zdot:"\u017C",zeetrf:"\u2128",ZeroWidthSpace:"\u200B",Zeta:"\u0396",zeta:"\u03B6",Zfr:"\u2128",zfr:"\u{1D537}",ZHcy:"\u0416",zhcy:"\u0436",zigrarr:"\u21DD",Zopf:"\u2124",zopf:"\u{1D56B}",Zscr:"\u{1D4B5}",zscr:"\u{1D4CF}",zwj:"\u200D",zwnj:"\u200C"}),
vendor: 11,132 bytes, lines 87-90
87t.entityMap=t.HTML_ENTITIES})(rX);var eL={},Ky=Nc.NAMESPACE,hO=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,Q8=new RegExp("[\\-\\.0-9"+hO.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),J8=new RegExp("^"+hO.source+Q8.source+"*(?::"+hO.source+Q8.source+"*)?$"),L_=0,cf=1,l0=2,F_=3,u0=4,c0=5,N_=6,qx=7;function ug(t,e){this.message=t,this.locator=e,Error.captureStackTrace&&Error.captureStackTrace(this,ug)}ug.prototype=new Error;ug.prototype.name=ug.name;function sX(){}sX.prototype={parse:function(t,e,n){var i=this.domBuilder;i.startDocument(),aX(e,e={}),fye(t,e,n,i,this.errorHandler),i.endDocument()}};function fye(t,e,n,i,r){function s(Y){if(Y>65535){Y-=65536;var Q=55296+(Y>>10),re=56320+(Y&1023);return String.fromCharCode(Q,re)}else return String.fromCharCode(Y)}function a(Y){var Q=Y.slice(1,-1);return Object.hasOwnProperty.call(n,Q)?n[Q]:Q.charAt(0)==="#"?s(parseInt(Q.substr(1).replace("x","0x"))):(r.error("entity not found:"+Y),Y)}function o(Y){if(Y>y){var Q=t.substring(y,Y).replace(/&#?\w+;/g,a);h&&l(y),i.characters(Q,0,Y-y),y=Y}}function l(Y,Q){for(;Y>=c&&(Q=f.exec(t));)u=Q.index,c=u+Q[0].length,h.lineNumber++;h.columnNumber=Y-u+1}for(var u=0,c=0,f=/.*(?:\r\n?|\n)|.*$/g,h=i.locator,p=[{currentNSMap:e}],m={},y=0;;){try{var v=t.indexOf("<",y);if(v<0){if(!t.substr(y).match(/^\s*$/)){var _=i.doc,b=_.createTextNode(t.substr(y));_.appendChild(b),i.currentElement=b}return}switch(v>y&&o(v),t.charAt(v+1)){case"/":var F=t.indexOf(">",v+3),x=t.substring(v+2,F).replace(/[ \t\n\r]+$/g,""),T=p.pop();F<0?(x=t.substring(v+2).replace(/[\s<].*/,""),r.error("end tag name: "+x+" is not complete:"+T.tagName),F=v+1+x.length):x.match(/\s</)&&(x=x.replace(/[\s<].*/,""),r.error("end tag name: "+x+" maybe not complete"),F=v+1+x.length);var E=T.localNSMap,C=T.tagName==x,D=C||T.tagName&&T.tagName.toLowerCase()==x.toLowerCase();if(D){if(i.endElement(T.uri,T.localName,x),E)for(var R in E)Object.prototype.hasOwnProperty.call(E,R)&&i.endPrefixMapping(R);C||r.fatalError("end tag name: "+x+" is not match the current start tagName:"+T.tagName)}else p.push(T);F++;break;case"?":h&&l(v),F=gye(t,v,i);break;case"!":h&&l(v),F=mye(t,v,i,r);break;default:h&&l(v);var A=new oX,k=p[p.length-1].currentNSMap,F=dye(t,v,A,k,a,r),N=A.length;if(!A.closed&&pye(t,F,A.tagName,m)&&(A.closed=!0,n.nbsp||r.warning("unclosed xml attribute")),h&&N){for(var U=eB(h,{}),$=0;$<N;$++){var G=A[$];l(G.offset),G.locator=eB(h,{})}i.locator=U,tB(A,i,k)&&p.push(A),i.locator=h}else tB(A,i,k)&&p.push(A);Ky.isHTML(A.uri)&&!A.closed?F=hye(t,F,A.tagName,a,i):F++}}catch(Y){if(Y instanceof ug)throw Y;r.error("element parse error: "+Y),F=-1}F>y?y=F:o(Math.max(v,y)+1)}}function eB(t,e){return e.lineNumber=t.lineNumber,e.columnNumber=t.columnNumber,e}function dye(t,e,n,i,r,s){function a(h,p,m){n.attributeNames.hasOwnProperty(h)&&s.fatalError("Attribute "+h+" redefined"),n.addValue(h,p.replace(/[\t\n\r]/g," ").replace(/&#?\w+;/g,r),m)}for(var o,l,u=++e,c=L_;;){var f=t.charAt(u);switch(f){case"=":if(c===cf)o=t.slice(e,u),c=F_;else if(c===l0)c=F_;else throw new Error("attribute equal must after attrName");break;case"'":case'"':if(c===F_||c===cf)if(c===cf&&(s.warning('attribute value must after "="'),o=t.slice(e,u)),e=u+1,u=t.indexOf(f,e),u>0)l=t.slice(e,u),a(o,l,e-1),c=c0;else throw new Error("attribute value no end '"+f+"' match");else if(c==u0)l=t.slice(e,u),a(o,l,e),s.warning('attribute "'+o+'" missed start quot('+f+")!!"),e=u+1,c=c0;else throw new Error('attribute value must after "="');break;case"/":switch(c){case L_:n.setTagName(t.slice(e,u));case c0:case N_:case qx:c=qx,n.closed=!0;case u0:case cf:break;case l0:n.closed=!0;break;default:throw new Error("attribute invalid close char('/')")}break;case"":return s.error("unexpected end of input"),c==L_&&n.setTagName(t.slice(e,u)),u;case">":switch(c){case L_:n.setTagName(t.slice(e,u));case c0:case N_:case qx:break;case u0:case cf:l=t.slice(e,u),l.slice(-1)==="/"&&(n.closed=!0,l=l.slice(0,-1));case l0:c===l0&&(l=o),c==u0?(s.warning('attribute "'+l+'" missed quot(")!'),a(o,l,e)):((!Ky.isHTML(i[""])||!l.match(/^(?:disabled|checked|selected)$/i))&&s.warning('attribute "'+l+'" missed value!! "'+l+'" instead!!'),a(l,l,e));break;case F_:throw new Error("attribute value missed!!")}return u;case"\x80":f=" ";default:if(f<=" ")switch(c){case L_:n.setTagName(t.slice(e,u)),c=N_;break;case cf:o=t.slice(e,u),c=l0;break;case u0:var l=t.slice(e,u);s.warning('attribute "'+l+'" missed quot(")!!'),a(o,l,e);case c0:c=N_;break}else switch(c){case l0:n.tagName,(!Ky.isHTML(i[""])||!o.match(/^(?:disabled|checked|selected)$/i))&&s.warning('attribute "'+o+'" missed value!! "'+o+'" instead2!!'),a(o,o,e),e=u,c=cf;break;case c0:s.warning('attribute space is required"'+o+'"!!');case N_:c=cf,e=u;break;case F_:c=u0,e=u;break;case qx:throw new Error("elements closed character '/' and '>' must be connected to")}}u++}}function tB(t,e,n){for(var i=t.tagName,r=null,f=t.length;f--;){var s=t[f],a=s.qName,o=s.value,h=a.indexOf(":");if(h>0)var l=s.prefix=a.slice(0,h),u=a.slice(h+1),c=l==="xmlns"&&u;else u=a,l=null,c=a==="xmlns"&&"";s.localName=u,c!==!1&&(r==null&&(r={},aX(n,n={})),n[c]=r[c]=o,s.uri=Ky.XMLNS,e.startPrefixMapping(c,o))}for(var f=t.length;f--;){s=t[f];var l=s.prefix;l&&(l==="xml"&&(s.uri=Ky.XML),l!=="xmlns"&&(s.uri=n[l||""]))}var h=i.indexOf(":");h>0?(l=t.prefix=i.slice(0,h),u=t.localName=i.slice(h+1)):(l=null,u=t.localName=i);var p=t.uri=n[l||""];if(e.startElement(p,u,i,t),t.closed){if(e.endElement(p,u,i),r)for(l in r)Object.prototype.hasOwnProperty.call(r,l)&&e.endPrefixMapping(l)}else return t.currentNSMap=n,t.localNSMap=r,!0}function hye(t,e,n,i,r){if(/^(?:script|textarea)$/i.test(n)){var s=t.indexOf("</"+n+">",e),a=t.substring(e+1,s);if(/[&<]/.test(a))return/^script$/i.test(n)?(r.characters(a,0,a.length),s):(a=a.replace(/&#?\w+;/g,i),r.characters(a,0,a.length),s)}return e+1}function pye(t,e,n,i){var r=i[n];return r==null&&(r=t.lastIndexOf("</"+n+">"),r<e&&(r=t.lastIndexOf("</"+n)),i[n]=r),r<e}function aX(t,e){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}function mye(t,e,n,i){var r=t.charAt(e+2);switch(r){case"-":if(t.charAt(e+3)==="-"){var s=t.indexOf("-->",e+4);return s>e?(n.comment(t,e+4,s-e-4),s+3):(i.error("Unclosed comment"),-1)}else return-1;default:if(t.substr(e+3,6)=="CDATA["){var s=t.indexOf("]]>",e+9);return n.startCDATA(),n.characters(t,e+9,s-e-9),n.endCDATA(),s+3}var a=_ye(t,e),o=a.length;if(o>1&&/!doctype/i.test(a[0][0])){var l=a[1][0],u=!1,c=!1;o>3&&(/^public$/i.test(a[2][0])?(u=a[3][0],c=o>4&&a[4][0]):/^system$/i.test(a[2][0])&&(c=a[3][0]));var f=a[o-1];return n.startDTD(l,u,c),n.endDTD(),f.index+f[0].length}}return-1}function gye(t,e,n){var i=t.indexOf("?>",e);if(i){var r=t.substring(e,i).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);return r?(r[0].length,n.processingInstruction(r[1],r[2]),i+2):-1}return-1}function oX(){this.attributeNames={}}oX.prototype={setTagName:function(t){if(!J8.test(t))throw new Error("invalid tagName:"+t);this.tagName=t},addValue:function(t,e,n){if(!J8.test(t))throw new Error("invalid attribute:"+t);this.attributeNames[t]=this.length,this[this.length++]={qName:t,value:e,offset:n}},length:0,getLocalName:function(t){return this[t].localName},getLocator:function(t){return this[t].locator},getQName:function(t){return this[t].qName},getURI:function(t){return this[t].uri},getValue:function(t){return this[t].value}};function _ye(t,e){var n,i=[],r=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;for(r.lastIndex=e,r.exec(t);n=r.exec(t);)if(i.push(n),n[1])return i}eL.XMLReader=sX;eL.ParseError=ug;var vye=Nc,yye=wd,nB=rX,lX=eL,bye=yye.DOMImplementation,iB=vye.NAMESPACE,xye=lX.ParseError,Sye=lX.XMLReader;function uX(t){return t.replace(/\r[\n\u0085]/g,`
88`).replace(/[\r\u0085\u2028]/g,`
89`)}function cX(t){this.options=t||{locator:{}}}cX.prototype.parseFromString=function(t,e){var n=this.options,i=new Sye,r=n.domBuilder||new zb,s=n.errorHandler,a=n.locator,o=n.xmlns||{},l=/\/x?html?$/.test(e),u=l?nB.HTML_ENTITIES:nB.XML_ENTITIES;a&&r.setDocumentLocator(a),i.errorHandler=Tye(s,r,a),i.domBuilder=n.domBuilder||r,l&&(o[""]=iB.HTML),o.xml=o.xml||iB.XML;var c=n.normalizeLineEndings||uX;return t&&typeof t=="string"?i.parse(c(t),o,u):i.errorHandler.error("invalid doc source"),r.doc};function Tye(t,e,n){if(!t){if(e instanceof zb)return e;t=e}var i={},r=t instanceof Function;n=n||{};function s(a){var o=t[a];!o&&r&&(o=t.length==2?function(l){t(a,l)}:t),i[a]=o&&function(l){o("[xmldom "+a+"]	"+l+pO(n))}||function(){}}return s("warning"),s("error"),s("fatalError"),i}function zb(){this.cdata=!1}function f0(t,e){e.lineNumber=t.lineNumber,e.columnNumber=t.columnNumber}zb.prototype={startDocument:function(){this.doc=new bye().createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(t,e,n,i){var r=this.doc,s=r.createElementNS(t,n||e),a=i.length;Xx(this,s),this.currentElement=s,this.locator&&f0(this.locator,s);for(var o=0;o<a;o++){var t=i.getURI(o),l=i.getValue(o),n=i.getQName(o),u=r.createAttributeNS(t,n);this.locator&&f0(i.getLocator(o),u),u.value=u.nodeValue=l,s.setAttributeNode(u)}},endElement:function(t,e,n){var i=this.currentElement;i.tagName,this.currentElement=i.parentNode},startPrefixMapping:function(t,e){},endPrefixMapping:function(t){},processingInstruction:function(t,e){var n=this.doc.createProcessingInstruction(t,e);this.locator&&f0(this.locator,n),Xx(this,n)},ignorableWhitespace:function(t,e,n){},characters:function(t,e,n){if(t=rB.apply(this,arguments),t){if(this.cdata)var i=this.doc.createCDATASection(t);else var i=this.doc.createTextNode(t);this.currentElement?this.currentElement.appendChild(i):/^\s*$/.test(t)&&this.doc.appendChild(i),this.locator&&f0(this.locator,i)}},skippedEntity:function(t){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(t){(this.locator=t)&&(t.lineNumber=0)},comment:function(t,e,n){t=rB.apply(this,arguments);var i=this.doc.createComment(t);this.locator&&f0(this.locator,i),Xx(this,i)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(t,e,n){var i=this.doc.implementation;if(i&&i.createDocumentType){var r=i.createDocumentType(t,e,n);this.locator&&f0(this.locator,r),Xx(this,r),this.doc.doctype=r}},warning:function(t){console.warn("[xmldom warning]	"+t,pO(this.locator))},error:function(t){console.error("[xmldom error]	"+t,pO(this.locator))},fatalError:function(t){throw new xye(t,this.locator)}};function pO(t){if(t)return`
90@`+(t.systemId||"")+"#[line:"+t.lineNumber+",col:"+t.columnNumber+"]"}function rB(t,e,n){return typeof t=="string"?t.substr(e,n):t.length>=e+n||e?new java.lang.String(t,e,n)+"":t}"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,function(t){zb.prototype[t]=function(){return null}});function Xx(t,e){t.currentElement?t.currentElement.appendChild(e):t.doc.appendChild(e)}vw.__DOMHandler=zb;vw.normalizeLineEndings=uX;vw.DOMParser=cX;var Eye=vw.DOMParser;
90/*! @name mpd-parser @version 1.3.0 @license Apache-2.0 */const sB=t=>!!t&&typeof t=="object",br=(...t)=>t.reduce((e,n)=>(typeof n!="object"||Object.keys(n).forEach(i=>{Array.isArray(e[i])&&Array.isArray(n[i])?e[i]=e[i].concat(n[i]):sB(e[i])&&sB(n[i])?e[i]=br(e[i],n[i]):e[i]=n[i]}),e),{}),fX=t=>Object.keys(t).map(e=>t[e]),wye=(t,e)=>{const n=[];for(let i=t;i<e;i++)n.push(i);return n},cg=t=>t.reduce((e,n)=>e.concat(n),[]),dX=t=>{if(!t.length)return[];const e=[];for(let n=0;n<t.length;n++)e.push(t[n]);return e},Cye=(t,e)=>t.reduce((n,i,r)=>(i[e]&&n.push(r),n),[]),Aye=(t,e)=>fX(t.reduce((n,i)=>(i.forEach(r=>{n[e(r)]=r}),n),{}));var fg={INVALID_NUMBER_OF_PERIOD:"INVALID_NUMBER_OF_PERIOD",INVALID_NUMBER_OF_CONTENT_STEERING:"INVALID_NUMBER_OF_CONTENT_STEERING",DASH_EMPTY_MANIFEST:"DASH_EMPTY_MANIFEST",DASH_INVALID_XML:"DASH_INVALID_XML",NO_BASE_URL:"NO_BASE_URL",MISSING_SEGMENT_INFORMATION:"MISSING_SEGMENT_INFORMATION",SEGMENT_TIME_UNSPECIFIED:"SEGMENT_TIME_UNSPECIFIED",UNSUPPORTED_UTC_TIMING_SCHEME:"UNSUPPORTED_UTC_TIMING_SCHEME"};const Zy=({baseUrl:t="",source:e="",range:n="",indexRange:i=""})=>{const r={uri:e,resolvedUri:mw(t||"",e)};if(n||i){const a=(n||i).split("-");let o=ue.BigInt?ue.BigInt(a[0]):parseInt(a[0],10),l=ue.BigInt?ue.BigInt(a[1]):parseInt(a[1],10);o<Number.MAX_SAFE_INTEGER&&typeof o=="bigint"&&(o=Number(o)),l<Number.MAX_SAFE_INTEGER&&typeof l=="bigint"&&(l=Number(l));let u;typeof l=="bigint"||typeof o=="bigint"?u=ue.BigInt(l)-ue.BigInt(o)+ue.BigInt(1):u=l-o+1,typeof u=="bigint"&&u<Number.MAX_SAFE_INTEGER&&(u=Number(u)),r.byterange={length:u,offset:o}}return r},Mye=t=>{let e;return typeof t.offset=="bigint"||typeof t.length=="bigint"?e=ue.BigInt(t.offset)+ue.BigInt(t.length)-ue.BigInt(1):e=t.offset+t.length-1,`${t.offset}-${e}`},aB=t=>(t&&typeof t!="number"&&(t=parseInt(t,10)),isNaN(t)?null:t),Dye={static(t){const{duration:e,timescale:n=1,sourceDuration:i,periodDuration:r}=t,s=aB(t.endNumber),a=e/n;return typeof s=="number"?{start:0,end:s}:typeof r=="number"?{start:0,end:r/a}:{start:0,end:i/a}},dynamic(t){const{NOW:e,clientOffset:n,availabilityStartTime:i,timescale:r=1,duration:s,periodStart:a=0,minimumUpdatePeriod:o=0,timeShiftBufferDepth:l=1/0}=t,u=aB(t.endNumber),c=(e+n)/1e3,f=i+a,p=c+o-f,m=Math.ceil(p*r/s),y=Math.floor((c-f-l)*r/s),v=Math.floor((c-f)*r/s);return{start:Math.max(0,y),end:typeof u=="number"?u:Math.min(m,v)}}},Pye=t=>e=>{const{duration:n,timescale:i=1,periodStart:r,startNumber:s=1}=t;return{number:s+e,duration:n/i,timeline:r,time:e*n}},tL=t=>{const{type:e,duration:n,timescale:i=1,periodDuration:r,sourceDuration:s}=t,{start:a,end:o}=Dye[e](t),l=wye(a,o).map(Pye(t));if(e==="static"){const u=l.length-1,c=typeof r=="number"?r:s;l[u].duration=c-n/i*u}return l},hX=t=>{const{baseUrl:e,initialization:n={},sourceDuration:i,indexRange:r="",periodStart:s,presentationTime:a,number:o=0,duration:l}=t;if(!e)throw new Error(fg.NO_BASE_URL);const u=Zy({baseUrl:e,source:n.sourceURL,range:n.range}),c=Zy({baseUrl:e,source:e,indexRange:r});if(c.map=u,l){const f=tL(t);f.length&&(c.duration=f[0].duration,c.timeline=f[0].timeline)}else i&&(c.duration=i,c.timeline=s);return c.presentationTime=a||s,c.number=o,[c]},nL=(t,e,n)=>{const i=t.sidx.map?t.sidx.map:null,r=t.sidx.duration,s=t.timeline||0,a=t.sidx.byterange,o=a.offset+a.length,l=e.timescale,u=e.references.filter(v=>v.referenceType!==1),c=[],f=t.endList?"static":"dynamic",h=t.sidx.timeline;let p=h,m=t.mediaSequence||0,y;typeof e.firstOffset=="bigint"?y=ue.BigInt(o)+e.firstOffset:y=o+e.firstOffset;for(let v=0;v<u.length;v++){const _=e.references[v],b=_.referencedSize,x=_.subsegmentDuration;let T;typeof y=="bigint"?T=y+ue.BigInt(b)-ue.BigInt(1):T=y+b-1;const E=`${y}-${T}`,D=hX({baseUrl:n,timescale:l,timeline:s,periodStart:h,presentationTime:p,number:m,duration:x,sourceDuration:r,indexRange:E,type:f})[0];i&&(D.map=i),c.push(D),typeof y=="bigint"?y+=ue.BigInt(b):y+=b,p+=x/l,m++}return t.segments=c,t},Oye=["AUDIO","SUBTITLES"],Rye=1/60,pX=t=>Aye(t,({timeline:e})=>e).sort((e,n)=>e.timeline>n.timeline?1:-1),kye=(t,e)=>{for(let n=0;n<t.length;n++)if(t[n].attributes.NAME===e)return t[n];return null},oB=t=>{let e=[];return Xve(t,Oye,(n,i,r,s)=>{e=e.concat(n.playlists||[])}),e},lB=({playlist:t,mediaSequence:e})=>
90{t.mediaSequence=e,t.segments.forEach((n,i)=>{n.number=t.mediaSequence+i})},Iye=({oldPlaylists:t,newPlaylists:e,timelineStarts:n})=>{e.forEach(i=>{i.discontinuitySequence=n.findIndex(function({timeline:l}){return l===i.timeline});const r=kye(t,i.attributes.NAME);if(!r||i.sidx)return;const s=i.segments[0],a=r.segments.findIndex(function(l){return Math.abs(l.presentationTime-s.presentationTime)<Rye});if(a===-1){lB({playlist:i,mediaSequence:r.mediaSequence+r.segments.length}),i.segments[0].discontinuity=!0,i.discontinuityStarts.unshift(0),(!r.segments.length&&i.timeline>r.timeline||r.segments.length&&i.timeline>r.segments[r.segments.length-1].timeline)&&i.discontinuitySequence--;return}r.segments[a].discontinuity&&!s.discontinuity&&(s.discontinuity=!0,i.discontinuityStarts.unshift(0),i.discontinuitySequence--),lB({playlist:i,mediaSequence:r.segments[a].number})})},Lye=({oldManifest:t,newManifest:e})=>{const n=t.playlists.concat(oB(t)),i=e.playlists.concat(oB(e));return e.timelineStarts=pX([t.timelineStarts,e.timelineStarts]),Iye({oldPlaylists:n,newPlaylists:i,timelineStarts:e.timelineStarts}),e},yw=t=>t&&t.uri+"-"+Mye(t.byterange),UM=t=>{const e=t.reduce(function(i,r){return i[r.attributes.baseUrl]||(i[r.attributes.baseUrl]=[]),i[r.attributes.baseUrl].push(r),i},{});let n=[];return Object.values(e).forEach(i=>{const r=fX(i.reduce((s,a)=>{const o=a.attributes.id+(a.attributes.lang||"");return s[o]?(a.segments&&(a.segments[0]&&(a.segments[0].discontinuity=!0),s[o].segments.push(...a.segments)),a.attributes.contentProtection&&(s[o].attributes.contentProtection=a.attributes.contentProtection)):(s[o]=a,s[o].attributes.timelineStarts=[]),s[o].attributes.timelineStarts.push({start:a.attributes.periodStart,timeline:a.attributes.periodStart}),s},{}));n=n.concat(r)}),n.map(i=>(i.discontinuityStarts=Cye(i.segments||[],"discontinuity"),i))},iL=(t,e)=>{const n=yw(t.sidx),i=n&&e[n]&&e[n].sidx;return i&&nL(t,i,t.sidx.resolvedUri),t},Fye=(t,e={})=>{if(!Object.keys(e).length)return t;for(const n in t)t[n]=iL(t[n],e);return t},Nye=({attributes:t,segments:e,sidx:n,mediaSequence:i,discontinuitySequence:r,discontinuityStarts:s},a)=>{const o={attributes:{NAME:t.id,BANDWIDTH:t.bandwidth,CODECS:t.codecs,["PROGRAM-ID"]:1},uri:"",endList:t.type==="static",timeline:t.periodStart,resolvedUri:t.baseUrl||"",targetDuration:t.duration,discontinuitySequence:r,discontinuityStarts:s,timelineStarts:t.timelineStarts,mediaSequence:i,segments:e};return t.contentProtection&&(o.contentProtection=t.contentProtection),t.serviceLocation&&(o.attributes.serviceLocation=t.serviceLocation),n&&(o.sidx=n),a&&(o.attributes.AUDIO="audio",o.attributes.SUBTITLES="subs"),o},Bye=({attributes:t,segments:e,mediaSequence:n,discontinuityStarts:i,discontinuitySequence:r})=>{typeof e>"u"&&(e=[{uri:t.baseUrl,timeline:t.periodStart,resolvedUri:t.baseUrl||"",duration:t.sourceDuration,number:0}],t.duration=t.sourceDuration);const s={NAME:t.id,BANDWIDTH:t.bandwidth,["PROGRAM-ID"]:1};t.codecs&&(s.CODECS=t.codecs);const a={attributes:s,uri:"",endList:t.type==="static",timeline:t.periodStart,resolvedUri:t.baseUrl||"",targetDuration:t.duration,timelineStarts:t.timelineStarts,discontinuityStarts:i,discontinuitySequence:r,mediaSequence:n,segments:e};return t.serviceLocation&&(a.attributes.serviceLocation=t.serviceLocation),a},Uye=(t,e={},n=!1)=>{let i;const r=t.reduce((s,a)=>{const o=a.attributes.role&&a.attributes.role.value||"",l=a.attributes.lang||"";let u=a.attributes.label||"main";if(l&&!a.attributes.label){const f=o?` (${o})`:"";u=`${a.attributes.lang}${f}`}s[u]||(s[u]={language:l,autoselect:!0,default:o==="main",playlists:[],uri:""});const c=iL(Nye(a,n),e);return s[u].playlists.push(c),typeof i>"u"&&o==="main"&&(i=a,i.default=!0),s},{});if(!i){const s=Object.keys(r)[0];r[s].default=!0}return r},$ye=(t,e={})=>t.reduce((n,i)=>{const r=i.attributes.label||i.attributes.lang||"text";return n[r]||(n[r]={language:r,default:!1,autoselect:!1,playlists:[],uri:""}),n[r].playlists.push(iL(Bye(i),e)),n},{}),zye=t=>t.reduce((e,n)=>(n&&n.forEach(i=>{const{channel:r,language:s}=i;e[s]={autoselect:!1,default:!1,instreamId:r,language:s}
90,i.hasOwnProperty("aspectRatio")&&(e[s].aspectRatio=i.aspectRatio),i.hasOwnProperty("easyReader")&&(e[s].easyReader=i.easyReader),i.hasOwnProperty("3D")&&(e[s]["3D"]=i["3D"])}),e),{}),Hye=({attributes:t,segments:e,sidx:n,discontinuityStarts:i})=>{const r={attributes:{NAME:t.id,AUDIO:"audio",SUBTITLES:"subs",RESOLUTION:{width:t.width,height:t.height},CODECS:t.codecs,BANDWIDTH:t.bandwidth,["PROGRAM-ID"]:1},uri:"",endList:t.type==="static",timeline:t.periodStart,resolvedUri:t.baseUrl||"",targetDuration:t.duration,discontinuityStarts:i,timelineStarts:t.timelineStarts,segments:e};return t.frameRate&&(r.attributes["FRAME-RATE"]=t.frameRate),t.contentProtection&&(r.contentProtection=t.contentProtection),t.serviceLocation&&(r.attributes.serviceLocation=t.serviceLocation),n&&(r.sidx=n),r},Vye=({attributes:t})=>t.mimeType==="video/mp4"||t.mimeType==="video/webm"||t.contentType==="video",Wye=({attributes:t})=>t.mimeType==="audio/mp4"||t.mimeType==="audio/webm"||t.contentType==="audio",Gye=({attributes:t})=>t.mimeType==="text/vtt"||t.contentType==="text",jye=(t,e)=>{t.forEach(n=>{n.mediaSequence=0,n.discontinuitySequence=e.findIndex(function({timeline:i}){return i===n.timeline}),n.segments&&n.segments.forEach((i,r)=>{i.number=r})})},uB=t=>t?Object.keys(t).reduce((e,n)=>{const i=t[n];return e.concat(i.playlists)},[]):[],qye=({dashPlaylists:t,locations:e,contentSteering:n,sidxMapping:i={},previousManifest:r,eventStream:s})=>{if(!t.length)return{};const{sourceDuration:a,type:o,suggestedPresentationDelay:l,minimumUpdatePeriod:u}=t[0].attributes,c=UM(t.filter(Vye)).map(Hye),f=UM(t.filter(Wye)),h=UM(t.filter(Gye)),p=t.map(T=>T.attributes.captionServices).filter(Boolean),m={allowCache:!0,discontinuityStarts:[],segments:[],endList:!0,mediaGroups:{AUDIO:{},VIDEO:{},["CLOSED-CAPTIONS"]:{},SUBTITLES:{}},uri:"",duration:a,playlists:Fye(c,i)};u>=0&&(m.minimumUpdatePeriod=u*1e3),e&&(m.locations=e),n&&(m.contentSteering=n),o==="dynamic"&&(m.suggestedPresentationDelay=l),s&&s.length>0&&(m.eventStream=s);const y=m.playlists.length===0,v=f.length?Uye(f,i,y):null,_=h.length?$ye(h,i):null,b=c.concat(uB(v),uB(_)),x=b.map(({timelineStarts:T})=>T);return m.timelineStarts=pX(x),jye(b,m.timelineStarts),v&&(m.mediaGroups.AUDIO.audio=v),_&&(m.mediaGroups.SUBTITLES.subs=_),p.length&&(m.mediaGroups["CLOSED-CAPTIONS"].cc=zye(p)),r?Lye({oldManifest:r,newManifest:m}):m},Xye=(t,e,n)=>{const{NOW:i,clientOffset:r,availabilityStartTime:s,timescale:a=1,periodStart:o=0,minimumUpdatePeriod:l=0}=t,u=(i+r)/1e3,c=s+o,h=u+l-c;return Math.ceil((h*a-e)/n)},mX=(t,e)=>{const{type:n,minimumUpdatePeriod:i=0,media:r="",sourceDuration:s,timescale:a=1,startNumber:o=1,periodStart:l}=t,u=[];let c=-1;for(let f=0;f<e.length;f++){const h=e[f],p=h.d,m=h.r||0,y=h.t||0;c<0&&(c=y),y&&y>c&&(c=y);let v;if(m<0){const x=f+1;x===e.length?n==="dynamic"&&i>0&&r.indexOf("$Number$")>0?v=Xye(t,c,p):v=(s*a-c)/p:v=(e[x].t-c)/p}else v=m+1;const _=o+u.length+v;let b=o+u.length;for(;b<_;)u.push({number:b,duration:p/a,time:c,timeline:l}),c+=p,b++}return u},Yye=/\$([A-z]*)(?:(%0)([0-9]+)d)?\$/g,Kye=t=>(e,n,i,r)=>{if(e==="$$")return"$";if(typeof t[n]>"u")return e;const s=""+t[n];return n==="RepresentationID"||(i?r=parseInt(r,10):r=1,s.length>=r)?s:`${new Array(r-s.length+1).join("0")}${s}`},cB=(t,e)=>t.replace(Yye,Kye(e)),Zye=(t,e)=>!t.duration&&!e?[{number:t.startNumber||1,duration:t.sourceDuration,time:0,timeline:t.periodStart}]:t.duration?tL(t):mX(t,e),Qye=(t,e)=>{const n={RepresentationID:t.id,Bandwidth:t.bandwidth||0},{initialization:i={sourceURL:"",range:""}}
vendor: 4,223 bytes, line 90
90=t,r=Zy({baseUrl:t.baseUrl,source:cB(i.sourceURL,n),range:i.range});return Zye(t,e).map(a=>{n.Number=a.number,n.Time=a.time;const o=cB(t.media||"",n),l=t.timescale||1,u=t.presentationTimeOffset||0,c=t.periodStart+(a.time-u)/l;return{uri:o,timeline:a.timeline,duration:a.duration,resolvedUri:mw(t.baseUrl||"",o),map:r,number:a.number,presentationTime:c}})},Jye=(t,e)=>{const{baseUrl:n,initialization:i={}}=t,r=Zy({baseUrl:n,source:i.sourceURL,range:i.range}),s=Zy({baseUrl:n,source:e.media,range:e.mediaRange});return s.map=r,s},ebe=(t,e)=>{const{duration:n,segmentUrls:i=[],periodStart:r}=t;if(!n&&!e||n&&e)throw new Error(fg.SEGMENT_TIME_UNSPECIFIED);const s=i.map(l=>Jye(t,l));let a;return n&&(a=tL(t)),e&&(a=mX(t,e)),a.map((l,u)=>{if(s[u]){const c=s[u],f=t.timescale||1,h=t.presentationTimeOffset||0;return c.timeline=l.timeline,c.duration=l.duration,c.number=l.number,c.presentationTime=r+(l.time-h)/f,c}}).filter(l=>l)},tbe=({attributes:t,segmentInfo:e})=>{let n,i;e.template?(i=Qye,n=br(t,e.template)):e.base?(i=hX,n=br(t,e.base)):e.list&&(i=ebe,n=br(t,e.list));const r={attributes:t};if(!i)return r;const s=i(n,e.segmentTimeline);if(n.duration){const{duration:a,timescale:o=1}=n;n.duration=a/o}else s.length?n.duration=s.reduce((a,o)=>Math.max(a,Math.ceil(o.duration)),0):n.duration=0;return r.attributes=n,r.segments=s,e.base&&n.indexRange&&(r.sidx=s[0],r.segments=[]),r},nbe=t=>t.map(tbe),bi=(t,e)=>dX(t.childNodes).filter(({tagName:n})=>n===e),Hb=t=>t.textContent.trim(),ibe=t=>parseFloat(t.split("/").reduce((e,n)=>e/n)),d0=t=>{const o=/P(?:(\d*)Y)?(?:(\d*)M)?(?:(\d*)D)?(?:T(?:(\d*)H)?(?:(\d*)M)?(?:([\d.]*)S)?)?/.exec(t);if(!o)return 0;const[l,u,c,f,h,p]=o.slice(1);return parseFloat(l||0)*31536e3+parseFloat(u||0)*2592e3+parseFloat(c||0)*86400+parseFloat(f||0)*3600+parseFloat(h||0)*60+parseFloat(p||0)},rbe=t=>(/^\d+-\d+-\d+T\d+:\d+:\d+(\.\d+)?$/.test(t)&&(t+="Z"),Date.parse(t)),fB={mediaPresentationDuration(t){return d0(t)},availabilityStartTime(t){return rbe(t)/1e3},minimumUpdatePeriod(t){return d0(t)},suggestedPresentationDelay(t){return d0(t)},type(t){return t},timeShiftBufferDepth(t){return d0(t)},start(t){return d0(t)},width(t){return parseInt(t,10)},height(t){return parseInt(t,10)},bandwidth(t){return parseInt(t,10)},frameRate(t){return ibe(t)},startNumber(t){return parseInt(t,10)},timescale(t){return parseInt(t,10)},presentationTimeOffset(t){return parseInt(t,10)},duration(t){const e=parseInt(t,10);return isNaN(e)?d0(t):e},d(t){return parseInt(t,10)},t(t){return parseInt(t,10)},r(t){return parseInt(t,10)},presentationTime(t){return parseInt(t,10)},DEFAULT(t){return t}},Qi=t=>t&&t.attributes?dX(t.attributes).reduce((e,n)=>{const i=fB[n.name]||fB.DEFAULT;return e[n.name]=i(n.value),e},{}):{},sbe={"urn:uuid:1077efec-c0b2-4d02-ace3-3c1e52e2fb4b":"org.w3.clearkey","urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":"com.widevine.alpha","urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95":"com.microsoft.playready","urn:uuid:f239e769-efa3-4850-9c16-a903c6932efb":"com.adobe.primetime","urn:mpeg:dash:mp4protection:2011":"mp4protection"},bw=(t,e)=>e.length?cg(t.map(function(n){return e.map(function(i){const r=Hb(i),s=mw(n.baseUrl,r),a=br(Qi(i),{baseUrl:s});return s!==r&&!a.serviceLocation&&n.serviceLocation&&(a.serviceLocation=n.serviceLocation),a})})):t,rL=t=>{const e=bi(t,"SegmentTemplate")[0],n=bi(t,"SegmentList")[0],i=n&&bi(n,"SegmentURL").map(f=>br({tag:"SegmentURL"},Qi(f))),r=bi(t,"SegmentBase")[0],s=n||e,a=s&&bi(s,"SegmentTimeline")[0],o=n||r||e,l=o&&bi(o,"Initialization")[0],u=e&&Qi(e);u&&l?u.initialization=l&&Qi(l):u&&u.initialization&&(u.initialization={sourceURL:u.initialization});const c={template:u,segmentTimeline:a&&bi(a,"S").map(f=>Qi(f)),list:n&&br(Qi(n),{segmentUrls:i,initialization:Qi(l)}),base:r&&br(Qi(r),{initialization:Qi(l)})};return Object.keys(c).forEach(f=>{c[f]||delete c[f]}),c},abe=(t,e,n)=>i=>{const r=bi(i,"BaseURL"),s=bw(e,r),a=br(t,Qi(i)),o=rL(i);return s.map(l=>({segmentInfo:br(n,o),attributes:br(a,l)}))},obe=t=>t.reduce((e,n)=>{const i=Qi(n);i.schemeIdUri&&(i.schemeIdUri=i.schemeIdUri.toLowerCase());const r=sbe[i.schemeIdUri];if(r){e[r]={attributes:i};const s=bi(n,"cenc:pssh")[0];if(s){const a=Hb(s);e[r].pssh=a&&Kve(a)}}return e},{}),lbe=t=>
90{if(t.schemeIdUri==="urn:scte:dash:cc:cea-608:2015")return(typeof t.value!="string"?[]:t.value.split(";")).map(n=>{let i,r;return r=n,/^CC\d=/.test(n)?[i,r]=n.split("="):/^CC\d$/.test(n)&&(i=n),{channel:i,language:r}});if(t.schemeIdUri==="urn:scte:dash:cc:cea-708:2015")return(typeof t.value!="string"?[]:t.value.split(";")).map(n=>{const i={channel:void 0,language:void 0,aspectRatio:1,easyReader:0,"3D":0};if(/=/.test(n)){const[r,s=""]=n.split("=");i.channel=r,i.language=n,s.split(",").forEach(a=>{const[o,l]=a.split(":");o==="lang"?i.language=l:o==="er"?i.easyReader=Number(l):o==="war"?i.aspectRatio=Number(l):o==="3D"&&(i["3D"]=Number(l))})}else i.language=n;return i.channel&&(i.channel="SERVICE"+i.channel),i})},ube=t=>cg(bi(t.node,"EventStream").map(e=>{const n=Qi(e),i=n.schemeIdUri;return bi(e,"Event").map(r=>{const s=Qi(r),a=s.presentationTime||0,o=n.timescale||1,l=s.duration||0,u=a/o+t.attributes.start;return{schemeIdUri:i,value:n.value,id:s.id,start:u,end:u+l/o,messageData:Hb(r)||s.messageData,contentEncoding:n.contentEncoding,presentationTimeOffset:n.presentationTimeOffset||0}})})),cbe=(t,e,n)=>i=>{const r=Qi(i),s=bw(e,bi(i,"BaseURL")),a=bi(i,"Role")[0],o={role:Qi(a)};let l=br(t,r,o);const u=bi(i,"Accessibility")[0],c=lbe(Qi(u));c&&(l=br(l,{captionServices:c}));const f=bi(i,"Label")[0];if(f&&f.childNodes.length){const v=f.childNodes[0].nodeValue.trim();l=br(l,{label:v})}const h=obe(bi(i,"ContentProtection"));Object.keys(h).length&&(l=br(l,{contentProtection:h}));const p=rL(i),m=bi(i,"Representation"),y=br(n,p);return cg(m.map(abe(l,s,y)))},fbe=(t,e)=>(n,i)=>{const r=bw(e,bi(n.node,"BaseURL")),s=br(t,{periodStart:n.attributes.start});typeof n.attributes.duration=="number"&&(s.periodDuration=n.attributes.duration);const a=bi(n.node,"AdaptationSet"),o=rL(n.node);return cg(a.map(cbe(s,r,o)))},dbe=(t,e)=>{if(t.length>1&&e({type:"warn",message:"The MPD manifest should contain no more than one ContentSteering tag"}),!t.length)return null;const n=br({serverURL:Hb(t[0])},Qi(t[0]));return n.queryBeforeStart=n.queryBeforeStart==="true",n},hbe=({attributes:t,priorPeriodAttributes:e,mpdType:n})=>typeof t.start=="number"?t.start:e&&typeof e.start=="number"&&typeof e.duration=="number"?e.start+e.duration:!e&&n==="static"?0:null,pbe=(t,e={})=>{const{manifestUri:n="",NOW:i=Date.now(),clientOffset:r=0,eventHandler:s=function(){}}=e,a=bi(t,"Period");if(!a.length)throw new Error(fg.INVALID_NUMBER_OF_PERIOD);const o=bi(t,"Location"),l=Qi(t),u=bw([{baseUrl:n}],bi(t,"BaseURL")),c=bi(t,"ContentSteering");l.type=l.type||"static",l.sourceDuration=l.mediaPresentationDuration||0,l.NOW=i,l.clientOffset=r,o.length&&(l.locations=o.map(Hb));const f=[];return a.forEach((h,p)=>{const m=Qi(h),y=f[p-1];m.start=hbe({attributes:m,priorPeriodAttributes:y?y.attributes:null,mpdType:l.type}),f.push({node:h,attributes:m})}),{locations:l.locations,contentSteeringInfo:dbe(c,s),representationInfo:cg(f.map(fbe(l,u))),eventStream:cg(f.map(ube))}},gX=t=>{if(t==="")throw new Error(fg.DASH_EMPTY_MANIFEST);const e=new Eye;let n,i;try{n=e.parseFromString(t,"application/xml"),i=n&&n.documentElement.tagName==="MPD"?n.documentElement:null}catch(r){}if(!i||i&&i.getElementsByTagName("parsererror").length>0)throw new Error(fg.DASH_INVALID_XML);return i},mbe=t=>{const e=bi(t,"UTCTiming")[0];if(!e)return null;const n=Qi(e);switch(n.schemeIdUri){case"urn:mpeg:dash:utc:http-head:2014":case"urn:mpeg:dash:utc:http-head:2012":n.method="HEAD";break;case"urn:mpeg:dash:utc:http-xsdate:2014":case"urn:mpeg:dash:utc:http-iso:2014":case"urn:mpeg:dash:utc:http-xsdate:2012":case"urn:mpeg:dash:utc:http-iso:2012":n.method="GET";break;case"urn:mpeg:dash:utc:direct:2014":case"urn:mpeg:dash:utc:direct:2012":n.method="DIRECT",n.value=Date.parse(n.value);break;case"urn:mpeg:dash:utc:http-ntp:2014":case"urn:mpeg:dash:utc:ntp:2014":case"urn:mpeg:dash:utc:sntp:2014":default:throw new Error(fg.UNSUPPORTED_UTC_TIMING_SCHEME)}return n},gbe=(t,e={})=>{const n=pbe(gX(t),e),i=nbe(n.representationInfo);return qye({dashPlaylists:i,locations:n.locations,contentSteering:n.contentSteeringInfo,sidxMapping:e.sidxMapping,previousManifest:e.previousManifest,eventStream:n.eventStream})},_be=t=>mbe(gX(t));var _X=Math.pow(2,32),vbe=function(t){var e=new DataView(t.buffer,t.byteOffset,t.byteLength),n;return e.getBigUint64?(n=e.getBigUint64(0),n<Number.MAX_SAFE_INTEGER?
90Number(n):n):e.getUint32(0)*_X+e.getUint32(4)},ybe={getUint64:vbe,MAX_UINT32:_X},dB=ybe.getUint64,bbe=function(t){var e=new DataView(t.buffer,t.byteOffset,t.byteLength),n={version:t[0],flags:new Uint8Array(t.subarray(1,4)),references:[],referenceId:e.getUint32(4),timescale:e.getUint32(8)},i=12;n.version===0?(n.earliestPresentationTime=e.getUint32(i),n.firstOffset=e.getUint32(i+4),i+=8):(n.earliestPresentationTime=dB(t.subarray(i)),n.firstOffset=dB(t.subarray(i+8)),i+=16),i+=2;var r=e.getUint16(i);for(i+=2;r>0;i+=12,r--)n.references.push({referenceType:(t[i]&128)>>>7,referencedSize:e.getUint32(i)&2147483647,subsegmentDuration:e.getUint32(i+4),startsWithSap:!!(t[i+8]&128),sapType:(t[i+8]&112)>>>4,sapDeltaTime:e.getUint32(i+8)&268435455});return n},xbe=bbe,Sbe=Lt([73,68,51]),Tbe=function(e,n){n===void 0&&(n=0),e=Lt(e);var i=e[n+5],r=e[n+6]<<21|e[n+7]<<14|e[n+8]<<7|e[n+9],s=(i&16)>>4;return s?r+20:r+10},wv=function t(e,n){return n===void 0&&(n=0),e=Lt(e),e.length-n<10||!yi(e,Sbe,{offset:n})?n:(n+=Tbe(e,n),t(e,n))},hB=function(e){return typeof e=="string"?Lq(e):e},Ebe=function(e){return Array.isArray(e)?e.map(function(n){return hB(n)}):[hB(e)]},wbe=function t(e,n,i){i===void 0&&(i=!1),n=Ebe(n),e=Lt(e);var r=[];if(!n.length)return r;for(var s=0;s<e.length;){var a=(e[s]<<24|e[s+1]<<16|e[s+2]<<8|e[s+3])>>>0,o=e.subarray(s+4,s+8);if(a===0)break;var l=s+a;if(l>e.length){if(i)break;l=e.length}var u=e.subarray(s+8,l);yi(o,n[0])&&(n.length===1?r.push(u):r.push.apply(r,t(u,n.slice(1),i))),s=l}return r},Yx={EBML:Lt([26,69,223,163]),DocType:Lt([66,130]),Segment:Lt([24,83,128,103]),SegmentInfo:Lt([21,73,169,102]),Tracks:Lt([22,84,174,107]),Track:Lt([174]),TrackNumber:Lt([215]),DefaultDuration:Lt([35,227,131]),TrackEntry:Lt([174]),TrackType:Lt([131]),FlagDefault:Lt([136]),CodecID:Lt([134]),CodecPrivate:Lt([99,162]),VideoTrack:Lt([224]),AudioTrack:Lt([225]),Cluster:Lt([31,67,182,117]),Timestamp:Lt([231]),TimestampScale:Lt([42,215,177]),BlockGroup:Lt([160]),BlockDuration:Lt([155]),Block:Lt([161]),SimpleBlock:Lt([163])},mO=[128,64,32,16,8,4,2,1],Cbe=function(e){for(var n=1,i=0;i<mO.length&&!(e&mO[i]);i++)n++;return n},N2=function(e,n,i,r){i===void 0&&(i=!0),r===void 0&&(r=!1);var s=Cbe(e[n]),a=e.subarray(n,n+s);return i&&(a=Array.prototype.slice.call(e,n,n+s),a[0]^=mO[s-1]),{length:s,value:Gve(a,{signed:r}),bytes:a}},pB=function t(e){return typeof e=="string"?e.match(/.{1,2}/g).map(function(n){return t(n)}):typeof e=="number"?jve(e):e},Abe=function(e){return Array.isArray(e)?e.map(function(n){return pB(n)}):[pB(e)]},Mbe=function t(e,n,i){if(i>=n.length)return n.length;var r=N2(n,i,!1);if(yi(e.bytes,r.bytes))return i;var s=N2(n,i+r.length);return t(e,n,i+s.length+s.value+r.length)},mB=function t(e,n){n=Abe(n),e=Lt(e);var i=[];if(!n.length)return i;for(var r=0;r<e.length;){var s=N2(e,r,!1),a=N2(e,r+s.length),o=r+s.length+a.length;a.value===127&&(a.value=Mbe(s,e,o),a.value!==e.length&&(a.value-=o));var l=o+a.value>e.length?e.length:o+a.value,u=e.subarray(o,l);yi(n[0],s.bytes)&&(n.length===1?i.push(u):i=i.concat(t(u,n.slice(1))));var c=s.length+a.length+u.length;r+=c}return i},Dbe=Lt([0,0,0,1]),Pbe=Lt([0,0,1]),Obe=Lt([0,0,3]),Rbe=function(e){for(var n=[],i=1;i<e.length-2;)yi(e.subarray(i,i+3),Obe)&&(n.push(i+2),i++),i++;if(n.length===0)return e;var r=e.length-n.length,s=new Uint8Array(r),a=0;for(i=0;i<r;a++,i++)a===n[0]&&(a++,n.shift()),s[i]=e[a];return s},vX=function(e,n,i,r){r===void 0&&(r=1/0),e=Lt(e),i=[].concat(i);for(var s=0,a,o=0;s<e.length&&(o<r||a);){var l=void 0;if(yi(e.subarray(s),Dbe)?l=4:yi(e.subarray(s),Pbe)&&(l=3),!l){s++;continue}if(o++,a)return Rbe(e.subarray(a,s));var u=void 0;n==="h264"?u=e[s+l]&31:n==="h265"&&(u=e[s+l]>>1&63),i.indexOf(u)!==-1&&(a=s+l),s+=l+(n==="h264"?1:2)}return e.subarray(0,0)},kbe=function(e,n,i){return vX(e,"h264",n,i)},Ibe=function(e,n,i){return vX(e,"h265",n,i)},hs={webm:Lt([119,101,98,109]),matroska:Lt([109,97,116,114,111,115,107,97]),flac:Lt([102,76,97,67]),ogg:Lt([79,103,103,83]),ac3:Lt([11,119]),riff:Lt([82,73,70,70]),avi:Lt([65,86,73]),wav:Lt([87,65,86,69]),"3gp":Lt([102,116,121,112,51,103]),mp4:Lt([102,116,121,112]),fmp4:Lt([115,116,121,112]),mov:Lt([102,116,121,112,113,116]),moov:Lt([109,111,111,118]),moof:Lt([109,111,111,102])},dg={aac:function(e){var n=wv(e);return yi(e,[255,16],{offset:n,mask:[255,22]})},mp3:function(e){var n=wv(e);return yi(e,[255,2],{offset:n,mask:[255,6]})},webm:function(e){var n=mB(e,[Yx.EBML,Yx.DocType])[0];return yi(n,hs.webm)},mkv:function(e){var n=mB(e,[Yx.EBML,Yx.DocType])[0];return yi(n,hs.matroska)},mp4:function(e){if(dg["3gp"](e)||dg.mov(e))return!1;if(yi(e,hs.mp4,{offset:4})||yi(e,hs.fmp4,{offset:4})||yi(e,hs.moof,{offset:4})||yi(e,hs.moov,{offset:4}))return!0},mov:function(e){return yi(e,hs.mov,{offset:4})},"3gp":function(e){return yi(e,hs["3gp"],{offset:4})},ac3:function(e){var n=wv(e);return yi(e,hs.ac3,{offset:n})},ts:function(e){if(e.length<189&&e.length>=1)return e[0]===71;for(var n=0;n+188<e.length&&n<188;){if(e[n]===71&&e[n+188]===71)return!0;n+=1}return!1},flac:function(e){var n=wv(e);return yi(e,hs.flac,{offset:n})},ogg:function(e){return yi(e,hs.ogg)},avi:function(e){return yi(e,hs.riff)&&yi(e,hs.avi,{offset:8})},wav:function(e){return yi(e,hs.riff)&&yi(e,hs.wav,{offset:8})},h264:function(e){return kbe(e,7,3).length},h265:function(e){return Ibe(e,[32,33],3).length}},gO=Object.keys(dg).filter(function(t){return t!=="ts"&&t!=="h264"&&t!=="h265"}).concat(["ts","h264","h265"]);gO.forEach(function(t){var e=dg[t];dg[t]=function(n){return e(Lt(n))}});var Lbe=dg,sL=function(e){e=Lt(e);for(var n=0;n<gO.length;n++){var i=gO[n];if(Lbe[i](e))return i}return""},Fbe=function(e){return wbe(e,["moof"]).length>0},aL=9e4,oL,lL,xw,uL,yX,bX,xX;oL=function(t){return t*aL};lL=function(t,e){return t*e};xw=function(t){return t/aL};uL=function(t,e){return t/e};yX=function(t,e){return oL(uL(t,e))};bX=function(t,e){return lL(xw(t),e)};xX=function(t,e,n){return xw(n?t:t-e)};var Ah={ONE_SECOND_IN_TS:aL,secondsToVideoTs:oL,secondsToAudioTs:lL,videoTsToSeconds:xw,audioTsToSeconds:uL,audioTsToVideoTs:yX,videoTsToAudioTs:bX,metadataTsToSeconds:xX};/**
91 * @license
92 * Video.js 8.12.0 <http://videojs.com/>
93 * Copyright Brightcove, Inc. <https://www.brightcove.com/>
94 * Available under Apache License Version 2.0
95 * <https://github.com/videojs/video.js/blob/main/LICENSE>
96 *
97 * Includes vtt.js <https://github.com/mozilla/vtt.js>
98 * Available under Apache License Version 2.0
99 * <https://github.com/mozilla/vtt.js/blob/main/LICENSE>
100 */var _O="8.12.0";const cc={},gd=function(t,e){return cc[t]=cc[t]||[],e&&(cc[t]=cc[t].concat(e)),cc[t]},Nbe=function(t,e){gd(t,e)},SX=function(t,e){const n=gd(t).indexOf(e);return n<=-1?!1:(cc[t]=cc[t].slice(),cc[t].splice(n,1),!0)},Bbe=function(t,e){gd(t,[].concat(e).map(n=>{const i=(...r)=>(SX(t,i),n(...r));return i}))},B2={prefixed:!0},PT=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror","fullscreen"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror","-webkit-full-screen"]],gB=PT[0];let Cv;for(let t=0;t<PT.length;t++)if(PT[t][1]in ct){Cv=PT[t];break}if(Cv){for(let t=0;t<Cv.length;t++)B2[gB[t]]=Cv[t];B2.prefixed=Cv[0]!==gB[0]}let Vs=[];const Ube=(t,e,n)=>(i,r,s)=>{const a=e.levels[r],o=new RegExp(`^(${a})$`);let l=t;if(i!=="log"&&s.unshift(i.toUpperCase()+":"),n&&(l=`%c${t}`,s.unshift(n)),s.unshift(l+":"),Vs){Vs.push([].concat(s));const c=Vs.length-1e3;Vs.splice(0,c>0?c:0)}if(!ue.console)return;let u=ue.console[i];!u&&i==="debug"&&(u=ue.console.info||ue.console.log),!(!u||!a||!o.test(i))&&u[Array.isArray(s)?"apply":"call"](ue.console,s)};function vO(t,e=":",n=""){let i="info",r;const s=function(...a){r("log",i,a)};return r=Ube(t,s,n),s.createLogger=(a,o,l)=>{const u=o!==void 0?o:e,c=l!==void 0?l:n,f=`${t} ${u} ${a}`;return vO(f,u,c)},s.createNewLogger=(a,o,l)=>vO(a,o,l),s.levels={all:"debug|log|warn|error",off:"",debug:"debug|log|warn|error",info:"log|warn|error",warn:"warn|error",error:"error",DEFAULT:i},s.level=a=>
100{if(typeof a=="string"){if(!s.levels.hasOwnProperty(a))throw new Error(`"${a}" in not a valid log level`);i=a}return i},s.history=()=>Vs?[].concat(Vs):[],s.history.filter=a=>(Vs||[]).filter(o=>new RegExp(`.*${a}.*`).test(o[0])),s.history.clear=()=>{Vs&&(Vs.length=0)},s.history.disable=()=>{Vs!==null&&(Vs.length=0,Vs=null)},s.history.enable=()=>{Vs===null&&(Vs=[])},s.error=(...a)=>r("error",i,a),s.warn=(...a)=>r("warn",i,a),s.debug=(...a)=>r("debug",i,a),s}const Sn=vO("VIDEOJS"),TX=Sn.createLogger,$be=Object.prototype.toString,EX=function(t){return du(t)?Object.keys(t):[]};function Mm(t,e){EX(t).forEach(n=>e(t[n],n))}function wX(t,e,n=0){return EX(t).reduce((i,r)=>e(i,t[r],r),n)}function du(t){return!!t&&typeof t=="object"}function hg(t){return du(t)&&$be.call(t)==="[object Object]"&&t.constructor===Object}function ii(...t){const e={};return t.forEach(n=>{!n||Mm(n,(i,r)=>{if(!hg(i)){e[r]=i;return}hg(e[r])||(e[r]={}),e[r]=ii(e[r],i)})}),e}function CX(t={}){const e=[];for(const n in t)if(t.hasOwnProperty(n)){const i=t[n];e.push(i)}return e}function Sw(t,e,n,i=!0){const r=a=>Object.defineProperty(t,e,{value:a,enumerable:!0,writable:!0}),s={configurable:!0,enumerable:!0,get(){const a=n();return r(a),a}};return i&&(s.set=r),Object.defineProperty(t,e,s)}var zbe=Object.freeze({__proto__:null,each:Mm,reduce:wX,isObject:du,isPlain:hg,merge:ii,values:CX,defineLazyProperty:Sw});let cL=!1,AX=null,hu=!1,MX,DX=!1,Dm=!1,Pm=!1,pu=!1,fL=null,Tw=null,PX=null,U2=!1,Ew=!1,$2=!1,ww=!1,yO=!1,bO=!1,xO=!1;const Qy=Boolean(Bg()&&("ontouchstart"in ue||ue.navigator.maxTouchPoints||ue.DocumentTouch&&ue.document instanceof ue.DocumentTouch)),ff=ue.navigator&&ue.navigator.userAgentData;ff&&ff.platform&&ff.brands&&(hu=ff.platform==="Android",Dm=Boolean(ff.brands.find(t=>t.brand==="Microsoft Edge")),Pm=Boolean(ff.brands.find(t=>t.brand==="Chromium")),pu=!Dm&&Pm,fL=Tw=(ff.brands.find(t=>t.brand==="Chromium")||{}).version||null,Ew=ff.platform==="Windows");if(!Pm){const t=ue.navigator&&ue.navigator.userAgent||"";cL=/iPod/i.test(t),AX=function(){const e=t.match(/OS (\d+)_/i);return e&&e[1]?e[1]:null}(),hu=/Android/i.test(t),MX=function(){const e=t.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i);if(!e)return null;const n=e[1]&&parseFloat(e[1]),i=e[2]&&parseFloat(e[2]);return n&&i?parseFloat(e[1]+"."+e[2]):n||null}(),DX=/Firefox/i.test(t),Dm=/Edg/i.test(t),Pm=/Chrome/i.test(t)||/CriOS/i.test(t),pu=!Dm&&Pm,fL=Tw=function(){const e=t.match(/(Chrome|CriOS)\/(\d+)/);return e&&e[2]?parseFloat(e[2]):null}(),PX=function(){const e=/MSIE\s(\d+)\.\d/.exec(t);let n=e&&parseFloat(e[1]);return!n&&/Trident\/7.0/i.test(t)&&/rv:11.0/.test(t)&&(n=11),n}(),yO=/Tizen/i.test(t),bO=/Web0S/i.test(t),xO=yO||bO,U2=/Safari/i.test(t)&&!pu&&!hu&&!Dm&&!xO,Ew=/Windows/i.test(t),$2=/iPad/i.test(t)||U2&&Qy&&!/iPhone/i.test(t),ww=/iPhone/i.test(t)&&!$2}const Ds=ww||$2||cL,Cw=(U2||Ds)&&!pu;var OX=Object.freeze({__proto__:null,get IS_IPOD(){return cL},get IOS_VERSION(){return AX},get IS_ANDROID(){return hu},get ANDROID_VERSION(){return MX},get IS_FIREFOX(){return DX},get IS_EDGE(){return Dm},get IS_CHROMIUM(){return Pm},get IS_CHROME(){return pu},get CHROMIUM_VERSION(){return fL},get CHROME_VERSION(){return Tw},get IE_VERSION(){return PX},get IS_SAFARI(){return U2},get IS_WINDOWS(){return Ew},get IS_IPAD(){return $2},get IS_IPHONE(){return ww},get IS_TIZEN(){return yO},get IS_WEBOS(){return bO},get IS_SMART_TV(){return xO},TOUCH_ENABLED:Qy,IS_IOS:Ds,IS_ANY_SAFARI:Cw});function _B(t){return typeof t=="string"&&Boolean(t.trim())}function Hbe(t){if(t.indexOf(" ")>=0)throw new Error("class has illegal whitespace characters")}function Bg(){return ct===ue.document}function Ug(t){return du(t)&&t.nodeType===1}function RX(){try{return ue.parent!==ue.self}catch(t){return!0}}function kX(t){return function(e,n){if(!_B(e))return ct[t](null);_B(n)&&(n=ct.querySelector(n));const i=Ug(n)?n:ct;return i[t]&&i[t](e)}}function rn(t="div",e={},n={},i){const r=ct.createElement(t);return Object.getOwnPropertyNames(e).forEach(function(s){const a=e[s];s==="textContent"?Cd(r,a):(r[s]!==a||s==="tabIndex")&&(r[s]=a)}
100),Object.getOwnPropertyNames(n).forEach(function(s){r.setAttribute(s,n[s])}),i&&dL(r,i),r}function Cd(t,e){return typeof t.textContent>"u"?t.innerText=e:t.textContent=e,t}function SO(t,e){e.firstChild?e.insertBefore(t,e.firstChild):e.appendChild(t)}function iy(t,e){return Hbe(e),t.classList.contains(e)}function Vh(t,...e){return t.classList.add(...e.reduce((n,i)=>n.concat(i.split(/\s+/)),[])),t}function Aw(t,...e){return t?(t.classList.remove(...e.reduce((n,i)=>n.concat(i.split(/\s+/)),[])),t):(Sn.warn("removeClass was called with an element that doesn't exist"),null)}function IX(t,e,n){return typeof n=="function"&&(n=n(t,e)),typeof n!="boolean"&&(n=void 0),e.split(/\s+/).forEach(i=>t.classList.toggle(i,n)),t}function LX(t,e){Object.getOwnPropertyNames(e).forEach(function(n){const i=e[n];i===null||typeof i>"u"||i===!1?t.removeAttribute(n):t.setAttribute(n,i===!0?"":i)})}function Cf(t){const e={},n=["autoplay","controls","playsinline","loop","muted","default","defaultMuted"];if(t&&t.attributes&&t.attributes.length>0){const i=t.attributes;for(let r=i.length-1;r>=0;r--){const s=i[r].name;let a=i[r].value;n.includes(s)&&(a=a!==null),e[s]=a}}return e}function FX(t,e){return t.getAttribute(e)}function pg(t,e,n){t.setAttribute(e,n)}function Mw(t,e){t.removeAttribute(e)}function NX(){ct.body.focus(),ct.onselectstart=function(){return!1}}function BX(){ct.onselectstart=function(){return!0}}function mg(t){if(t&&t.getBoundingClientRect&&t.parentNode){const e=t.getBoundingClientRect(),n={};return["bottom","height","left","right","top","width"].forEach(i=>{e[i]!==void 0&&(n[i]=e[i])}),n.height||(n.height=parseFloat(gg(t,"height"))),n.width||(n.width=parseFloat(gg(t,"width"))),n}}function Jy(t){if(!t||t&&!t.offsetParent)return{left:0,top:0,width:0,height:0};const e=t.offsetWidth,n=t.offsetHeight;let i=0,r=0;for(;t.offsetParent&&t!==ct[B2.fullscreenElement];)i+=t.offsetLeft,r+=t.offsetTop,t=t.offsetParent;return{left:i,top:r,width:e,height:n}}function Dw(t,e){const n={x:0,y:0};if(Ds){let c=t;for(;c&&c.nodeName.toLowerCase()!=="html";){const f=gg(c,"transform");
100if(/^matrix/.test(f)){const h=f.slice(7,-1).split(/,\s/).map(Number);n.x+=h[4],n.y+=h[5]}else if(/^matrix3d/.test(f)){const h=f.slice(9,-1).split(/,\s/).map(Number);n.x+=h[12],n.y+=h[13]}c=c.parentNode}}const i={},r=Jy(e.target),s=Jy(t),a=s.width,o=s.height;let l=e.offsetY-(s.top-r.top),u=e.offsetX-(s.left-r.left);return e.changedTouches&&(u=e.changedTouches[0].pageX-s.left,l=e.changedTouches[0].pageY+s.top,Ds&&(u-=n.x,l-=n.y)),i.y=1-Math.max(0,Math.min(1,l/o)),i.x=Math.max(0,Math.min(1,u/a)),i}function UX(t){return du(t)&&t.nodeType===3}function Pw(t){for(;t.firstChild;)t.removeChild(t.firstChild);return t}function $X(t){return typeof t=="function"&&(t=t()),(Array.isArray(t)?t:[t]).map(e=>{if(typeof e=="function"&&(e=e()),Ug(e)||UX(e))return e;if(typeof e=="string"&&/\S/.test(e))return ct.createTextNode(e)}).filter(e=>e)}function dL(t,e){return $X(e).forEach(n=>t.appendChild(n)),t}function zX(t,e){return dL(Pw(t),e)}function eb(t){return t.button===void 0&&t.buttons===void 0||t.button===0&&t.buttons===void 0||t.type==="mouseup"&&t.button===0&&t.buttons===0?!0:!(t.button!==0||t.buttons!==1)}const _d=kX("querySelector"),HX=kX("querySelectorAll");function gg(t,e){if(!t||!e)return"";if(typeof ue.getComputedStyle=="function"){let n;try{n=ue.getComputedStyle(t)}catch(i){return""}return n?n.getPropertyValue(e)||n[e]:""}return""}function VX(t){[...ct.styleSheets].forEach(e=>{try{const n=[...e.cssRules].map(r=>r.cssText).join(""),i=ct.createElement("style");i.textContent=n,t.document.head.appendChild(i)}catch(n){const i=ct.createElement("link");i.rel="stylesheet",i.type=e.type,i.media=e.media.mediaText,i.href=e.href,t.document.head.appendChild(i)}})}var WX=Object.freeze({__proto__:null,isReal:Bg,isEl:Ug,isInFrame:RX,createEl:rn,textContent:Cd,prependTo:SO,hasClass:iy,addClass:Vh,removeClass:Aw,toggleClass:IX,setAttributes:LX,getAttributes:Cf,getAttribute:FX,setAttribute:pg,removeAttribute:Mw,blockTextSelection:NX,unblockTextSelection:BX,getBoundingClientRect:mg,findPosition:Jy,getPointerPosition:Dw,isTextNode:UX,emptyEl:Pw,normalizeContent:$X,appendContent:dL,insertContent:zX,isSingleLeftClick:eb,$:_d,$$:HX,computedStyle:gg,copyStyleSheetsToWindow:VX});let GX=!1,TO;const Vbe=function(){if(TO.options.autoSetup===!1)return;const t=Array.prototype.slice.call(ct.getElementsByTagName("video")),e=Array.prototype.slice.call(ct.getElementsByTagName("audio")),n=Array.prototype.slice.call(ct.getElementsByTagName("video-js")),i=t.concat(e,n);if(i&&i.length>0)for(let r=0,s=i.length;r<s;r++){const a=i[r];if(a&&a.getAttribute)a.player===void 0&&a.getAttribute("data-setup")!==null&&TO(a);else{EO(1);break}}else GX||EO(1)};function EO(t,e){!Bg()||(e&&(TO=e),ue.setTimeout(Vbe,t))}function wO(){GX=!0,ue.removeEventListener("load",wO)}Bg()&&(ct.readyState==="complete"?wO():ue.addEventListener("load",wO));const jX=function(t){const e=ct.createElement("style");return e.className=t,e},qX=function(t,e){t.styleSheet?t.styleSheet.cssText=e:t.textContent=e};var As=new WeakMap;const Wbe=3;let Gbe=Wbe;function hl(){return Gbe++}function vB(t,e){if(!As.has(t))return;const n=As.get(t);n.handlers[e].length===0&&(delete n.handlers[e],t.removeEventListener?t.removeEventListener(e,n.dispatcher,!1):t.detachEvent&&t.detachEvent("on"+e,n.dispatcher)),Object.getOwnPropertyNames(n.handlers).length<=0&&(delete n.handlers,delete n.dispatcher,delete n.disabled),Object.getOwnPropertyNames(n).length===0&&As.delete(t)}function hL(t,e,n,i){n.forEach(function(r){t(e,r,i)})}function Ow(t){if(t.fixed_)return t;function e(){return!0}function n(){return!1}if(!t||!t.isPropagationStopped||!t.isImmediatePropagationStopped){const i=t||ue.event;t={};for(const r in i)r!=="layerX"&&r!=="layerY"&&r!=="keyLocation"&&r!=="webkitMovementX"&&r!=="webkitMovementY"&&r!=="path"&&(r==="returnValue"&&i.preventDefault||(t[r]=i[r]));if(t.target||(t.target=t.srcElement||ct),t.relatedTarget||(t.relatedTarget=t.fromElement===t.target?t.toElement:t.fromElement),t.preventDefault=function(){i.preventDefault&&i.preventDefault(),t.returnValue=!1,i.returnValue=!1,t.defaultPrevented=!0},t.defaultPrevented=!1,t.stopPropagation=function(){i.stopPropagation&&i.stopPropagation(),t.cancelBubble=!0,i.cancelBubble=!0,t.isPropagationStopped=e},t.isPropagationStopped=n,t.stopImmediatePropagation=function(){i.stopImmediatePropagation&&i.stopImmediatePropagation(),t.isImmediatePropagationStopped=e,t.stopPropagation()},t.isImmediatePropagationStopped=n,t.clientX!==null&&t.clientX!==void 0){const r=ct.documentElement,s=ct.body;t.pageX=t.clientX+(r&&r.scrollLeft||s&&s.scrollLeft||0)-(r&&r.clientLeft||s&&s.clientLeft||0),t.pageY=t.clientY+(r&&r.scrollTop||s&&s.scrollTop||0)-(r&&r.clientTop||s&&s.clientTop||0)}t.which=t.charCode||t.keyCode,t.button!==null&&t.button!==void 0&&(t.button=t.button&1?0:t.button&4?1:t.button&2?2:0)}return t.fixed_=!0,t}let Kx;
vendor: 6,153 bytes, line 100
100const jbe=function(){if(typeof Kx!="boolean"){Kx=!1;try{const t=Object.defineProperty({},"passive",{get(){Kx=!0}});ue.addEventListener("test",null,t),ue.removeEventListener("test",null,t)}catch(t){}}return Kx},qbe=["touchstart","touchmove"];function ja(t,e,n){if(Array.isArray(e))return hL(ja,t,e,n);As.has(t)||As.set(t,{});const i=As.get(t);if(i.handlers||(i.handlers={}),i.handlers[e]||(i.handlers[e]=[]),n.guid||(n.guid=hl()),i.handlers[e].push(n),i.dispatcher||(i.disabled=!1,i.dispatcher=function(r,s){if(i.disabled)return;r=Ow(r);const a=i.handlers[r.type];if(a){const o=a.slice(0);for(let l=0,u=o.length;l<u&&!r.isImmediatePropagationStopped();l++)try{o[l].call(t,r,s)}catch(c){Sn.error(c)}}}),i.handlers[e].length===1)if(t.addEventListener){let r=!1;jbe()&&qbe.indexOf(e)>-1&&(r={passive:!0}),t.addEventListener(e,i.dispatcher,r)}else t.attachEvent&&t.attachEvent("on"+e,i.dispatcher)}function ss(t,e,n){if(!As.has(t))return;const i=As.get(t);if(!i.handlers)return;if(Array.isArray(e))return hL(ss,t,e,n);const r=function(a,o){i.handlers[o]=[],vB(a,o)};if(e===void 0){for(const a in i.handlers)Object.prototype.hasOwnProperty.call(i.handlers||{},a)&&r(t,a);return}const s=i.handlers[e];if(!!s){if(!n){r(t,e);return}if(n.guid)for(let a=0;a<s.length;a++)s[a].guid===n.guid&&s.splice(a--,1);vB(t,e)}}function $g(t,e,n){const i=As.has(t)?As.get(t):{},r=t.parentNode||t.ownerDocument;if(typeof e=="string"?e={type:e,target:t}:e.target||(e.target=t),e=Ow(e),i.dispatcher&&i.dispatcher.call(t,e,n),r&&!e.isPropagationStopped()&&e.bubbles===!0)$g.call(null,r,e,n);else if(!r&&!e.defaultPrevented&&e.target&&e.target[e.type]){As.has(e.target)||As.set(e.target,{});const s=As.get(e.target);e.target[e.type]&&(s.disabled=!0,typeof e.target[e.type]=="function"&&e.target[e.type](),s.disabled=!1)}return!e.defaultPrevented}function Rw(t,e,n){if(Array.isArray(e))return hL(Rw,t,e,n);const i=function(){ss(t,e,i),n.apply(this,arguments)};i.guid=n.guid=n.guid||hl(),ja(t,e,i)}function pL(t,e,n){const i=function(){ss(t,e,i),n.apply(this,arguments)};i.guid=n.guid=n.guid||hl(),ja(t,e,i)}var Xbe=Object.freeze({__proto__:null,fixEvent:Ow,on:ja,off:ss,trigger:$g,one:Rw,any:pL});const Ro=30,ai=function(t,e,n){e.guid||(e.guid=hl());const i=e.bind(t);return i.guid=n?n+"_"+e.guid:e.guid,i},mu=function(t,e){let n=ue.performance.now();return function(...r){const s=ue.performance.now();s-n>=e&&(t(...r),n=s)}},XX=function(t,e,n,i=ue){let r;const s=()=>{i.clearTimeout(r),r=null},a=function(){const o=this,l=arguments;let u=function(){r=null,u=null,n||t.apply(o,l)};!r&&n&&t.apply(o,l),i.clearTimeout(r),r=i.setTimeout(u,e)};return a.cancel=s,a};var Ybe=Object.freeze({__proto__:null,UPDATE_REFRESH_INTERVAL:Ro,bind_:ai,throttle:mu,debounce:XX});let B_;class ko{on(e,n){const i=this.addEventListener;this.addEventListener=()=>{},ja(this,e,n),this.addEventListener=i}off(e,n){ss(this,e,n)}one(e,n){const i=this.addEventListener;this.addEventListener=()=>{},Rw(this,e,n),this.addEventListener=i}any(e,n){const i=this.addEventListener;this.addEventListener=()=>{},pL(this,e,n),this.addEventListener=i}trigger(e){const n=e.type||e;typeof e=="string"&&(e={type:n}),e=Ow(e),this.allowedEvents_[n]&&this["on"+n]&&this["on"+n](e),$g(this,e)}queueTrigger(e){B_||(B_=new Map);const n=e.type||e;let i=B_.get(this);i||(i=new Map,B_.set(this,i));const r=i.get(n);i.delete(n),ue.clearTimeout(r);const s=ue.setTimeout(()=>{i.delete(n),i.size===0&&(i=null,B_.delete(this)),this.trigger(e)},0);i.set(n,s)}}ko.prototype.allowedEvents_={};ko.prototype.addEventListener=ko.prototype.on;ko.prototype.removeEventListener=ko.prototype.off;ko.prototype.dispatchEvent=ko.prototype.trigger;const kw=t=>typeof t.name=="function"?t.name():typeof t.name=="string"?t.name:t.name_?t.name_:t.constructor&&t.constructor.name?t.constructor.name:typeof t,Tc=t=>t instanceof ko||!!t.eventBusEl_&&["on","one","off","trigger"].every(e=>typeof t[e]=="function"),Kbe=(t,e)=>{Tc(t)?e():(t.eventedCallbacks||(t.eventedCallbacks=[]),t.eventedCallbacks.push(e))},CO=t=>typeof t=="string"&&/\S/.test(t)||Array.isArray(t)&&!!t.length,z2=(t,e,n)=>{if(!t||!t.nodeName&&!Tc(t))throw new Error(`Invalid target for ${kw(e)}#${n}; must be a DOM node or evented object.`)},YX=(t,e,n)=>{if(!CO(t))throw new Error(`Invalid event type for ${kw(e)}#${n}; must be a non-empty string or array.`)},KX=(t,e,n)=>{if(typeof t!="function")throw new Error(`Invalid listener for ${kw(e)}#${n}; must be a function.`)},$M=(t,e,n)=>{const i=e.length<3||e[0]===t||e[0]===t.eventBusEl_;let r,s,a;return i?(r=t.eventBusEl_,e.length>=3&&e.shift(),[s,a]=e):[r,s,a]=e,z2(r,t,n),YX(s,t,n),KX(a,t,n),a=ai(t,a),{isTargetingSelf:i,target:r,type:s,listener:a}},eh=(t,e,n,i)=>{z2(t,t,e),t.nodeName?Xbe[e](t,n,i):t[e](n,i)},Zbe={on(...t){const{isTargetingSelf:e,target:n,type:i,listener:r}=$M(this,t,"on");if(eh(n,"on",i,r),!e){const s=()=>this.off(n,i,r);s.guid=r.guid;const a=()=>this.off("dispose",s);a.guid=r.guid,eh(this,"on","dispose",s),eh(n,"on","dispose",a)}},one(...t){const{isTargetingSelf:e,target:n,type:i,listener:r}=$M(this,t,"one");if(e)eh(n,"one",i,r);else{const s=(...a)=>{this.off(n,i,s),r.apply(null,a)};s.guid=r.guid,eh(n,"one",i,s)}},any(...t){const{isTargetingSelf:e,target:n,type:i,listener:r}=$M(this,t,"any");if(e)eh(n,"any",i,r);else{const s=(...a)=>{this.off(n,i,s),r.apply(null,a)};s.guid=r.guid,eh(n,"any",i,s)}},off(t,e,n){if(!t||CO(t))ss(this.eventBusEl_,t,e);else{const i=t,r=e;z2(i,this,"off"),YX(r,this,"off"),KX(n,this,"off"),n=ai(this,n),this.off("dispose",n),i.nodeName?(ss(i,r,n),ss(i,"dispose",n)):Tc(i)&&(i.off(r,n),i.off("dispose",n))}},trigger(t,e){z2(this.eventBusEl_,this,"trigger");const n=t&&typeof t!="string"?t.type:t;if(!CO(n))throw new Error(`Invalid event type for ${kw(this)}#trigger; must be a non-empty string or object with a type key that has a non-empty value.`);return $g(this.eventBusEl_,t,e)}};function mL(t,e={}){const{eventBusKey:n}=e;if(n){if(!t[n].nodeName)throw new Error(`The eventBusKey "${n}" does not refer to an element.`);t.eventBusEl_=t[n]}else t.eventBusEl_=rn("span",{className:"vjs-event-bus"});return Object.assign(t,Zbe),t.eventedCallbacks&&t.eventedCallbacks.forEach(i=>
vendor: 5,532 bytes, line 100
100{i()}),t.on("dispose",()=>{t.off(),[t,t.el_,t.eventBusEl_].forEach(function(i){i&&As.has(i)&&As.delete(i)}),ue.setTimeout(()=>{t.eventBusEl_=null},0)}),t}const Qbe={state:{},setState(t){typeof t=="function"&&(t=t());let e;return Mm(t,(n,i)=>{this.state[i]!==n&&(e=e||{},e[i]={from:this.state[i],to:n}),this.state[i]=n}),e&&Tc(this)&&this.trigger({changes:e,type:"statechanged"}),e}};function ZX(t,e){return Object.assign(t,Qbe),t.state=Object.assign({},t.state,e),typeof t.handleStateChanged=="function"&&Tc(t)&&t.on("statechanged",t.handleStateChanged),t}const ry=function(t){return typeof t!="string"?t:t.replace(/./,e=>e.toLowerCase())},Li=function(t){return typeof t!="string"?t:t.replace(/./,e=>e.toUpperCase())},QX=function(t,e){return Li(t)===Li(e)};var Jbe=Object.freeze({__proto__:null,toLowerCase:ry,toTitleCase:Li,titleCaseEquals:QX});class je{constructor(e,n,i){if(!e&&this.play?this.player_=e=this:this.player_=e,this.isDisposed_=!1,this.parentComponent_=null,this.options_=ii({},this.options_),n=this.options_=ii(this.options_,n),this.id_=n.id||n.el&&n.el.id,!this.id_){const r=e&&e.id&&e.id()||"no_player";this.id_=`${r}_component_${hl()}`}this.name_=n.name||null,n.el?this.el_=n.el:n.createEl!==!1&&(this.el_=this.createEl()),n.className&&this.el_&&n.className.split(" ").forEach(r=>this.addClass(r)),["on","off","one","any","trigger"].forEach(r=>{this[r]=void 0}),n.evented!==!1&&(mL(this,{eventBusKey:this.el_?"el_":null}),this.handleLanguagechange=this.handleLanguagechange.bind(this),this.on(this.player_,"languagechange",this.handleLanguagechange)),ZX(this,this.constructor.defaultState),this.children_=[],this.childIndex_={},this.childNameIndex_={},this.setTimeoutIds_=new Set,this.setIntervalIds_=new Set,this.rafIds_=new Set,this.namedRafs_=new Map,this.clearingTimersOnDispose_=!1,n.initChildren!==!1&&this.initChildren(),this.ready(i),n.reportTouchActivity!==!1&&this.enableTouchActivity()}on(e,n){}off(e,n){}one(e,n){}any(e,n){}trigger(e,n){}dispose(e={}){if(!this.isDisposed_){if(this.readyQueue_&&(this.readyQueue_.length=0),this.trigger({type:"dispose",bubbles:!1}),this.isDisposed_=!0,this.children_)for(let n=this.children_.length-1;n>=0;n--)this.children_[n].dispose&&this.children_[n].dispose();this.children_=null,this.childIndex_=null,this.childNameIndex_=null,this.parentComponent_=null,this.el_&&(this.el_.parentNode&&(e.restoreEl?this.el_.parentNode.replaceChild(e.restoreEl,this.el_):this.el_.parentNode.removeChild(this.el_)),this.el_=null),this.player_=null}}isDisposed(){return Boolean(this.isDisposed_)}player(){return this.player_}options(e){return e?(this.options_=ii(this.options_,e),this.options_):this.options_}el(){return this.el_}createEl(e,n,i){return rn(e,n,i)}localize(e,n,i=e){const r=this.player_.language&&this.player_.language(),s=this.player_.languages&&this.player_.languages(),a=s&&s[r],o=r&&r.split("-")[0],l=s&&s[o];let u=i;return a&&a[e]?u=a[e]:l&&l[e]&&(u=l[e]),n&&(u=u.replace(/\{(\d+)\}/g,function(c,f){const h=n[f-1];let p=h;return typeof h>"u"&&(p=c),p})),u}handleLanguagechange(){}contentEl(){return this.contentEl_||this.el_}id(){return this.id_}name(){return this.name_}children(){return this.children_}getChildById(e){return this.childIndex_[e]}getChild(e){if(!!e)return this.childNameIndex_[e]}getDescendant(...e){e=e.reduce((i,r)=>i.concat(r),[]);let n=this;for(let i=0;i<e.length;i++)if(n=n.getChild(e[i]),!n||!n.getChild)return;return n}setIcon(e,n=this.el()){if(!this.player_.options_.experimentalSvgIcons)return;const i="http://www.w3.org/2000/svg",r=rn("span",{className:"vjs-icon-placeholder vjs-svg-icon"},{"aria-hidden":"true"}),s=ct.createElementNS(i,"svg");s.setAttributeNS(null,"viewBox","0 0 512 512");const a=ct.createElementNS(i,"use");return s.appendChild(a),a.setAttributeNS(null,"href",`#vjs-icon-${e}`),r.appendChild(s),this.iconIsSet_?n.replaceChild(r,n.querySelector(".vjs-icon-placeholder")):n.appendChild(r),this.iconIsSet_=!0,r}addChild(e,n={},i=this.children_.length){let r,s;if(typeof e=="string"){s=Li(e);const a=n.componentClass||s;n.name=s;const o=je.getComponent(a);if(!o)throw new Error(`Component ${a} does not exist`);if(typeof o!="function")return null;r=new o(this.player_||this,n)}else r=e;if(r.parentComponent_&&r.parentComponent_.removeChild(r),this.children_.splice(i,0,r),r.parentComponent_=this,typeof r.id=="function"&&(this.childIndex_[r.id()]=r),s=s||r.name&&Li(r.name()),s&&(this.childNameIndex_[s]=r,this.childNameIndex_[ry(s)]=r),typeof r.el=="function"&&r.el()){let a=null;this.children_[i+1]&&(this.children_[i+1].el_?a=this.children_[i+1].el_:Ug(this.children_[i+1])&&(a=this.children_[i+1])),this.contentEl().insertBefore(r.el(),a)}return r}removeChild(e){if(typeof e=="string"&&(e=this.getChild(e)),!e||!this.children_)return;let n=!1;for(let r=this.children_.length-1;r>=0;r--)if(this.children_[r]===e){n=!0,this.children_.splice(r,1);break}if(!n)return;e.parentComponent_=null,this.childIndex_[e.id()]=null,this.childNameIndex_[Li(e.name())]=null,this.childNameIndex_[ry(e.name())]=null;const i=e.el();i&&i.parentNode===this.contentEl()&&this.contentEl().removeChild(e.el())}initChildren(){const e=this.options_.children;if(e){const n=this.options_,i=a=>{const o=a.name;let l=a.opts;if(n[o]!==void 0&&(l=n[o]),l===!1)return;l===!0&&(l={}),l.playerOptions=this.options_.playerOptions;const u=this.addChild(o,l);u&&(this[o]=u)};let r;const s=je.getComponent("Tech");Array.isArray(e)?r=e:r=Object.keys(e),r.concat(Object.keys(this.options_).filter(function(a){return!r.some(function(o){return typeof o=="str
100ing"?a===o:a===o.name})})).map(a=>{let o,l;return typeof a=="string"?(o=a,l=e[o]||this.options_[o]||{}):(o=a.name,l=a),{name:o,opts:l}}).filter(a=>{const o=je.getComponent(a.opts.componentClass||Li(a.name));return o&&!s.isTech(o)}).forEach(i)}}buildCSSClass(){return""}ready(e,n=!1){if(!!e){if(!this.isReady_){this.readyQueue_=this.readyQueue_||[],this.readyQueue_.push(e);return}n?e.call(this):this.setTimeout(e,1)}}triggerReady(){this.isReady_=!0,this.setTimeout(function(){const e=this.readyQueue_;this.readyQueue_=[],e&&e.length>0&&e.forEach(function(n){n.call(this)},this),this.trigger("ready")},1)}$(e,n){return _d(e,n||this.contentEl())}$$(e,n){return HX(e,n||this.contentEl())}hasClass(e){return iy(this.el_,e)}addClass(...e){Vh(this.el_,...e)}removeClass(...e){Aw(this.el_,...e)}toggleClass(e,n){IX(this.el_,e,n)}show(){this.removeClass("vjs-hidden")}hide(){this.addClass("vjs-hidden")}lockShowing(){this.addClass("vjs-lock-showing")}unlockShowing(){this.removeClass("vjs-lock-showing")}getAttribute(e){return FX(this.el_,e)}setAttribute(e,n){pg(this.el_,e,n)}removeAttribute(e){Mw(this.el_,e)}width(e,n){return this.dimension("width",e,n)}height(e,n){return this.dimension("height",e,n)}dimensions(e,n){this.width(e,!0),this.height(n)}dimension(e,n,i){if(n!==void 0){(n===null||n!==n)&&(n=0),(""+n).indexOf("%")!==-1||(""+n).indexOf("px")!==-1?this.el_.style[e]=n:n==="auto"?this.el_.style[e]="":this.el_.style[e]=n+"px",i||this.trigger("componentresize");return}if(!this.el_)return 0;const r=this.el_.style[e],s=r.indexOf("px");return parseInt(s!==-1?r.slice(0,s):this.el_["offset"+Li(e)],10)}currentDimension(e){let n=0;if(e!=="width"&&e!=="height")throw new Error("currentDimension only accepts width or height value");if(n=gg(this.el_,e),n=parseFloat(n),n===0||isNaN(n)){const i=`offset${Li(e)}`;n=this.el_[i]}return n}currentDimensions(){return{width:this.currentDimension("width"),height:this.currentDimension("height")}}currentWidth(){return this.currentDimension("width")}currentHeight(){return this.currentDimension("height")}focus(){this.el_.focus()}blur(){this.el_.blur()}handleKeyDown(e){this.player_&&(Kt.isEventKey(e,"Tab")||e.stopPropagation(),this.player_.handleKeyDown(e))}handleKeyPress(e){this.handleKeyDown(e)}emitTapEvents(){let e=0,n=null;const i=10,r=200;let s;this.on("touchstart",function(o){o.touches.length===1&&(n={pageX:o.touches[0].pageX,pageY:o.touches[0].pageY},e=ue.performance.now(),s=!0)}),this.on("touchmove",function(o){if(o.touches.length>1)s=!1;else if(n){const l=o.touches[0].pageX-n.pageX,u=o.touches[0].pageY-n.pageY;Math.sqrt(l*l+u*u)>i&&(s=!1)}});const a=function(){s=!1};this.on("touchleave",a),this.on("touchcancel",a),this.on("touchend",function(o){n=null,s===!0&&ue.performance.now()-e<r&&(o.preventDefault(),this.trigger("tap"))})}enableTouchActivity(){if(!this.player()||!this.player().reportUserActivity)return;const e=ai(this.player(),this.player().reportUserActivity);let n;this.on("touchstart",function(){e(),this.clearInterval(n),n=this.setInterval(e,250)});const i=function(r){e(),this.clearInterval(n)};this.on("touchmove",e),this.on("touchend",i),this.on("touchcancel",i)}setTimeout(e,n){var i;return e=ai(this,e),this.clearTimersOnDispose_(),i=ue.setTimeout(()=>{this.setTimeoutIds_.has(i)&&this.setTimeoutIds_.delete(i),e()},n),this.setTimeoutIds_.add(i),i}clearTimeout(e){return this.setTimeoutIds_.has(e)&&(this.setTimeoutIds_.delete(e),ue.clearTimeout(e)),e}setInterval(e,n){e=ai(this,e),this.clearTimersOnDispose_();const i=ue.setInterval(e,n);return this.setIntervalIds_.add(i),i}clearInterval(e){return this.setIntervalIds_.has(e)&&(this.setIntervalIds_.delete(e),ue.clearInterval(e)),e}requestAnimationFrame(e){this.clearTimersOnDispose_();var n;return e=ai(this,e),n=ue.requestAnimationFrame(()=>{this.rafIds_.has(n)&&this.rafIds_.delete(n),e()}),this.rafIds_.add(n),n}requestNamedAnimationFrame(e,n){if(this.namedRafs_.has(e))return;this.clearTimersOnDispose_(),n=ai(this,n);const i=this.requestAnimationFrame(()=>{n(),this.namedRafs_.has(e)&&this.namedRafs_.delete(e)});return this.namedRafs_.set(e,i),e}cancelNamedAnimationFrame(e){!this.namedRafs_.has(e)||(this.cancelAnimationFrame(this.namedRafs_.get(e)),this.namedRafs_.delete(e))}cancelAnimationFrame(e){return this.rafIds_.has(e)&&(this.rafIds_.delete(e),ue.cancelAnimationFrame(e)),e}clearTimersOnDispose_(){this.clearingTimersOnDispose_||(this.clearingTimersOnDispose_=!0,this.one("dispose",()=>{[["namedRafs_","cancelNamedAnimationFrame"],["rafIds_","cancelAnimationFrame"],["setTimeoutIds_","clearTimeout"],["setIntervalIds_","clearInterval"]].forEac
100h(([e,n])=>{this[e].forEach((i,r)=>this[n](r))}),this.clearingTimersOnDispose_=!1}))}static registerComponent(e,n){if(typeof e!="string"||!e)throw new Error(`Illegal component name, "${e}"; must be a non-empty string.`);const i=je.getComponent("Tech"),r=i&&i.isTech(n),s=je===n||je.prototype.isPrototypeOf(n.prototype);if(r||!s){let o;throw r?o="techs must be registered using Tech.registerTech()":o="must be a Component subclass",new Error(`Illegal component, "${e}"; ${o}.`)}e=Li(e),je.components_||(je.components_={});const a=je.getComponent("Player");if(e==="Player"&&a&&a.players){const o=a.players,l=Object.keys(o);if(o&&l.length>0&&l.map(u=>o[u]).every(Boolean))throw new Error("Can not register Player component after player has been created.")}return je.components_[e]=n,je.components_[ry(e)]=n,n}static getComponent(e){if(!(!e||!je.components_))return je.components_[e]}}je.registerComponent("Component",je);function e1e(t,e,n){if(typeof e!="number"||e<0||e>n)throw new Error(`Failed to execute '${t}' on 'TimeRanges': The index provided (${e}) is non-numeric or out of bounds (0-${n}).`)}function yB(t,e,n,i){return e1e(t,i,n.length-1),n[i][e]}function zM(t){let e;return t===void 0||t.length===0?e={length:0,start(){throw new Error("This TimeRanges object is empty")},end(){throw new Error("This TimeRanges object is empty")}}:e={length:t.length,start:yB.bind(null,"start",0,t),end:yB.bind(null,"end",1,t)},ue.Symbol&&ue.Symbol.iterator&&(e[ue.Symbol.iterator]=()=>(t||[]).values()),e}function fl(t,e){return Array.isArray(t)?zM(t):t===void 0||e===void 0?zM():zM([[t,e]])}const JX=function(t,e){t=t<0?0:t;let n=Math.floor(t%60),i=Math.floor(t/60%60),r=Math.floor(t/3600);const s=Math.floor(e/60%60),a=Math.floor(e/3600);return(isNaN(t)||t===1/0)&&(r=i=n="-"),r=r>0||a>0?r+":":"",i=((r||s>=10)&&i<10?"0"+i:i)+":",n=n<10?"0"+n:n,r+i+n};let gL=JX;function eY(t){gL=t}function tY(){gL=JX}function dp(t,e=t){return gL(t,e)}var t1e=Object.freeze({__proto__:null,createTimeRanges:fl,createTimeRange:fl,setFormatTime:eY,resetFormatTime:tY,formatTime:dp});function nY(t,e){let n=0,i,r;if(!e)return 0;(!t||!t.length)&&(t=fl(0,0));for(let s=0;s<t.length;s++)i=t.start(s),r=t.end(s),r>e&&(r=e),n+=r-i;return n/e}function Ri(t){if(t instanceof Ri)return t;typeof t=="number"?this.code=t:typeof t=="string"?this.message=t:du(t)&&(typeof t.code=="number"&&(this.code=t.code),Object.assign(this,t)),this.message||(this.message=Ri.defaultMessages[this.code]||"")}Ri.prototype.code=0;Ri.prototype.message="";Ri.prototype.status=null;Ri.prototype.metadata=null;Ri.errorTypes=["MEDIA_ERR_CUSTOM","MEDIA_ERR_ABORTED","MEDIA_ERR_NETWORK","MEDIA_ERR_DECODE","MEDIA_ERR_SRC_NOT_SUPPORTED","MEDIA_ERR_ENCRYPTED"];Ri.defaultMessages={1:"You aborted the media playback",2:"A network error caused the media download to fail part-way.",3:"The media playback was aborted due to a corruption problem or because the media used features your browser did not support.",4:"The media could not be loaded, either because the server or network failed or because the format is not supported.",5:"The media is encrypted and we do not have the keys to decrypt it."};Ri.MEDIA_ERR_CUSTOM=0;Ri.prototype.MEDIA_ERR_CUSTOM=0;Ri.MEDIA_ERR_ABORTED=1;Ri.prototype.MEDIA_ERR_ABORTED=1;Ri.MEDIA_ERR_NETWORK=2;Ri.prototype.MEDIA_ERR_NETWORK=2;Ri.MEDIA_ERR_DECODE=3;Ri.prototype.MEDIA_ERR_DECODE=3;Ri.MEDIA_ERR_SRC_NOT_SUPPORTED=4;Ri.prototype.MEDIA_ERR_SRC_NOT_SUPPORTED=4;Ri.MEDIA_ERR_ENCRYPTED=5;Ri.prototype.MEDIA_ERR_ENCRYPTED=5;function sy(t){return t!=null&&typeof t.then=="function"}function ql(t){sy(t)&&t.then(null,e=>{})}const AO=function(t){return["kind","label","language","id","inBandMetadataTrackDispatchType","mode","src"].reduce((n,i,r)=>(t[i]&&(n[i]=t[i]),n),{cues:t.cues&&Array.prototype.map.call(t.cues,function(n){return{startTime:n.startTime,endTime:n.endTime,text:n.text,id:n.id}})})},n1e=function(t){const e=t.$$("track"),n=Array.prototype.map.call(e,r=>r.track);return Array.prototype.map.call(e,function(r){const s=AO(r.track);return r.src&&(s.src=r.src),s}).concat(Array.prototype.filter.call(t.textTracks(),function(r){return n.indexOf(r)===-1}).map(AO))},i1e=function(t,e){return t.forEach(function(n){const i=e.addRemoteTextTrack(n).track;
vendor: 4,476 bytes, line 100
100!n.src&&n.cues&&n.cues.forEach(r=>i.addCue(r))}),e.textTracks()};var bB={textTracksToJson:n1e,jsonToTextTracks:i1e,trackToJson_:AO};const HM="vjs-modal-dialog";class zg extends je{constructor(e,n){super(e,n),this.handleKeyDown_=i=>this.handleKeyDown(i),this.close_=i=>this.close(i),this.opened_=this.hasBeenOpened_=this.hasBeenFilled_=!1,this.closeable(!this.options_.uncloseable),this.content(this.options_.content),this.contentEl_=rn("div",{className:`${HM}-content`},{role:"document"}),this.descEl_=rn("p",{className:`${HM}-description vjs-control-text`,id:this.el().getAttribute("aria-describedby")}),Cd(this.descEl_,this.description()),this.el_.appendChild(this.descEl_),this.el_.appendChild(this.contentEl_)}createEl(){return super.createEl("div",{className:this.buildCSSClass(),tabIndex:-1},{"aria-describedby":`${this.id()}_description`,"aria-hidden":"true","aria-label":this.label(),role:"dialog","aria-live":"polite"})}dispose(){this.contentEl_=null,this.descEl_=null,this.previouslyActiveEl_=null,super.dispose()}buildCSSClass(){return`${HM} vjs-hidden ${super.buildCSSClass()}`}label(){return this.localize(this.options_.label||"Modal Window")}description(){let e=this.options_.description||this.localize("This is a modal window.");return this.closeable()&&(e+=" "+this.localize("This modal can be closed by pressing the Escape key or activating the close button.")),e}open(){if(this.opened_){this.options_.fillAlways&&this.fill();return}const e=this.player();this.trigger("beforemodalopen"),this.opened_=!0,(this.options_.fillAlways||!this.hasBeenOpened_&&!this.hasBeenFilled_)&&this.fill(),this.wasPlaying_=!e.paused(),this.options_.pauseOnOpen&&this.wasPlaying_&&e.pause(),this.on("keydown",this.handleKeyDown_),this.hadControls_=e.controls(),e.controls(!1),this.show(),this.conditionalFocus_(),this.el().setAttribute("aria-hidden","false"),this.trigger("modalopen"),this.hasBeenOpened_=!0}opened(e){return typeof e=="boolean"&&this[e?"open":"close"](),this.opened_}close(){if(!this.opened_)return;const e=this.player();this.trigger("beforemodalclose"),this.opened_=!1,this.wasPlaying_&&this.options_.pauseOnOpen&&e.play(),this.off("keydown",this.handleKeyDown_),this.hadControls_&&e.controls(!0),this.hide(),this.el().setAttribute("aria-hidden","true"),this.trigger("modalclose"),this.conditionalBlur_(),this.options_.temporary&&this.dispose()}closeable(e){if(typeof e=="boolean"){const n=this.closeable_=!!e;let i=this.getChild("closeButton");if(n&&!i){const r=this.contentEl_;this.contentEl_=this.el_,i=this.addChild("closeButton",{controlText:"Close Modal Dialog"}),this.contentEl_=r,this.on(i,"close",this.close_)}!n&&i&&(this.off(i,"close",this.close_),this.removeChild(i),i.dispose())}return this.closeable_}fill(){this.fillWith(this.content())}fillWith(e){const n=this.contentEl(),i=n.parentNode,r=n.nextSibling;this.trigger("beforemodalfill"),this.hasBeenFilled_=!0,i.removeChild(n),this.empty(),zX(n,e),this.trigger("modalfill"),r?i.insertBefore(n,r):i.appendChild(n);const s=this.getChild("closeButton");s&&i.appendChild(s.el_)}empty(){this.trigger("beforemodalempty"),Pw(this.contentEl()),this.trigger("modalempty")}content(e){return typeof e<"u"&&(this.content_=e),this.content_}conditionalFocus_(){const e=ct.activeElement,n=this.player_.el_;this.previouslyActiveEl_=null,(n.contains(e)||n===e)&&(this.previouslyActiveEl_=e,this.focus())}conditionalBlur_(){this.previouslyActiveEl_&&(this.previouslyActiveEl_.focus(),this.previouslyActiveEl_=null)}handleKeyDown(e){if(e.stopPropagation(),Kt.isEventKey(e,"Escape")&&this.closeable()){e.preventDefault(),this.close();return}if(!Kt.isEventKey(e,"Tab"))return;const n=this.focusableEls_(),i=this.el_.querySelector(":focus");let r;for(let s=0;s<n.length;s++)if(i===n[s]){r=s;break}ct.activeElement===this.el_&&(r=0),e.shiftKey&&r===0?(n[n.length-1].focus(),e.preventDefault()):!e.shiftKey&&r===n.length-1&&(n[0].focus(),e.preventDefault())}focusableEls_(){const e=this.el_.querySelectorAll("*");return Array.prototype.filter.call(e,n=>(n instanceof ue.HTMLAnchorElement||n instanceof ue.HTMLAreaElement)&&n.hasAttribute("href")||(n instanceof ue.HTMLInputElement||n instanceof ue.HTMLSelectElement||n instanceof ue.HTMLTextAreaElement||n instanceof ue.HTMLButtonElement)&&!n.hasAttribute("disabled")||n instanceof ue.HTMLIFrameElement||n instanceof ue.HTMLObjectElement||n instanceof ue.HTMLEmbedElement||n.hasAttribute("tabindex")&&n.getAttribute("tabindex")!==-1||n.hasAttribute("contenteditable"))}}
100zg.prototype.options_={pauseOnOpen:!0,temporary:!0};je.registerComponent("ModalDialog",zg);class _g extends ko{constructor(e=[]){super(),this.tracks_=[],Object.defineProperty(this,"length",{get(){return this.tracks_.length}});for(let n=0;n<e.length;n++)this.addTrack(e[n])}addTrack(e){const n=this.tracks_.length;""+n in this||Object.defineProperty(this,n,{get(){return this.tracks_[n]}}),this.tracks_.indexOf(e)===-1&&(this.tracks_.push(e),this.trigger({track:e,type:"addtrack",target:this})),e.labelchange_=()=>{this.trigger({track:e,type:"labelchange",target:this})},Tc(e)&&e.addEventListener("labelchange",e.labelchange_)}removeTrack(e){let n;for(let i=0,r=this.length;i<r;i++)if(this[i]===e){n=this[i],n.off&&n.off(),this.tracks_.splice(i,1);break}!n||this.trigger({track:n,type:"removetrack",target:this})}getTrackById(e){let n=null;for(let i=0,r=this.length;i<r;i++){const s=this[i];if(s.id===e){n=s;break}}return n}}_g.prototype.allowedEvents_={change:"change",addtrack:"addtrack",removetrack:"removetrack",labelchange:"labelchange"};for(const t in _g.prototype.allowedEvents_)_g.prototype["on"+t]=null;const VM=function(t,e){for(let n=0;n<t.length;n++)!Object.keys(t[n]).length||e.id===t[n].id||(t[n].enabled=!1)};class r1e extends _g{constructor(e=[]){for(let n=e.length-1;n>=0;n--)if(e[n].enabled){VM(e,e[n]);break}super(e),this.changing_=!1}addTrack(e){e.enabled&&VM(this,e),super.addTrack(e),e.addEventListener&&(e.enabledChange_=()=>{this.changing_||(this.changing_=!0,VM(this,e),this.changing_=!1,this.trigger("change"))},e.addEventListener("enabledchange",e.enabledChange_))}removeTrack(e){super.removeTrack(e),e.removeEventListener&&e.enabledChange_&&(e.removeEventListener("enabledchange",e.enabledChange_),e.enabledChange_=null)}}const WM=function(t,e){for(let n=0;n<t.length;n++)!Object.keys(t[n]).length||e.id===t[n].id||(t[n].selected=!1)};class s1e extends _g{constructor(e=[]){for(let n=e.length-1;n>=0;n--)if(e[n].selected){WM(e,e[n]);break}super(e),this.changing_=!1,Object.defineProperty(this,"selectedIndex",{get(){for(let n=0;n<this.length;n++)if(this[n].selected)return n;return-1},set(){}})}addTrack(e){e.selected&&WM(this,e),super.addTrack(e),e.addEventListener&&(e.selectedChange_=()=>{this.changing_||(this.changing_=!0,WM(this,e),this.changing_=!1,this.trigger("change"))},e.addEventListener("selectedchange",e.selectedChange_))}removeTrack(e){super.removeTrack(e),e.removeEventListener&&e.selectedChange_&&(e.removeEventListener("selectedchange",e.selectedChange_),e.selectedChange_=null)}}class iY extends _g{addTrack(e){super.addTrack(e),this.queueChange_||(this.queueChange_=()=>this.queueTrigger("change")),this.triggerSelectedlanguagechange||(this.triggerSelectedlanguagechange_=()=>this.trigger("selectedlanguagechange")),e.addEventListener("modechange",this.queueChange_),["metadata","chapters"].indexOf(e.kind)===-1&&e.addEventListener("modechange",this.triggerSelectedlanguagechange_)}removeTrack(e){super.removeTrack(e),e.removeEventListener&&(this.queueChange_&&e.removeEventListener("modechange",this.queueChange_),this.selectedlanguagechange_&&e.removeEventListener("modechange",this.triggerSelectedlanguagechange_))}}class a1e{constructor(e=[]){this.trackElements_=[],Object.defineProperty(this,"length",{get(){return this.trackElements_.length}});for(let n=0,i=e.length;n<i;n++)this.addTrackElement_(e[n])}addTrackElement_(e){const n=this.trackElements_.length;""+n in this||Object.defineProperty(this,n,{get(){return this.trackElements_[n]}}),this.trackElements_.indexOf(e)===-1&&this.trackElements_.push(e)}getTrackElementByTrack_(e){let n;for(let i=0,r=this.trackElements_.length;i<r;i++)if(e===this.trackElements_[i].track){n=this.trackElements_[i];break}return n}removeTrackElement_(e){for(let n=0,i=this.trackElements_.length;n<i;n++)if(e===this.trackElements_[n]){this.trackElements_[n].track&&typeof this.trackElements_[n].track.off=="function"&&this.trackElements_[n].track.off(),typeof this.trackElements_[n].off=="function"&&this.trackElements_[n].off(),this.trackElements_.splice(n,1);break}}}class H2{constructor(e){H2.prototype.setCues_.call(this,e),Object.defineProperty(this,"length",{get(){return this.length_}})}setCues_(e){const n=this.length||0;let i=0;const r=e.length;this.cues_=e,this.length_=e.length;const s=function(a){""+a in this||Object.defineProperty(this,""+a,{get(){return this.cues_[a]}})};if(n<r)for(i=n;i<r;i++)s.call(this,i)}getCueById(e){let n=null;for(let i=0,r=this.length;i<r;i++){const s=this[i];if(s.id===e){n=s;break}}return n}}const o1e={alternative:"alternative",captions:"captions",main:"main",sign:"sign",subtitles:"subtitles",commentary:"commentary"},l1e={alternative:"alternative",descriptions:"descriptions",main:"main","main-desc":"main-desc",translation:"translation",commentary:"commentary"},u1e={subtitles:"subtitles",captions:"captions",descriptions:"descriptions",chapters:"chapters",metadata:"metadata"},xB={disabled:"disabled",hidden:"hidden",showing:"showing"};class _L extends ko{constructor(e={}){super();const n={id:e.id||"vjs_track_"+hl(),kind:e.kind||"",language:e.language||""};let i=e.label||"";for(const r in n)Object.defineProperty(this,r,{get(){return n[r]},set(){}});Object.defineProperty(this,"label",{get(){return i},set(r){r!==i&&(i=r,this.trigger("labelchange"))}})}}const vL=function(t){const e=["protocol","hostname","port","pathname","search","hash","host"],n=ct.createElement("a");n.href=t;const i={};for(let r=0;r<e.length;r++)i[e[r]]=n[e[r]];return i.protocol==="http:"&&(i.host=i.host.replace(/:80$/,"")),i.protocol==="https:"&&(i.host=i.host.replace(/:443$/,"")),i.protocol||(i.protocol=ue.location.protocol),i.host||(i.host=ue.location.host),i},rY=function(t){if(!t.match(/^https?:\/\//)){const e=ct.createElement("a");e.href=t,t=e.href}return t},yL=function(t){if(typeof t=="string"){const n=/^(\/?)([\s\S]*?)((?:\.{1,2}|[^\/]+?)(\.([^\.\/\?]+)))(?:[\/]*|[\?].*)$/.exec(t);if(n)return n.pop().toLowerCase()}return""},Iw=function(t,e=ue.location){const n=vL(t);return(n.protocol===":"?e.protocol:n.protocol)+n.host!==e.protocol+e.host};var c1e=Object.freeze({__proto__:null,parseUrl:vL,getAbsoluteURL:rY,getFileExtension:yL,isCrossOrigin:Iw});
100const SB=function(t,e){const n=new ue.WebVTT.Parser(ue,ue.vttjs,ue.WebVTT.StringDecoder()),i=[];n.oncue=function(r){e.addCue(r)},n.onparsingerror=function(r){i.push(r)},n.onflush=function(){e.trigger({type:"loadeddata",target:e})},n.parse(t),i.length>0&&(ue.console&&ue.console.groupCollapsed&&ue.console.groupCollapsed(`Text Track parsing errors for ${e.src}`),i.forEach(r=>Sn.error(r)),ue.console&&ue.console.groupEnd&&ue.console.groupEnd()),n.flush()},TB=function(t,e){const n={uri:t},i=Iw(t);i&&(n.cors=i);const r=e.tech_.crossOrigin()==="use-credentials";r&&(n.withCredentials=r),hw.exports(n,ai(this,function(s,a,o){if(s)return Sn.error(s,a);e.loaded_=!0,typeof ue.WebVTT!="function"?e.tech_&&e.tech_.any(["vttjsloaded","vttjserror"],l=>{if(l.type==="vttjserror"){Sn.error(`vttjs failed to load, stopping trying to process ${e.src}`);return}return SB(o,e)}):SB(o,e)}))};class Vb extends _L{constructor(e={}){if(!e.tech)throw new Error("A tech was not provided.");const n=ii(e,{kind:u1e[e.kind]||"subtitles",language:e.language||e.srclang||""});let i=xB[n.mode]||"disabled";const r=n.default;(n.kind==="metadata"||n.kind==="chapters")&&(i="hidden"),super(n),this.tech_=n.tech,this.cues_=[],this.activeCues_=[],this.preload_=this.tech_.preloadTextTracks!==!1;const s=new H2(this.cues_),a=new H2(this.activeCues_);let o=!1;this.timeupdateHandler=ai(this,function(u={}){if(!this.tech_.isDisposed()){if(!this.tech_.isReady_){u.type!=="timeupdate"&&(this.rvf_=this.tech_.requestVideoFrameCallback(this.timeupdateHandler));return}this.activeCues=this.activeCues,o&&(this.trigger("cuechange"),o=!1),u.type!=="timeupdate"&&(this.rvf_=this.tech_.requestVideoFrameCallback(this.timeupdateHandler))}});const l=()=>{this.stopTracking()};this.tech_.one("dispose",l),i!=="disabled"&&this.startTracking(),Object.defineProperties(this,{default:{get(){return r},set(){}},mode:{get(){return i},set(u){!xB[u]||i!==u&&(i=u,!this.preload_&&i!=="disabled"&&this.cues.length===0&&TB(this.src,this),this.stopTracking(),i!=="disabled"&&this.startTracking(),this.trigger("modechange"))}},cues:{get(){return this.loaded_?s:null},set(){}},activeCues:{get(){if(!this.loaded_)return null;if(this.cues.length===0)return a;const u=this.tech_.currentTime(),c=[];for(let f=0,h=this.cues.length;f<h;f++){const p=this.cues[f];p.startTime<=u&&p.endTime>=u&&c.push(p)}if(o=!1,c.length!==this.activeCues_.length)o=!0;else for(let f=0;f<c.length;f++)this.activeCues_.indexOf(c[f])===-1&&(o=!0);return this.activeCues_=c,a.setCues_(this.activeCues_),a},set(){}}}),n.src?(this.src=n.src,this.preload_||(this.loaded_=!0),(this.preload_||n.kind!=="subtitles"&&n.kind!=="captions")&&TB(this.src,this)):this.loaded_=!0}startTracking(){this.rvf_=this.tech_.requestVideoFrameCallback(this.timeupdateHandler),this.tech_.on("timeupdate",this.timeupdateHandler)}stopTracking(){this.rvf_&&(this.tech_.cancelVideoFrameCallback(this.rvf_),this.rvf_=void 0),this.tech_.off("timeupdate",this.timeupdateHandler)}addCue(e){let n=e;if(!("getCueAsHTML"in n)){n=new ue.vttjs.VTTCue(e.startTime,e.endTime,e.text);for(const r in e)r in n||(n[r]=e[r]);n.id=e.id,n.originalCue_=e}const i=this.tech_.textTracks();for(let r=0;r<i.length;r++)i[r]!==this&&i[r].removeCue(n);this.cues_.push(n),this.cues.setCues_(this.cues_)}removeCue(e){let n=this.cues_.length;for(;n--;){const i=this.cues_[n];if(i===e||i.originalCue_&&i.originalCue_===e){this.cues_.splice(n,1),this.cues.setCues_(this.cues_);break}}}}Vb.prototype.allowedEvents_={cuechange:"cuechange"};class sY extends _L{constructor(e={}){const n=ii(e,{kind:l1e[e.kind]||""});super(n);let i=!1;Object.defineProperty(this,"enabled",{get(){return i},set(r){typeof r!="boolean"||r===i||(i=r,this.trigger("enabledchange"))}}),n.enabled&&(this.enabled=n.enabled),this.loaded_=!0}}class aY extends _L{constructor(e={}){const n=ii(e,{kind:o1e[e.kind]||""});super(n);let i=!1;Object.defineProperty(this,"selected",{get(){return i},set(r){typeof r!="boolean"||r===i||(i=r,this.trigger("selectedchange"))}}),n.selected&&(this.selected=n.selected)}}class Ic extends ko{constructor(e={}){super();let n;const i=new Vb(e);this.kind=i.kind,this.src=i.src,this.srclang=i.language,this.label=i.label,this.default=i.default,Object.defineProperties(this,{readyState:{get(){return n}},track:{get(){return i}}}),n=Ic.NONE,i.addEventListener("loadeddata",()=>{n=Ic.LOADED,this.trigger({type:"load",target:this})})}}Ic.prototype.allowedEvents_={load:"load"};Ic.NONE=0;Ic.LOADING=1;Ic.LOADED=2;Ic.ERROR=3;
vendor: 15,720 bytes, lines 100-139
100const Po={audio:{ListClass:r1e,TrackClass:sY,capitalName:"Audio"},video:{ListClass:s1e,TrackClass:aY,capitalName:"Video"},text:{ListClass:iY,TrackClass:Vb,capitalName:"Text"}};Object.keys(Po).forEach(function(t){Po[t].getterName=`${t}Tracks`,Po[t].privateName=`${t}Tracks_`});const vg={remoteText:{ListClass:iY,TrackClass:Vb,capitalName:"RemoteText",getterName:"remoteTextTracks",privateName:"remoteTextTracks_"},remoteTextEl:{ListClass:a1e,TrackClass:Ic,capitalName:"RemoteTextTrackEls",getterName:"remoteTextTrackEls",privateName:"remoteTextTrackEls_"}},Ts=Object.assign({},Po,vg);vg.names=Object.keys(vg);Po.names=Object.keys(Po);Ts.names=[].concat(vg.names).concat(Po.names);function f1e(t,e,n,i,r={}){const s=t.textTracks();r.kind=e,n&&(r.label=n),i&&(r.language=i),r.tech=t;const a=new Ts.text.TrackClass(r);return s.addTrack(a),a}class Qt extends je{constructor(e={},n=function(){}){e.reportTouchActivity=!1,super(null,e,n),this.onDurationChange_=i=>this.onDurationChange(i),this.trackProgress_=i=>this.trackProgress(i),this.trackCurrentTime_=i=>this.trackCurrentTime(i),this.stopTrackingCurrentTime_=i=>this.stopTrackingCurrentTime(i),this.disposeSourceHandler_=i=>this.disposeSourceHandler(i),this.queuedHanders_=new Set,this.hasStarted_=!1,this.on("playing",function(){this.hasStarted_=!0}),this.on("loadstart",function(){this.hasStarted_=!1}),Ts.names.forEach(i=>{const r=Ts[i];e&&e[r.getterName]&&(this[r.privateName]=e[r.getterName])}),this.featuresProgressEvents||this.manualProgressOn(),this.featuresTimeupdateEvents||this.manualTimeUpdatesOn(),["Text","Audio","Video"].forEach(i=>{e[`native${i}Tracks`]===!1&&(this[`featuresNative${i}Tracks`]=!1)}),e.nativeCaptions===!1||e.nativeTextTracks===!1?this.featuresNativeTextTracks=!1:(e.nativeCaptions===!0||e.nativeTextTracks===!0)&&(this.featuresNativeTextTracks=!0),this.featuresNativeTextTracks||this.emulateTextTracks(),this.preloadTextTracks=e.preloadTextTracks!==!1,this.autoRemoteTextTracks_=new Ts.text.ListClass,this.initTrackListeners(),e.nativeControlsForTouch||this.emitTapEvents(),this.constructor&&(this.name_=this.constructor.name||"Unknown Tech")}triggerSourceset(e){this.isReady_||this.one("ready",()=>this.setTimeout(()=>this.triggerSourceset(e),1)),this.trigger({src:e,type:"sourceset"})}manualProgressOn(){this.on("durationchange",this.onDurationChange_),this.manualProgress=!0,this.one("ready",this.trackProgress_)}manualProgressOff(){this.manualProgress=!1,this.stopTrackingProgress(),this.off("durationchange",this.onDurationChange_)}trackProgress(e){this.stopTrackingProgress(),this.progressInterval=this.setInterval(ai(this,function(){const n=this.bufferedPercent();this.bufferedPercent_!==n&&this.trigger("progress"),this.bufferedPercent_=n,n===1&&this.stopTrackingProgress()}),500)}onDurationChange(e){this.duration_=this.duration()}buffered(){return fl(0,0)}bufferedPercent(){return nY(this.buffered(),this.duration_)}stopTrackingProgress(){this.clearInterval(this.progressInterval)}manualTimeUpdatesOn(){this.manualTimeUpdates=!0,this.on("play",this.trackCurrentTime_),this.on("pause",this.stopTrackingCurrentTime_)}manualTimeUpdatesOff(){this.manualTimeUpdates=!1,this.stopTrackingCurrentTime(),this.off("play",this.trackCurrentTime_),this.off("pause",this.stopTrackingCurrentTime_)}trackCurrentTime(){this.currentTimeInterval&&this.stopTrackingCurrentTime(),this.currentTimeInterval=this.setInterval(function(){this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},250)}stopTrackingCurrentTime(){this.clearInterval(this.currentTimeInterval),this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})}dispose(){this.clearTracks(Po.names),this.manualProgress&&this.manualProgressOff(),this.manualTimeUpdates&&this.manualTimeUpdatesOff(),super.dispose()}clearTracks(e){e=[].concat(e),e.forEach(n=>{const i=this[`${n}Tracks`]()||[];let r=i.length;for(;r--;){const s=i[r];n==="text"&&this.removeRemoteTextTrack(s),i.removeTrack(s)}})}cleanupAutoTextTracks(){const e=this.autoRemoteTextTracks_||[];let n=e.length;for(;n--;){const i=e[n];this.removeRemoteTextTrack(i)}}reset(){}crossOrigin(){}setCrossOrigin(){}error(e){return e!==void 0&&(this.error_=new Ri(e),this.trigger("error")),this.error_}played(){return this.hasStarted_?fl(0,0):fl()}play(){}setScrubbing(e){}scrubbing(){}setCurrentTime(e){this.manualTimeUpdates&&this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})}initTrackListeners(){Po.names.forEach(e=>{const n=Po[e],i=()=>{this.trigger(`${e}trackchange`)},r=this[n.getterName]();r.addEventListener("removetrack",i),r.addEventListener("addtrack",i),this.on("dispose",()=>{r.removeEventListener("removetrack",i),r.removeEventListener("addtrack",i)})})}addWebVttScript_(){if(!ue.WebVTT)if(ct.body.contains(this.el())){if(!this.options_["vtt.js"]&&hg(cO.exports)&&Object.keys(cO.exports).length>0){this.trigger("vttjsloaded");return}const e=ct.createElement("script");e.src=this.options_["vtt.js"]||"https://vjs.zencdn.net/vttjs/0.14.1/vtt.min.js",e.onload=()=>{this.trigger("vttjsloaded")},e.onerror=()=>{this.trigger("vttjserror")},this.on("dispose",()=>{e.onload=null,e.onerror=null}),ue.WebVTT=!0,this.el().parentNode.appendChild(e)}else this.ready(this.addWebVttScript_)}emulateTextTracks(){const e=this.textTracks(),n=this.remoteTextTracks(),i=o=>e.addTrack(o.track),r=o=>e.removeTrack(o.track);n.on("addtrack",i),n.on("removetrack",r),this.addWebVttScript_();const s=()=>this.trigger("texttrackchange"),a=()=>{s();for(let o=0;o<e.length;o++){const l=e[o];l.removeEventListener("cuechange",s),l.mode==="showing"&&l.addEventListener("cuechange",s)}};a(),e.addEventListener("change",a),e.addEventListener("addtrack",a),e.addEventListener("removetrack",a),this.on("dispose",function(){n.off("addtrack",i),n.off("removetrack",r),e.removeEventListener("change",a),e.removeEventListener("addtrack",a),e.removeEventListener("removetrack",a);for(let o=0;o<e.length;o++)e[o].removeEventListener("cuechange",s)})}addTextTrack(e,n,i){if(!e)throw new Error("TextTrack kind is required but was not provided");return f1e(this,e,n,i)}createRemoteTextTrack(e){const n=ii(e,{tech:this});return new vg.remoteTextEl.TrackClass(n)}addRemoteTextTrack(e={},n){const i=this.createRemoteTextTrack(e);return typeof n!="boolean"&&(n=!1),this.remoteTextTrackEls().addTrackElement_(i),this.remoteTextTracks().addTrack(i.track),n===!1&&this.ready(()=>this.autoRemoteTextTracks_.addTrack(i.track)),i}removeRemoteTextTrack(e){const n=this.remoteTextTrackEls().getTrackElementByTrack_(e);this.remoteTextTrackEls().removeTrackElement_(n),this.remoteTextTracks().removeTrack(e),this.autoRemoteTextTracks_.removeTrack(e)}getVideoPlaybackQuality(){return{}}requestPictureInPicture(){return Promise.reject()}disablePictureInPicture(){return!0}setDisablePictureInPicture(){}requestVideoFrameCallback(e){const n=hl();return!this.isReady_||this.paused()?(this.queuedHanders_.add(n),this.one("playing",()=>{this.queuedHanders_.has(n)&&(this.queuedHanders_.delete(n),e())})):this.requestNamedAnimationFrame(n,e),n}cancelVideoFrameCallback(e){this.queuedHanders_.has(e)?this.queuedHanders_.delete(e):this.cancelNamedAnimationFrame(e)}setPoster(){}playsinline(){}setPlaysinline(){}overrideNativeAudioTracks(e){}overrideNativeVideoTracks(e){}canPlayType(e){return""}static canPlayType(e){return""}static canPlaySource(e,n){return Qt.canPlayType(e.type)}static isTech(e){return e.prototype instanceof Qt||e instanceof Qt||e===Qt}static registerTech(e,n){if(Qt.techs_||(Qt.techs_={}),!Qt.isTech(n))throw new Error(`Tech ${e} must be a Tech`);if(!Qt.canPlayType)throw new Error("Techs must have a static canPlayType method on them");if(!Qt.canPlaySource)throw new Error("Techs must have a static canPlaySource method on them");return e=Li(e),Qt.techs_[e]=n,Qt.techs_[ry(e)]=n,e!=="Tech"&&Qt.defaultTechOrder_.push(e),n}static getTech(e){if(!!e){if(Qt.techs_&&Qt.techs_[e])return Qt.techs_[e];if(e=Li(e),ue&&ue.videojs&&ue.videojs[e])return Sn.warn(`The ${e} tech was added to the videojs object when it should be registered using videojs.registerTech(name, tech)`),ue.videojs[e]}}}Ts.names.forEach(function(t){const e=Ts[t];Qt.prototype[e.getterName]=function(){return this[e.privateName]=this[e.privateName]||new e.ListClass,this[e.privateName]}});Qt.prototype.featuresVolumeControl=!0;Qt.prototype.featuresMuteControl=!0;Qt.prototype.featuresFullscreenResize=!1;Qt.prototype.featuresPlaybackRate=!1;Qt.prototype.featuresProgressEvents=!1;Qt.prototype.featuresSourceset=!1;Qt.prototype.featuresTimeupdateEvents=!1;Qt.prototype.featuresNativeTextTracks=!1;Qt.prototype.featuresVideoFrameCallback=!1;Qt.withSourceHandlers=function(t){t.registerSourceHandler=function(n,i){let r=t.sourceHandlers;r||(r=t.sourceHandlers=[]),i===void 0&&(i=r.length),r.splice(i,0,n)},t.canPlayType=function(n){const i=t.sourceHandlers||[];let r;for(let s=0;s<i.length;s++)if(r=i[s].canPlayType(n),r)return r;return""},t.selectSourceHandler=function(n,i){const r=t.sourceHandlers||[];let s;for(let a=0;a<r.length;a++)if(s=r[a].canHandleSource(n,i),s)return r[a];return null},t.canPlaySource=function(n,i){const r=t.selectSourceHandler(n,i);return r?r.canHandleSource(n,i):""},["seekable","seeking","duration"].forEach(function(n){const i=this[n];typeof i=="function"&&(this[n]=function(){return this.sourceHandler_&&this.sourceHandler_[n]?this.sourceHandler_[n].apply(this.sourceHandler_,arguments):i.apply(this,arguments)})},t.prototype),t.prototype.setSource=function(n){let i=t.selectSourceHandler(n,this.options_);i||(t.nativeSourceHandler?i=t.nativeSourceHandler:Sn.error("No source handler found for the current source.")),this.disposeSourceHandler(),this.off("dispose",this.disposeSourceHandler_),i!==t.nativeSourceHandler&&(this.currentSource_=n),this.sourceHandler_=i.handleSource(n,this,this.options_),this.one("dispose",this.disposeSourceHandler_)},t.prototype.disposeSourceHandler=function(){this.currentSource_&&(this.clearTracks(["audio","video"]),this.currentSource_=null),this.cleanupAutoTextTracks(),this.sourceHandler_&&(this.sourceHandler_.dispose&&this.sourceHandler_.dispose(),this.sourceHandler_=null)}};je.registerComponent("Tech",Qt);Qt.registerTech("Tech",Qt);Qt.defaultTechOrder_=[];const Wh={},MO={},V2={};function d1e(t,e){Wh[t]=Wh[t]||[],Wh[t].push(e)}function h1e(t,e,n){t.setTimeout(()=>hh(e,Wh[e.type],n,t),1)}function p1e(t,e){t.forEach(n=>n.setTech&&n.setTech(e))}function m1e(t,e,n){return t.reduceRight(bL(n),e[n]())}function g1e(t,e,n,i){return e[n](t.reduce(bL(n),i))}function EB(t,e,n,i=null){const r="call"+Li(n),s=t.reduce(bL(r),i),a=s===V2,o=a?null:e[n](s);return y1e(t,n,o,a),o}const _1e={buffered:1,currentTime:1,duration:1,muted:1,played:1,paused:1,seekable:1,volume:1,ended:1},v1e={setCurrentTime:1,setMuted:1,setVolume:1},wB={play:1,pause:1};function bL(t){return(e,n)=>e===V2?V2:n[t]?n[t](e):e}function y1e(t,e,n,i){for(let r=t.length-1;r>=0;r--){const s=t[r];s[e]&&s[e](i,n)}}function b1e(t){MO[t.id()]=null}function x1e(t,e){const n=MO[t.id()];let i=null;if(n==null)return i=e(t),MO[t.id()]=[[e,i]],i;for(let r=0;r<n.length;r++){const[s,a]=n[r];s===e&&(i=a)}return i===null&&(i=e(t),n.push([e,i])),i}function hh(t={},e=[],n,i,r=[],s=!1){const[a,...o]=e;if(typeof a=="string")hh(t,Wh[a],n,i,r,s);else if(a){const l=x1e(i,a);if(!l.setSource)return r.push(l),hh(t,o,n,i,r,s);l.setSource(Object.assign({},t),function(u,c){if(u)return hh(t,o,n,i,r,s);r.push(l),hh(c,t.type===c.type?o:Wh[c.type],n,i,r,s)})}else o.length?hh(t,o,n,i,r,s):s?n(t,r):hh(t,Wh["*"],n,i,r,!0)}const S1e={opus:"video/ogg",ogv:"video/ogg",mp4:"video/mp4",mov:"video/mp4",m4v:"video/mp4",mkv:"video/x-matroska",m4a:"audio/mp4",mp3:"audio/mpeg",aac:"audio/aac",caf:"audio/x-caf",flac:"audio/flac",oga:"audio/ogg",wav:"audio/wav",m3u8:"application/x-mpegURL",mpd:"application/dash+xml",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",png:"image/png",svg:"image/svg+xml",webp:"image/webp"},W2=function(t=""){const e=yL(t);return S1e[e.toLowerCase()]||""},T1e=(t,e)=>{if(!e)return"";if(t.cache_.source.src===e&&t.cache_.source.type)return t.cache_.source.type;const n=t.cache_.sources.filter(r=>r.src===e);if(n.length)return n[0].type;const i=t.$$("source");for(let r=0;r<i.length;r++){const s=i[r];if(s.type&&s.src&&s.src===e)return s.type}return W2(e)},oY=function(t){if(Array.isArray(t)){let e=[];t.forEach(function(n){n=oY(n),Array.isArray(n)?e=e.concat(n):du(n)&&e.push(n)}),t=e}else typeof t=="string"&&t.trim()?t=[CB({src:t})]:du(t)&&typeof t.src=="string"&&t.src&&t.src.trim()?t=[CB(t)]:t=[];return t};function CB(t){if(!t.type){const e=W2(t.src);e&&(t.type=e)}return t}var E1e=`<svg xmlns="http://www.w3.org/2000/svg">
101  <defs>
102    <symbol viewBox="0 0 48 48" id="vjs-icon-play">
103      <path d="M16 10v28l22-14z"></path>
104    </symbol>
105    <symbol viewBox="0 0 48 48" id="vjs-icon-pause">
106      <path d="M12 38h8V10h-8v28zm16-28v28h8V10h-8z"></path>
107    </symbol>
108    <symbol viewBox="0 0 48 48" id="vjs-icon-audio">
109      <path d="M24 2C14.06 2 6 10.06 6 20v14c0 3.31 2.69 6 6 6h6V24h-8v-4c0-7.73 6.27-14 14-14s14 6.27 14 14v4h-8v16h6c3.31 0 6-2.69 6-6V20c0-9.94-8.06-18-18-18z"></path>
110    </symbol>
111    <symbol viewBox="0 0 48 48" id="vjs-icon-captions">
112      <path d="M38 8H10c-2.21 0-4 1.79-4 4v24c0 2.21 1.79 4 4 4h28c2.21 0 4-1.79 4-4V12c0-2.21-1.79-4-4-4zM22 22h-3v-1h-4v6h4v-1h3v2a2 2 0 0 1-2 2h-6a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v2zm14 0h-3v-1h-4v6h4v-1h3v2a2 2 0 0 1-2 2h-6a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v2z"></path>
113    </symbol>
114    <symbol viewBox="0 0 48 48" id="vjs-icon-subtitles">
115      <path d="M40 8H8c-2.21 0-4 1.79-4 4v24c0 2.21 1.79 4 4 4h32c2.21 0 4-1.79 4-4V12c0-2.21-1.79-4-4-4zM8 24h8v4H8v-4zm20 12H8v-4h20v4zm12 0h-8v-4h8v4zm0-8H20v-4h20v4z"></path>
116    </symbol>
117    <symbol viewBox="0 0 48 48" id="vjs-icon-fullscreen-enter">
118      <path d="M14 28h-4v10h10v-4h-6v-6zm-4-8h4v-6h6v-4H10v10zm24 14h-6v4h10V28h-4v6zm-6-24v4h6v6h4V10H28z"></path>
119    </symbol>
120    <symbol viewBox="0 0 48 48" id="vjs-icon-fullscreen-exit">
121      <path d="M10 32h6v6h4V28H10v4zm6-16h-6v4h10V10h-4v6zm12 22h4v-6h6v-4H28v10zm4-22v-6h-4v10h10v-4h-6z"></path>
122    </symbol>
123    <symbol viewBox="0 0 48 48" id="vjs-icon-play-circle">
124      <path d="M20 33l12-9-12-9v18zm4-29C12.95 4 4 12.95 4 24s8.95 20 20 20 20-8.95 20-20S35.05 4 24 4zm0 36c-8.82 0-16-7.18-16-16S15.18 8 24 8s16 7.18 16 16-7.18 16-16 16z"></path>
125    </symbol>
126    <symbol viewBox="0 0 48 48" id="vjs-icon-volume-mute">
127      <path d="M33 24c0-3.53-2.04-6.58-5-8.05v4.42l4.91 4.91c.06-.42.09-.85.09-1.28zm5 0c0 1.88-.41 3.65-1.08 5.28l3.03 3.03C41.25 29.82 42 27 42 24c0-8.56-5.99-15.72-14-17.54v4.13c5.78 1.72 10 7.07 10 13.41zM8.55 6L6 8.55 15.45 18H6v12h8l10 10V26.55l8.51 8.51c-1.34 1.03-2.85 1.86-4.51 2.36v4.13a17.94 17.94 0 0 0 7.37-3.62L39.45 42 42 39.45l-18-18L8.55 6zM24 8l-4.18 4.18L24 16.36V8z"></path>
128    </symbol>
129    <symbol viewBox="0 0 48 48" id="vjs-icon-volume-low">
130      <path d="M14 18v12h8l10 10V8L22 18h-8z"></path>
131    </symbol>
132    <symbol viewBox="0 0 48 48" id="vjs-icon-volume-medium">
133      <path d="M37 24c0-3.53-2.04-6.58-5-8.05v16.11c2.96-1.48 5-4.53 5-8.06zm-27-6v12h8l10 10V8L18 18h-8z"></path>
134    </symbol>
135    <symbol viewBox="0 0 48 48" id="vjs-icon-volume-high">
136      <path d="M6 18v12h8l10 10V8L14 18H6zm27 6c0-3.53-2.04-6.58-5-8.05v16.11c2.96-1.48 5-4.53 5-8.06zM28 6.46v4.13c5.78 1.72 10 7.07 10 13.41s-4.22 11.69-10 13.41v4.13c8.01-1.82 14-8.97 14-17.54S36.01 8.28 28 6.46z"></path>
137    </symbol>
138    <symbol viewBox="0 0 48 48" id="vjs-icon-spinner">
139      <path d="M18.8 21l9.53-16.51C26.94 4.18 25.49 4 24 4c-4.8 0-9.19 1.69-12.64 4.51l7.33 12.69.11-.2zm24.28-3c-1.84-5.85-6.3-10.52-11.99-12.68L23.77 18h19.31zm.52 2H28.62l.58 1 9.53 16.5C41.99 33.94 44 29.21 44 24c0-1.37-.
13914-2.71-.4-4zm-26.53 4l-7.8-13.5C6.01 14.06 4 18.79 4 24c0 1.37.14 2.71.4 4h14.98l-2.31-4zM4.92 30c1.84 5.85 6.3 10.52 11.99 12.68L24.23 30H4.92zm22.54 0l-7.8 13.51c1.4.31 2.85.49 4.34.49 4.8 0 9.19-1.69 12.64-4.51L29.31 26.8 27.46 30z"></path>
140    </symbol>
141    <symbol viewBox="0 0 24 24" id="vjs-icon-hd">
142      <path d="M19 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-8 12H9.5v-2h-2v2H6V9h1.5v2.5h2V9H11v6zm2-6h4c.55 0 1 .45 1 1v4c0 .55-.45 1-1 1h-4V9zm1.5 4.5h2v-3h-2v3z"></path>
143    </symbol>
144    <symbol viewBox="0 0 48 48" id="vjs-icon-chapters">
145      <path d="M6 26h4v-4H6v4zm0 8h4v-4H6v4zm0-16h4v-4H6v4zm8 8h28v-4H14v4zm0 8h28v-4H14v4zm0-20v4h28v-4H14z"></path>
146    </symbol>
147    <symbol viewBox="0 0 40 40" id="vjs-icon-downloading">
148      <path d="M18.208 36.875q-3.208-.292-5.979-1.729-2.771-1.438-4.812-3.729-2.042-2.292-3.188-5.229-1.146-2.938-1.146-6.23 0-6.583 4.334-11.416 4.333-4.834 10.833-5.5v3.166q-5.167.75-8.583 4.646Q6.25 14.75 6.25 19.958q0 5.209 3.396 9.104 3.396 3.896 8.562 4.646zM20 28.417L11.542 20l2.083-2.083 4.917 4.916v-11.25h2.916v11.25l4.875-4.916L28.417 20zm1.792 8.458v-3.167q1.833-.25 3.541-.958 1.709-.708 3.167-1.875l2.333 2.292q-1.958 1.583-4.25 2.541-2.291.959-4.791 1.167zm6.791-27.792q-1.541-1.125-3.25-1.854-1.708-.729-3.541-1.021V3.042q2.5.25 4.77 1.208 2.271.958 4.271 2.5zm4.584 21.584l-2.25-2.25q1.166-1.5 1.854-3.209.687-1.708.937-3.541h3.209q-.292 2.5-1.229 4.791-.938 2.292-2.521 4.209zm.541-12.417q-.291-1.833-.958-3.562-.667-1.73-1.833-3.188l2.375-2.208q1.541 1.916 2.458 4.208.917 2.292 1.167 4.75z"></path>
149    </symbol>
150    <symbol viewBox="0 0 48 48" id="vjs-icon-file-download">
151      <path d="M10.8 40.55q-1.35 0-2.375-1T7.4 37.15v-7.7h3.4v7.7h26.35v-7.7h3.4v7.7q0 1.4-1 2.4t-2.4 1zM24 32.1L13.9 22.05l2.45-2.45 5.95 5.95V7.15h3.4v18.4l5.95-5.95 2.45 2.45z"></path>
152    </symbol>
153    <symbol viewBox="0 0 48 48" id="vjs-icon-file-download-done">
154      <path d="M9.8 40.5v-3.45h28.4v3.45zm9.2-9.05L7.4 19.85l2.45-2.35L19 26.65l19.2-19.2 2.4 2.4z"></path>
155    </symbol>
156    <symbol viewBox="0 0 48 48" id="vjs-icon-file-download-off">
157      <path d="M4.9 4.75L43.25 43.1 41 45.3l-4.75-4.75q-.05.05-.075.025-.025-.025-.075-.025H10.8q-1.35 0-2.375-1T7.4 37.15v-7.7h3.4v7.7h22.05l-7-7-1.85 1.8L13.9 21.9l1.85-1.85L2.7 7zm26.75 14.7l2.45 2.45-3.75 3.8-2.45-2.5zM25.7 7.15V21.1l-3.4-3.45V7.15z"></path>
158    </symbol>
159    <symbol viewBox="0 0 48 48" id="vjs-icon-share">
160      <path d="M36 32.17c-1.52 0-2.89.59-3.93 1.54L17.82 25.4c.11-.45.18-.92.18-1.4s-.07-.95-.18-1.4l14.1-8.23c1.07 1 2.5 1.62 4.08 1.62 3.31 0 6-2.69 6-6s-2.69-6-6-6-6 2.69-6 6c0 .48.07.95.18 1.4l-14.1 8.23c-1.07-1-2.5-1.62-4.08-1.62-3.31 0-6 2.69-6 6s2.69 6 6 6c1.58 0 3.01-.62 4.08-1.62l14.25 8.31c-.1.42-.16.86-.16 1.31A5.83 5.83 0 1 0 36 32.17z"></path>
161    </symbol>
162    <symbol viewBox="0 0 48 48" id="vjs-icon-cog">
163      <path d="M38.86 25.95c.08-.64.14-1.29.14-1.95s-.06-1.31-.14-1.95l4.23-3.31c.38-.3.49-.84.24-1.28l-4-6.93c-.25-.43-.77-.61-1.22-.43l-4.98 2.01c-1.03-.79-2.16-1.46-3.38-1.97L29 4.84c-.09-.47-.5-.84-1-.84h-8c-.5 0-.91.37-.99.84l-.75 5.3a14.8 14.8 0 0 0-3.38 1.97L9.9 10.1a1 1 0 0 0-1.22.43l-4 6.93c-.25.43-.14.97.24 1.28l4.22 3.31C9.06 22.69 9 23.34 9 24s.06 1.31.14 1.95l-4.22 3.31c-.38.3-.49.84-.24 1.28l4 6.93c.25.43.77.61 1.22.43l4.98-2.01c1.03.79 2.16 1.46 3.38 1.97l.75 5.3c.08.47.49.84.99.84h8c.5 0 .91-.37.99-.84l.75-5.3a14.8 14.8 0 0 0 3.38-1.97l4.98 2.01a1 1 0 0 0 1.22-.43l4-6.93c.25-.43.14-.97-.24-1.28l-4.22-3.31zM24 31c-3.87 0-7-3.13-7-7s3.13-7 7-7 7 3.13 7 7-3.13 7-7 7z"></path>
164    </symbol>
165    <symbol viewBox="0 0 48 48" id="vjs-icon-square">
166      <path d="M36 8H12c-2.21 0-4 1.79-4 4v24c0 2.21 1.79 4 4 4h24c2.21 0 4-1.79 4-4V12c0-2.21-1.79-4-4-4zm0 28H12V12h24v24z"></path>
167    </symbol>
168    <symbol viewBox="0 0 48 48" id="vjs-icon-circle">
169      <circle cx="24" cy="24" r="20"></circle>
170    </symbol>
171    <symbol viewBox="0 0 48 48" id="vjs-icon-circle-outline">
172      <path d="M24 4C12.95 4 4 12.95 4 24s8.95 20 20 20 20-8.95 20-20S35.05 4 24 4zm0 36c-8.82 0-16-7.18-16-16S15.18 8 24 8s16 7.18 16 16-7.18 16-16 16z"></path>
173    </symbol>
174    <symbol viewBox="0 0 48 48" id="vjs-icon-circle-inner-circle">
175      <path d="M24 4C12.97 4 4 12.97 4 24s8.97 20 20 20 20-8.97 20-20S35.03 4 24 4zm0 36c-8.82 0-16-7.18-16-16S15.18 8 24 8s16 7.18 16 16-7.18 16-16 16zm6-16c0 3.31-2.69 6-6 6s-6-2.69-6-6 2.69-6 6-6 6 2.69 6 6z"></path>
176    </symbol>
177    <symbol viewBox="0 0 48 48" id="vjs-icon-cancel">
178      <path d="M24 4C12.95 4 4 12.95 4 24s8.95 20 20 20 20-8.95 20-20S35.05 4 24 4zm10 27.17L31.17 34 24 26.83 16.83 34 14 31.17 21.17 24 14 16.83 16.83 14 24 21.17 31.17 14 34 16.83 26.83 24 34 31.17z"></path>
179    </symbol>
180    <symbol viewBox="0 0 48 48" id="vjs-icon-replay">
181      <path d="M24 10V2L14 12l10 10v-8c6.63 0 12 5.37 12 12s-5.37 12-12 12-12-5.37-12-12H8c0 8.84 7.16 16 16 16s16-
1817.16 16-16-7.16-16-16-16z"></path>
182    </symbol>
183    <symbol viewBox="0 0 48 48" id="vjs-icon-repeat">
184      <path d="M14 14h20v6l8-8-8-8v6H10v12h4v-8zm20 20H14v-6l-8 8 8 8v-6h24V26h-4v8z"></path>
185    </symbol>
186    <symbol viewBox="0 96 48 48" id="vjs-icon-replay-5">
187      <path d="M17.689 98l-8.697 8.696 8.697 8.697 2.486-2.485-4.32-4.319h1.302c4.93 0 9.071 1.722 12.424 5.165 3.352 3.443 5.029 7.638 5.029 12.584h3.55c0-2.958-.553-5.73-1.658-8.313-1.104-2.583-2.622-4.841-4.555-6.774-1.932-1.932-4.19-3.45-6.773-4.555-2.584-1.104-5.355-1.657-8.313-1.657H15.5l4.615-4.615zm-8.08 21.659v13.861h11.357v5.008H9.609V143h12.7c.834 0 1.55-.298 2.146-.894.596-.597.895-1.31.895-2.145v-7.781c0-.835-.299-1.55-.895-2.147a2.929 2.929 0 0 0-2.147-.894h-8.227v-5.096H25.35v-4.384z"></path>
188    </symbol>
189    <symbol viewBox="0 96 48 48" id="vjs-icon-replay-10">
190      <path d="M42.315 125.63c0-4.997-1.694-9.235-5.08-12.713-3.388-3.479-7.571-5.218-12.552-5.218h-1.315l4.363 4.363-2.51 2.51-8.787-8.786L25.221 97l2.45 2.45-4.662 4.663h1.375c2.988 0 5.788.557 8.397 1.673 2.61 1.116 4.892 2.65 6.844 4.602 1.953 1.953 3.487 4.234 4.602 6.844 1.116 2.61 1.674 5.41 1.674 8.398zM8.183 142v-19.657H3.176V117.8h9.643V142zm13.63 0c-1.156 0-2.127-.393-2.912-1.178-.778-.778-1.168-1.746-1.168-2.902v-16.04c0-1.156.393-2.127 1.178-2.912.779-.779 1.746-1.168 2.902-1.168h7.696c1.156 0 2.126.392 2.911 1.177.779.78 1.168 1.747 1.168 2.903v16.04c0 1.156-.392 2.127-1.177 2.912-.779.779-1.746 1.168-2.902 1.168zm.556-4.636h6.583v-15.02H22.37z"></path>
191    </symbol>
192    <symbol viewBox="0 96 48 48" id="vjs-icon-replay-30">
193      <path d="M26.047 97l-8.733 8.732 8.733 8.733 2.496-2.494-4.336-4.338h1.307c4.95 0 9.108 1.73 12.474 5.187 3.367 3.458 5.051 7.668 5.051 12.635h3.565c0-2.97-.556-5.751-1.665-8.346-1.109-2.594-2.633-4.862-4.574-6.802-1.94-1.941-4.208-3.466-6.803-4.575-2.594-1.109-5.375-1.664-8.345-1.664H23.85l4.634-4.634zM2.555 117.531v4.688h10.297v5.25H5.873v4.687h6.979v5.156H2.555V142H13.36c1.061 0 1.95-.395 2.668-1.186.718-.79 1.076-1.772 1.076-2.94v-16.218c0-1.168-.358-2.149-1.076-2.94-.717-.79-1.607-1.185-2.668-1.185zm22.482.14c-1.149 0-2.11.39-2.885 1.165-.78.78-1.172 1.744-1.172 2.893v15.943c0 1.149.388 2.11 1.163 2.885.78.78 1.745 1.172 2.894 1.172h7.649c1.148 0 2.11-.388 2.884-1.163.78-.78 1.17-1.745 1.17-2.894v-15.943c0-1.15-.386-2.111-1.16-2.885-.78-.78-1.746-1.172-2.894-1.172zm.553 4.518h6.545v14.93H25.59z"></path>
194    </symbol>
195    <symbol viewBox="0 96 48 48" id="vjs-icon-forward-5">
196      <path d="M29.508 97l-2.431 2.43 4.625 4.625h-1.364c-2.965 0-5.742.554-8.332 1.66-2.589 1.107-4.851 2.629-6.788 4.566-1.937 1.937-3.458 4.2-4.565 6.788-1.107 2.59-1.66 5.367-1.66 8.331h3.557c0-4.957 1.68-9.16 5.04-12.611 3.36-3.45 7.51-5.177 12.451-5.177h1.304l-4.326 4.33 2.49 2.49 8.715-8.716zm-9.783 21.61v13.89h11.382v5.018H19.725V142h12.727a2.93 2.93 0 0 0 2.15-.896 2.93 2.93 0 0 0 .896-2.15v-7.798c0-.837-.299-1.554-.896-2.152a2.93 2.93 0 0 0-2.15-.896h-8.245V123h11.29v-4.392z"></path>
197    </symbol>
198    <symbol viewBox="0 96 48 48" id="vjs-icon-forward-10">
199      <path d="M23.119 97l-2.386 2.383 4.538 4.538h-1.339c-2.908 0-5.633.543-8.173 1.63-2.54 1.085-4.76 2.577-6.66 4.478-1.9 1.9-3.392 4.12-4.478 6.66-1.085 2.54-1.629 5.264-1.629 8.172h3.49c0-4.863 1.648-8.986 4.944-12.372 3.297-3.385 7.368-5.078 12.216-5.078h1.279l-4.245 4.247 2.443 2.442 8.55-8.55zm-9.52 21.45v4.42h4.871V142h4.513v-23.55zm18.136 0c-1.125 0-2.066.377-2.824 1.135-.764.764-1.148 1.709-1.148 2.834v15.612c0 1.124.38 2.066 1.139 2.824.764.764 1.708 1.145 2.833 1.145h7.489c1.125 0 2.066-.378 2.824-1.136.764-.764 1.145-1.709 1.145-2.833v-15.612c0-1.125-.378-2.067-1.136-2.825-.764-.764-1.708-1.145-2.833-1.145zm.54 4.42h6.408v14.617h-6.407z"></path>
200    </symbol>
201    <symbol viewBox="0 96 48 48" id="vjs-icon-forward-30">
202      <path d="M25.549 97l-2.437 2.434 4.634 4.635H26.38c-2.97 0-5.753.555-8.347 1.664-2.594 1.109-4.861 2.633-6.802 4.574-1.94 1.94-3.465 4.207-4.574 6.802-1.109 2.594-1.664 5.377-1.664 8.347h3.565c0-4.967 1.683-9.178 5.05-12.636 3.366-3.458 7.525-5.187 12.475-5.187h1.307l-4.335 4.338 2.495 2.494 8.732-8.732zm-11.553 20.53v4.689h10.297v5.249h-6.978v4.688h6.978v5.156H13.996V142h10.808c1.06 0 1.948-.395 2.666-1.186.718-.79 1.077-1.771 1.077-2.94v-16.217c0-1.169-.36-2.15-1.077-2.94-.718-.79-1.605-1.186-2.666-1.186zm21.174.168c-1.149 0-2.11.389-2.884 1.163-.78.78-1.172 1.745-1.172 2.894v15.942c0 1.15.388 2.11 1.162 2.885.78.78 1.745 1.17 2.894 1.17h7.649c1.149 0 2.11-.386 2.885-1.16.78-.78 1.17-1.746 1.17-2.895v-15.942c0-1.15-.387-2.11-1.161-2.885-.78-.78-1.745-1.172-2.894-1.172zm.552 4.516h6.542v14.931h-6.542z"></path>
203    </symbol>
204    <symbol viewBox="0 0 512 512" id="vjs-icon-audio-description">
205      <g fill-rule="evenodd"><path d="M227.29 381.351V162.993c50.38-1.017 89.108-3.028 117.631 17.126 27.374 19.342 48.734 56.965 44.89 105.325-4.067 51.155-41.335 94.139-89.776 98.475-24.085 2.155-71.972 0-71.972 0s-.84-1.352-.773-2.568m48.755-54.804c31.43 1.26 53.208-16.633 56.495-45.386 4.403-38.51-21.188-63.552-58.041-60.796v103.612c-.036 1.466.575 2.22 1.546 2.57"></path><path d="M383.78 381.328c13.336 3.71 17.387-11.06 23.215-21.408 12.722-22.571 22.294-51.594 22.445-84.774.221-47.594-18.343-82.517-35.6-106.182h-8.51c-.587 3.874 2.226 7.315 3.865 10.276 13.166 23.762 25.367 56.553 25.54 94.194.2 43.176-14.162 79.278-30.955 107.894"></path><path d="M425.154 381.328c13.336 3.71 17.384-11.061 23.215-21.408 12.721-22.571 22.291-51.594 22.445-84.774.221-47.594-18.343-82.517-35.6-106.182h-8.511c-.586 3.874 2.226 7.315 3.866 10.276 13.166 23.762 25.367 56.553 25.54 94.194.2 43.176-14.162 79.278-30.955 107.894"></path><path d="M466.26 381.328c13.337 3.71 17.385-11.061 23.216-21.408 12.722-22.571 22.292-51.594 22.445-84.774.221-47.594-18.343-82.517-35.6-106.182h-8.51c-.587 3.874 2.225 7.315 3.865 10.276 13.166 23.762 25.367 56.553 25.54 94.194.2 43.176-14.162 79.278-30.955 107.894M4.477 383.005H72.58l18.573-28.484 64.169-.135s.065 19.413.065 28.62h48.756V160.307h-58.816c-5.653 9.537-140.85 222.697-140.85 222.697zm152.667-145.282v71.158l-40.453-.27 40.453-70.888z"></path></g>
206    </symbol>
207    <symbol viewBox="0 0 48 48" id="vjs-icon-next-item">
208      <path d="M12 36l17-12-17-12v24zm20-24v24h4V12h-4z"></path>
209    </symbol>
210    <symbol viewBox="0 0 48 48" id="vjs-icon-previous-item">
211      <path d="M12 12h4v24h-4zm7 12l17 12V12z"></path>
212    </symbol>
213    <symbol viewBox="0 0 48 48" id="vjs-icon-shuffle">
214      <path d="M21.17 18.34L10.83 8 8 10.83l10.34 10.34 2.83-2.83zM29 8l4.09 4.09L8 37.17 10.83 40l25.09-25.09L40 19V8H29zm.66 18.83l-2.83 2.83 6.26 6.26L29 40h11V29l-4.09 4.09-6.25-6.26z"></path>
215    </symbol>
216    <symbol viewBox="0 0 48 48" id="vjs-icon-cast">
217      <path d="M42 6H6c-2.21 0-4 1.79-4 4v6h4v-6h36v28H28v4h14c2.21 0 4-1.79 4-4V10c0-2.21-1.79-4-4-4zM2 36v6h6c0-3.31-2.69-6-6-6zm0-8v4c5.52 0 10 4.48 10 10h4c0-7.73-6.27-14-14-14zm0-8v4c9.94 0 18 8.06 18 18h4c0-12.15-9.85-22-22-22z"></path>
218    </symbol>
219    <symbol viewBox="0 0 48 48" id="vjs-icon-picture-in-picture-enter">
220      <path d="M38 22H22v11.99h16V22zm8 16V9.96C46 7.76 44.2 6 42 6H6C3.8 6 2 7.76 2 9.96V38c0 2.2 1.8 4 4 4h36c2.2 0 4-1.8 4-4zm-4 .04H6V9.94h36v28.1z"></path>
221    </symbol>
222    <symbol viewBox="0 0 22 18" id="vjs-icon-picture-in-picture-exit">
223      <path d="M18 4H4v10h14V4zm4 12V1.98C22 .88 21.1 0 20 0H2C.9 0 0 .88 0 1.98V16c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2zm-2 .02H2V1.97h18v14.05z"></path>
224      <path fill="none" d="M-1-3h24v24H-1z"></path>
225    </symbol>
226    <symbol viewBox="0 0 1792 1792" id="vjs-icon-facebook">
227      <path d="M1343 12v264h-157q-86 0-116 36t-30 108v189h293l-39 296h-254v759H734V905H479V609h255V391q0-186 104-288.5T1115 0q147 0 228 12z"></path>
228    </symbol>
229    <symbol viewBox="0 0 1792 1792" id="vjs-icon-linkedin">
230      <path d="M477 625v991H147V625h330zm21-306q1 73-50.5 122T312 490h-2q-82 0-132-49t-50-122q0-74 51.5-122.5T314 148t133 48.5T498 319zm1166 729v568h-329v-530q0-105-40.5-164.5T1168 862q-63 0-105.5 34.5T999 982q-11 30-11 81v553H659q2-399 2-647t-1-296l-1-48h329v144h-2q20-32 41-56t56.5-52 87-43.5T1285 602q171 0 275 113.5t104 332.5z"></path>
231    </symbol>
232    <symbol viewBox="0 0 1792 1792" id="vjs-icon-twitter">
233      <path d="M1684 408q-67 98-162 167 1 14 1 42 0 130-38 259.5T1369.5 1125 1185 1335.5t-258 146-323 54.5q-271 0-496-145 35 4 78 4 225 0 401-138-105-2-188-64.5T285 1033q33 5 61 5 43 0 85-11-112-23-185.5-111.5T172 710v-4q68 38 146 41-66-44-105-115t-39-154q0-88 44-163 121 149 294.5 238.5T884 653q-8-38-8-74 0-134 94.5-228.5T1199 256q140 0 236 102 109-21 205-78-37 115-142 178 93-10 186-50z"></path>
234    </symbol>
235    <symbol viewBox="0 0 1792 1792" id="vjs-icon-tumblr">
236      <path d="M1328 1329l80 237q-23 35-111 66t-177 32q-104 2-190.5-26T787 1564t-95-106-55.5-120-16.5-118V676H452V461q72-26 129-69.5t91-90 58-102 34-99T779 12q1-5 4.5-8.5T791 0h244v424h333v252h-334v518q0 30 6.5 56t22.5 52.5 49.5 41.5 81.5 14q78-2 134-29z"></path>
237    </symbol>
238    <symbol viewBox="0 0 1792 1792" id="vjs-icon-pinterest">
239      <path d="M1664 896q0 209-103 385.5T1281.5 1561 896 1664q-111 0-218-32 59-93 78-164 9-34 54-211 20 39 73 67.5t114 28.5q121 0 216-68.5t147-188.5 52-270q0-114-59.5-214T1180 449t-255-63q-105 0-196 29t-154.5 77-109 110.5-67 129.5T377 866q0 104 40 183t117 111q30 12 38-20 2-7 8-31t8-30q6-23-11-43-51-61-51-151 0-151 104.5-259.5T904 517q151 0 235.5 82t84.5 213q0 170-68.5 289T980 1220q-61 0-98-43.5T859 1072q8-35 26.5-93.5t30-103T927 800q0-50-27-83t-77-33q-62 0-105 57t-43 142q0 73 25 122l-99 418q-17 70-13 177-206-91-333-281T128 896q0-209 103-385.5T510.5 231 896 128t385.5 103T1561 510.5 1664 896z"></path>
240    </symbol>
241  </defs>
242</svg>`;class w1e extends je{constructor(e,n,i){const r=ii({createEl:!1},n);if(super(e,r,i),!n.playerOptions.sources||n.playerOptions.sources.length===0)for(let s=0,a=n.playerOptions.techOrder;s<a.length;s++){const o=Li(a[s]);let l=Qt.getTech(o);if(o||(l=je.getComponent(o)),l&&l.isSupported()){e.loadTech_(o);break}}else e.src(n.playerOptions.sources)}}je.registerComponent("MediaLoader",w1e);class Lw extends je{constructor(e,n){super(e,n),this.options_.controlText&&this.controlText(this.options_.controlText),this.handleMouseOver_=i=>this.handleMouseOver(i),this.handleMouseOut_=i=>this.handleMouseOut(i),this.handleClick_=i=>this.handleClick(i),this.handleKeyDown_=i=>this.handleKeyDown(i),this.emitTapEvents(),this.enable()}createEl(e="div",n={},i={}){n=Object.assign({className:this.buildCSSClass(),tabIndex:0},n),e==="button"&&Sn.error(`Creating a ClickableComponent with an HTML element of ${e} is not supported; use a Button instead.`),i=Object.assign({role:"button"},i),this.tabIndex_=n.tabIndex;const r=rn(e,n,i);return this.player_.options_.experimentalSvgIcons||r.appendChild(rn("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),this.createControlTextEl(r),r}dispose(){this.controlTextEl_=null,super.dispose()}createControlTextEl(e){return this.controlTextEl_=rn("span",{className:"vjs-control-text"},{"aria-live":"polite"}),e&&e.appendChild(this.controlTextEl_),this.controlText(this.controlText_,e),this.controlTextEl_}controlText(e,n=this.el()){if(e===void 0)return this.controlText_||"Need Text";const i=this.localize(e);this.controlText_=e,Cd(this.controlTextEl_,i),!this.nonIconControl&&!this.player_.options_.noUITitleAttributes&&n.setAttribute("title",i)}buildCSSClass(){return`vjs-control vjs-button ${super.buildCSSClass()}`}enable(){this.enabled_||(this.enabled_=!0,this.removeClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","false"),typeof this.tabIndex_<"u"&&this.el_.setAttribute("tabIndex",this.tabIndex_),this.on(["tap","click"],this.handleClick_),this.on("keydown",this.handleKeyDown_))}disable(){this.enabled_=!1,this.addClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","true"),typeof this.tabIndex_<"u"&&this.el_.removeAttribute("tabIndex"),this.off("mouseover",this.handleMouseOver_),this.off("mouseout",this.handleMouseOut_),this.off(["tap","click"],this.handleClick_),this.off("keydown",this.handleKeyDown_)}handleLanguagechange(){this.controlText(this.controlText_)}handleClick(e){this.options_.clickHandler&&this.options_.clickHandler.call(this,arguments)}handleKeyDown(e){Kt.isEventKey(e,"Space")||Kt.isEventKey(e,"Enter")?(e.preventDefault(),e.stopPropagation(),this.trigger("click")):super.handleKeyDown(e)}}je.registerComponent("ClickableComponent",Lw);class DO extends Lw{constructor(e,n){super(e,n),this.update(),this.update_=i=>this.update(i),e.on("posterchange",this.update_)}dispose(){this.player().off("posterchange",this.update_),super.dispose()}createEl(){return rn("div",{className:"vjs-poster"})}crossOrigin(e){if(typeof e>"u")return this.$("img")?this.$("img").crossOrigin:this.player_.tech_&&this.player_.tech_.isReady_?this.player_.crossOrigin():this.player_.options_.crossOrigin||this.player_.options_.crossorigin||null;if(e!==null&&e!=="anonymous"&&e!=="use-credentials"){this.player_.log.warn(`crossOrigin must be null,  "anonymous" or "use-credentials", given "${e}"`);return}this.$("img")&&(this.$("img").crossOrigin=e)}update(e){const n=this.player().poster();this.setSrc(n),n?this.show():this.hide()}setSrc(e){if(!e){this.el_.textContent="";return}this.$("img")||this.el_.appendChild(rn("picture",{className:"vjs-poster",tabIndex:-1},{},rn("img",{loading:"lazy",crossOrigin:this.crossOrigin()},{alt:""}))),this.$("img").src=e}handleClick(e){!this.player_.controls()||(this.player_.tech(!0)&&this.player_.tech(!0).focus(),this.player_.paused()?ql(this.player_.play()):this.player_.pause())}}DO.prototype.crossorigin=DO.prototype.crossOrigin;je.registerComponent("PosterImage",DO);const ho="#222",AB="#ccc",C1e={monospace:"monospace",sansSerif:"sans-serif",serif:"serif",monospaceSansSerif:'"Andale Mono", "Lucida Console", monospace',monospaceSerif:'"Courier New", monospace',proportionalSansSerif:"sans-serif",proportionalSerif:"serif",casual:'"Comic Sans MS", Impact, fantasy',
242script:'"Monotype Corsiva", cursive',smallcaps:'"Andale Mono", "Lucida Console", monospace, sans-serif'};function GM(t,e){let n;if(t.length===4)n=t[1]+t[1]+t[2]+t[2]+t[3]+t[3];else if(t.length===7)n=t.slice(1);else throw new Error("Invalid color code provided, "+t+"; must be formatted as e.g. #f0e or #f604e2.");return"rgba("+parseInt(n.slice(0,2),16)+","+parseInt(n.slice(2,4),16)+","+parseInt(n.slice(4,6),16)+","+e+")"}function U_(t,e,n){try{t.style[e]=n}catch(i){return}}function MB(t){return t?`${t}px`:""}class A1e extends je{constructor(e,n,i){super(e,n,i);const r=a=>this.updateDisplay(a),s=a=>{this.updateDisplayOverlay(),this.updateDisplay(a)};e.on("loadstart",a=>this.toggleDisplay(a)),e.on("texttrackchange",r),e.on("loadedmetadata",a=>{this.updateDisplayOverlay(),this.preselectTrack(a)}),e.ready(ai(this,function(){if(e.tech_&&e.tech_.featuresNativeTextTracks){this.hide();return}e.on("fullscreenchange",s),e.on("playerresize",s);const a=ue.screen.orientation||ue,o=ue.screen.orientation?"change":"orientationchange";a.addEventListener(o,s),e.on("dispose",()=>a.removeEventListener(o,s));const l=this.options_.playerOptions.tracks||[];for(let u=0;u<l.length;u++)this.player_.addRemoteTextTrack(l[u],!0);this.preselectTrack()}))}preselectTrack(){const e={captions:1,subtitles:1},n=this.player_.textTracks(),i=this.player_.cache_.selectedLanguage;let r,s,a;for(let o=0;o<n.length;o++){const l=n[o];i&&i.enabled&&i.language&&i.language===l.language&&l.kind in e?l.kind===i.kind?a=l:a||(a=l):i&&!i.enabled?(a=null,r=null,s=null):l.default&&(l.kind==="descriptions"&&!r?r=l:l.kind in e&&!s&&(s=l))}a?a.mode="showing":s?s.mode="showing":r&&(r.mode="showing")}toggleDisplay(){this.player_.tech_&&this.player_.tech_.featuresNativeTextTracks?this.hide():this.show()}createEl(){return super.createEl("div",{className:"vjs-text-track-display"},{translate:"yes","aria-live":"off","aria-atomic":"true"})}clearDisplay(){typeof ue.WebVTT=="function"&&ue.WebVTT.processCues(ue,[],this.el_)}updateDisplay(){const e=this.player_.textTracks(),n=this.options_.allowMultipleShowingTracks;if(this.clearDisplay(),n){const a=[];for(let o=0;o<e.length;++o){const l=e[o];l.mode==="showing"&&a.push(l)}this.updateForTrack(a);return}let i=null,r=null,s=e.length;for(;s--;){const a=e[s];a.mode==="showing"&&(a.kind==="descriptions"?i=a:r=a)}r?(this.getAttribute("aria-live")!=="off"&&this.setAttribute("aria-live","off"),this.updateForTrack(r)):i&&(this.getAttribute("aria-live")!=="assertive"&&this.setAttribute("aria-live","assertive"),this.updateForTrack(i))}updateDisplayOverlay(){if(!this.player_.videoHeight()||!ue.CSS.supports("inset-inline: 10px"))return;const e=this.player_.currentWidth(),n=this.player_.currentHeight(),i=e/n,r=this.player_.videoWidth()/this.player_.videoHeight();let s=0,a=0;Math.abs(i-r)>.1&&(i>r?s=Math.round((e-n*r)/2):a=Math.round((n-e/r)/2)),U_(this.el_,"insetInline",MB(s)),U_(this.el_,"insetBlock",MB(a))}updateDisplayState(e){const n=this.player_.textTrackSettings.getValues(),i=e.activeCues;let r=i.length;for(;r--;){const s=i[r];if(!s)continue;const a=s.displayState;if(n.color&&(a.firstChild.style.color=n.color),n.textOpacity&&U_(a.firstChild,"color",GM(n.color||"#fff",n.textOpacity)),n.backgroundColor&&(a.firstChild.style.backgroundColor=n.backgroundColor),n.backgroundOpacity&&U_(a.firstChild,"backgroundColor",GM(n.backgroundColor||"#000",n.backgroundOpacity)),n.windowColor&&(n.windowOpacity?U_(a,"backgroundColor",GM(n.windowColor,n.windowOpacity)):a.style.backgroundColor=n.windowColor),n.edgeStyle&&(n.edgeStyle==="dropshadow"?a.firstChild.style.textShadow=`2px 2px 3px ${ho}, 2px 2px 4px ${ho}, 2px 2px 5px ${ho}`:n.edgeStyle==="raised"?a.firstChild.style.textShadow=`1px 1px ${ho}, 2px 2px ${ho}, 3px 3px ${ho}`:n.edgeStyle==="depressed"?a.firstChild.style.textShadow=`1px 1px ${AB}, 0 1px ${AB}, -1px -1px ${ho}, 0 -1px ${ho}`:n.edgeStyle==="uniform"&&(a.firstChild.style.textShadow=`0 0 4px ${ho}, 0 0 4px ${ho}, 0 0 4px ${ho}, 0 0 4px ${ho}`)),n.fontPercent&&n.fontPercent!==1){const o=ue.parseFloat(a.style.fontSize);a.style.fontSize=o*n.fontPercent+"px",a.style.height="auto",a.style.top="auto"}n.fontFamily&&n.fontFamily!=="default"&&(n.fontFamily==="small-caps"?a.firstChild.style.fontVariant="small-caps":a.firstChild.style.fontFamily=C1e[n.fontFamily])}}updateForTrack(e){if(Array.isArray(e)||(e=[e]),typeof ue.WebVTT!="function"||e.every(i=>!i.activeCues))return;const n=[];for(let i=0;i<e.length;++i){const r=e[i];for(let s=0;s<r.activeCues.length;++s)n.push(r.activeCues[s])}ue.WebVTT.processCues(ue,n,this.el_);for(let i=0;i<e.length;++i){const r=e[i];for(let s=0;s<r.activeCues.length;++s){const a=r.activeCues[s].displayState;Vh(a,"vjs-text-track-cue","vjs-text-track-cue-"+(r.language?r.language:i)),r.language&&pg(a,"lang",r.language)}this.player_.textTrackSettings&&this.updateDisplayState(r)}}}je.registerComponent("TextTrackDisplay",A1e);class M1e extends je{createEl(){const e=this.player_.isAudio(),n=this.localize(e?"Audio Player":"
242Video Player"),i=rn("span",{className:"vjs-control-text",textContent:this.localize("{1} is loading.",[n])}),r=super.createEl("div",{className:"vjs-loading-spinner",dir:"ltr"});return r.appendChild(i),r}handleLanguagechange(){this.$(".vjs-control-text").textContent=this.localize("{1} is loading.",[this.player_.isAudio()?"Audio Player":"Video Player"])}}je.registerComponent("LoadingSpinner",M1e);class Ha extends Lw{createEl(e,n={},i={}){e="button",n=Object.assign({className:this.buildCSSClass()},n),i=Object.assign({type:"button"},i);const r=rn(e,n,i);return this.player_.options_.experimentalSvgIcons||r.appendChild(rn("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),this.createControlTextEl(r),r}addChild(e,n={}){const i=this.constructor.name;return Sn.warn(`Adding an actionable (user controllable) child to a Button (${i}) is not supported; use a ClickableComponent instead.`),je.prototype.addChild.call(this,e,n)}enable(){super.enable(),this.el_.removeAttribute("disabled")}disable(){super.disable(),this.el_.setAttribute("disabled","disabled")}handleKeyDown(e){if(Kt.isEventKey(e,"Space")||Kt.isEventKey(e,"Enter")){e.stopPropagation();return}super.handleKeyDown(e)}}je.registerComponent("Button",Ha);class lY extends Ha{constructor(e,n){super(e,n),this.mouseused_=!1,this.setIcon("play"),this.on("mousedown",i=>this.handleMouseDown(i))}buildCSSClass(){return"vjs-big-play-button"}handleClick(e){const n=this.player_.play();if(this.mouseused_&&"clientX"in e&&"clientY"in e){ql(n),this.player_.tech(!0)&&this.player_.tech(!0).focus();return}const i=this.player_.getChild("controlBar"),r=i&&i.getChild("playToggle");if(!r){this.player_.tech(!0).focus();return}const s=()=>r.focus();sy(n)?n.then(s,()=>{}):this.setTimeout(s,1)}handleKeyDown(e){this.mouseused_=!1,super.handleKeyDown(e)}handleMouseDown(e){this.mouseused_=!0}}lY.prototype.controlText_="Play Video";je.registerComponent("BigPlayButton",lY);class D1e extends Ha{constructor(e,n){super(e,n),this.setIcon("cancel"),this.controlText(n&&n.controlText||this.localize("Close"))}buildCSSClass(){return`vjs-close-button ${super.buildCSSClass()}`}handleClick(e){this.trigger({type:"close",bubbles:!1})}handleKeyDown(e){Kt.isEventKey(e,"Esc")?(e.preventDefault(),e.stopPropagation(),this.trigger("click")):super.handleKeyDown(e)}}je.registerComponent("CloseButton",D1e);class uY extends Ha{constructor(e,n={}){super(e,n),n.replay=n.replay===void 0||n.replay,this.setIcon("play"),this.on(e,"play",i=>this.handlePlay(i)),this.on(e,"pause",i=>this.handlePause(i)),n.replay&&this.on(e,"ended",i=>this.handleEnded(i))}buildCSSClass(){return`vjs-play-control ${super.buildCSSClass()}`}handleClick(e){this.player_.paused()?ql(this.player_.play()):this.player_.pause()}handleSeeked(e){this.removeClass("vjs-ended"),this.player_.paused()?this.handlePause(e):this.handlePlay(e)}handlePlay(e){this.removeClass("vjs-ended","vjs-paused"),this.addClass("vjs-playing"),this.setIcon("pause"),this.controlText("Pause")}handlePause(e){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.setIcon("play"),this.controlText("Play")}handleEnded(e){this.removeClass("vjs-playing"),this.addClass("vjs-ended"),this.setIcon("replay"),this.controlText("Replay"),this.one(this.player_,"seeked",n=>this.handleSeeked(n))}}uY.prototype.controlText_="Play";je.registerComponent("PlayToggle",uY);class Hg extends je{constructor(e,n){super(e,n),this.on(e,["timeupdate","ended","seeking"],i=>this.update(i)),this.updateTextNode_()}createEl(){const e=this.buildCSSClass(),n=super.createEl("div",{className:`${e} vjs-time-control vjs-control`}),i=rn("span",{className:"vjs-control-text",textContent:`${this.localize(this.labelText_)}\xA0`},{role:"presentation"});return n.appendChild(i),this.contentEl_=rn("span",{className:`${e}-display`},{role:"presentation"}),n.appendChild(this.contentEl_),n}dispose(){this.contentEl_=null,this.textNode_=null,super.dispose()}update(e){!this.player_.options_.enableSmoothSeeking&&e.type==="seeking"||this.updateContent(e)}updateTextNode_(e=0){e=dp(e),this.formattedTime_!==e&&(this.formattedTime_=e,this.requestNamedAnimationFrame("TimeDisplay#updateTextNode_",()=>{if(!this.contentEl_)return;let n=this.textNode_;n&&this.contentEl_.firstChild!==n&&(n=null,Sn.warn("TimeDisplay#updateTextnode_: Prevented replacement of text node element since it was no longer a child of this node. Appending a new node instead.")),this.textNode_=ct.createTextNode(this.formattedTime_),this.textNode_&&(n?this.contentEl_.replaceChild(this.textNode_,n):this.contentEl_.appendChild(this.textNode_))}))}updateContent(e){}}Hg.prototype.labelText_="Time";Hg.prototype.controlText_="Time";je.registerComponent("TimeDisplay",Hg);class xL extends Hg{buildCSSClass(){return"vjs-current-time"}updateContent(e){let n;this.player_.ended()?n=this.player_.duration():n=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime(),this.updateTextNode_(n)}}xL.prototype.labelText_="Current Time";xL.prototype.controlText_="Current Time";je.registerComponent("CurrentTimeDisplay",xL);class SL extends Hg{constructor(e,n){super(e,n);const i=r=>this.updateContent(r);
vendor: 12,041 bytes, line 242
242this.on(e,"durationchange",i),this.on(e,"loadstart",i),this.on(e,"loadedmetadata",i)}buildCSSClass(){return"vjs-duration"}updateContent(e){const n=this.player_.duration();this.updateTextNode_(n)}}SL.prototype.labelText_="Duration";SL.prototype.controlText_="Duration";je.registerComponent("DurationDisplay",SL);class P1e extends je{createEl(){const e=super.createEl("div",{className:"vjs-time-control vjs-time-divider"},{"aria-hidden":!0}),n=super.createEl("div"),i=super.createEl("span",{textContent:"/"});return n.appendChild(i),e.appendChild(n),e}}je.registerComponent("TimeDivider",P1e);class TL extends Hg{constructor(e,n){super(e,n),this.on(e,"durationchange",i=>this.updateContent(i))}buildCSSClass(){return"vjs-remaining-time"}createEl(){const e=super.createEl();return this.options_.displayNegative!==!1&&e.insertBefore(rn("span",{},{"aria-hidden":!0},"-"),this.contentEl_),e}updateContent(e){if(typeof this.player_.duration()!="number")return;let n;this.player_.ended()?n=0:this.player_.remainingTimeDisplay?n=this.player_.remainingTimeDisplay():n=this.player_.remainingTime(),this.updateTextNode_(n)}}TL.prototype.labelText_="Remaining Time";TL.prototype.controlText_="Remaining Time";je.registerComponent("RemainingTimeDisplay",TL);class O1e extends je{constructor(e,n){super(e,n),this.updateShowing(),this.on(this.player(),"durationchange",i=>this.updateShowing(i))}createEl(){const e=super.createEl("div",{className:"vjs-live-control vjs-control"});return this.contentEl_=rn("div",{className:"vjs-live-display"},{"aria-live":"off"}),this.contentEl_.appendChild(rn("span",{className:"vjs-control-text",textContent:`${this.localize("Stream Type")}\xA0`})),this.contentEl_.appendChild(ct.createTextNode(this.localize("LIVE"))),e.appendChild(this.contentEl_),e}dispose(){this.contentEl_=null,super.dispose()}updateShowing(e){this.player().duration()===1/0?this.show():this.hide()}}je.registerComponent("LiveDisplay",O1e);class cY extends Ha{constructor(e,n){super(e,n),this.updateLiveEdgeStatus(),this.player_.liveTracker&&(this.updateLiveEdgeStatusHandler_=i=>this.updateLiveEdgeStatus(i),this.on(this.player_.liveTracker,"liveedgechange",this.updateLiveEdgeStatusHandler_))}createEl(){const e=super.createEl("button",{className:"vjs-seek-to-live-control vjs-control"});return this.setIcon("circle",e),this.textEl_=rn("span",{className:"vjs-seek-to-live-text",textContent:this.localize("LIVE")},{"aria-hidden":"true"}),e.appendChild(this.textEl_),e}updateLiveEdgeStatus(){!this.player_.liveTracker||this.player_.liveTracker.atLiveEdge()?(this.setAttribute("aria-disabled",!0),this.addClass("vjs-at-live-edge"),this.controlText("Seek to live, currently playing live")):(this.setAttribute("aria-disabled",!1),this.removeClass("vjs-at-live-edge"),this.controlText("Seek to live, currently behind live"))}handleClick(){this.player_.liveTracker.seekToLiveEdge()}dispose(){this.player_.liveTracker&&this.off(this.player_.liveTracker,"liveedgechange",this.updateLiveEdgeStatusHandler_),this.textEl_=null,super.dispose()}}cY.prototype.controlText_="Seek to live, currently playing live";je.registerComponent("SeekToLive",cY);function Wb(t,e,n){return t=Number(t),Math.min(n,Math.max(e,isNaN(t)?e:t))}var R1e=Object.freeze({__proto__:null,clamp:Wb});class EL extends je{constructor(e,n){super(e,n),this.handleMouseDown_=i=>this.handleMouseDown(i),this.handleMouseUp_=i=>this.handleMouseUp(i),this.handleKeyDown_=i=>this.handleKeyDown(i),this.handleClick_=i=>this.handleClick(i),this.handleMouseMove_=i=>this.handleMouseMove(i),this.update_=i=>this.update(i),this.bar=this.getChild(this.options_.barName),this.vertical(!!this.options_.vertical),this.enable()}enabled(){return this.enabled_}enable(){this.enabled()||(this.on("mousedown",this.handleMouseDown_),this.on("touchstart",this.handleMouseDown_),this.on("keydown",this.handleKeyDown_),this.on("click",this.handleClick_),this.on(this.player_,"controlsvisible",this.update),this.playerEvent&&this.on(this.player_,this.playerEvent,this.update),this.removeClass("disabled"),this.setAttribute("tabindex",0),this.enabled_=!0)}disable(){if(!this.enabled())return;const e=this.bar.el_.ownerDocument;this.off("mousedown",this.handleMouseDown_),this.off("touchstart",this.handleMouseDown_),this.off("keydown",this.handleKeyDown_),this.off("click",this.handleClick_),this.off(this.player_,"controlsvisible",this.update_),this.off(e,"mousemove",this.handleMouseMove_),this.off(e,"mouseup",this.handleMouseUp_),this.off(e,"touchmove",this.handleMouseMove_),this.off(e,"touchend",this.handleMouseUp_),this.removeAttribute("tabindex"),this.addClass("disabled"),this.playerEvent&&this.off(this.player_,this.playerEvent,this.update),this.enabled_=!1}createEl(e,n={},i={}){return n.className=n.className+" vjs-slider",n=Object.assign({tabIndex:0},n),i=Object.assign({role:"slider","aria-valuenow":0,"aria-valuemin":0,"aria-valuemax":100},i),super.createEl(e,n,i)}handleMouseDown(e){const n=this.bar.el_.ownerDocument;e.type==="mousedown"&&e.preventDefault(),e.type==="touchstart"&&!pu&&e.preventDefault(),NX(),this.addClass("vjs-sliding"),this.trigger("slideractive"),this.on(n,"mousemove",this.handleMouseMove_),this.on(n,"mouseup",this.handleMouseUp_),this.on(n,"touchmove",this.handleMouseMove_),this.on(n,"touchend",this.handleMouseUp_),this.handleMouseMove(e,!0)}handleMouseMove(e){}handleMouseUp(e){const n=this.bar.el_.ownerDocument;BX(),this.removeClass("vjs-sliding"),this.trigger("sliderinactive"),this.off(n,"mousemove",this.handleMouseMove_),this.off(n,"mouseup",this.handleMouseUp_),this.off(n,"touchmove",this.handleMouseMove_),this.off(n,"touchend",this.handleMouseUp_),this.update()}update(){if(!this.el_||!this.bar)return;const e=this.getProgress();return e===this.progress_||(this.progress_=e,this.requestNamedAnimationFrame("Slider#update",()=>{const n=this.vertical()?"height":"width";this.bar.el().style[n]=(e*100).toFixed(2)+"%"})),e}getProgress(){return Number(Wb(this.getPercent(),0,1).toFixed(4))}calculateDistance(e){const n=Dw(this.el_,e);return this.vertical()?n.y:n.x}handleKeyDown(e){Kt.isEventKey(e,"Left")||Kt.isEventKey(e,"Down")?(e.preventDefault(),e.stopPropagation(),this.stepBack()):Kt.isEventKey(e,"Right")||Kt.isEventKey(e,"Up")?(e.preventDefault(),e.stopPropagation(),this.stepForward()):super.handleKeyDown(e)}handleClick(e){e.stopPropagation(),e.preventDefault()}vertical(e){if(e===void 0)return this.vertical_||!1;this.vertical_=!!e,this.vertical_?this.addClass("vjs-slider-vertical"):this.addClass("vjs-slider-horizontal")}}je.registerComponent("Slider",EL);const jM=(t,e)=>Wb(t/e*100,0,100).toFixed(2)+"%";class k1e extends je{constructor(e,n){super(e,n),this.partEls_=[],this.on(e,"progress",i=>this.update(i))}createEl(){const e=super.createEl("div",{className:"vjs-load-progress"}),n=rn("span",{className:"vjs-control-text"}),i=rn("span",{textContent:this.localize("Loaded")}),r=ct.createTextNode(": ");return this.percentageEl_=rn("span",{className:"vjs-control-text-loaded-percentage",textContent:"0%"}),e.appendChild(n),n.appendChild(i),n.appendChild(r),n.appendChild(this.percentageEl_),e}dispose(){this.partEls_=null,this.percentageEl_=null,super.dispose()}update(e){this.requestNamedAnimationFrame("LoadProgressBar#update",()=>{const n=this.player_.liveTracker,i=this.player_.buffered(),r=n&&n.isLive()?n.seekableEnd():this.player_.duration(),s=this.player_.bufferedEnd(),a=this.partEls_,o=jM(s,r);this.percent_!==o&&(this.el_.style.width=o,Cd(this.percentageEl_,o),this.percent_=o);for(let l=0;l<i.length;l++){const u=i.start(l),c=i.end(l);let f=a[l];f||(f=this.el_.appendChild(rn()),a[l]=f),!(f.dataset.start===u&&f.dataset.end===c)&&(f.dataset.start=u,f.dataset.end=c,f.style.left=jM(u,s),f.style.width=jM(c-u,s))}for(let l=a.length;l>i.length;l--)this.el_.removeChild(a[l-1]);a.length=i.length})}}je.registerComponent("LoadProgressBar",k1e);class I1e extends je{constructor(e,n){super(e,n),this.update=mu(ai(this,this.update),Ro)}createEl(){return super.createEl("div",{className:"vjs-time-tooltip"},{"aria-hidden":"true"})}update(e,n,i){const r=Jy(this.el_),s=mg(this.player_.el()),a=e.width*n;if(!s||!r)return;let o=e.left-s.left+a,l=e.width-a+(s.right-e.right);l||(l=e.width-a,o=a);let u=r.width/2;o<u?u+=u-o:l<u&&(u=l),u<0?u=0:u>r.width&&(u=r.width),u=Math.round(u),this.el_.style.right=`-${u}px`,this.write(i)}write(e){Cd(this.el_,e)}updateTime(e,n,i,r){this.requestNamedAnimationFrame("TimeTooltip#updateTime",()=>{let s;const a=this.player_.duration();if(this.player_.liveTracker&&this.player_.liveTracker.isLive()){const o=this.player_.liveTracker.liveWindow(),l=o-n*o;s=(l<1?"":"-")+dp(l,o)}else s=dp(i,a);this.update(e,n,s),r&&r()})}}je.registerComponent("TimeTooltip",I1e);class wL extends je{constructor(e,n){super(e,n),this.setIcon("circle"),this.update=mu(ai(this,this.update),Ro)}createEl(){return super.createEl("div",{className:"vjs-play-progress vjs-slider-bar"},{"aria-hidden":"true"})}update(e,n){const i=this.getChild("timeTooltip");if(!i)return;const r=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();i.updateTime(e,n,r)}}wL.prototype.options_={children:[]};!Ds&&!hu&&wL.prototype.options_.children.push("timeTooltip");je.registerComponent("PlayProgressBar",wL);class fY extends je{constructor(e,n){super(e,n),this.update=mu(ai(this,this.update),Ro)}createEl(){return super.createEl("div",{className:"vjs-mouse-display"})}update(e,n){const i=n*this.player_.duration();this.getChild("timeTooltip").updateTime(e,n,i,()=>{this.el_.style.left=`${e.width*n}px`})}}fY.prototype.options_={children:["timeTooltip"]};je.registerComponent("MouseTimeDisplay",fY);const Zx=5,DB=12;class CL extends EL{constructor(e,n){super(e,n),this.setEventHandlers_()}setEventHandlers_(){this.update_=ai(this,this.update),this.update=mu(this.update_,Ro),this.on(this.player_,["ended","durationchange","timeupdate"],this.update),this.player_.liveTracker&&this.on(this.player_.liveTracker,"liveedgechange",this.update),this.updateInterval=null,this.enableIntervalHandler_=e=>this.enableInterval_(e),this.disableIntervalHandler_=e=>this.disableInterval_(e),this.on(this.player_,["playing"],this.enableIntervalHandler_),this.on(this.player_,["ended","pause","waiting"],this.disableIntervalHandler_),"hidden"in ct&&"visibilityState"in ct&&this.on(ct,"visibilitychange",this.toggleVisibility_)}toggleVisibility_(e){ct.visibilityState==="hidden"?(this.cancelNamedAnimationFrame("SeekBar#update"),this.cancelNamedAnimationFrame("Slider#update"),this.disableInterval_(e)):(!this.player_.ended()&&!this.player_.paused()&&this.enableInterval_(),this.update())}enableInterval_(){this.updateInterval||(this.updateInterval=this.setInterval(this.update,Ro))}disableInterval_(e){this.player_.liveTracker&&this.player_.liveTracker.isLive()&&e&&e.type!=="ended"||!this.updateInterval||(this.clearInterval(this.updateInterval),this.updateInterval=null)}createEl(){return super.createEl("div",{className:"vjs-progress-holder"},{"aria-label":this.localize("Progress Bar")})}update(e){if(ct.visibilityState==="hidden")return;const n=super.update();return this.requestNamedAnimationFrame("SeekBar#update",()=>{const i=this.player_.ended()?this.player_.duration():this.getCurrentTime_(),r=this.player_.liveTracker;let s=this.player_.duration();r&&r.isLive()&&(s=this.player_.liveTracker.liveCurrentTime()),this.percent_!==n&&(this.el_.setAttribute("aria-valuenow",(n*100).toFixed(2)),this.percent_=n),(this.currentTime_!==i||this.duration_!==s)&&(this.el_.setAttribute("aria-valuetext",this.localize("progress bar timing: currentTime={1} duration={2}",[dp(i,s),dp(s,s)],"{1} of {2}")),this.currentTime_=i,this.duration_=s),this.bar&&this.bar.update(mg(this.el()),this.getProgress())}),n}userSeek_(e){this.player_.liveTracker&&this.player_.liveTracker.isLive()&&this.player_.liveTracker.nextSeekedFromUser(),this.player_.currentTime(e)}getCurrentTime_(){return this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime()}getPercent(){const e=this.getCurrentTime_();let n;const i=this.player_.liveTracker;
242return i&&i.isLive()?(n=(e-i.seekableStart())/i.liveWindow(),i.atLiveEdge()&&(n=1)):n=e/this.player_.duration(),n}handleMouseDown(e){!eb(e)||(e.stopPropagation(),this.videoWasPlaying=!this.player_.paused(),this.player_.pause(),super.handleMouseDown(e))}handleMouseMove(e,n=!1){if(!eb(e)||isNaN(this.player_.duration()))return;!n&&!this.player_.scrubbing()&&this.player_.scrubbing(!0);let i;const r=this.calculateDistance(e),s=this.player_.liveTracker;if(!s||!s.isLive())i=r*this.player_.duration(),i===this.player_.duration()&&(i=i-.1);else{if(r>=.99){s.seekToLiveEdge();return}const a=s.seekableStart(),o=s.liveCurrentTime();if(i=a+r*s.liveWindow(),i>=o&&(i=o),i<=a&&(i=a+.1),i===1/0)return}this.userSeek_(i),this.player_.options_.enableSmoothSeeking&&this.update()}enable(){super.enable();const e=this.getChild("mouseTimeDisplay");!e||e.show()}disable(){super.disable();const e=this.getChild("mouseTimeDisplay");!e||e.hide()}handleMouseUp(e){super.handleMouseUp(e),e&&e.stopPropagation(),this.player_.scrubbing(!1),this.player_.trigger({type:"timeupdate",target:this,manuallyTriggered:!0}),this.videoWasPlaying?ql(this.player_.play()):this.update_()}stepForward(){this.userSeek_(this.player_.currentTime()+Zx)}stepBack(){this.userSeek_(this.player_.currentTime()-Zx)}handleAction(e){this.player_.paused()?this.player_.play():this.player_.pause()}handleKeyDown(e){const n=this.player_.liveTracker;if(Kt.isEventKey(e,"Space")||Kt.isEventKey(e,"Enter"))e.preventDefault(),e.stopPropagation(),this.handleAction(e);else if(Kt.isEventKey(e,"Home"))e.preventDefault(),e.stopPropagation(),this.userSeek_(0);else if(Kt.isEventKey(e,"End"))e.preventDefault(),e.stopPropagation(),n&&n.isLive()?this.userSeek_(n.liveCurrentTime()):this.userSeek_(this.player_.duration());else if(/^[0-9]$/.test(Kt(e))){e.preventDefault(),e.stopPropagation();const i=(Kt.codes[Kt(e)]-Kt.codes[0])*10/100;n&&n.isLive()?this.userSeek_(n.seekableStart()+n.liveWindow()*i):this.userSeek_(this.player_.duration()*i)}else Kt.isEventKey(e,"PgDn")?(e.preventDefault(),e.stopPropagation(),this.userSeek_(this.player_.currentTime()-Zx*DB)):Kt.isEventKey(e,"PgUp")?(e.preventDefault(),e.stopPropagation(),this.userSeek_(this.player_.currentTime()+Zx*DB)):super.handleKeyDown(e)}dispose(){this.disableInterval_(),this.off(this.player_,["ended","durationchange","timeupdate"],this.update),this.player_.liveTracker&&this.off(this.player_.liveTracker,"liveedgechange",this.update),this.off(this.player_,["playing"],this.enableIntervalHandler_),this.off(this.player_,["ended","pause","waiting"],this.disableIntervalHandler_),"hidden"in ct&&"visibilityState"in ct&&this.off(ct,"visibilitychange",this.toggleVisibility_),super.dispose()}}CL.prototype.options_={children:["loadProgressBar","playProgressBar"],barName:"playProgressBar"};!Ds&&!hu&&CL.prototype.options_.children.splice(1,0,"mouseTimeDisplay");je.registerComponent("SeekBar",CL);class dY extends je{constructor(e,n){super(e,n),this.handleMouseMove=mu(ai(this,this.handleMouseMove),Ro),this.throttledHandleMouseSeek=mu(ai(this,this.handleMouseSeek),Ro),this.handleMouseUpHandler_=i=>this.handleMouseUp(i),this.handleMouseDownHandler_=i=>this.handleMouseDown(i),this.enable()}createEl(){return super.createEl("div",{className:"vjs-progress-control vjs-control"})}handleMouseMove(e){const n=this.getChild("seekBar");if(!n)return;const i=n.getChild("playProgressBar"),r=n.getChild("mouseTimeDisplay");if(!i&&!r)return;const s=n.el(),a=Jy(s);let o=Dw(s,e).x;o=Wb(o,0,1),r&&r.update(a,o),i&&i.update(a,n.getProgress())}handleMouseSeek(e){const n=this.getChild("seekBar");n&&n.handleMouseMove(e)}enabled(){return this.enabled_}
242disable(){if(this.children().forEach(e=>e.disable&&e.disable()),!!this.enabled()&&(this.off(["mousedown","touchstart"],this.handleMouseDownHandler_),this.off(this.el_,"mousemove",this.handleMouseMove),this.removeListenersAddedOnMousedownAndTouchstart(),this.addClass("disabled"),this.enabled_=!1,this.player_.scrubbing())){const e=this.getChild("seekBar");this.player_.scrubbing(!1),e.videoWasPlaying&&ql(this.player_.play())}}enable(){this.children().forEach(e=>e.enable&&e.enable()),!this.enabled()&&(this.on(["mousedown","touchstart"],this.handleMouseDownHandler_),this.on(this.el_,"mousemove",this.handleMouseMove),this.removeClass("disabled"),this.enabled_=!0)}removeListenersAddedOnMousedownAndTouchstart(){const e=this.el_.ownerDocument;this.off(e,"mousemove",this.throttledHandleMouseSeek),this.off(e,"touchmove",this.throttledHandleMouseSeek),this.off(e,"mouseup",this.handleMouseUpHandler_),this.off(e,"touchend",this.handleMouseUpHandler_)}handleMouseDown(e){const n=this.el_.ownerDocument,i=this.getChild("seekBar");i&&i.handleMouseDown(e),this.on(n,"mousemove",this.throttledHandleMouseSeek),this.on(n,"touchmove",this.throttledHandleMouseSeek),this.on(n,"mouseup",this.handleMouseUpHandler_),this.on(n,"touchend",this.handleMouseUpHandler_)}handleMouseUp(e){const n=this.getChild("seekBar");n&&n.handleMouseUp(e),this.removeListenersAddedOnMousedownAndTouchstart()}}dY.prototype.options_={children:["seekBar"]};je.registerComponent("ProgressControl",dY);class hY extends Ha{constructor(e,n){super(e,n),this.setIcon("picture-in-picture-enter"),this.on(e,["enterpictureinpicture","leavepictureinpicture"],i=>this.handlePictureInPictureChange(i)),this.on(e,["disablepictureinpicturechanged","loadedmetadata"],i=>this.handlePictureInPictureEnabledChange(i)),this.on(e,["loadedmetadata","audioonlymodechange","audiopostermodechange"],()=>this.handlePictureInPictureAudioModeChange()),this.disable()}buildCSSClass(){return`vjs-picture-in-picture-control vjs-hidden ${super.buildCSSClass()}`}handlePictureInPictureAudioModeChange(){if(!(this.player_.currentType().substring(0,5)==="audio"||this.player_.audioPosterMode()||this.player_.audioOnlyMode())){this.show();return}this.player_.isInPictureInPicture()&&this.player_.exitPictureInPicture(),this.hide()}handlePictureInPictureEnabledChange(){ct.pictureInPictureEnabled&&this.player_.disablePictureInPicture()===!1||this.player_.options_.enableDocumentPictureInPicture&&"documentPictureInPicture"in ue?this.enable():this.disable()}handlePictureInPictureChange(e){this.player_.isInPictureInPicture()?(this.setIcon("picture-in-picture-exit"),this.controlText("Exit Picture-in-Picture")):(this.setIcon("picture-in-picture-enter"),this.controlText("Picture-in-Picture")),this.handlePictureInPictureEnabledChange()}handleClick(e){this.player_.isInPictureInPicture()?this.player_.exitPictureInPicture():this.player_.requestPictureInPicture()}show(){typeof ct.exitPictureInPicture=="function"&&super.show()}}hY.prototype.controlText_="Picture-in-Picture";je.registerComponent("PictureInPictureToggle",hY);class pY extends Ha{constructor(e,n){super(e,n),this.setIcon("fullscreen-enter"),this.on(e,"fullscreenchange",i=>this.handleFullscreenChange(i)),ct[e.fsApi_.fullscreenEnabled]===!1&&this.disable()}buildCSSClass(){return`vjs-fullscreen-control ${super.buildCSSClass()}`}handleFullscreenChange(e){this.player_.isFullscreen()?(this.controlText("Exit Fullscreen"),this.setIcon("fullscreen-exit")):(this.controlText("Fullscreen"),this.setIcon("fullscreen-enter"))}handleClick(e){this.player_.isFullscreen()?this.player_.exitFullscreen():this.player_.requestFullscreen()}}pY.prototype.controlText_="Fullscreen";je.registerComponent("FullscreenToggle",pY);const L1e=function(t,e){e.tech_&&!e.tech_.featuresVolumeControl&&t.addClass("vjs-hidden"),t.on(e,"loadstart",function(){e.tech_.featuresVolumeControl?t.removeClass("vjs-hidden"):t.addClass("vjs-hidden")})};class F1e extends je{createEl(){const e=super.createEl("div",{className:"vjs-volume-level"});return this.setIcon("circle",e),e.appendChild(super.createEl("span",{className:"vjs-control-text"})),e}}
vendor: 8,563 bytes, line 242
242je.registerComponent("VolumeLevel",F1e);class N1e extends je{constructor(e,n){super(e,n),this.update=mu(ai(this,this.update),Ro)}createEl(){return super.createEl("div",{className:"vjs-volume-tooltip"},{"aria-hidden":"true"})}update(e,n,i,r){if(!i){const s=mg(this.el_),a=mg(this.player_.el()),o=e.width*n;if(!a||!s)return;const l=e.left-a.left+o,u=e.width-o+(a.right-e.right);let c=s.width/2;l<c?c+=c-l:u<c&&(c=u),c<0?c=0:c>s.width&&(c=s.width),this.el_.style.right=`-${c}px`}this.write(`${r}%`)}write(e){Cd(this.el_,e)}updateVolume(e,n,i,r,s){this.requestNamedAnimationFrame("VolumeLevelTooltip#updateVolume",()=>{this.update(e,n,i,r.toFixed(0)),s&&s()})}}je.registerComponent("VolumeLevelTooltip",N1e);class mY extends je{constructor(e,n){super(e,n),this.update=mu(ai(this,this.update),Ro)}createEl(){return super.createEl("div",{className:"vjs-mouse-display"})}update(e,n,i){const r=100*n;this.getChild("volumeLevelTooltip").updateVolume(e,n,i,r,()=>{i?this.el_.style.bottom=`${e.height*n}px`:this.el_.style.left=`${e.width*n}px`})}}mY.prototype.options_={children:["volumeLevelTooltip"]};je.registerComponent("MouseVolumeLevelDisplay",mY);class Fw extends EL{constructor(e,n){super(e,n),this.on("slideractive",i=>this.updateLastVolume_(i)),this.on(e,"volumechange",i=>this.updateARIAAttributes(i)),e.ready(()=>this.updateARIAAttributes())}createEl(){return super.createEl("div",{className:"vjs-volume-bar vjs-slider-bar"},{"aria-label":this.localize("Volume Level"),"aria-live":"polite"})}handleMouseDown(e){!eb(e)||super.handleMouseDown(e)}handleMouseMove(e){const n=this.getChild("mouseVolumeLevelDisplay");if(n){const i=this.el(),r=mg(i),s=this.vertical();let a=Dw(i,e);a=s?a.y:a.x,a=Wb(a,0,1),n.update(r,a,s)}!eb(e)||(this.checkMuted(),this.player_.volume(this.calculateDistance(e)))}checkMuted(){this.player_.muted()&&this.player_.muted(!1)}getPercent(){return this.player_.muted()?0:this.player_.volume()}stepForward(){this.checkMuted(),this.player_.volume(this.player_.volume()+.1)}stepBack(){this.checkMuted(),this.player_.volume(this.player_.volume()-.1)}updateARIAAttributes(e){const n=this.player_.muted()?0:this.volumeAsPercentage_();this.el_.setAttribute("aria-valuenow",n),this.el_.setAttribute("aria-valuetext",n+"%")}volumeAsPercentage_(){return Math.round(this.player_.volume()*100)}updateLastVolume_(){const e=this.player_.volume();this.one("sliderinactive",()=>{this.player_.volume()===0&&this.player_.lastVolume_(e)})}}Fw.prototype.options_={children:["volumeLevel"],barName:"volumeLevel"};!Ds&&!hu&&Fw.prototype.options_.children.splice(0,0,"mouseVolumeLevelDisplay");Fw.prototype.playerEvent="volumechange";je.registerComponent("VolumeBar",Fw);class gY extends je{constructor(e,n={}){n.vertical=n.vertical||!1,(typeof n.volumeBar>"u"||hg(n.volumeBar))&&(n.volumeBar=n.volumeBar||{},n.volumeBar.vertical=n.vertical),super(e,n),L1e(this,e),this.throttledHandleMouseMove=mu(ai(this,this.handleMouseMove),Ro),this.handleMouseUpHandler_=i=>this.handleMouseUp(i),this.on("mousedown",i=>this.handleMouseDown(i)),this.on("touchstart",i=>this.handleMouseDown(i)),this.on("mousemove",i=>this.handleMouseMove(i)),this.on(this.volumeBar,["focus","slideractive"],()=>{this.volumeBar.addClass("vjs-slider-active"),this.addClass("vjs-slider-active"),this.trigger("slideractive")}),this.on(this.volumeBar,["blur","sliderinactive"],()=>{this.volumeBar.removeClass("vjs-slider-active"),this.removeClass("vjs-slider-active"),this.trigger("sliderinactive")})}createEl(){let e="vjs-volume-horizontal";return this.options_.vertical&&(e="vjs-volume-vertical"),super.createEl("div",{className:`vjs-volume-control vjs-control ${e}`})}handleMouseDown(e){const n=this.el_.ownerDocument;this.on(n,"mousemove",this.throttledHandleMouseMove),this.on(n,"touchmove",this.throttledHandleMouseMove),this.on(n,"mouseup",this.handleMouseUpHandler_),this.on(n,"touchend",this.handleMouseUpHandler_)}handleMouseUp(e){const n=this.el_.ownerDocument;this.off(n,"mousemove",this.throttledHandleMouseMove),this.off(n,"touchmove",this.throttledHandleMouseMove),this.off(n,"mouseup",this.handleMouseUpHandler_),this.off(n,"touchend",this.handleMouseUpHandler_)}handleMouseMove(e){this.volumeBar.handleMouseMove(e)}}gY.prototype.options_={children:["volumeBar"]};je.registerComponent("VolumeControl",gY);const B1e=function(t,e){e.tech_&&!e.tech_.featuresMuteControl&&t.addClass("vjs-hidden"),t.on(e,"loadstart",function(){e.tech_.featuresMuteControl?t.removeClass("vjs-hidden"):t.addClass("vjs-hidden")})};class _Y extends Ha{constructor(e,n){super(e,n),B1e(this,e),this.on(e,["loadstart","volumechange"],i=>this.update(i))}buildCSSClass(){return`vjs-mute-control ${super.buildCSSClass()}`}handleClick(e){const n=this.player_.volume(),i=this.player_.lastVolume_();if(n===0){const r=i<.1?.1:i;this.player_.volume(r),this.player_.muted(!1)}else this.player_.muted(!this.player_.muted())}update(e){this.updateIcon_(),this.updateControlText_()}updateIcon_(){const e=this.player_.volume();let n=3;this.setIcon("volume-high"),Ds&&this.player_.tech_&&this.player_.tech_.el_&&this.player_.muted(this.player_.tech_.el_.muted),e===0||this.player_.muted()?(this.setIcon("volume-mute"),n=0):e<.33?(this.setIcon("volume-low"),n=1):e<.67&&(this.setIcon("volume-medium"),n=2),Aw(this.el_,[0,1,2,3].reduce((i,r)=>i+`${r?" ":""}vjs-vol-${r}`,"")),Vh(this.el_,`vjs-vol-${n}`)}updateControlText_(){const n=this.player_.muted()||this.player_.volume()===0?"Unmute":"Mute";this.controlText()!==n&&this.controlText(n)}}_Y.prototype.controlText_="Mute";je.registerComponent("MuteToggle",_Y);class vY extends je{constructor(e,n={}){typeof n.inline<"u"?n.inline=n.inline:n.inline=!0,(typeof n.volumeControl>"u"||hg(n.volumeControl))&&(n.volumeControl=n.volumeControl||{},n.volumeControl.vertical=!n.inline),super(e,n),this.handleKeyPressHandler_=i=>this.handleKeyPress(i),this.on(e,["loadstart"],i=>this.volumePanelState_(i)),this.on(this.muteToggle,"keyup",i=>this.handleKeyPress(i)),this.on(this.volumeControl,"keyup",i=>this.handleVolumeControlKeyUp(i)),this.on("keydown",i=>this.handleKeyPress(i)),this.on("mouseover",i=>this.handleMouseOver(i)),this.on("mouseout",i=>this.handleMouseOut(i)),this.on(this.volumeControl,["slideractive"],this.sliderActive_),this.on(this.volumeControl,["sliderinactive"],this.sliderInactive_)}sliderActive_(){this.addClass("vjs-slider-active")}sliderInactive_(){this.removeClass("vjs-slider-active")}volumePanelState_(){this.volumeControl.hasClass("vjs-hidden")&&this.muteToggle.hasClass("vjs-hidden")&&this.addClass("vjs-hidden"),this.volumeControl.hasClass("vjs-hidden")&&!this.muteToggle.hasClass("vjs-hidden")&&this.addClass("vjs-mute-toggle-only")}createEl(){let e="vjs-volume-panel-horizontal";return this.options_.inline||(e="vjs-volume-panel-vertical"),super.createEl("div",{className:`vjs-volume-panel vjs-control ${e}`})}dispose(){this.handleMouseOut(),super.dispose()}handleVolumeControlKeyUp(e){Kt.isEventKey(e,"Esc")&&this.muteToggle.focus()}handleMouseOver(e){this.addClass("vjs-hover"),ja(ct,"keyup",this.handleKeyPressHandler_)}handleMouseOut(e){this.removeClass("vjs-hover"),ss(ct,"keyup",this.handleKeyPressHandler_)}handleKeyPress(e){Kt.isEventKey(e,"Esc")&&this.handleMouseOut()}}vY.prototype.options_={children:["muteToggle","volumeControl"]};je.registerComponent("VolumePanel",vY);class yY extends Ha{constructor(e,n){super(e,n),this.validOptions=[5,10,30],this.skipTime=this.getSkipForwardTime(),this.skipTime&&this.validOptions.includes(this.skipTime)?(this.setIcon(`forward-${this.skipTime}`),this.controlText(this.localize("Skip forward {1} seconds",[this.skipTime.toLocaleString(e.language())])),this.show()):this.hide()}getSkipForwardTime(){const e=this.options_.playerOptions;return e.controlBar&&e.controlBar.skipButtons&&e.controlBar.skipButtons.forward}buildCSSClass(){return`vjs-skip-forward-${this.getSkipForwardTime()} ${super.buildCSSClass()}`}handleClick(e){if(isNaN(this.player_.duration()))return;const n=this.player_.currentTime(),i=this.player_.liveTracker,r=i&&i.isLive()?i.seekableEnd():this.player_.duration();let s;n+this.skipTime<=r?s=n+this.skipTime:s=r,this.player_.currentTime(s)}handleLanguagechange(){this.controlText(this.localize("Skip forward {1} seconds",[this.skipTime]))}}yY.prototype.controlText_="Skip Forward";je.registerComponent("SkipForward",yY);class bY extends Ha{constructor(e,n){super(e,n),this.validOptions=[5,10,30],this.skipTime=this.getSkipBackwardTime(),this.skipTime&&this.validOptions.includes(this.skipTime)?(this.setIcon(`replay-${this.skipTime}`),this.controlText(this.localize("Skip backward {1}
242 seconds",[this.skipTime.toLocaleString(e.language())])),this.show()):this.hide()}getSkipBackwardTime(){const e=this.options_.playerOptions;return e.controlBar&&e.controlBar.skipButtons&&e.controlBar.skipButtons.backward}buildCSSClass(){return`vjs-skip-backward-${this.getSkipBackwardTime()} ${super.buildCSSClass()}`}handleClick(e){const n=this.player_.currentTime(),i=this.player_.liveTracker,r=i&&i.isLive()&&i.seekableStart();let s;r&&n-this.skipTime<=r?s=r:n>=this.skipTime?s=n-this.skipTime:s=0,this.player_.currentTime(s)}handleLanguagechange(){this.controlText(this.localize("Skip backward {1} seconds",[this.skipTime]))}}bY.prototype.controlText_="Skip Backward";je.registerComponent("SkipBackward",bY);class xY extends je{constructor(e,n){super(e,n),n&&(this.menuButton_=n.menuButton),this.focusedChild_=-1,this.on("keydown",i=>this.handleKeyDown(i)),this.boundHandleBlur_=i=>this.handleBlur(i),this.boundHandleTapClick_=i=>this.handleTapClick(i)}addEventListenerForItem(e){e instanceof je&&(this.on(e,"blur",this.boundHandleBlur_),this.on(e,["tap","click"],this.boundHandleTapClick_))}removeEventListenerForItem(e){e instanceof je&&(this.off(e,"blur",this.boundHandleBlur_),this.off(e,["tap","click"],this.boundHandleTapClick_))}removeChild(e){typeof e=="string"&&(e=this.getChild(e)),this.removeEventListenerForItem(e),super.removeChild(e)}addItem(e){const n=this.addChild(e);n&&this.addEventListenerForItem(n)}createEl(){const e=this.options_.contentElType||"ul";this.contentEl_=rn(e,{className:"vjs-menu-content"}),this.contentEl_.setAttribute("role","menu");const n=super.createEl("div",{append:this.contentEl_,className:"vjs-menu"});return n.appendChild(this.contentEl_),ja(n,"click",function(i){i.preventDefault(),i.stopImmediatePropagation()}),n}dispose(){this.contentEl_=null,this.boundHandleBlur_=null,this.boundHandleTapClick_=null,super.dispose()}handleBlur(e){const n=e.relatedTarget||ct.activeElement;if(!this.children().some(i=>i.el()===n)){const i=this.menuButton_;i&&i.buttonPressed_&&n!==i.el().firstChild&&i.unpressButton()}}handleTapClick(e){if(this.menuButton_){this.menuButton_.unpressButton();const n=this.children();if(!Array.isArray(n))return;const i=n.filter(r=>r.el()===e.target)[0];if(!i)return;i.name()!=="CaptionSettingsMenuItem"&&this.menuButton_.focus()}}handleKeyDown(e){Kt.isEventKey(e,"Left")||Kt.isEventKey(e,"Down")?(e.preventDefault(),e.stopPropagation(),this.stepForward()):(Kt.isEventKey(e,"Right")||Kt.isEventKey(e,"Up"))&&(e.preventDefault(),e.stopPropagation(),this.stepBack())}stepForward(){let e=0;this.focusedChild_!==void 0&&(e=this.focusedChild_+1),this.focus(e)}stepBack(){let e=0;this.focusedChild_!==void 0&&(e=this.focusedChild_-1),this.focus(e)}focus(e=0){const n=this.children().slice();n.length&&n[0].hasClass("vjs-menu-title")&&n.shift(),n.length>0&&(e<0?e=0:e>=n.length&&(e=n.length-1),this.focusedChild_=e,n[e].el_.focus())}}je.registerComponent("Menu",xY);class AL extends je{constructor(e,n={}){super(e,n),this.menuButton_=new Ha(e,n),this.menuButton_.controlText(this.controlText_),this.menuButton_.el_.setAttribute("aria-haspopup","true");const i=Ha.prototype.buildCSSClass();this.menuButton_.el_.className=this.buildCSSClass()+" "+i,this.menuButton_.removeClass("vjs-control"),this.addChild(this.menuButton_),this.update(),this.enabled_=!0;const r=s=>this.handleClick(s);this.handleMenuKeyUp_=s=>this.handleMenuKeyUp(s),this.on(this.menuButton_,"tap",r),this.on(this.menuButton_,"click",r),this.on(this.menuButton_,"keydown",s=>this.handleKeyDown(s)),this.on(this.menuButton_,"mouseenter",()=>{this.addClass("vjs-hover"),this.menu.show(),ja(ct,"keyup",this.handleMenuKeyUp_)}),this.on("mouseleave",s=>this.handleMouseLeave(s)),this.on("keydown",s=>this.handleSubmenuKeyDown(s))}update(){const e=this.createMenu();this.menu&&(this.menu.dispose(),this.removeChild(this.menu)),this.menu=e,this.addChild(e),this.buttonPressed_=!1,this.menuButton_.el_.setAttribute("aria-expanded","false"),this.items&&this.items.length<=this.hideThreshold_?(this.hide(),this.menu.contentEl_.removeAttribute("role")):(this.show(),this.menu.contentEl_.setAttribute("role","menu"))}createMenu(){const e=new xY(this.player_,{menuButton:this});if(this.hideThreshold_=0,this.options_.title){const n=rn("li",{className:"vjs-menu-title",textContent:Li(this.options_.title),tabIndex:-1}),i=new je(this.player_,{el:n});e.addItem(i)}if(this.items=this.createItems(),this.items)for(let n=0;n<this.items.length;n++)e.addItem(this.items[n]);return e}createItems(){}createEl(){return super.createEl("div",{className:this.buildWrapperCSSClass()},{})}setIcon(e){super.setIcon(e,this.menuButton_.el_)}buildWrapperCSSClass(){let e="vjs-menu-button";this.options_.inline===!0?e+="-inline":e+="-popup";const n=Ha.prototype.buildCSSClass();return`vjs-menu-button ${e} ${n} ${super.buildCSSClass()}`}buildCSSClass(){let e="vjs-menu-button";return this.options_.inline===!0?e+="-inline":e+="-popup",`vjs-menu-button ${e} ${super.buildCSSClass()}`}controlText(e,n=this.menuButton_.el()){return this.menuButton_.controlText(e,n)}dispose(){this.handleMouseLeave(),super.dispose()}handleClick(e){this.buttonPressed_?this.unpressButton():this.pressButton()}handleMouseLeave(e){this.removeClass("vjs-hover"),ss(ct,"keyup",this.handleMenuKeyUp_)}focus(){this.menuButton_.focus()}blur(){this.menuButton_.blur()}handleKeyDown(e){Kt.isEventKey(e,"Esc")||Kt.isEventKey(e,"Tab")?(this.buttonPressed_&&this.unpressButton(),Kt.isEventKey(e,"Tab")||(e.preventDefault(),this.menuButton_.focus())):(Kt.isEventKey(e,"Up")||Kt.isEventKey(e,"Down"))&&(this.buttonPressed_||(e.preventDefault(),this.pressButton()))}handleMenuKeyUp(e){(Kt.isEventKey(e,"Esc")||Kt.isEventKey(e,"Tab"))&&this.removeClass("vjs-hover")}handleSubmenuKeyPress(e){this.handleSubmenuKeyDown(e)}handleSubmenuKeyDown(e){(Kt.isEventKey(e,"Esc")||Kt.isEventKey(e,"Tab"))&&(this.buttonPressed_&&this.unpressButton(),Kt.isEventKey(e,"Tab")||(e.preventDefault(),this.menuButton_.focus()))}pressButton(){if(this.enabled_){if(this.buttonPressed_=!0,this.menu.show(),this.menu.lockShowing(),this.menuButton_.el_.setAttribute("aria-expanded","true"),Ds&&RX())return;this.menu.focus()}}unpressButton(){this.enabled_&&(this.buttonPressed_=!1,this.menu.unlockShowing(),this.menu.hide(),this.menuButton_.el_.setAttribute("aria-expanded","fal
242se"))}disable(){this.unpressButton(),this.enabled_=!1,this.addClass("vjs-disabled"),this.menuButton_.disable()}enable(){this.enabled_=!0,this.removeClass("vjs-disabled"),this.menuButton_.enable()}}je.registerComponent("MenuButton",AL);class ML extends AL{constructor(e,n){const i=n.tracks;if(super(e,n),this.items.length<=1&&this.hide(),!i)return;const r=ai(this,this.update);i.addEventListener("removetrack",r),i.addEventListener("addtrack",r),i.addEventListener("labelchange",r),this.player_.on("ready",r),this.player_.on("dispose",function(){i.removeEventListener("removetrack",r),i.removeEventListener("addtrack",r),i.removeEventListener("labelchange",r)})}}je.registerComponent("TrackButton",ML);const U1e=["Tab","Esc","Up","Down","Right","Left"];class Gb extends Lw{constructor(e,n){super(e,n),this.selectable=n.selectable,this.isSelected_=n.selected||!1,this.multiSelectable=n.multiSelectable,this.selected(this.isSelected_),this.selectable?this.multiSelectable?this.el_.setAttribute("role","menuitemcheckbox"):this.el_.setAttribute("role","menuitemradio"):this.el_.setAttribute("role","menuitem")}createEl(e,n,i){this.nonIconControl=!0;const r=super.createEl("li",Object.assign({className:"vjs-menu-item",tabIndex:-1},n),i),s=rn("span",{className:"vjs-menu-item-text",textContent:this.localize(this.options_.label)});return this.player_.options_.experimentalSvgIcons?r.appendChild(s):r.replaceChild(s,r.querySelector(".vjs-icon-placeholder")),r}handleKeyDown(e){U1e.some(n=>Kt.isEventKey(e,n))||super.handleKeyDown(e)}handleClick(e){this.selected(!0)}selected(e){this.selectable&&(e?(this.addClass("vjs-selected"),this.el_.setAttribute("aria-checked","true"),this.controlText(", selected"),this.isSelected_=!0):(this.removeClass("vjs-selected"),this.el_.setAttribute("aria-checked","false"),this.controlText(""),this.isSelected_=!1))}}je.registerComponent("MenuItem",Gb);class jb extends Gb{constructor(e,n){const i=n.track,r=e.textTracks();n.label=i.label||i.language||"Unknown",n.selected=i.mode==="showing",super(e,n),this.track=i,this.kinds=(n.kinds||[n.kind||this.track.kind]).filter(Boolean);const s=(...o)=>{this.handleTracksChange.apply(this,o)},a=(...o)=>{this.handleSelectedLanguageChange.apply(this,o)};if(e.on(["loadstart","texttrackchange"],s),r.addEventListener("change",s),r.addEventListener("selectedlanguagechange",a),this.on("dispose",function(){e.off(["loadstart","texttrackchange"],s),r.removeEventListener("change",s),r.removeEventListener("selectedlanguagechange",a)}),r.onchange===void 0){let o;this.on(["tap","click"],function(){if(typeof ue.Event!="object")try{o=new ue.Event("change")}catch(l){}o||(o=ct.createEvent("Event"),o.initEvent("change",!0,!0)),r.dispatchEvent(o)})}this.handleTracksChange()}handleClick(e){const n=this.track,i=this.player_.textTracks();if(super.handleClick(e),!!i)for(let r=0;r<i.length;r++){const s=i[r];this.kinds.indexOf(s.kind)!==-1&&(s===n?s.mode!=="showing"&&(s.mode="showing"):s.mode!=="disabled"&&(s.mode="disabled"))}}handleTracksChange(e){const n=this.track.mode==="showing";n!==this.isSelected_&&this.selected(n)}handleSelectedLanguageChange(e){if(this.track.mode==="showing"){const n=this.player_.cache_.selectedLanguage;if(n&&n.enabled&&n.language===this.track.language&&n.kind!==this.track.kind)return;this.player_.cache_.selectedLanguage={enabled:!0,language:this.track.language,kind:this.track.kind}}}dispose(){this.track=null,super.dispose()}}je.registerComponent("TextTrackMenuItem",jb);class SY extends jb{constructor(e,n){n.track={player:e,kind:n.kind,kinds:n.kinds,default:!1,mode:"disabled"},n.kinds||(n.kinds=[n.kind]),n.label?n.track.label=n.label:n.track.label=n.kinds.join(" and ")+" off",n.selectable=!0,n.multiSelectable=!1,super(e,n)}handleTracksChange(e){const n=this.player().textTracks();let i=!0;for(let r=0,s=n.length;r<s;r++){const a=n[r];if(this.options_.kinds.indexOf(a.kind)>-1&&a.mode==="showing"){i=!1;break}}i!==this.isSelected_&&this.selected(i)}handleSelectedLanguageChange(e){const n=this.player().textTracks();let i=!0;for(let r=0,s=n.length;r<s;r++){const a=n[r];if(["captions","descriptions","subtitles"].indexOf(a.kind)>-1&&a.mode==="showing"){i=!1;break}}i&&(this.player_.cache_.selectedLanguage={enabled:!1})}handleLanguagechange(){this.$(".vjs-menu-item-text").textContent=this.player_.localize(this.options_.label),super.handleLanguagechange()}}je.registerComponent("OffTextTrackMenuItem",SY);class Vg extends ML{constructor(e,n={}){n.tracks=e.textTracks(),super(e,n)}createItems(e=[],n=jb){let i;this.label_&&(i=`${this.label_} off`),e.push(new SY(this.player_,{kinds:this.kinds_,kind:this.kind_,label:i})),this.hideThreshold_+=1;const r=this.player_.textTracks();Array.isArray(this.kinds_)||(this.kinds_=[this.kind_]);for(let s=0;s<r.length;s++){const a=r[s];if(this.kinds_.indexOf(a.kind)>-1){const o=new n(this.player_,{track:a,kinds:this.kinds_,kind:this.kind_,selectable:!0,multiSelectable:!1});o.addClass(`vjs-${a.kind}-menu-item`),e.push(o)}}return e}}je.registerComponent("TextTrackButton",Vg);class TY extends Gb{constructor(e,n){const i=n.track,r=n.cue,s=e.currentTime();n.selectable=!0,n.multiSelectable=!1,n.label=r.text,n.selected=r.startTime<=s&&s<r.endTime,super(e,n),this.track=i,this.cue=r}handleClick(e){super.handleClick(),this.player_.currentTime(this.cue.startTime)}}je.registerComponent("ChaptersTrackMenuItem",TY);class DL extends Vg{constructor(e,n,i){super(e,n,i),this.setIcon("chapters"),this.selectCurrentItem_=()=>
vendor: 9,802 bytes, line 242
242{this.items.forEach(r=>{r.selected(this.track_.activeCues[0]===r.cue)})}}buildCSSClass(){return`vjs-chapters-button ${super.buildCSSClass()}`}buildWrapperCSSClass(){return`vjs-chapters-button ${super.buildWrapperCSSClass()}`}update(e){if(e&&e.track&&e.track.kind!=="chapters")return;const n=this.findChaptersTrack();n!==this.track_?(this.setTrack(n),super.update()):(!this.items||n&&n.cues&&n.cues.length!==this.items.length)&&super.update()}setTrack(e){if(this.track_!==e){if(this.updateHandler_||(this.updateHandler_=this.update.bind(this)),this.track_){const n=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);n&&n.removeEventListener("load",this.updateHandler_),this.track_.removeEventListener("cuechange",this.selectCurrentItem_),this.track_=null}if(this.track_=e,this.track_){this.track_.mode="hidden";const n=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);n&&n.addEventListener("load",this.updateHandler_),this.track_.addEventListener("cuechange",this.selectCurrentItem_)}}}findChaptersTrack(){const e=this.player_.textTracks()||[];for(let n=e.length-1;n>=0;n--){const i=e[n];if(i.kind===this.kind_)return i}}getMenuCaption(){return this.track_&&this.track_.label?this.track_.label:this.localize(Li(this.kind_))}createMenu(){return this.options_.title=this.getMenuCaption(),super.createMenu()}createItems(){const e=[];if(!this.track_)return e;const n=this.track_.cues;if(!n)return e;for(let i=0,r=n.length;i<r;i++){const s=n[i],a=new TY(this.player_,{track:this.track_,cue:s});e.push(a)}return e}}DL.prototype.kind_="chapters";DL.prototype.controlText_="Chapters";je.registerComponent("ChaptersButton",DL);class PL extends Vg{constructor(e,n,i){super(e,n,i),this.setIcon("audio-description");const r=e.textTracks(),s=ai(this,this.handleTracksChange);r.addEventListener("change",s),this.on("dispose",function(){r.removeEventListener("change",s)})}handleTracksChange(e){const n=this.player().textTracks();let i=!1;for(let r=0,s=n.length;r<s;r++){const a=n[r];if(a.kind!==this.kind_&&a.mode==="showing"){i=!0;break}}i?this.disable():this.enable()}buildCSSClass(){return`vjs-descriptions-button ${super.buildCSSClass()}`}buildWrapperCSSClass(){return`vjs-descriptions-button ${super.buildWrapperCSSClass()}`}}PL.prototype.kind_="descriptions";PL.prototype.controlText_="Descriptions";je.registerComponent("DescriptionsButton",PL);class OL extends Vg{constructor(e,n,i){super(e,n,i),this.setIcon("subtitles")}buildCSSClass(){return`vjs-subtitles-button ${super.buildCSSClass()}`}buildWrapperCSSClass(){return`vjs-subtitles-button ${super.buildWrapperCSSClass()}`}}OL.prototype.kind_="subtitles";OL.prototype.controlText_="Subtitles";je.registerComponent("SubtitlesButton",OL);class RL extends jb{constructor(e,n){n.track={player:e,kind:n.kind,label:n.kind+" settings",selectable:!1,default:!1,mode:"disabled"},n.selectable=!1,n.name="CaptionSettingsMenuItem",super(e,n),this.addClass("vjs-texttrack-settings"),this.controlText(", opens "+n.kind+" settings dialog")}handleClick(e){this.player().getChild("textTrackSettings").open()}handleLanguagechange(){this.$(".vjs-menu-item-text").textContent=this.player_.localize(this.options_.kind+" settings"),super.handleLanguagechange()}}je.registerComponent("CaptionSettingsMenuItem",RL);class kL extends Vg{constructor(e,n,i){super(e,n,i),this.setIcon("captions")}buildCSSClass(){return`vjs-captions-button ${super.buildCSSClass()}`}buildWrapperCSSClass(){return`vjs-captions-button ${super.buildWrapperCSSClass()}`}createItems(){const e=[];return!(this.player().tech_&&this.player().tech_.featuresNativeTextTracks)&&this.player().getChild("textTrackSettings")&&(e.push(new RL(this.player_,{kind:this.kind_})),this.hideThreshold_+=1),super.createItems(e)}}kL.prototype.kind_="captions";kL.prototype.controlText_="Captions";je.registerComponent("CaptionsButton",kL);class EY extends jb{createEl(e,n,i){const r=super.createEl(e,n,i),s=r.querySelector(".vjs-menu-item-text");return this.options_.track.kind==="captions"&&(this.player_.options_.experimentalSvgIcons?this.setIcon("captions",r):s.appendChild(rn("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),s.appendChild(rn("span",{className:"vjs-control-text",textContent:` ${this.localize("Captions")}`}))),r}}je.registerComponent("SubsCapsMenuItem",EY);class IL extends Vg{constructor(e,n={}){super(e,n),this.label_="subtitles",this.setIcon("subtitles"),["en","en-us","en-ca","fr-ca"].indexOf(this.player_.language_)>-1&&(this.label_="captions",this.setIcon("captions")),this.menuButton_.controlText(Li(this.label_))}buildCSSClass(){return`vjs-subs-caps-button ${super.buildCSSClass()}`}buildWrapperCSSClass(){return`vjs-subs-caps-button ${super.buildWrapperCSSClass()}`}createItems(){let e=[];return!(this.player().tech_&&this.player().tech_.featuresNativeTextTracks)&&this.player().getChild("textTrackSettings")&&(e.push(new RL(this.player_,{kind:this.label_})),this.hideThreshold_+=1),e=super.createItems(e,EY),e}}IL.prototype.kinds_=["captions","subtitles"];IL.prototype.controlText_="Subtitles";je.registerComponent("SubsCapsButton",IL);class wY extends Gb{constructor(e,n){const i=n.track,r=e.audioTracks();n.label=i.label||i.language||"Unknown",n.selected=i.enabled,super(e,n),this.track=i,this.addClass(`vjs-${i.kind}-menu-item`);const s=(...a)=>{this.handleTracksChange.apply(this,a)};r.addEventListener("change",s),this.on("dispose",()=>{r.removeEventListener("change",s)})}createEl(e,n,i){const r=super.createEl(e,n,i),s=r.querySelector(".vjs-menu-item-text");return["main-desc","description"].indexOf(this.options_.track.kind)>=0&&(s.appendChild(rn("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),s.appendChild(rn("span",{className:"vjs-control-text",textContent:" "+this.localize("Descriptions")}))),r}handleClick(e){if(super.handleClick(e),this.track.enabled=!0,this.player_.tech_.featuresNativeAudioTracks){const n=this.player_.audioTracks();for(let i=0;i<n.length;i++){const r=n[i];r!==this.track&&(r.enabled=r===this.track)}}}handleTracksChange(e){this.selected(this.track.enabled)}}je.registerComponent("AudioTrackMenuItem",wY);class CY extends ML{constructor(e,n={}){n.tracks=e.audioTracks(),super(e,n),this.setIcon("audio")}buildCSSClass(){return`vjs-audio-button ${super.buildCSSClass()}`}buildWrapperCSSClass(){return`vjs-audio-button ${super.buildWrapperCSSClass()}`}createItems(e=[]){this.hideThreshold_=1;const n=this.player_.audioTracks();for(let i=0;i<n.length;i++){const r=n[i];e.push(new wY(this.player_,{track:r,selectable:!0,multiSelectable:!1}))}return e}}CY.prototype.controlText_="Audio Track";je.registerComponent("AudioTrackButton",CY);class LL extends Gb{constructor(e,n){const i=n.rate,r=parseFloat(i,10);n.label=i,n.selected=r===e.playbackRate(),n.selectable=!0,n.multiSelectable=!1,super(e,n),this.label=i,this.rate=r,this.on(e,"ratechange",s=>this.update(s))}handleClick(e){super.handleClick(),this.player().playbackRate(this.rate)}update(e){this.selected(this.player().playbackRate()===this.rate)}}LL.prototype.contentElType="button";je.registerComponent("PlaybackRateMenuItem",LL);class AY extends AL{constructor(e,n){super(e,n),this.menuButton_.el_.setAttribute("aria-describedby",this.labelElId_),this.updateVisibility(),this.updateLabel(),this.on(e,"loadstart",i=>this.updateVisibility(i)),this.on(e,"ratechange",i=>this.updateLabel(i)),this.on(e,"playbackrateschange",i=>this.handlePlaybackRateschange(i))}createEl(){const e=super.createEl();return this.labelElId_="vjs-playback-rate-value-label-"+this.id_,this.labelEl_=rn("div",{className:"vjs-playback-rate-value",id:this.labelElId_,textContent:"1x"}),e.appendChild(this.labelEl_),e}dispose(){this.labelEl_=null,super.dispose()}buildCSSClass(){return`vjs-playback-rate ${super.buildCSSClass()}`}buildWrapperCSSClass(){return`vjs-playback-rate ${super.buildWrapperCSSClass()}`}createItems(){const e=this.playbackRates(),n=[];for(let i=e.length-1;i>=0;i--)n.push(new LL(this.player(),{rate:e[i]+"x"}));return n}handlePlaybackRateschange(e){this.update()}playbackRates(){const e=this.player();return e.playbackRates&&e.playbackRates()||[]}playbackRateSupported(){return this.player().tech_&&this.player().tech_.featuresPlaybackRate&&this.playbackRates()&&this.playbackRates().length>0}updateVisibility(e){this.playbackRateSupported()?this.removeClass("vjs-hidden"):this.addClass("vjs-hidden")}updateLabel(e){this.playbackRateSupported()&&(this.labelEl_.textContent=this.player().playbackRate()+"x")}}AY.prototype.controlText_="Playback Rate";je.registerComponent("PlaybackRateMenuButton",AY);class MY extends je{buildCSSClass(){return`vjs-spacer ${super.buildCSSClass()}`}createEl(e="div",n={},i={}){return n.className||(n.className=this.buildCSSClass()),super.createEl(e,n,i)}}je.registerComponent("Spacer",MY);class $1e extends MY{buildCSSClass(){return`vjs-custom-control-spacer ${super.buildCSSClass()}`}createEl(){return super.createEl("div",{className:this.buildCSSClass(),textContent:"\xA0"})}}je.registerComponent("CustomControlSpacer",$1e);class DY extends je{createEl(){return super.createEl("div",{className:"vjs-control-bar",dir:"ltr"})}}DY.prototype.options_={children:["playToggle","skipBackward","skipForward","volumePanel","currentTimeDisplay","timeDivider","durationDisplay","progressControl","liveDisplay","seekToLive","remainingTimeDisplay","customControlSpacer","playbackRateMenuButton","chaptersButton","descriptionsButton","subsCapsButton","audioTrackButton","pictureInPictureToggle","fullscreenToggle"]};je.registerComponent("ControlBar",DY);class PY extends zg{constructor(e,n){super(e,n),this.on(e,"error",i=>{this.open(i)})}buildCSSClass(){return`vjs-error-display ${super.buildCSSClass()}`}content(){const e=this.player().error();return e?this.localize(e.message):""}}PY.prototype.options_=Object.assign({}
242,zg.prototype.options_,{pauseOnOpen:!1,fillAlways:!0,temporary:!1,uncloseable:!0});je.registerComponent("ErrorDisplay",PY);const qM="vjs-text-track-settings",PB=["#000","Black"],OB=["#00F","Blue"],RB=["#0FF","Cyan"],kB=["#0F0","Green"],IB=["#F0F","Magenta"],LB=["#F00","Red"],FB=["#FFF","White"],NB=["#FF0","Yellow"],XM=["1","Opaque"],YM=["0.5","Semi-Transparent"],BB=["0","Transparent"],bh={backgroundColor:{selector:".vjs-bg-color > select",id:"captions-background-color-%s",label:"Color",options:[PB,FB,LB,kB,OB,NB,IB,RB]},backgroundOpacity:{selector:".vjs-bg-opacity > select",id:"captions-background-opacity-%s",label:"Opacity",options:[XM,YM,BB]},color:{selector:".vjs-text-color > select",id:"captions-foreground-color-%s",label:"Color",options:[FB,PB,LB,kB,OB,NB,IB,RB]},edgeStyle:{selector:".vjs-edge-style > select",id:"%s",label:"Text Edge Style",options:[["none","None"],["raised","Raised"],["depressed","Depressed"],["uniform","Uniform"],["dropshadow","Drop shadow"]]},fontFamily:{selector:".vjs-font-family > select",id:"captions-font-family-%s",label:"Font Family",options:[["proportionalSansSerif","Proportional Sans-Serif"],["monospaceSansSerif","Monospace Sans-Serif"],["proportionalSerif","Proportional Serif"],["monospaceSerif","Monospace Serif"],["casual","Casual"],["script","Script"],["small-caps","Small Caps"]]},fontPercent:{selector:".vjs-font-percent > select",id:"captions-font-size-%s",label:"Font Size",options:[["0.50","50%"],["0.75","75%"],["1.00","100%"],["1.25","125%"],["1.50","150%"],["1.75","175%"],["2.00","200%"],["3.00","300%"],["4.00","400%"]],default:2,parser:t=>t==="1.00"?null:Number(t)},textOpacity:{selector:".vjs-text-opacity > select",id:"captions-foreground-opacity-%s",label:"Opacity",options:[XM,YM]},windowColor:{selector:".vjs-window-color > select",id:"captions-window-color-%s",label:"Color"},windowOpacity:{selector:".vjs-window-opacity > select",id:"captions-window-opacity-%s",label:"Opacity",options:[BB,YM,XM]}};bh.windowColor.options=bh.backgroundColor.options;function OY(t,e){if(e&&(t=e(t)),t&&t!=="none")return t}function z1e(t,e){const n=t.options[t.options.selectedIndex].value;return OY(n,e)}function H1e(t,e,n){if(!!e){for(let i=0;i<t.options.length;i++)if(OY(t.options[i].value,n)===e){t.selectedIndex=i;break}}}class V1e extends zg{constructor(e,n){n.temporary=!1,super(e,n),this.updateDisplay=this.updateDisplay.bind(this),this.fill(),this.hasBeenOpened_=this.hasBeenFilled_=!0,this.endDialog=rn("p",{className:"vjs-control-text",textContent:this.localize("End of dialog window.")}),this.el().appendChild(this.endDialog),this.setDefaults(),n.persistTextTrackSettings===void 0&&(this.options_.persistTextTrackSettings=this.options_.playerOptions.persistTextTrackSettings),this.on(this.$(".vjs-done-button"),"click",()=>{this.saveSettings(),this.close()}),this.on(this.$(".vjs-default-button"),"click",()=>{this.setDefaults(),this.updateDisplay()}),Mm(bh,i=>{this.on(this.$(i.selector),"change",this.updateDisplay)}),this.options_.persistTextTrackSettings&&this.restoreSettings()}dispose(){this.endDialog=null,super.dispose()}createElSelect_(e,n="",i="label"){const r=bh[e],s=r.id.replace("%s",this.id_),a=[n,s].join(" ").trim(),o=`vjs_select_${hl()}`;return[`<${i} id="${s}"${i==="label"?` for="${o}" class="vjs-label"`:""}>`,this.localize(r.label),`</${i}>`,`<select aria-labelledby="${a}" id="${o}">`].concat(r.options.map(l=>{const u=s+"-"+l[1].replace(/\W+/g,"");return[`<option id="${u}" value="${l[0]}" `,`aria-labelledby="${a} ${u}">`,this.localize(l[1]),"</option>"].join("")})).concat("</select>").join("")}createElFgColor_(){const e=`captions-text-legend-${this.id_}`;return['<fieldset class="vjs-fg vjs-track-setting">',`<legend id="${e}">`,this.localize("Text"),"</legend>",'<span class="vjs-text-color">',this.createElSelect_("color",e),"</span>",'<span class="vjs-text-opacity vjs-opacity">',this.createElSelect_("textOpacity",e),"</span>","</fieldset>"].join("")}createElBgColor_(){const e=`captions-background-${this.id_}`;return['<fieldset class="vjs-bg vjs-track-setting">',`<legend id="${e}">
242`,this.localize("Text Background"),"</legend>",'<span class="vjs-bg-color">',this.createElSelect_("backgroundColor",e),"</span>",'<span class="vjs-bg-opacity vjs-opacity">',this.createElSelect_("backgroundOpacity",e),"</span>","</fieldset>"].join("")}createElWinColor_(){const e=`captions-window-${this.id_}`;return['<fieldset class="vjs-window vjs-track-setting">',`<legend id="${e}">`,this.localize("Caption Area Background"),"</legend>",'<span class="vjs-window-color">',this.createElSelect_("windowColor",e),"</span>",'<span class="vjs-window-opacity vjs-opacity">',this.createElSelect_("windowOpacity",e),"</span>","</fieldset>"].join("")}createElColors_(){return rn("div",{className:"vjs-track-settings-colors",innerHTML:[this.createElFgColor_(),this.createElBgColor_(),this.createElWinColor_()].join("")})}createElFont_(){return rn("div",{className:"vjs-track-settings-font",innerHTML:['<fieldset class="vjs-font-percent vjs-track-setting">',this.createElSelect_("fontPercent","","legend"),"</fieldset>",'<fieldset class="vjs-edge-style vjs-track-setting">',this.createElSelect_("edgeStyle","","legend"),"</fieldset>",'<fieldset class="vjs-font-family vjs-track-setting">',this.createElSelect_("fontFamily","","legend"),"</fieldset>"].join("")})}createElControls_(){const e=this.localize("restore all settings to the default values");return rn("div",{className:"vjs-track-settings-controls",innerHTML:[`<button type="button" class="vjs-default-button" title="${e}">`,this.localize("Reset"),`<span class="vjs-control-text"> ${e}</span>`,"</button>",`<button type="button" class="vjs-done-button">${this.localize("Done")}</button>`].join("")})}content(){return[this.createElColors_(),this.createElFont_(),this.createElControls_()]}label(){return this.localize("Caption Settings Dialog")}description(){return this.localize("Beginning of dialog window. Escape will cancel and close the window.")}buildCSSClass(){return super.buildCSSClass()+" vjs-text-track-settings"}getValues(){return wX(bh,(e,n,i)=>{const r=z1e(this.$(n.selector),n.parser);return r!==void 0&&(e[i]=r),e},{})}setValues(e){Mm(bh,(n,i)=>{H1e(this.$(n.selector),e[i],n.parser)})}setDefaults(){Mm(bh,e=>{const n=e.hasOwnProperty("default")?e.default:0;this.$(e.selector).selectedIndex=n})}restoreSettings(){let e;try{e=JSON.parse(ue.localStorage.getItem(qM))}catch(n){Sn.warn(n)}e&&this.setValues(e)}saveSettings(){if(!this.options_.persistTextTrackSettings)return;const e=this.getValues();try{Object.keys(e).length?ue.localStorage.setItem(qM,JSON.stringify(e)):ue.localStorage.removeItem(qM)}catch(n){Sn.warn(n)}}updateDisplay(){const e=this.player_.getChild("textTrackDisplay");e&&e.updateDisplay()}conditionalBlur_(){this.previouslyActiveEl_=null;const e=this.player_.controlBar,n=e&&e.subsCapsButton,i=e&&e.captionsButton;n?n.focus():i&&i.focus()}handleLanguagechange(){this.fill()}}je.registerComponent("TextTrackSettings",V1e);class W1e extends je{constructor(e,n){let i=n.ResizeObserver||ue.ResizeObserver;n.ResizeObserver===null&&(i=!1);const r=ii({createEl:!i,reportTouchActivity:!1},n);super(e,r),this.ResizeObserver=n.ResizeObserver||ue.ResizeObserver,this.loadListener_=null,this.resizeObserver_=null,this.debouncedHandler_=XX(()=>{this.resizeHandler()},100,!1,this),i?(this.resizeObserver_=new this.ResizeObserver(this.debouncedHandler_),this.resizeObserver_.observe(e.el())):(this.loadListener_=()=>{if(!this.el_||!this.el_.contentWindow)return;const s=this.debouncedHandler_;let a=this.unloadListener_=function(){ss(this,"resize",s),ss(this,"unload",a),a=null};ja(this.el_.contentWindow,"unload",a),ja(this.el_.contentWindow,"resize",s)},this.one("load",this.loadListener_))}createEl(){return super.createEl("iframe",{className:"vjs-resize-manager",tabIndex:-1,title:this.localize("No content")},{"aria-hidden":"true"})}resizeHandler(){!this.player_||!this.player_.trigger||this.player_.trigger("playerresize")}dispose(){this.debouncedHandler_&&this.debouncedHandler_.cancel(),this.resizeObserver_&&(this.player_.el()&&this.resizeObserver_.unobserve(this.player_.el()),this.resizeObserver_.disconnect()),this.loadListener_&&this.off("load",this.loadListener_),this.el_&&this.el_.contentWindow&&this.unloadListener_&&this.unloadListener_.call(this.el_.contentWindow),this.ResizeObserver=null,this.resizeObserver=null,this.debouncedHandler_=null,this.loadListener_=null,super.dispose()}}je.registerComponent("ResizeManager",W1e);const G1e={trackingThreshold:20,liveTolerance:15};
vendor: 9,924 bytes, lines 242-243
242class j1e extends je{constructor(e,n){const i=ii(G1e,n,{createEl:!1});super(e,i),this.trackLiveHandler_=()=>this.trackLive_(),this.handlePlay_=r=>this.handlePlay(r),this.handleFirstTimeupdate_=r=>this.handleFirstTimeupdate(r),this.handleSeeked_=r=>this.handleSeeked(r),this.seekToLiveEdge_=r=>this.seekToLiveEdge(r),this.reset_(),this.on(this.player_,"durationchange",r=>this.handleDurationchange(r)),this.on(this.player_,"canplay",()=>this.toggleTracking())}trackLive_(){const e=this.player_.seekable();if(!e||!e.length)return;const n=Number(ue.performance.now().toFixed(4)),i=this.lastTime_===-1?0:(n-this.lastTime_)/1e3;this.lastTime_=n,this.pastSeekEnd_=this.pastSeekEnd()+i;const r=this.liveCurrentTime(),s=this.player_.currentTime();let a=this.player_.paused()||this.seekedBehindLive_||Math.abs(r-s)>this.options_.liveTolerance;(!this.timeupdateSeen_||r===1/0)&&(a=!1),a!==this.behindLiveEdge_&&(this.behindLiveEdge_=a,this.trigger("liveedgechange"))}handleDurationchange(){this.toggleTracking()}toggleTracking(){this.player_.duration()===1/0&&this.liveWindow()>=this.options_.trackingThreshold?(this.player_.options_.liveui&&this.player_.addClass("vjs-liveui"),this.startTracking()):(this.player_.removeClass("vjs-liveui"),this.stopTracking())}startTracking(){this.isTracking()||(this.timeupdateSeen_||(this.timeupdateSeen_=this.player_.hasStarted()),this.trackingInterval_=this.setInterval(this.trackLiveHandler_,Ro),this.trackLive_(),this.on(this.player_,["play","pause"],this.trackLiveHandler_),this.timeupdateSeen_?this.on(this.player_,"seeked",this.handleSeeked_):(this.one(this.player_,"play",this.handlePlay_),this.one(this.player_,"timeupdate",this.handleFirstTimeupdate_)))}handleFirstTimeupdate(){this.timeupdateSeen_=!0,this.on(this.player_,"seeked",this.handleSeeked_)}handleSeeked(){const e=Math.abs(this.liveCurrentTime()-this.player_.currentTime());this.seekedBehindLive_=this.nextSeekedFromUser_&&e>2,this.nextSeekedFromUser_=!1,this.trackLive_()}handlePlay(){this.one(this.player_,"timeupdate",this.seekToLiveEdge_)}reset_(){this.lastTime_=-1,this.pastSeekEnd_=0,this.lastSeekEnd_=-1,this.behindLiveEdge_=!0,this.timeupdateSeen_=!1,this.seekedBehindLive_=!1,this.nextSeekedFromUser_=!1,this.clearInterval(this.trackingInterval_),this.trackingInterval_=null,this.off(this.player_,["play","pause"],this.trackLiveHandler_),this.off(this.player_,"seeked",this.handleSeeked_),this.off(this.player_,"play",this.handlePlay_),this.off(this.player_,"timeupdate",this.handleFirstTimeupdate_),this.off(this.player_,"timeupdate",this.seekToLiveEdge_)}nextSeekedFromUser(){this.nextSeekedFromUser_=!0}stopTracking(){!this.isTracking()||(this.reset_(),this.trigger("liveedgechange"))}seekableEnd(){const e=this.player_.seekable(),n=[];let i=e?e.length:0;for(;i--;)n.push(e.end(i));return n.length?n.sort()[n.length-1]:1/0}seekableStart(){const e=this.player_.seekable(),n=[];let i=e?e.length:0;for(;i--;)n.push(e.start(i));return n.length?n.sort()[0]:0}liveWindow(){const e=this.liveCurrentTime();return e===1/0?0:e-this.seekableStart()}isLive(){return this.isTracking()}atLiveEdge(){return!this.behindLiveEdge()}liveCurrentTime(){return this.pastSeekEnd()+this.seekableEnd()}pastSeekEnd(){const e=this.seekableEnd();return this.lastSeekEnd_!==-1&&e!==this.lastSeekEnd_&&(this.pastSeekEnd_=0),this.lastSeekEnd_=e,this.pastSeekEnd_}behindLiveEdge(){return this.behindLiveEdge_}isTracking(){return typeof this.trackingInterval_=="number"}seekToLiveEdge(){this.seekedBehindLive_=!1,!this.atLiveEdge()&&(this.nextSeekedFromUser_=!1,this.player_.currentTime(this.liveCurrentTime()))}dispose(){this.stopTracking(),super.dispose()}}je.registerComponent("LiveTracker",j1e);class q1e extends je{constructor(e,n){super(e,n),this.on("statechanged",i=>this.updateDom_()),this.updateDom_()}createEl(){return this.els={title:rn("div",{className:"vjs-title-bar-title",id:`vjs-title-bar-title-${hl()}`}),description:rn("div",{className:"vjs-title-bar-description",id:`vjs-title-bar-description-${hl()}`})},rn("div",{className:"vjs-title-bar"},{},CX(this.els))}updateDom_(){const e=this.player_.tech_,n=e&&e.el_,i={title:"aria-labelledby",description:"aria-describedby"};["title","description"].forEach(r=>{const s=this.state[r],a=this.els[r],o=i[r];Pw(a),s&&Cd(a,s),n&&(n.removeAttribute(o),s&&n.setAttribute(o,a.id))}),this.state.title||this.state.description?this.show():this.hide()}update(e){this.setState(e)}dispose(){const e=this.player_.tech_,n=e&&e.el_;n&&(n.removeAttribute("aria-labelledby"),n.removeAttribute("aria-describedby")),super.dispose(),this.els=null}}je.registerComponent("TitleBar",q1e);const PO=t=>{const e=t.el();if(e.hasAttribute("src"))return t.triggerSourceset(e.src),!0;const n=t.$$("source"),i=[];let r="";if(!n.length)return!1;for(let s=0;s<n.length;s++){const a=n[s].src;a&&i.indexOf(a)===-1&&i.push(a)}return i.length?(i.length===1&&(r=i[0]),t.triggerSourceset(r),!0):!1},X1e=Object.defineProperty({},"innerHTML",{get(){return this.cloneNode(!0).innerHTML},set(t){const e=ct.createElement(this.nodeName.toLowerCase());e.innerHTML=t;const n=ct.createDocumentFragment();for(;e.childNodes.length;)n.appendChild(e.childNodes[0]);return this.innerText="",ue.Element.prototype.appendChild.call(this,n),this.innerHTML}}),RY=(t,e)=>{let n={};for(let i=0;i<t.length&&(n=Object.getOwnPropertyDescriptor(t[i],e),!(n&&n.set&&n.get));i++);return n.enumerable=!0,n.configurable=!0,n},Y1e=t=>RY([t.el(),ue.HTMLMediaElement.prototype,ue.Element.prototype,X1e],"innerHTML"),UB=function(t){const e=t.el();if(e.resetSourceWatch_)return;const n={},i=Y1e(t),r=s=>(...a)=>{const o=s.apply(e,a);return PO(t),o};["append","appendChild","insertAdjacentHTML"].forEach(s=>{!e[s]||(n[s]=e[s],e[s]=r(n[s]))}),Object.defineProperty(e,"innerHTML",ii(i,{set:r(i.set)})),e.resetSourceWatch_=()=>{e.resetSourceWatch_=null,Object.keys(n).forEach(s=>{e[s]=n[s]}),Object.defineProperty(e,"innerHTML",i)},t.one("sourceset",e.resetSourceWatch_)},K1e=Object.defineProperty({},"src",{get(){return this.hasAttribute("src")?rY(ue.Element.prototype.getAttribute.call(this,"src")):""},set(t){return ue.Element.prototype.setAttribute.call(this,"src",t),t}}),Z1e=t=>RY([t.el(),ue.HTMLMediaElement.prototype,K1e],"src"),Q1e=function(t){if(!t.featuresSourceset)return;const e=t.el();if(e.resetSourceset_)return;const n=Z1e(t),i=e.setAttribute,r=e.load;Object.defineProperty(e,"src",ii(n,{set:s=>{const a=n.set.call(e,s);return t.triggerSourceset(e.src),a}})),e.setAttribute=(s,a)=>{const o=i.call(e,s,a);return/src/i.test(s)&&t.triggerSourceset(e.src),o},e.load=()=>{const s=r.call(e);return PO(t)||(t.triggerSourceset(""),UB(t)),s},e.currentSrc?t.triggerSourceset(e.currentSrc):PO(t)||UB(t),e.resetSourceset_=()=>{e.resetSourceset_=null,e.load=r,e.setAttribute=i,Object.defineProperty(e,"src",n),e.resetSourceWatch_&&e.resetSourceWatch_()}};class _t extends Qt{constructor(e,n){super(e,n);const i=e.source;let r=!1;if(this.featuresVideoFrameCallback=this.featuresVideoFrameCallback&&this.el_.tagName==="VIDEO",i&&(this.el_.currentSrc!==i.src||e.tag&&e.tag.initNetworkState_===3)?this.setSource(i):this.handleLateInit_(this.el_),e.enableSourceset&&this.setupSourcesetHandling_(),this.isScrubbing_=!1,this.el_.hasChildNodes()){const s=this.el_.childNodes;let a=s.length;const o=[];for(;a--;){const l=s[a];l.nodeName.toLowerCase()==="track"&&(this.featuresNativeTextTracks?(this.remoteTextTrackEls().addTrackElement_(l),this.remoteTextTracks().addTrack(l.track),this.textTracks().addTrack(l.track),!r&&!this.el_.hasAttribute("crossorigin")&&Iw(l.src)&&(r=!0)):o.push(l))}for(let l=0;l<o.length;l++)this.el_.removeChild(o[l])}this.proxyNativeTracks_(),this.featuresNativeTextTracks&&r&&Sn.warn(`Text Tracks are being loaded from another origin but the crossorigin attribute isn't used.
243This may prevent text tracks from loading.`),this.restoreMetadataTracksInIOSNativePlayer_(),(Qy||ww)&&e.nativeControlsForTouch===!0&&this.setControls(!0),this.proxyWebkitFullscreen_(),this.triggerReady()}dispose(){this.el_&&this.el_.resetSourceset_&&this.el_.resetSourceset_(),_t.disposeMediaElement(this.el_),this.options_=null,super.dispose()}setupSourcesetHandling_(){Q1e(this)}restoreMetadataTracksInIOSNativePlayer_(){const e=this.textTracks();let n;const i=()=>{n=[];for(let s=0;s<e.length;s++){const a=e[s];a.kind==="metadata"&&n.push({track:a,storedMode:a.mode})}};i(),e.addEventListener("change",i),this.on("dispose",()=>e.removeEventListener("change",i));const r=()=>{for(let s=0;s<n.length;s++){const a=n[s];a.track.mode==="disabled"&&a.track.mode!==a.storedMode&&(a.track.mode=a.storedMode)}e.removeEventListener("change",r)};this.on("webkitbeginfullscreen",()=>{e.removeEventListener("change",i),e.removeEventListener("change",r),e.addEventListener("change",r)}),this.on("webkitendfullscreen",()=>{e.removeEventListener("change",i),e.addEventListener("change",i),e.removeEventListener("change",r)})}overrideNative_(e,n){if(n!==this[`featuresNative${e}Tracks`])return;const i=e.toLowerCase();this[`${i}TracksListeners_`]&&Object.keys(this[`${i}TracksListeners_`]).forEach(r=>{this.el()[`${i}Tracks`].removeEventListener(r,this[`${i}TracksListeners_`][r])}),this[`featuresNative${e}Tracks`]=!n,this[`${i}TracksListeners_`]=null,this.proxyNativeTracksForType_(i)}overrideNativeAudioTracks(e){this.overrideNative_("Audio",e)}overrideNativeVideoTracks(e){this.overrideNative_("Video",e)}proxyNativeTracksForType_(e){const n=Po[e],i=this.el()[n.getterName],r=this[n.getterName]();if(!this[`featuresNative${n.capitalName}Tracks`]||!i||!i.addEventListener)return;const s={change:o=>{const l={type:"change",target:r,currentTarget:r,srcElement:r};r.trigger(l),e==="text"&&this[vg.remoteText.getterName]().trigger(l)},addtrack(o){r.addTrack(o.track)},removetrack(o){r.removeTrack(o.track)}},a=function(){const o=[];for(let l=0;l<r.length;l++){let u=!1;for(let c=0;c<i.length;c++)if(i[c]===r[l]){u=!0;break}u||o.push(r[l])}for(;o.length;)r.removeTrack(o.shift())};
243this[n.getterName+"Listeners_"]=s,Object.keys(s).forEach(o=>{const l=s[o];i.addEventListener(o,l),this.on("dispose",u=>i.removeEventListener(o,l))}),this.on("loadstart",a),this.on("dispose",o=>this.off("loadstart",a))}proxyNativeTracks_(){Po.names.forEach(e=>{this.proxyNativeTracksForType_(e)})}createEl(){let e=this.options_.tag;if(!e||!(this.options_.playerElIngest||this.movingMediaElementInDOM)){if(e){const i=e.cloneNode(!0);e.parentNode&&e.parentNode.insertBefore(i,e),_t.disposeMediaElement(e),e=i}else{e=ct.createElement("video");const i=this.options_.tag&&Cf(this.options_.tag),r=ii({},i);(!Qy||this.options_.nativeControlsForTouch!==!0)&&delete r.controls,LX(e,Object.assign(r,{id:this.options_.techId,class:"vjs-tech"}))}e.playerId=this.options_.playerId}typeof this.options_.preload<"u"&&pg(e,"preload",this.options_.preload),this.options_.disablePictureInPicture!==void 0&&(e.disablePictureInPicture=this.options_.disablePictureInPicture);const n=["loop","muted","playsinline","autoplay"];for(let i=0;i<n.length;i++){const r=n[i],s=this.options_[r];typeof s<"u"&&(s?pg(e,r,r):Mw(e,r),e[r]=s)}return e}handleLateInit_(e){if(e.networkState===0||e.networkState===3)return;if(e.readyState===0){let i=!1;const r=function(){i=!0};this.on("loadstart",r);const s=function(){i||this.trigger("loadstart")};this.on("loadedmetadata",s),this.ready(function(){this.off("loadstart",r),this.off("loadedmetadata",s),i||this.trigger("loadstart")});return}const n=["loadstart"];n.push("loadedmetadata"),e.readyState>=2&&n.push("loadeddata"),e.readyState>=3&&n.push("canplay"),e.readyState>=4&&n.push("canplaythrough"),this.ready(function(){n.forEach(function(i){this.trigger(i)},this)})}setScrubbing(e){this.isScrubbing_=e}scrubbing(){return this.isScrubbing_}setCurrentTime(e){try{this.isScrubbing_&&this.el_.fastSeek&&Cw?this.el_.fastSeek(e):this.el_.currentTime=e}catch(n){Sn(n,"Video is not ready. (Video.js)")}}duration(){if(this.el_.duration===1/0&&hu&&pu&&this.el_.currentTime===0){const e=()=>{this.el_.currentTime>0&&(this.el_.duration===1/0&&this.trigger("durationchange"),this.off("timeupdate",e))};return this.on("timeupdate",e),NaN}return this.el_.duration||NaN}width(){return this.el_.offsetWidth}height(){return this.el_.offsetHeight}proxyWebkitFullscreen_(){if(!("webkitDisplayingFullscreen"in this.el_))return;const e=function(){this.trigger("fullscreenchange",{isFullscreen:!1}),this.el_.controls&&!this.options_.nativeControlsForTouch&&this.controls()&&(this.el_.controls=!1)},n=function(){"webkitPresentationMode"in this.el_&&this.el_.webkitPresentationMode!=="picture-in-picture"&&(this.one("webkitendfullscreen",e),this.trigger("fullscreenchange",{isFullscreen:!0,nativeIOSFullscreen:!0}))};this.on("webkitbeginfullscreen",n),this.on("dispose",()=>{this.off("webkitbeginfullscreen",n),this.off("webkitendfullscreen",e)})}supportsFullScreen(){return typeof this.el_.webkitEnterFullScreen=="function"}enterFullScreen(){const e=this.el_;if(e.paused&&e.networkState<=e.HAVE_METADATA)ql(this.el_.play()),this.setTimeout(function(){e.pause();try{e.webkitEnterFullScreen()}catch(n){this.trigger("fullscreenerror",n)}},0);else try{e.webkitEnterFullScreen()}catch(n){this.trigger("fullscreenerror",n)}}exitFullScreen(){if(!this.el_.webkitDisplayingFullscreen){this.trigger("fullscreenerror",new Error("The video is not fullscreen"));return}this.el_.webkitExitFullScreen()}requestPictureInPicture(){return this.el_.requestPictureInPicture()}requestVideoFrameCallback(e){return this.featuresVideoFrameCallback&&!this.el_.webkitKeys?this.el_.requestVideoFrameCallback(e):super.requestVideoFrameCallback(e)}cancelVideoFrameCallback(e){this.featuresVideoFrameCallback&&!this.el_.webkitKeys?this.el_.cancelVideoFrameCallback(e):super.cancelVideoFrameCallback(e)}src(e){if(e===void 0)return this.el_.src;this.setSrc(e)}reset(){_t.resetMediaElement(this.el_)}currentSrc(){return this.currentSource_?this.currentSource_.src:this.el_.currentSrc}setControls(e){this.el_.controls=!!e}addTextTrack(e,n,i){return this.featuresNativeTextTracks?this.el_.addTextTrack(e,n,i):super.addTextTrack(e,n,i)}createRemoteTextTrack(e){if(!this.featuresNativeTextTracks)return super.createRemoteTextTrack(e);const n=ct.createElement("track");return e.kind&&(n.kind=e.kind),e.label&&(n.label=e.label),(e.language||e.srclang)&&(n.srclang=e.language||e.srclang),e.default&&(n.default=e.default),e.id&&(n.id=e.id),e.src&&(n.src=e.src),n}addRemoteTextTrack(e,n){const i=super.addRemoteTextTrack(e,n);return this.featuresNativeTextTracks&&this.el().appendChild(i),i}removeRemoteTextTrack(e){if(super.removeRemoteTextTrack(e),this.featuresNativeTextTracks){const n=this.$$("track");let i=n.length;for(;i--;)(e===n[i]||e===n[i].track)&&this.el().removeChild(n[i])}}getVideoPlaybackQuality(){if(typeof this.el().getVideoPlaybackQuality=="function")return this.el().getVideoPlaybackQuality();const e={};return typeof this.el().webkitDroppedFrameCount<"u"&&typeof this.el().webkitDecodedFrameCount<"u"&&(e.droppedVideoFrames=this.el().webkitDroppedFrameCount,e.totalVideoFrames=this.el().webkitDecodedFrameCount),ue.performance&&(e.creationTime=ue.performance.now()),e}}Sw(_t,"TEST_VID",function(){if(!Bg())return;const t=ct.createElement("video"),e=ct.createElement("track");return e.kind="captions",e.srclang="en",e.label="English",t.appendChild(e),t});_t.isSupported=function(){try{_t.TEST_VID.volume=.5}catch(t){return!1}return!!(_t.TEST_VID&&_t.TEST_VID.canPlayType)};_t.canPlayType=function(t){return _t.TEST_VID.canPlayType(t)};_t.canPlaySource=function(t,e){return _t.canPlayType(t.type)};_t.canControlVolume=function(){try{const t=_t.TEST_VID.volume;
243_t.TEST_VID.volume=t/2+.1;const e=t!==_t.TEST_VID.volume;return e&&Ds?(ue.setTimeout(()=>{_t&&_t.prototype&&(_t.prototype.featuresVolumeControl=t!==_t.TEST_VID.volume)}),!1):e}catch(t){return!1}};_t.canMuteVolume=function(){try{const t=_t.TEST_VID.muted;return _t.TEST_VID.muted=!t,_t.TEST_VID.muted?pg(_t.TEST_VID,"muted","muted"):Mw(_t.TEST_VID,"muted","muted"),t!==_t.TEST_VID.muted}catch(t){return!1}};_t.canControlPlaybackRate=function(){if(hu&&pu&&Tw<58)return!1;try{const t=_t.TEST_VID.playbackRate;return _t.TEST_VID.playbackRate=t/2+.1,t!==_t.TEST_VID.playbackRate}catch(t){return!1}};_t.canOverrideAttributes=function(){try{const t=()=>{};Object.defineProperty(ct.createElement("video"),"src",{get:t,set:t}),Object.defineProperty(ct.createElement("audio"),"src",{get:t,set:t}),Object.defineProperty(ct.createElement("video"),"innerHTML",{get:t,set:t}),Object.defineProperty(ct.createElement("audio"),"innerHTML",{get:t,set:t})}catch(t){return!1}return!0};_t.supportsNativeTextTracks=function(){return Cw||Ds&&pu};_t.supportsNativeVideoTracks=function(){return!!(_t.TEST_VID&&_t.TEST_VID.videoTracks)};_t.supportsNativeAudioTracks=function(){return!!(_t.TEST_VID&&_t.TEST_VID.audioTracks)};_t.Events=["loadstart","suspend","abort","error","emptied","stalled","loadedmetadata","loadeddata","canplay","canplaythrough","playing","waiting","seeking","seeked","ended","durationchange","timeupdate","progress","play","pause","ratechange","resize","volumechange"];[["featuresMuteControl","canMuteVolume"],["featuresPlaybackRate","canControlPlaybackRate"],["featuresSourceset","canOverrideAttributes"],["featuresNativeTextTracks","supportsNativeTextTracks"],["featuresNativeVideoTracks","supportsNativeVideoTracks"],["featuresNativeAudioTracks","supportsNativeAudioTracks"]].forEach(function([t,e]){Sw(_t.prototype,t,()=>_t[e](),!0)});_t.prototype.featuresVolumeControl=_t.canControlVolume();_t.prototype.movingMediaElementInDOM=!Ds;_t.prototype.featuresFullscreenResize=!0;_t.prototype.featuresProgressEvents=!0;_t.prototype.featuresTimeupdateEvents=!0;_t.prototype.featuresVideoFrameCallback=!!(_t.TEST_VID&&_t.TEST_VID.requestVideoFrameCallback);_t.disposeMediaElement=function(t){if(!!t){for(t.parentNode&&t.parentNode.removeChild(t);t.hasChildNodes();)t.removeChild(t.firstChild);t.removeAttribute("src"),typeof t.load=="function"&&function(){try{t.load()}catch(e){}}()}};_t.resetMediaElement=function(t){if(!t)return;const e=t.querySelectorAll("source");let n=e.length;for(;n--;)t.removeChild(e[n]);t.removeAttribute("src"),typeof t.load=="function"&&function(){try{t.load()}catch(i){}}()};["muted","defaultMuted","autoplay","controls","loop","playsinline"].forEach(function(t){_t.prototype[t]=function(){return this.el_[t]||this.el_.hasAttribute(t)}});["muted","defaultMuted","autoplay","loop","playsinline"].forEach(function(t){_t.prototype["set"+Li(t)]=function(e){this.el_[t]=e,e?this.el_.setAttribute(t,t):this.el_.removeAttribute(t)}});["paused","currentTime","buffered","volume","poster","preload","error","seeking","seekable","ended","playbackRate","defaultPlaybackRate","disablePictureInPicture","played","networkState","readyState","videoWidth","videoHeight","crossOrigin"].forEach(function(t){_t.prototype[t]=function(){return this.el_[t]}});["volume","src","poster","preload","playbackRate","defaultPlaybackRate","disablePictureInPicture","crossOrigin"].forEach(function(t){_t.prototype["set"+Li(t)]=function(e){this.el_[t]=e}});["pause","load","play"].forEach(function(t){_t.prototype[t]=function(){return this.el_[t]()}});Qt.withSourceHandlers(_t);_t.nativeSourceHandler={};_t.nativeSourceHandler.canPlayType=function(t){try{return _t.TEST_VID.canPlayType(t)}catch(e){return""}};_t.nativeSourceHandler.canHandleSource=function(t,e){if(t.type)return _t.nativeSourceHandler.canPlayType(t.type);if(t.src){const n=yL(t.src);return _t.nativeSourceHandler.canPlayType(`video/${n}`)}return""};_t.nativeSourceHandler.handleSource=function(t,e,n){e.setSrc(t.src)};_t.nativeSourceHandler.dispose=function(){};_t.registerSourceHandler(_t.nativeSourceHandler);Qt.registerTech("Html5",_t);const kY=["progress","abort","suspend","emptied","stalled","loadedmetadata","loadeddata","timeupdate","resize","volumechange","texttrackchange"],KM={canplay:"CanPlay",canplaythrough:"CanPlayThrough",playing:"Playing",seeked:"Seeked"},OO=["tiny","xsmall","small","medium","large","xlarge","huge"],OT={};OO.forEach(t=>{const e=t.charAt(0)==="x"?`x-${t.substring(1)}`:t;OT[t]=`vjs-layout-${e}`});const J1e={tiny:210,xsmall:320,small:425,medium:768,large:1440,xlarge:2560,huge:1/0};class hi extends je{constructor(e,n,i){if(e.id=e.id||n.id||`vjs_video_${hl()}`,n=Object.assign(hi.getTagSettings(e),n),n.initChildren=!1,n.createEl=!1,n.evented=!1,n.reportTouchActivity=!1,!n.language){const a=e.closest("[lang]");a&&(n.language=a.getAttribute("lang"))}if(super(null,n,i),this.boundDocumentFullscreenChange_=a=>this.documentFullscreenChange_(a),this.boundFullWindowOnEscKey_=a=>this.fullWindowOnEscKey(a),this.boundUpdateStyleEl_=a=>this.updateStyleEl_(a),this.boundApplyInitTime_=a=>this.applyInitTime_(a),this.boundUpdateCurrentBreakpoint_=a=>this.updateCurrentBreakpoint_(a),this.boundHandleTechClick_=a=>this.handleTechClick_(a),this.boundHandleTechDoubleClick_=a=>this.handleTechDoubleClick_(a),this.boundHandleTechTouchStart_=a=>this.handleTechTouchStart_(a),this.boundHandleTechTouchMove_=a=>this.handleTechTouchMove_(a),this.boundHandleTechTouchEnd_=a=>this.handleTechTouchEnd_(a),this.boundHandleTechTap_=a=>this.handleTechTap_(a),this.isFullscreen_=!1,this.log=TX(this.id_),this.fsApi_=B2,this.isPosterFromTech_=!1,this.queuedCallbacks_=[],this.isReady_=!1,this.hasStarted_=!1,this.userActive_=!1,this.debugEnabled_=!1,this.audioOnlyMode_=!1,this.audioPosterMode_=!1,this.audioOnlyCache_={playerHe
vendor: 4,219 bytes, line 243
243ight:null,hiddenChildren:[]},!this.options_||!this.options_.techOrder||!this.options_.techOrder.length)throw new Error("No techOrder specified. Did you overwrite videojs.options instead of just changing the properties you want to override?");if(this.tag=e,this.tagAttributes=e&&Cf(e),this.language(this.options_.language),n.languages){const a={};Object.getOwnPropertyNames(n.languages).forEach(function(o){a[o.toLowerCase()]=n.languages[o]}),this.languages_=a}else this.languages_=hi.prototype.options_.languages;this.resetCache_(),this.poster_=n.poster||"",this.controls_=!!n.controls,e.controls=!1,e.removeAttribute("controls"),this.changingSrc_=!1,this.playCallbacks_=[],this.playTerminatedQueue_=[],e.hasAttribute("autoplay")?this.autoplay(!0):this.autoplay(this.options_.autoplay),n.plugins&&Object.keys(n.plugins).forEach(a=>{if(typeof this[a]!="function")throw new Error(`plugin "${a}" does not exist`)}),this.scrubbing_=!1,this.el_=this.createEl(),mL(this,{eventBusKey:"el_"}),this.fsApi_.requestFullscreen&&(ja(ct,this.fsApi_.fullscreenchange,this.boundDocumentFullscreenChange_),this.on(this.fsApi_.fullscreenchange,this.boundDocumentFullscreenChange_)),this.fluid_&&this.on(["playerreset","resize"],this.boundUpdateStyleEl_);const r=ii(this.options_);if(n.plugins&&Object.keys(n.plugins).forEach(a=>{this[a](n.plugins[a])}),n.debug&&this.debug(!0),this.options_.playerOptions=r,this.middleware_=[],this.playbackRates(n.playbackRates),n.experimentalSvgIcons){const o=new ue.DOMParser().parseFromString(E1e,"image/svg+xml");if(o.querySelector("parsererror"))Sn.warn("Failed to load SVG Icons. Falling back to Font Icons."),this.options_.experimentalSvgIcons=null;else{const u=o.documentElement;u.style.display="none",this.el_.appendChild(u),this.addClass("vjs-svg-icons-enabled")}}this.initChildren(),this.isAudio(e.nodeName.toLowerCase()==="audio"),this.controls()?this.addClass("vjs-controls-enabled"):this.addClass("vjs-controls-disabled"),this.el_.setAttribute("role","region"),this.isAudio()?this.el_.setAttribute("aria-label",this.localize("Audio Player")):this.el_.setAttribute("aria-label",this.localize("Video Player")),this.isAudio()&&this.addClass("vjs-audio"),Qy&&this.addClass("vjs-touch-enabled"),Ds||this.addClass("vjs-workinghover"),hi.players[this.id_]=this;const s=_O.split(".")[0];this.addClass(`vjs-v${s}`),this.userActive(!0),this.reportUserActivity(),this.one("play",a=>this.listenForUserActivity_(a)),this.on("keydown",a=>this.handleKeyDown(a)),this.on("languagechange",a=>this.handleLanguagechange(a)),this.breakpoints(this.options_.breakpoints),this.responsive(this.options_.responsive),this.on("ready",()=>{this.audioPosterMode(this.options_.audioPosterMode),this.audioOnlyMode(this.options_.audioOnlyMode)})}dispose(){this.trigger("dispose"),this.off("dispose"),ss(ct,this.fsApi_.fullscreenchange,this.boundDocumentFullscreenChange_),ss(ct,"keydown",this.boundFullWindowOnEscKey_),this.styleEl_&&this.styleEl_.parentNode&&(this.styleEl_.parentNode.removeChild(this.styleEl_),this.styleEl_=null),hi.players[this.id_]=null,this.tag&&this.tag.player&&(this.tag.player=null),this.el_&&this.el_.player&&(this.el_.player=null),this.tech_&&(this.tech_.dispose(),this.isPosterFromTech_=!1,this.poster_=""),this.playerElIngest_&&(this.playerElIngest_=null),this.tag&&(this.tag=null),b1e(this),Ts.names.forEach(e=>{const n=Ts[e],i=this[n.getterName]();i&&i.off&&i.off()}),super.dispose({restoreEl:this.options_.restoreEl})}createEl(){let e=this.tag,n,i=this.playerElIngest_=e.parentNode&&e.parentNode.hasAttribute&&e.parentNode.hasAttribute("data-vjs-player");const r=this.tag.tagName.toLowerCase()==="video-js";i?n=this.el_=e.parentNode:r||(n=this.el_=super.createEl("div"));const s=Cf(e);if(r){for(n=this.el_=e,e=this.tag=ct.createElement("video");n.children.length;)e.appendChild(n.firstChild);iy(n,"video-js")||Vh(n,"video-js"),n.appendChild(e),i=this.playerElIngest_=n,Object.keys(n).forEach(l=>{try{e[l]=n[l]}catch(u){}})}e.setAttribute("tabindex","-1"),s.tabindex="-1",pu&&Ew&&(e.setAttribute("role","application"),s.role="application"),e.removeAttribute("width"),e.removeAttribute("height"),"width"in s&&delete s.width,"height"in s&&delete s.height,Object.getOwnPropertyNames(s).forEac
243h(function(l){r&&l==="class"||n.setAttribute(l,s[l]),r&&e.setAttribute(l,s[l])}),e.playerId=e.id,e.id+="_html5_api",e.className="vjs-tech",e.player=n.player=this,this.addClass("vjs-paused");const a=["IS_SMART_TV","IS_TIZEN","IS_WEBOS","IS_ANDROID","IS_IPAD","IS_IPHONE"].filter(l=>OX[l]).map(l=>"vjs-device-"+l.substring(3).toLowerCase().replace(/\_/g,"-"));if(this.addClass(...a),ue.VIDEOJS_NO_DYNAMIC_STYLE!==!0){this.styleEl_=jX("vjs-styles-dimensions");const l=_d(".vjs-styles-defaults"),u=_d("head");u.insertBefore(this.styleEl_,l?l.nextSibling:u.firstChild)}this.fill_=!1,this.fluid_=!1,this.width(this.options_.width),this.height(this.options_.height),this.fill(this.options_.fill),this.fluid(this.options_.fluid),this.aspectRatio(this.options_.aspectRatio),this.crossOrigin(this.options_.crossOrigin||this.options_.crossorigin);const o=e.getElementsByTagName("a");for(let l=0;l<o.length;l++){const u=o.item(l);Vh(u,"vjs-hidden"),u.setAttribute("hidden","hidden")}return e.initNetworkState_=e.networkState,e.parentNode&&!i&&e.parentNode.insertBefore(n,e),SO(e,n),this.children_.unshift(e),this.el_.setAttribute("lang",this.language_),this.el_.setAttribute("translate","no"),this.el_=n,n}crossOrigin(e){if(typeof e>"u")return this.techGet_("crossOrigin");if(e!==null&&e!=="anonymous"&&e!=="use-credentials"){Sn.warn(`crossOrigin must be null,  "anonymous" or "use-credentials", given "${e}"`);return}this.techCall_("setCrossOrigin",e),this.posterImage&&this.posterImage.crossOrigin(e)}width(e){return this.dimension("width",e)}height(e){return this.dimension("height",e)}dimension(e,n){const i=e+"_";if(n===void 0)return this[i]||0;if(n===""||n==="auto"){this[i]=void 0,this.updateStyleEl_();return}const r=parseFloat(n);if(isNaN(r)){Sn.error(`Improper value "${n}" supplied for for ${e}`);return}this[i]=r,this.updateStyleEl_()}fluid(e){if(e===void 0)return!!this.fluid_;this.fluid_=!!e,Tc(this)&&this.off(["playerreset","resize"],this.boundUpdateStyleEl_),e?(this.addClass("vjs-fluid"),this.fill(!1),Kbe(this,()=>{this.on(["playerreset","resize"],this.boundUpdateStyleEl_)})):this.removeClass("vjs-fluid"),this.updateStyleEl_()}fill(e){if(e===void 0)return!!this.fill_;this.fill_=!!e,e?(this.addClass("vjs-fill"),this.fluid(!1)):this.removeClass("vjs-fill")}aspectRatio(e){if(e===void 0)return this.aspectRatio_;if(!/^\d+\:\d+$/.test(e))throw new Error("Improper value supplied for aspect ratio. The format should be width:height, for example 16:9.");this.aspectRatio_=e,this.fluid(!0),this.updateStyleEl_()}updateStyleEl_(){if(ue.VIDEOJS_NO_DYNAMIC_STYLE===!0){const o=typeof this.width_=="number"?this.width_:this.options_.width,l=typeof this.height_=="number"?this.height_:this.options_.height,u=this.tech_&&this.tech_.el();u&&(o>=0&&(u.width=o),l>=0&&(u.height=l));return}let e,n,i,r;this.aspectRatio_!==void 0&&this.aspectRatio_!=="auto"?i=this.aspectRatio_:this.videoWidth()>0?i=this.videoWidth()+":"+this.videoHeight():i="16:9";const s=i.split(":"),a=s[1]/s[0];this.width_!==void 0?e=this.width_:this.height_!==void 0?e=this.height_/a:e=this.videoWidth()||300,this.height_!==void 0?n=this.height_:n=e*a,/^[^a-zA-Z]/.test(this.id())?r="dimensions-"+this.id():r=this.id()+"-dimensions",this.addClass(r),qX(this.styleEl_,`
244      .${r} {
245        width: ${e}px;
246        height: ${n}px;
247      }
248
249      .${r}.vjs-fluid:not(.vjs-audio-only-mode) {
250        padding-top: ${a*100}%;
251      }
252    `)}loadTech_(e,n){this.tech_&&this.unloadTech_();const i=Li(e),r=e.charAt(0).toLowerCase()+e.slice(1);i!=="Html5"&&this.tag&&(Qt.getTech("Html5").disposeMediaElement(this.tag),this.tag.player=null,this.tag=null),this.techName_=i,this.isReady_=!1;let s=this.autoplay();(typeof this.autoplay()=="string"||this.autoplay()===!0&&this.options_.normalizeAutoplay)&&(s=!1);const a={source:n,autoplay:s,nativeControlsForTouch:this.options_.nativeControlsForTouch,playerId:this.id(),techId:`${this.id()}_${r}_api`,playsinline:this.options_.playsinline,preload:this.options_.preload,loop:this.options_.loop,disablePictureInPicture:this.options_.disablePictureInPicture,muted:this.options_.muted,poster:this.poster(),language:this.language(),playerElIngest:this.playerElIngest_||!1,"vtt.js":this.options_["vtt.js"],canOverridePoster:!!this.options_.techCanOverridePoster,enableSourceset:this.options_.enableSourceset};
252Ts.names.forEach(l=>{const u=Ts[l];a[u.getterName]=this[u.privateName]}),Object.assign(a,this.options_[i]),Object.assign(a,this.options_[r]),Object.assign(a,this.options_[e.toLowerCase()]),this.tag&&(a.tag=this.tag),n&&n.src===this.cache_.src&&this.cache_.currentTime>0&&(a.startTime=this.cache_.currentTime);const o=Qt.getTech(e);if(!o)throw new Error(`No Tech named '${i}' exists! '${i}' should be registered using videojs.registerTech()'`);this.tech_=new o(a),this.tech_.ready(ai(this,this.handleTechReady_),!0),bB.jsonToTextTracks(this.textTracksJson_||[],this.tech_),kY.forEach(l=>{this.on(this.tech_,l,u=>this[`handleTech${Li(l)}_`](u))}),Object.keys(KM).forEach(l=>{this.on(this.tech_,l,u=>{if(this.tech_.playbackRate()===0&&this.tech_.seeking()){this.queuedCallbacks_.push({callback:this[`handleTech${KM[l]}_`].bind(this),event:u});return}this[`handleTech${KM[l]}_`](u)})}),this.on(this.tech_,"loadstart",l=>this.handleTechLoadStart_(l)),this.on(this.tech_,"sourceset",l=>this.handleTechSourceset_(l)),this.on(this.tech_,"waiting",l=>this.handleTechWaiting_(l)),this.on(this.tech_,"ended",l=>this.handleTechEnded_(l)),this.on(this.tech_,"seeking",l=>this.handleTechSeeking_(l)),this.on(this.tech_,"play",l=>this.handleTechPlay_(l)),this.on(this.tech_,"pause",l=>this.handleTechPause_(l)),this.on(this.tech_,"durationchange",l=>this.handleTechDurationChange_(l)),this.on(this.tech_,"fullscreenchange",(l,u)=>this.handleTechFullscreenChange_(l,u)),this.on(this.tech_,"fullscreenerror",(l,u)=>this.handleTechFullscreenError_(l,u)),this.on(this.tech_,"enterpictureinpicture",l=>this.handleTechEnterPictureInPicture_(l)),this.on(this.tech_,"leavepictureinpicture",l=>this.handleTechLeavePictureInPicture_(l)),this.on(this.tech_,"error",l=>this.handleTechError_(l)),this.on(this.tech_,"posterchange",l=>this.handleTechPosterChange_(l)),this.on(this.tech_,"textdata",l=>this.handleTechTextData_(l)),this.on(this.tech_,"ratechange",l=>this.handleTechRateChange_(l)),this.on(this.tech_,"loadedmetadata",this.boundUpdateStyleEl_),this.usingNativeControls(this.techGet_("controls")),this.controls()&&!this.usingNativeControls()&&this.addTechControlsListeners_(),this.tech_.el().parentNode!==this.el()&&(i!=="Html5"||!this.tag)&&SO(this.tech_.el(),this.el()),this.tag&&(this.tag.player=null,this.tag=null)}unloadTech_(){Ts.names.forEach(e=>{const n=Ts[e];this[n.privateName]=this[n.getterName]()}),this.textTracksJson_=bB.textTracksToJson(this.tech_),this.isReady_=!1,this.tech_.dispose(),this.tech_=!1,this.isPosterFromTech_&&(this.poster_="",this.trigger("posterchange")),this.isPosterFromTech_=!1}tech(e){return e===void 0&&Sn.warn(`Using the tech directly can be dangerous. I hope you know 
252what you're doing.
253See https://github.com/videojs/video.js/issues/2617 for more info.
254`),this.tech_}version(){return{"video.js":_O}}addTechControlsListeners_(){this.removeTechControlsListeners_(),this.on(this.tech_,"click",this.boundHandleTechClick_),this.on(this.tech_,"dblclick",this.boundHandleTechDoubleClick_),this.on(this.tech_,"touchstart",this.boundHandleTechTouchStart_),this.on(this.tech_,"touchmove",this.boundHandleTechTouchMove_),this.on(this.tech_,"touchend",this.boundHandleTechTouchEnd_),this.on(this.tech_,"tap",this.boundHandleTechTap_)}removeTechControlsListeners_(){this.off(this.tech_,"tap",this.boundHandleTechTap_),this.off(this.tech_,"touchstart",this.boundHandleTechTouchStart_),this.off(this.tech_,"touchmove",this.boundHandleTechTouchMove_),this.off(this.tech_,"touchend",this.boundHandleTechTouchEnd_),this.off(this.tech_,"click",this.boundHandleTechClick_),this.off(this.tech_,"dblclick",this.boundHandleTechDoubleClick_)}handleTechReady_(){this.triggerReady(),this.cache_.volume&&this.techCall_("setVolume",this.cache_.volume),this.handleTechPosterChange_(),this.handleTechDurationChange_()}handleTechLoadStart_(){this.removeClass("vjs-ended","vjs-seeking"),this.error(null),this.handleTechDurationChange_(),this.paused()?(this.hasStarted(!1),this.trigger("loadstart")):this.trigger("loadstart"),this.manualAutoplay_(this.autoplay()===!0&&this.options_.normalizeAutoplay?"play":this.autoplay())}manualAutoplay_(e){if(!this.tech_||typeof e!="string")return;const n=()=>{const r=this.muted();this.muted(!0);const s=()=>{this.muted(r)};this.playTerminatedQueue_.push(s);const a=this.play();if(!!sy(a))return a.catch(o=>{throw s(),new Error(`Rejection at manualAutoplay. Restoring muted value. ${o||""}`)})};let i;if(e==="any"&&!this.muted()?(i=this.play(),sy(i)&&(i=i.catch(n))):e==="muted"&&!this.muted()?i=n():i=this.play(),!!sy(i))return i.then(()=>{this.trigger({type:"autoplay-success",autoplay:e})}).catch(()=>{this.trigger({type:"autoplay-failure",autoplay:e})})}updateSourceCaches_(e=""){let n=e,i="";typeof n!="string"&&(n=e.src,i=e.type),this.cache_.source=this.cache_.source||{},this.cache_.sources=this.cache_.sources||[],n&&!i&&(i=T1e(this,n)),this.cache_.source=ii({},e,{src:n,type:i});const r=this.cache_.sources.filter(l=>l.src&&l.src===n),s=[],a=this.$$("source"),o=[];for(let l=0;l<a.length;l++){const u=Cf(a[l]);s.push(u),u.src&&u.src===n&&o.push(u.src)}o.length&&!r.length?this.cache_.sources=s:r.length||(this.cache_.sources=[this.cache_.source]),this.cache_.src=n}handleTechSourceset_(e){if(!this.changingSrc_){let n=s=>this.updateSourceCaches_(s);const i=this.currentSource().src,r=e.src;i&&!/^blob:/.test(i)&&/^blob:/.test(r)&&(!this.lastSource_||this.lastSource_.tech!==r&&this.lastSource_.player!==i)&&(n=()=>{}),n(r),e.src||this.tech_.any(["sourceset","loadstart"],s=>{if(s.type==="sourceset")return;const a=this.techGet_("currentSrc");this.lastSource_.tech=a,this.updateSourceCaches_(a)})}this.lastSource_={player:this.currentSource().src,tech:e.src},this.trigger({src:e.src,type:"sourceset"})}hasStarted(e){if(e===void 0)return this.hasStarted_;e!==this.hasStarted_&&(this.hasStarted_=e,this.hasStarted_?this.addClass("vjs-has-started"):this.removeClass("vjs-has-started"))}handleTechPlay_(){this.removeClass("vjs-ended","vjs-paused"),this.addClass("vjs-playing"),this.hasStarted(!0),this.trigger("play")}handleTechRateChange_(){this.tech_.playbackRate()>0&&this.cache_.lastPlaybackRate===0&&(this.queuedCallbacks_.forEach(e=>e.callback(e.event)),this.queuedCallbacks_=[]),this.cache_.lastPlaybackRate=this.tech_.playbackRate(),this.trigger("ratechange")}handleTechWaiting_(){this.addClass("vjs-waiting"),this.trigger("waiting");const e=this.currentTime(),n=()=>{e!==this.currentTime()&&(this.removeClass("vjs-waiting"),this.off("timeupdate",n))};this.on("timeupdate",n)}handleTechCanPlay_(){this.removeClass("vjs-waiting"),this.trigger("canplay")}handleTechCanPlayThrough_(){this.removeClass("vjs-waiting"),this.trigger("canplaythrough")}handleTechPlaying_(){this.removeClass("vjs-waiting"),this.trigger("playing")}handleTechSeeking_(){this.addClass("vjs-seeking"),this.trigger("seeking")}
254handleTechSeeked_(){this.removeClass("vjs-seeking","vjs-ended"),this.trigger("seeked")}handleTechPause_(){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.trigger("pause")}handleTechEnded_(){this.addClass("vjs-ended"),this.removeClass("vjs-waiting"),this.options_.loop?(this.currentTime(0),this.play()):this.paused()||this.pause(),this.trigger("ended")}handleTechDurationChange_(){this.duration(this.techGet_("duration"))}handleTechClick_(e){!this.controls_||(this.options_===void 0||this.options_.userActions===void 0||this.options_.userActions.click===void 0||this.options_.userActions.click!==!1)&&(this.options_!==void 0&&this.options_.userActions!==void 0&&typeof this.options_.userActions.click=="function"?this.options_.userActions.click.call(this,e):this.paused()?ql(this.play()):this.pause())}handleTechDoubleClick_(e){if(!this.controls_)return;Array.prototype.some.call(this.$$(".vjs-control-bar, .vjs-modal-dialog"),i=>i.contains(e.target))||(this.options_===void 0||this.options_.userActions===void 0||this.options_.userActions.doubleClick===void 0||this.options_.userActions.doubleClick!==!1)&&(this.options_!==void 0&&this.options_.userActions!==void 0&&typeof this.options_.userActions.doubleClick=="function"?this.options_.userActions.doubleClick.call(this,e):this.isFullscreen()?this.exitFullscreen():this.requestFullscreen())}handleTechTap_(){this.userActive(!this.userActive())}handleTechTouchStart_(){this.userWasActive=this.userActive()}handleTechTouchMove_(){this.userWasActive&&this.reportUserActivity()}handleTechTouchEnd_(e){e.cancelable&&e.preventDefault()}toggleFullscreenClass_(){this.isFullscreen()?this.addClass("vjs-fullscreen"):this.removeClass("vjs-fullscreen")}documentFullscreenChange_(e){const n=e.target.player;if(n&&n!==this)return;const i=this.el();let r=ct[this.fsApi_.fullscreenElement]===i;!r&&i.matches&&(r=i.matches(":"+this.fsApi_.fullscreen)),this.isFullscreen(r)}handleTechFullscreenChange_(e,n){n&&(n.nativeIOSFullscreen&&(this.addClass("vjs-ios-native-fs"),this.tech_.one("webkitendfullscreen",()=>{this.removeClass("vjs-ios-native-fs")})),this.isFullscreen(n.isFullscreen))}handleTechFullscreenError_(e,n){this.trigger("fullscreenerror",n)}togglePictureInPictureClass_(){this.isInPictureInPicture()?this.addClass("vjs-picture-in-picture"):this.removeClass("vjs-picture-in-picture")}handleTechEnterPictureInPicture_(e){this.isInPictureInPicture(!0)}handleTechLeavePictureInPicture_(e){this.isInPictureInPicture(!1)}handleTechError_(){const e=this.tech_.error();e&&this.error(e)}handleTechTextData_(){let e=null;arguments.length>1&&(e=arguments[1]),this.trigger("textdata",e)}getCache(){return this.cache_}resetCache_(){this.cache_={currentTime:0,initTime:0,inactivityTimeout:this.options_.inactivityTimeout,duration:NaN,lastVolume:1,lastPlaybackRate:this.defaultPlaybackRate(),media:null,src:"",source:{},sources:[],playbackRates:[],volume:1}}techCall_(e,n){this.ready(function(){if(e in v1e)return g1e(this.middleware_,this.tech_,e,n);if(e in wB)return EB(this.middleware_,this.tech_,e,n);try{this.tech_&&this.tech_[e](n)}catch(i){throw Sn(i),i}},!0)}techGet_(e){if(!(!this.tech_||!this.tech_.isReady_)){if(e in _1e)return m1e(this.middleware_,this.tech_,e);if(e in wB)return EB(this.middleware_,this.tech_,e);try{return this.tech_[e]()}catch(n){throw this.tech_[e]===void 0?(Sn(`Video.js: ${e} method not defined for ${this.techName_} playback technology.`,n),n):n.name==="TypeError"?(Sn(`Video.js: ${e} unavailable on ${this.techName_} playback technology element.`,n),this.tech_.isReady_=!1,n):(Sn(n),n)}}}play(){return new Promise(e=>{this.play_(e)})}play_(e=ql){this.playCallbacks_.push(e);const n=Boolean(!this.changingSrc_&&(this.src()||this.currentSrc())),i=Boolean(Cw||Ds);if(this.waitToPlay_&&(this.off(["ready","loadstart"],this.waitToPlay_),this.waitToPlay_=null),!this.isReady_||!n){this.waitToPlay_=a=>{this.play_()},this.one(["ready","loadstart"],this.waitToPlay_),!n&&i&&this.load();return}const r=this.techGet_("play");i&&this.hasClass("vjs-ended")&&this.resetProgressBar_(),r===null?this.runPlayTerminatedQueue_():this.runPlayCallbacks_(r)}runPlayTerminatedQueue_(){const e=this.playTerminatedQueue_.slice(0);this.playTerminatedQueue_=[],e.forEach(function(n){n()})}runPlayCallbacks_(e){const n=this.playCallbacks_.slice(0);
254this.playCallbacks_=[],this.playTerminatedQueue_=[],n.forEach(function(i){i(e)})}pause(){this.techCall_("pause")}paused(){return this.techGet_("paused")!==!1}played(){return this.techGet_("played")||fl(0,0)}scrubbing(e){if(typeof e>"u")return this.scrubbing_;this.scrubbing_=!!e,this.techCall_("setScrubbing",this.scrubbing_),e?this.addClass("vjs-scrubbing"):this.removeClass("vjs-scrubbing")}currentTime(e){if(e===void 0)return this.cache_.currentTime=this.techGet_("currentTime")||0,this.cache_.currentTime;if(e<0&&(e=0),!this.isReady_||this.changingSrc_||!this.tech_||!this.tech_.isReady_){this.cache_.initTime=e,this.off("canplay",this.boundApplyInitTime_),this.one("canplay",this.boundApplyInitTime_);return}this.techCall_("setCurrentTime",e),this.cache_.initTime=0,isFinite(e)&&(this.cache_.currentTime=Number(e))}applyInitTime_(){this.currentTime(this.cache_.initTime)}duration(e){if(e===void 0)return this.cache_.duration!==void 0?this.cache_.duration:NaN;e=parseFloat(e),e<0&&(e=1/0),e!==this.cache_.duration&&(this.cache_.duration=e,e===1/0?this.addClass("vjs-live"):this.removeClass("vjs-live"),isNaN(e)||this.trigger("durationchange"))}remainingTime(){return this.duration()-this.currentTime()}remainingTimeDisplay(){return Math.floor(this.duration())-Math.floor(this.currentTime())}buffered(){let e=this.techGet_("buffered");return(!e||!e.length)&&(e=fl(0,0)),e}seekable(){let e=this.techGet_("seekable");return(!e||!e.length)&&(e=fl(0,0)),e}seeking(){return this.techGet_("seeking")}ended(){return this.techGet_("ended")}networkState(){return this.techGet_("networkState")}readyState(){return this.techGet_("readyState")}bufferedPercent(){return nY(this.buffered(),this.duration())}bufferedEnd(){const e=this.buffered(),n=this.duration();let i=e.end(e.length-1);return i>n&&(i=n),i}volume(e){let n;if(e!==void 0){n=Math.max(0,Math.min(1,e)),this.cache_.volume=n,this.techCall_("setVolume",n),n>0&&this.lastVolume_(n);return}return n=parseFloat(this.techGet_("volume")),isNaN(n)?1:n}muted(e){if(e!==void 0){this.techCall_("setMuted",e);return}return this.techGet_("muted")||!1}defaultMuted(e){return e!==void 0&&this.techCall_("setDefaultMuted",e),this.techGet_("defaultMuted")||!1}lastVolume_(e){if(e!==void 0&&e!==0){this.cache_.lastVolume=e;return}return this.cache_.lastVolume}supportsFullScreen(){return this.techGet_("supportsFullScreen")||!1}isFullscreen(e){if(e!==void 0){const n=this.isFullscreen_;this.isFullscreen_=Boolean(e),this.isFullscreen_!==n&&this.fsApi_.prefixed&&this.trigger("fullscreenchange"),this.toggleFullscreenClass_();return}return this.isFullscreen_}requestFullscreen(e){this.isInPictureInPicture()&&this.exitPictureInPicture();const n=this;return new Promise((i,r)=>{function s(){n.off("fullscreenerror",o),n.off("fullscreenchange",a)}function a(){s(),i()}function o(u,c){s(),r(c)}n.one("fullscreenchange",a),n.one("fullscreenerror",o);const l=n.requestFullscreenHelper_(e);l&&(l.then(s,s),l.then(i,r))})}requestFullscreenHelper_(e){let n;if(this.fsApi_.prefixed||(n=this.options_.fullscreen&&this.options_.fullscreen.options||{},e!==void 0&&(n=e)),this.fsApi_.requestFullscreen){const i=this.el_[this.fsApi_.requestFullscreen](n);return i&&i.then(()=>this.isFullscreen(!0),()=>this.isFullscreen(!1)),i}else this.tech_.supportsFullScreen()&&!this.options_.preferFullWindow?this.techCall_("enterFullScreen"):this.enterFullWindow()}exitFullscreen(){const e=this;return new Promise((n,i)=>{function r(){e.off("fullscreenerror",a),e.off("fullscreenchange",s)}function s(){r(),n()}function a(l,u){r(),i(u)}e.one("fullscreenchange",s),e.one("fullscreenerror",a);const o=e.exitFullscreenHelper_();o&&(o.then(r,r),o.then(n,i))})}exitFullscreenHelper_(){if(this.fsApi_.requestFullscreen){const e=ct[this.fsApi_.exitFullscreen]();return e&&ql(e.then(()=>this.isFullscreen(!1))),e}else this.tech_.supportsFullScreen()&&!this.options_.preferFullWindow?this.techCall_("exitFullScreen"):this.exitFullWindow()}enterFullWindow(){this.isFullscreen(!0),this.isFullWindow=!0,this.docOrigOverflow=ct.documentElement.style.overflow,ja(ct,"keydown",this.boundFullWindowOnEscKey_),ct.documentElement.style.overflow="hidden",Vh(ct.body,"vjs-full-window"),this.trigger("enterFullWindow")}fullWindowOnEscKey(e){Kt.isEventKey(e,"Esc")&&this.isFullscreen()===!0&&(this.isFullWindow?this.exitFullWindow():this.exitFullscreen())}exitFullWindow(){this.isFullscreen(!1),this.isFullWindow=!1,ss(ct,"keydown",this.boundFullWindowOnEscKey_),ct.documentElement.style.overflow=this.docOrigOverflow,Aw(ct.body,"vjs-full-window"),this.trigger("exitFullWindow")}disablePictureInPicture(e){if(e===void 0)return this.techGet_("disablePictureInPicture");this.techCall_("setDisablePictureInPicture",e),this.options_.disablePictureInPicture=e,this.trigger("disablepictureinpicturechanged")}isInPictureInPicture(e){if(e!==void 0){this.isInPictureInPicture_=!!e,this.togglePictureInPictureClass_();return}return!!this.isInPictureInPicture_}requestPictureInPicture(){if(this.options_.enableDocumentPictureInPicture&&ue.documentPictureInPicture){const e=ct.createElement(this.el().tagName);return e.classList=this.el().classList,e.classList.add("vjs-pip-container"),this.posterImage&&e.appendChild(this.posterImage.el().cloneNode(!0)),this.titleBar&&e.appendChild(this.titleBar.el().cloneNode(!0)),e.appendChild(rn("p",{className:"vjs-pip-text"},{},this.localize("Playing in picture-in-picture"))),ue.documentPictureInPicture.requestWindow({width:this.videoWidth(),height:this.videoHeight()}).then(n=>(VX(n),this.el_.parentNode.insertBefore(e,this.el_),n.document.body.appendChild(this.el_),n.document.body.classList.add("vjs-pip-window"),this.player_.isInPictureInPicture(!0),this.player_.trigger({type:"enterpictureinpicture",pipWindow:n}),n.addEventListener("pagehide",i=>{const r=i.target.querySelector(".video-js");e.parentNode.replaceChild(r,e),this.player_.isInPictureInPicture(!1),this.player_.trigger("leavepictureinpicture")}),n))}return"pictureInPictureEnabled"in ct&&this.disablePictureInPicture()===!1?this.techGet_("requestPictureInPicture"):Promise.reject("No PiP mode is available")}exitPictureInPicture(){if(ue.documentPictureInPicture&&ue.documentPictureInPicture.window)return ue.documentPictureInPicture.window.close(),Promise.resolve();if("pictureInPictureEnabled"in ct)return ct.exitPictureInPicture()}handleKeyDown(e){const{userActions:n}=this.options_;!n||!n.hotkeys||(r=>{const s=r.tagName.toLowerCase();if(r.isContentEditable)return!0;const a=["button","checkbox","hidden","radio","reset","submit"];return s==="input"?a.indexOf(r.type)===-1:["textarea"].indexOf(s)!==-1})(this.el_.ownerDocument.activeElement)||(typeof n.hotkeys=="function"?n.hotkeys.call(this,e):this.handleHotkeys(e))}handleHotkeys(e){const n=this.options_.userActions?this.options_.userActions.hotkeys:{},{fullscreenKey:i=a=>Kt.isEventKey(a,"f"),muteKey:r=a=>Kt.isEventKey(a,"m"),playPauseKey:s=a=>Kt.isEventKey(a,"k")||Kt.isEventKey(a,"Space")}=n;if(i.call(this,e)){e.preventDefault(),e.stopPropagation();const a=je.getComponent("FullscreenToggle");ct[this.fsApi_.fullscreenEnabled]!==!1&&a.prototype.handleClick.call(this,e)}else r.call(this,e)?(e.preventDefault(),e.stopPropagation(),je.getComponent("MuteToggle").prototype.handleClick.call(this,e)):s.call(this,e)&&(e.preventDefault(),e.stopPropagation(),je.getComponent("PlayToggle").prototype.handleClick.call(this,e))}canPlayType(e){let n;for(let i=0,r=this.options_.techOrder;i<r.length;i++){const s=r[i];let a=Qt.getTech(s);if(a||(a=je.getComponent(s)),!a){Sn.error(`The "${s}" tech is undefined. Skipped browser support check for that tech.`);continue}if(a.isSupported()&&(n=a.canPlayType(e),n))return n}return""}selectSource(e){const n=this.options_.techOrder.map(o=>[o,Qt.getTech(o)]).filter(([o,l])=>l?l.isSupported():(Sn.error(`The "${o}" tech is undefined. Skipped browser support check for that tech.`),!1)),i=function(o,l,u){let c;return o.some(f=>l.some(h=>
254{if(c=u(f,h),c)return!0})),c};let r;const s=o=>(l,u)=>o(u,l),a=([o,l],u)=>{if(l.canPlaySource(u,this.options_[o.toLowerCase()]))return{source:u,tech:o}};return this.options_.sourceOrder?r=i(e,n,s(a)):r=i(n,e,a),r||!1}handleSrc_(e,n){if(typeof e>"u")return this.cache_.src||"";this.resetRetryOnError_&&this.resetRetryOnError_();const i=oY(e);if(!i.length){this.setTimeout(function(){this.error({code:4,message:this.options_.notSupportedMessage})},0);return}if(this.changingSrc_=!0,n||(this.cache_.sources=i),this.updateSourceCaches_(i[0]),h1e(this,i[0],(r,s)=>{if(this.middleware_=s,n||(this.cache_.sources=i),this.updateSourceCaches_(r),this.src_(r)){if(i.length>1)return this.handleSrc_(i.slice(1));this.changingSrc_=!1,this.setTimeout(function(){this.error({code:4,message:this.options_.notSupportedMessage})},0),this.triggerReady();return}p1e(s,this.tech_)}),i.length>1){const r=()=>{this.error(null),this.handleSrc_(i.slice(1),!0)},s=()=>{this.off("error",r)};this.one("error",r),this.one("playing",s),this.resetRetryOnError_=()=>{this.off("error",r),this.off("playing",s)}}}src(e){return this.handleSrc_(e,!1)}src_(e){const n=this.selectSource([e]);return n?QX(n.tech,this.techName_)?(this.ready(function(){this.tech_.constructor.prototype.hasOwnProperty("setSource")?this.techCall_("setSource",e):this.techCall_("src",e.src),this.changingSrc_=!1},!0),!1):(this.changingSrc_=!0,this.loadTech_(n.tech,n.source),this.tech_.ready(()=>{this.changingSrc_=!1}),!1):!0}load(){if(this.tech_&&this.tech_.vhs){this.src(this.currentSource());return}this.techCall_("load")}reset(){if(this.paused())this.doReset_();else{const e=this.play();ql(e.then(()=>this.doReset_()))}}doReset_(){this.tech_&&this.tech_.clearTracks("text"),this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.resetCache_(),this.poster(""),this.loadTech_(this.options_.techOrder[0],null),this.techCall_("reset"),this.resetControlBarUI_(),this.error(null),this.titleBar&&this.titleBar.update({title:void 0,description:void 0}),Tc(this)&&this.trigger("playerreset")}resetControlBarUI_(){this.resetProgressBar_(),this.resetPlaybackRate_(),this.resetVolumeBar_()}resetProgressBar_(){this.currentTime(0);const{currentTimeDisplay:e,durationDisplay:n,progressControl:i,remainingTimeDisplay:r}=this.controlBar||{},{seekBar:s}=i||{};e&&e.updateContent(),n&&n.updateContent(),r&&r.updateContent(),s&&(s.update(),s.loadProgressBar&&s.loadProgressBar.update())}resetPlaybackRate_(){this.playbackRate(this.defaultPlaybackRate()),this.handleTechRateChange_()}resetVolumeBar_(){this.volume(1),this.trigger("volumechange")}currentSources(){const e=this.currentSource(),n=[];return Object.keys(e).length!==0&&n.push(e),this.cache_.sources||n}currentSource(){return this.cache_.source||{}}currentSrc(){return this.currentSource()&&this.currentSource().src||""}currentType(){return this.currentSource()&&this.currentSource().type||""}preload(e){if(e!==void 0){this.techCall_("setPreload",e),this.options_.preload=e;return}return this.techGet_("preload")}autoplay(e){if(e===void 0)return this.options_.autoplay||!1;let n;typeof e=="string"&&/(any|play|muted)/.test(e)||e===!0&&this.options_.normalizeAutoplay?(this.options_.autoplay=e,this.manualAutoplay_(typeof e=="string"?e:"play"),n=!1):e?this.options_.autoplay=!0:this.options_.autoplay=!1,n=typeof n>"u"?this.options_.autoplay:n,this.tech_&&this.techCall_("setAutoplay",n)}playsinline(e){return e!==void 0&&(this.techCall_("setPlaysinline",e),this.options_.playsinline=e),this.techGet_("playsinline")}loop(e){if(e!==void 0){this.techCall_("setLoop",e),this.options_.loop=e;return}return this.techGet_("loop")}poster(e){if(e===void 0)return this.poster_;e||(e=""),e!==this.poster_&&(this.poster_=e,this.techCall_("setPoster",e),this.isPosterFromTech_=!1,this.trigger("posterchange"))}handleTechPosterChange_(){if((!this.poster_||this.options_.techCanOverridePoster)&&this.tech_&&this.tech_.poster){const e=this.tech_.poster()||"";e!==this.poster_&&(this.poster_=e,this.isPosterFromTech_=!0,this.trigger("posterchange"))}}controls(e){if(e===void 0)return!!this.controls_;e=!!e,this.controls_!==e&&(this.controls_=e,this.usingNativeControls()&&this.techCall_("setControls",e),this.controls_?(this.removeClass("vjs-controls-disabled"),this.addClass("vjs-controls-enabled"),this.trigger("controlsenabled"),this.usingNativeControls()||this.addTechControl
254sListeners_()):(this.removeClass("vjs-controls-enabled"),this.addClass("vjs-controls-disabled"),this.trigger("controlsdisabled"),this.usingNativeControls()||this.removeTechControlsListeners_()))}usingNativeControls(e){if(e===void 0)return!!this.usingNativeControls_;e=!!e,this.usingNativeControls_!==e&&(this.usingNativeControls_=e,this.usingNativeControls_?(this.addClass("vjs-using-native-controls"),this.trigger("usingnativecontrols")):(this.removeClass("vjs-using-native-controls"),this.trigger("usingcustomcontrols")))}error(e){if(e===void 0)return this.error_||null;if(gd("beforeerror").forEach(n=>{const i=n(this,e);if(!(du(i)&&!Array.isArray(i)||typeof i=="string"||typeof i=="number"||i===null)){this.log.error("please return a value that MediaError expects in beforeerror hooks");return}e=i}),this.options_.suppressNotSupportedError&&e&&e.code===4){const n=function(){this.error(e)};this.options_.suppressNotSupportedError=!1,this.any(["click","touchstart"],n),this.one("loadstart",function(){this.off(["click","touchstart"],n)});return}if(e===null){this.error_=null,this.removeClass("vjs-error"),this.errorDisplay&&this.errorDisplay.close();return}this.error_=new Ri(e),this.addClass("vjs-error"),Sn.error(`(CODE:${this.error_.code} ${Ri.errorTypes[this.error_.code]})`,this.error_.message,this.error_),this.trigger("error"),gd("error").forEach(n=>n(this,this.error_))}reportUserActivity(e){this.userActivity_=!0}userActive(e){if(e===void 0)return this.userActive_;if(e=!!e,e!==this.userActive_){if(this.userActive_=e,this.userActive_){this.userActivity_=!0,this.removeClass("vjs-user-inactive"),this.addClass("vjs-user-active"),this.trigger("useractive");return}this.tech_&&this.tech_.one("mousemove",function(n){n.stopPropagation(),n.preventDefault()}),this.userActivity_=!1,this.removeClass("vjs-user-active"),this.addClass("vjs-user-inactive"),this.trigger("userinactive")}}listenForUserActivity_(){let e,n,i;const r=ai(this,this.reportUserActivity),s=function(f){(f.screenX!==n||f.screenY!==i)&&(n=f.screenX,i=f.screenY,r())},a=function(){r(),this.clearInterval(e),e=this.setInterval(r,250)},o=function(f){r(),this.clearInterval(e)};this.on("mousedown",a),this.on("mousemove",s),this.on("mouseup",o),this.on("mouseleave",o);const l=this.getChild("controlBar");l&&!Ds&&!hu&&(l.on("mouseenter",function(f){this.player().options_.inactivityTimeout!==0&&(this.player().cache_.inactivityTimeout=this.player().options_.inactivityTimeout),this.player().options_.inactivityTimeout=0}),l.on("mouseleave",function(f){this.player().options_.inactivityTimeout=this.player().cache_.inactivityTimeout})),this.on("keydown",r),this.on("keyup",r);let u;const c=function(){if(!this.userActivity_)return;this.userActivity_=!1,this.userActive(!0),this.clearTimeout(u);const f=this.options_.inactivityTimeout;f<=0||(u=this.setTimeout(function(){this.userActivity_||this.userActive(!1)},f))};this.setInterval(c,250)}playbackRate(e){if(e!==void 0){this.techCall_("setPlaybackRate",e);return}return this.tech_&&this.tech_.featuresPlaybackRate?this.cache_.lastPlaybackRate||this.techGet_("playbackRate"):1}defaultPlaybackRate(e){return e!==void 0?this.techCall_("setDefaultPlaybackRate",e):this.tech_&&this.tech_.featuresPlaybackRate?this.techGet_("defaultPlaybackRate"):1}isAudio(e){if(e!==void 0){this.isAudio_=!!e;return}return!!this.isAudio_}enableAudioOnlyUI_(){this.addClass("vjs-audio-only-mode");const e=this.children(),n=this.getChild("ControlBar"),i=n&&n.currentHeight();e.forEach(r=>{r!==n&&r.el_&&!r.hasClass("vjs-hidden")&&(r.hide(),this.audioOnlyCache_.hiddenChildren.push(r))}),this.audioOnlyCache_.playerHeight=this.currentHeight(),this.height(i),this.trigger("audioonlymodechange")}disableAudioOnlyUI_(){this.removeClass("vjs-audio-only-mode"),this.audioOnlyCache_.hiddenChildren.forEach(e=>e.show()),this.height(this.audioOnlyCache_.playerHeight),this.trigger("audioonlymodechange")}audioOnlyMode(e){if(typeof e!="boolean"||e===this.audioOnlyMode_)return this.audioOnlyMode_;if(this.audioOnlyMode_=e,e){const n=[];return this.isInPictureInPicture()&&n.push(this.exitPictureInPicture()),this.isFullscreen()&&n.push(this.exitFullscreen()),this.audioPosterMode()&&n.push(this.audioPosterMode(!1)),Promise.all(n).then(()=>this.enableAudioOnlyUI_())}return Promise.resolve().then(()=>this.disableAudioOnlyUI_())}enablePosterModeUI_(){(this.tech_&&this.tech_).hide(),this.addClass("vjs-audio-poster-mode"),this.trigger("audiopostermodechange")}disablePosterModeUI_(){(this.tech_&&this.tech_).show(),this.removeClass("vjs-audio-poster-mode"),this.trigger("audiopostermodechange")}audioPosterMode(e){return typeof e!="boolean"||e===this.audioPosterMode_?this.audioPosterMode_:(this.audioPosterMode_=e,e?this.audioOnlyMode()?this.audioOnlyMode(!1).then(()=>{this.enablePosterModeUI_()}):Promise.resolve().then(()=>{this.enablePosterModeUI_()}):Promise.resolve().then(()=>{this.disablePosterModeUI_()}))}addTextTrack(e,n,i){if(this.tech_)return this.tech_.addTextTrack(e,n,i)}addRemoteTextTrack(e,n){if(this.tech_)return this.tech_.addRemoteTextTrack(e,n)}removeRemoteTextTrack(e={}){let{track:n}=e;if(n||(n=e),this.tech_)return this.tech_.removeRemoteTextTrack(n)}getVideoPlaybackQuality(){return this.techGet_("getVideoPlaybackQuality")}videoWidth(){return this.tech_&&this.tech_.videoWidth&&this.tech_.videoWidth()||0}videoHeight(){return this.tech_&&this.tech_.videoHeight&&this.tech_.videoHeight()||0}language(e){if(e===void 0)return this.language_;this.language_!==String(e).toLowerCase()&&(this.language_=String(e).toLowerCase(),Tc(this)&&this.trigger("languagechange"))}languages(){return ii(hi.prototype.options_.languages,this.languages_)}toJSON(){const e=ii(this.options_),n=e.tracks;e.tracks=[];for(let i=0;i<n.length;i++){let r=n[i];r=ii(r),r.player=void 0,e.tracks[i]=r}return e}createModal(e,n){n=n||{},n.content=e||"";const i=new zg(this,n);return this.addChild(i),i.on("dispose",()=>{this.removeChild(i)}),i.open(),i}updateCurrentBreakpoint_(){if(!this.responsive())return;const e=this.currentBreakpoint(),n=this.currentWidth();for(let i=0;i<OO.length;i++){const r=OO[i],s=this.breakpoints_[r];if(n<=s){if(e===r)return;e&&this.removeClass(OT[e]),this.addClass(OT[r]),this.breakpoint_=r;break}}}removeCurrentBreakpoint_(){const e=this.currentBreakpointClass();this.breakpoint_="",e&&this.removeClass(e)}breakpoints(e){return e===void 0?Object.assign(this.breakpoints_):(this.breakpoint_="",this.breakpoints_=Object.assign({},J1e,e),this.updateCurrentBreakpoint_(),Object.assign(this.breakpoints_))}responsive(e){if(e===void 0)return this.responsive_;e=Boolean(e);const n=this.responsive_;if(e!==n)return this.responsive_=e,e?(this.on("playerresize",this.boundUpdateCurrentBreakpoint_),this.updateCurrentBreakpoint_()):(this.off("playerresize",this.boundUpdateCurrentBreakpoint_),this.removeCurrentBreakpoint_()),e}currentBreakpoint(){return this.breakpoint_}currentBreakpointClass(){return OT[this.breakpoint_]||""}
254loadMedia(e,n){if(!e||typeof e!="object")return;const i=this.crossOrigin();this.reset(),this.cache_.media=ii(e);const{artist:r,artwork:s,description:a,poster:o,src:l,textTracks:u,title:c}=this.cache_.media;!s&&o&&(this.cache_.media.artwork=[{src:o,type:W2(o)}]),i&&this.crossOrigin(i),l&&this.src(l),o&&this.poster(o),Array.isArray(u)&&u.forEach(f=>this.addRemoteTextTrack(f,!1)),this.titleBar&&this.titleBar.update({title:c,description:a||r||""}),this.ready(n)}getMedia(){if(!this.cache_.media){const e=this.poster(),n=this.currentSources(),i=Array.prototype.map.call(this.remoteTextTracks(),s=>({kind:s.kind,label:s.label,language:s.language,src:s.src})),r={src:n,textTracks:i};return e&&(r.poster=e,r.artwork=[{src:r.poster,type:W2(r.poster)}]),r}return ii(this.cache_.media)}static getTagSettings(e){const n={sources:[],tracks:[]},i=Cf(e),r=i["data-setup"];if(iy(e,"vjs-fill")&&(i.fill=!0),iy(e,"vjs-fluid")&&(i.fluid=!0),r!==null){const[s,a]=$_e(r||"{}");s&&Sn.error(s),Object.assign(i,a)}if(Object.assign(n,i),e.hasChildNodes()){const s=e.childNodes;for(let a=0,o=s.length;a<o;a++){const l=s[a],u=l.nodeName.toLowerCase();u==="source"?n.sources.push(Cf(l)):u==="track"&&n.tracks.push(Cf(l))}}return n}debug(e){if(e===void 0)return this.debugEnabled_;e?(this.trigger("debugon"),this.previousLogLevel_=this.log.level,this.log.level("debug"),this.debugEnabled_=!0):(this.trigger("debugoff"),this.log.level(this.previousLogLevel_),this.previousLogLevel_=void 0,this.debugEnabled_=!1)}playbackRates(e){if(e===void 0)return this.cache_.playbackRates;!Array.isArray(e)||!e.every(n=>typeof n=="number")||(this.cache_.playbackRates=e,this.trigger("playbackrateschange"))}}Ts.names.forEach(function(t){const e=Ts[t];hi.prototype[e.getterName]=function(){return this.tech_?this.tech_[e.getterName]():(this[e.privateName]=this[e.privateName]||new e.ListClass,this[e.privateName])}});hi.prototype.crossorigin=hi.prototype.crossOrigin;hi.players={};const $_=ue.navigator;hi.prototype.options_={techOrder:Qt.defaultTechOrder_,html5:{},enableSourceset:!0,inactivityTimeout:2e3,playbackRates:[],liveui:!1,children:["mediaLoader","posterImage","titleBar","textTrackDisplay","loadingSpinner","bigPlayButton","liveTracker","controlBar","errorDisplay","textTrackSettings","resizeManager"],language:$_&&($_.languages&&$_.languages[0]||$_.userLanguage||$_.language)||"en",languages:{},notSupportedMessage:"No compatible source was found for this media.",normalizeAutoplay:!1,fullscreen:{options:{navigationUI:"hide"}},breakpoints:{},responsive:!1,audioOnlyMode:!1,audioPosterMode:!1,enableSmoothSeeking:!1};kY.forEach(function(t){hi.prototype[`handleTech${Li(t)}_`]=function(){return this.trigger(t)}});je.registerComponent("Player",hi);const G2="plugin",Om="activePlugins_",nm={},j2=t=>nm.hasOwnProperty(t),RT=t=>j2(t)?nm[t]:void 0,IY=(t,e)=>{t[Om]=t[Om]||{},t[Om][e]=!0},q2=(t,e,n)=>{const i=(n?"before":"")+"pluginsetup";t.trigger(i,e),t.trigger(i+":"+e.name,e)},exe=function(t,e){const n=function(){q2(this,{name:t,plugin:e,instance:null},!0);const i=e.apply(this,arguments);return IY(this,t),q2(this,{name:t,plugin:e,instance:i}),i};return Object.keys(e).forEach(function(i){n[i]=e[i]}),n},$B=(t,e)=>(e.prototype.name=t,function(...n){q2(this,{name:t,plugin:e,instance:null},!0);
254const i=new e(this,...n);return this[t]=()=>i,q2(this,i.getEventHash()),i});class ra{constructor(e){if(this.constructor===ra)throw new Error("Plugin must be sub-classed; not directly instantiated.");this.player=e,this.log||(this.log=this.player.log.createLogger(this.name)),mL(this),delete this.trigger,ZX(this,this.constructor.defaultState),IY(e,this.name),this.dispose=this.dispose.bind(this),e.on("dispose",this.dispose)}version(){return this.constructor.VERSION}getEventHash(e={}){return e.name=this.name,e.plugin=this.constructor,e.instance=this,e}trigger(e,n={}){return $g(this.eventBusEl_,e,this.getEventHash(n))}handleStateChanged(e){}dispose(){const{name:e,player:n}=this;this.trigger("dispose"),this.off(),n.off("dispose",this.dispose),n[Om][e]=!1,this.player=this.state=null,n[e]=$B(e,nm[e])}static isBasic(e){const n=typeof e=="string"?RT(e):e;return typeof n=="function"&&!ra.prototype.isPrototypeOf(n.prototype)}static registerPlugin(e,n){if(typeof e!="string")throw new Error(`Illegal plugin name, "${e}", must be a string, was ${typeof e}.`);if(j2(e))Sn.warn(`A plugin named "${e}" already exists. You may want to avoid re-registering plugins!`);else if(hi.prototype.hasOwnProperty(e))throw new Error(`Illegal plugin name, "${e}", cannot share a name with an existing player method!`);if(typeof n!="function")throw new Error(`Illegal plugin for "${e}", must be a function, was ${typeof n}.`);return nm[e]=n,e!==G2&&(ra.isBasic(n)?hi.prototype[e]=exe(e,n):hi.prototype[e]=$B(e,n)),n}static deregisterPlugin(e){if(e===G2)throw new Error("Cannot de-register base plugin.");j2(e)&&(delete nm[e],delete hi.prototype[e])}static getPlugins(e=Object.keys(nm)){let n;return e.forEach(i=>{const r=RT(i);r&&(n=n||{},n[i]=r)}),n}static getPluginVersion(e){const n=RT(e);return n&&n.VERSION||""}}ra.getPlugin=RT;ra.BASE_PLUGIN_NAME=G2;ra.registerPlugin(G2,ra);hi.prototype.usingPlugin=function(t){return!!this[Om]&&this[Om][t]===!0};hi.prototype.hasPlugin=function(t){return!!j2(t)};function txe(t,e){let n=!1;return function(...i){return n||Sn.warn(t),n=!0,e.apply(this,i)}}function ml(t,e,n,i){return txe(`${e} is deprecated and will be removed in ${t}.0; please use ${n} instead.`,i)}var nxe={UnsupportedSidxContainer:"unsupported-sidx-container-error",DashManifestSidxParsingError:"dash-manifest-sidx-parsing-error",HlsPlaylistRequestError:"hls-playlist-request-error",SegmentUnsupportedMediaFormat:"segment-unsupported-media-format-error",UnsupportedMediaInitialization:"unsupported-media-initialization-error",SegmentSwitchError:"segment-switch-error",SegmentExceedsSourceBufferQuota:"segment-exceeds-source-buffer-quota-error",SegmentAppendError:"segment-append-error",VttLoadError:"vtt-load-error",VttCueParsingError:"vtt-cue-parsing-error",AdsBeforePrerollError:"ads-before-preroll-error",AdsPrerollError:"ads-preroll-error",AdsMidrollError:"ads-midroll-error",AdsPostrollError:"ads-postroll-error",AdsMacroReplacementFailed:"ads-macro-replacement-failed",AdsResumeContentFailed:"ads-resume-content-failed",EMEFailedToRequestMediaKeySystemAccess:"eme-failed-request-media-key-system-access",EMEFailedToCreateMediaKeys:"eme-failed-create-media-keys",EMEFailedToAttachMediaKeysToVideoElement:"eme-failed-attach-media-keys-to-video",EMEFailedToCreateMediaKeySession:"eme-failed-create-media-key-session",EMEFailedToSetServerCertificate:"eme-failed-set-server-certificate",EMEFailedToGenerateLicenseRequest:"eme-failed-generate-license-request",EMEFailedToUpdateSessionWithReceivedLicenseKeys:"eme-failed-update-session",EMEFailedToCloseSession:"eme-failed-close-session",EMEFailedToRemoveKeysFromSession:"eme-failed-remove-keys",EMEFailedToLoadSessionBySessionId:"eme-failed-load-session"};const LY=t=>t.indexOf("#")===0?t.slice(1):t;function Be(t,e,n){let i=Be.getPlayer(t);if(i)return e&&Sn.warn(`Player "${t}" is already initialised. Options will not be applied.`),n&&i.ready(n),i;const r=typeof t=="string"?_d("#"+LY(t)):t;if(!Ug(r))throw new TypeError("The element or ID supplied is not valid. (videojs)");const a=("getRootNode"in r?r.getRootNode()instanceof ue.ShadowRoot:!1)?r.getRootNode():r.ownerDocument.body;(!r.ownerDocument.defaultView||!a.contains(r))&&Sn.warn("The element supplied is not included in the DOM"),e=e||{},e.restoreEl===!0&&(e.restoreEl=(r.parentNode&&r.parentNode.hasAttribute("data-vjs-player")?r.parentNode:r).cloneNode(!0)),gd("beforesetup").forEach(l=>{const u=l(r,ii(e));if(!du(u)||Array.isArray(u)){Sn.error("please return an object in beforesetup hooks");return}e=ii(e,u)});const o=je.getComponent("Player");return i=new o(r,e,n),gd("setup").forEach(l=>l(i)),i}Be.hooks_=cc;Be.hooks=gd;Be.hook=Nbe;Be.hookOnce=Bbe;Be.removeHook=SX;
254if(ue.VIDEOJS_NO_DYNAMIC_STYLE!==!0&&Bg()){let t=_d(".vjs-styles-defaults");if(!t){t=jX("vjs-styles-defaults");const e=_d("head");e&&e.insertBefore(t,e.firstChild),qX(t,`
255      .video-js {
256        width: 300px;
257        height: 150px;
258      }
259
260      .vjs-fluid:not(.vjs-audio-only-mode) {
261        padding-top: 56.25%
262      }
263    `)}}EO(1,Be);Be.VERSION=_O;Be.options=hi.prototype.options_;Be.getPlayers=()=>hi.players;Be.getPlayer=t=>{const e=hi.players;let n;if(typeof t=="string"){const i=LY(t),r=e[i];if(r)return r;n=_d("#"+i)}else n=t;if(Ug(n)){const{player:i,playerId:r}=n;if(i||e[r])return i||e[r]}};Be.getAllPlayers=()=>Object.keys(hi.players).map(t=>hi.players[t]).filter(Boolean);Be.players=hi.players;Be.getComponent=je.getComponent;Be.registerComponent=(t,e)=>(Qt.isTech(e)&&Sn.warn(`The ${t} tech was registered as a component. It should instead be registered using videojs.registerTech(name, tech)`),je.registerComponent.call(je,t,e));Be.getTech=Qt.getTech;Be.registerTech=Qt.registerTech;Be.use=d1e;Object.defineProperty(Be,"middleware",{value:{},writeable:!1,enumerable:!0});Object.defineProperty(Be.middleware,"TERMINATOR",{value:V2,writeable:!1,enumerable:!0});Be.browser=OX;Be.obj=zbe;Be.mergeOptions=ml(9,"videojs.mergeOptions","videojs.obj.merge",ii);Be.defineLazyProperty=ml(9,"videojs.defineLazyProperty","videojs.obj.defineLazyProperty",Sw);Be.bind=ml(9,"videojs.bind","native Function.prototype.bind",ai);Be.registerPlugin=ra.registerPlugin;Be.deregisterPlugin=ra.deregisterPlugin;Be.plugin=(t,e)=>(Sn.warn("videojs.plugin() is deprecated; use videojs.registerPlugin() instead"),ra.registerPlugin(t,e));Be.getPlugins=ra.getPlugins;Be.getPlugin=ra.getPlugin;Be.getPluginVersion=ra.getPluginVersion;Be.addLanguage=function(t,e){return t=(""+t).toLowerCase(),Be.options.languages=ii(Be.options.languages,{[t]:e}),Be.options.languages[t]};Be.log=Sn;Be.createLogger=TX;Be.time=t1e;Be.createTimeRange=ml(9,"videojs.createTimeRange","videojs.time.createTimeRanges",fl);Be.createTimeRanges=ml(9,"videojs.createTimeRanges","videojs.time.createTimeRanges",fl);Be.formatTime=ml(9,"videojs.formatTime","videojs.time.formatTime",dp);Be.setFormatTime=ml(9,"videojs.setFormatTime","videojs.time.setFormatTime",eY);Be.resetFormatTime=ml(9,"videojs.resetFormatTime","videojs.time.resetFormatTime",tY);Be.parseUrl=ml(9,"videojs.parseUrl","videojs.url.parseUrl",vL);Be.isCrossOrigin=ml(9,"videojs.isCrossOrigin","videojs.url.isCrossOrigin",Iw);Be.EventTarget=ko;Be.any=pL;Be.on=ja;Be.one=Rw;Be.off=ss;Be.trigger=$g;Be.xhr=hw.exports;Be.TextTrack=Vb;Be.AudioTrack=sY;Be.VideoTrack=aY;["isEl","isTextNode","createEl","hasClass","addClass","removeClass","toggleClass","setAttributes","getAttributes","emptyEl","appendContent","insertContent"].forEach(t=>{Be[t]=function(){return Sn.warn(`videojs.${t}() is deprecated; use videojs.dom.${t}() instead`),WX[t].apply(null,arguments)}});Be.computedStyle=ml(9,"videojs.computedStyle","videojs.dom.computedStyle",gg);Be.dom=WX;Be.fn=Ybe;Be.num=R1e;Be.str=Jbe;Be.url=c1e;Be.Error=nxe;/*! @name videojs-contrib-quality-levels @version 4.1.0 @license Apache-2.0 */class ixe{constructor(e){let n=this;return n.id=e.id,n.label=n.id,n.width=e.width,n.height=e.height,n.bitrate=e.bandwidth,n.frameRate=e.frameRate,n.enabled_=e.enabled,Object.defineProperty(n,"enabled",{get(){return n.enabled_()},set(i){n.enabled_(i)}}),n}}class X2 extends Be.EventTarget{constructor(){super();let e=this;return e.levels_=[],e.selectedIndex_=-1,Object.defineProperty(e,"selectedIndex",{get(){return e.selectedIndex_}}),Object.defineProperty(e,"length",{get(){return e.levels_.length}}),e[Symbol.iterator]=()=>e.levels_.values(),e}addQualityLevel(e){let n=this.getQualityLevelById(e.id);if(n)return n;const i=this.levels_.length;return n=new ixe(e),""+i in this||Object.defineProperty(this,i,{get(){return this.levels_[i]}}),this.levels_.push(n),this.trigger({qualityLevel:n,type:"addqualitylevel"}),n}removeQualityLevel(e){let n=null;for(let i=0,r=this.length;i<r;i++)if(this[i]===e){n=this.levels_.splice(i,1)[0],this.selectedIndex_===i?this.selectedIndex_=-1:this.selectedIndex_>i&&this.selectedIndex_--;break}return n&&this.trigger({qualityLevel:e,type:"removequalitylevel"}),n}getQualityLevelById(e){for(let n=0,i=this.length;n<i;n++){const r=this[n];if(r.id===e)return r}return null}dispose(){this.selectedIndex_=-1,this.levels_.length=0}}X2.prototype.allowedEvents_={change:"change",addqualitylevel:"addqualitylevel",removequalitylevel:"removequalitylevel"};for(const t in X2.prototype.allowedEvents_)X2.prototype["on"+t]=null;var FY="4.1.0";const rxe=function(t,e){const n=t.qualityLevels,i=new X2,r=function(){i.dispose(),t.qualityLevels=n,t.off("dispose",r)};return t.on("dispose",r),t.qualityLevels=()=>i,t.qualityLevels.VERSION=FY,i},NY=function(t){return rxe(this,Be.obj.merge({},t))};Be.registerPlugin("qualityLevels",NY);NY.VERSION=FY;/*! @name @videojs/http-streaming @version 3.12.1 @license Apache-2.0 */const js=mw,Y2=(t,e)=>e&&e.responseURL&&t!==e.responseURL?e.responseURL:t,Fo=t=>Be.log.debug?Be.log.debug.bind(Be,"VHS:",`${t} >`):function(){};function Un(...t){const e=Be.obj||Be;return(e.merge||e.mergeOptions).apply(e,t)}function es(...t){const e=Be.time||Be;return(e.createTimeRanges||e.createTimeRanges).apply(e,t)}function sxe(t){if(t.length===0)return"Buffered Ranges are empty";let e=`Buffered Ranges: 
264`;for(let n=0;n<t.length;n++){const i=t.start(n),r=t.end(n);e+=`${i} --> ${r}. Duration (${r-i})
265`}return e}const Xl=1/30,Yl=Xl*3,BY=function(t,e){const n=[];let i;if(t&&t.length)for(i=0;i<t.length;
265i++)e(t.start(i),t.end(i))&&n.push([t.start(i),t.end(i)]);return es(n)},im=function(t,e){return BY(t,function(n,i){return n-Yl<=e&&i+Yl>=e})},Qx=function(t,e){return BY(t,function(n){return n-Xl>=e})},axe=function(t){if(t.length<2)return es();const e=[];for(let n=1;n<t.length;n++){const i=t.end(n-1),r=t.start(n);e.push([i,r])}return es(e)},oxe=function(t,e){let n=null,i=null,r=0;const s=[],a=[];if(!t||!t.length||!e||!e.length)return es();let o=t.length;for(;o--;)s.push({time:t.start(o),type:"start"}),s.push({time:t.end(o),type:"end"});for(o=e.length;o--;)s.push({time:e.start(o),type:"start"}),s.push({time:e.end(o),type:"end"});for(s.sort(function(l,u){return l.time-u.time}),o=0;o<s.length;o++)s[o].type==="start"?(r++,r===2&&(n=s[o].time)):s[o].type==="end"&&(r--,r===1&&(i=s[o].time)),n!==null&&i!==null&&(a.push([n,i]),n=null,i=null);return es(a)},UY=t=>{const e=[];if(!t||!t.length)return"";for(let n=0;n<t.length;n++)e.push(t.start(n)+" => "+t.end(n));return e.join(", ")},lxe=function(t,e,n=1){return((t.length?t.end(t.length-1):0)-e)/n},Mh=t=>{const e=[];for(let n=0;n<t.length;n++)e.push({start:t.start(n),end:t.end(n)});return e},uxe=function(t,e){if(t===e)return!1;if(!t&&e||!e&&t||t.length!==e.length)return!0;for(let n=0;n<t.length;n++)if(t.start(n)!==e.start(n)||t.end(n)!==e.end(n))return!0;return!1},ZM=function(t){if(!(!t||!t.length||!t.end))return t.end(t.length-1)},FL=function(t,e){let n=0;if(!t||!t.length)return n;for(let i=0;i<t.length;i++){const r=t.start(i),s=t.end(i);if(!(e>s)){if(e>r&&e<=s){n+=s-e;continue}n+=s-r}}return n},NL=(t,e)=>{if(!e.preload)return e.duration;let n=0;return(e.parts||[]).forEach(function(i){n+=i.duration}),(e.preloadHints||[]).forEach(function(i){i.type==="PART"&&(n+=t.partTargetDuration)}),n},RO=t=>(t.segments||[]).reduce((e,n,i)=>(n.parts?n.parts.forEach(function(r,s){e.push({duration:r.duration,segmentIndex:i,partIndex:s,part:r,segment:n})}):e.push({duration:n.duration,segmentIndex:i,partIndex:null,segment:n,part:null}),e),[]),$Y=t=>{const e=t.segments&&t.segments.length&&t.segments[t.segments.length-1];return e&&e.parts||[]},zY=({preloadSegment:t})=>{if(!t)return;const{parts:e,preloadHints:n}=t;let i=(n||[]).reduce((r,s)=>r+(s.type==="PART"?1:0),0);return i+=e&&e.length?e.length:0,i},HY=(t,e)=>{if(e.endList)return 0;if(t&&t.suggestedPresentationDelay)return t.suggestedPresentationDelay;const n=$Y(e).length>0;return n&&e.serverControl&&e.serverControl.partHoldBack?e.serverControl.partHoldBack:n&&e.partTargetDuration?e.partTargetDuration*3:e.serverControl&&e.serverControl.holdBack?e.serverControl.holdBack:e.targetDuration?e.targetDuration*3:0},cxe=function(t,e){let n=0,i=e-t.mediaSequence,r=t.segments[i];if(r){if(typeof r.start<"u")return{result:r.start,precise:!0};if(typeof r.end<"u")return{result:r.end-r.duration,precise:!0}}for(;i--;){if(r=t.segments[i],typeof r.end<"u")return{result:n+r.end,precise:!0};if(n+=NL(t,r),typeof r.start<"u")return{result:n+r.start,precise:!0}}return{result:n,precise:!1}},fxe=function(t,e){let n=0,i,r=e-t.mediaSequence;for(;r<t.segments.length;r++){if(i=t.segments[r],typeof i.start<"u")return{result:i.start-n,precise:!0};if(n+=NL(t,i),typeof i.end<"u")return{result:i.end-n,precise:!0}}return{result:-1,precise:!1}},VY=function(t,e,n){if(typeof e>"u"&&(e=t.mediaSequence+t.segments.length),e<t.mediaSequence)return 0;const i=cxe(t,e);if(i.precise)return i.result;const r=fxe(t,e);return r.precise?r.result:i.result+n},WY=function(t,e,n){if(!t)return 0;if(typeof n!="number"&&(n=0),typeof e>"u"){if(t.totalDuration)return t.totalDuration;if(!t.endList)return ue.Infinity}return VY(t,e,n)},ay=function({defaultDuration:t,durationList:e,startIndex:n,endIndex:i}){let r=0;if(n>i&&([n,i]=[i,n]),n<0){for(let s=n;s<Math.min(0,i);s++)r+=t;n=0}for(let s=n;s<i;s++)r+=e[s].duration;return r},GY=function(t,e,n,i){if(!t||!t.segments)return null;if(t.endList)return WY(t);if(e===null)return null;e=e||0;let r=VY(t,t.mediaSequence+t.segments.length,e);return n&&(i=typeof i=="number"?i:HY(null,t),r-=i),Math.max(0,r)},dxe=function(t,e,n){const r=e||0;let s=GY(t,e,!0,n);return s===null?es():(s<r&&(s=r),es(r,s))},hxe=function({playlist:t,currentTime:e,startingSegmentIndex:n,startingPartIndex:i,startTime:r,exactManifestTimings:s}){let a=e-r;const o=RO(t);let l=0;for(let u=0;u<o.length;u++){const c=o[u];if(n===c.segmentIndex&&!(typeof i=="number"&&typeof c.partIndex=="number"&&i!==c.partIndex)){l=u;break}}if(a<0){if(l>0)for(let u=l-1;u>=0;u--){const c=o[u];
265if(a+=c.duration,s){if(a<0)continue}else if(a+Xl<=0)continue;return{partIndex:c.partIndex,segmentIndex:c.segmentIndex,startTime:r-ay({defaultDuration:t.targetDuration,durationList:o,startIndex:l,endIndex:u})}}return{partIndex:o[0]&&o[0].partIndex||null,segmentIndex:o[0]&&o[0].segmentIndex||0,startTime:e}}if(l<0){for(let u=l;u<0;u++)if(a-=t.targetDuration,a<0)return{partIndex:o[0]&&o[0].partIndex||null,segmentIndex:o[0]&&o[0].segmentIndex||0,startTime:e};l=0}for(let u=l;u<o.length;u++){const c=o[u];a-=c.duration;const f=c.duration>Xl,h=a===0,p=f&&a+Xl>=0;if(!((h||p)&&u!==o.length-1)){if(s){if(a>0)continue}else if(a-Xl>=0)continue;return{partIndex:c.partIndex,segmentIndex:c.segmentIndex,startTime:r+ay({defaultDuration:t.targetDuration,durationList:o,startIndex:l,endIndex:u})}}}return{segmentIndex:o[o.length-1].segmentIndex,partIndex:o[o.length-1].partIndex,startTime:e}},jY=function(t){return t.excludeUntil&&t.excludeUntil>Date.now()},BL=function(t){return t.excludeUntil&&t.excludeUntil===1/0},Nw=function(t){const e=jY(t);return!t.disabled&&!e},pxe=function(t){return t.disabled},mxe=function(t){for(let e=0;e<t.segments.length;e++)if(t.segments[e].key)return!0;return!1},qY=function(t,e){return e.attributes&&e.attributes[t]},gxe=function(t,e,n,i=0){return qY("BANDWIDTH",n)?(t*n.attributes.BANDWIDTH-i*8)/e:NaN},kO=(t,e)=>{if(t.playlists.length===1)return!0;const n=e.attributes.BANDWIDTH||Number.MAX_VALUE;return t.playlists.filter(i=>Nw(i)?(i.attributes.BANDWIDTH||0)<n:!1).length===0},UL=(t,e)=>!t&&!e||!t&&e||t&&!e?!1:!!(t===e||t.id&&e.id&&t.id===e.id||t.resolvedUri&&e.resolvedUri&&t.resolvedUri===e.resolvedUri||t.uri&&e.uri&&t.uri===e.uri),zB=function(t,e){const n=t&&t.mediaGroups&&t.mediaGroups.AUDIO||{};let i=!1;for(const r in n){for(const s in n[r])if(i=e(n[r][s]),i)break;if(i)break}return!!i},qb=t=>{if(!t||!t.playlists||!t.playlists.length)return zB(t,n=>n.playlists&&n.playlists.length||n.uri);for(let e=0;e<t.playlists.length;e++){const n=t.playlists[e],i=n.attributes&&n.attributes.CODECS;if(!(i&&i.split(",").every(s=>Rq(s))||zB(t,s=>UL(n,s))))return!1}return!0};var qs={liveEdgeDelay:HY,duration:WY,seekable:dxe,getMediaInfoForTime:hxe,isEnabled:Nw,isDisabled:pxe,isExcluded:jY,isIncompatible:BL,playlistEnd:GY,isAes:mxe,hasAttribute:qY,estimateSegmentRequestTime:gxe,isLowestEnabledRendition:kO,isAudioOnly:qb,playlistMatch:UL,segmentDurationWithParts:NL};const{log:XY}=Be,Rm=(t,e)=>`${t}-${e}`,YY=(t,e,n)=>`placeholder-uri-${t}-${e}-${n}`,_xe=({onwarn:t,oninfo:e,manifestString:n,customTagParsers:i=[],customTagMappers:r=[],llhls:s})=>{const a=new Lve;t&&a.on("warn",t),e&&a.on("info",e),i.forEach(u=>a.addParser(u)),r.forEach(u=>a.addTagMapper(u)),a.push(n),a.end();const o=a.manifest;if(s||(["preloadSegment","skip","serverControl","renditionReports","partInf","partTargetDuration"].forEach(function(u){o.hasOwnProperty(u)&&delete o[u]}),o.segments&&o.segments.forEach(function(u){["parts","preloadHints"].forEach(function(c){u.hasOwnProperty(c)&&delete u[c]})})),!o.targetDuration){let u=10;o.segments&&o.segments.length&&(u=o.segments.reduce((c,f)=>Math.max(c,f.duration),0)),t&&t({message:`manifest has no targetDuration defaulting to ${u}`}),o.targetDuration=u}const l=$Y(o);if(l.length&&!o.partTargetDuration){const u=l.reduce((c,f)=>Math.max(c,f.duration),0);t&&(t({message:`manifest has no partTargetDuration defaulting to ${u}`}),XY.error("LL-HLS manifest has parts but lacks required #EXT-X-PART-INF:PART-TARGET value. See https://datatracker.ietf.org/doc/html/draft-pantos-hls-rfc8216bis-09#section-4.4.3.7. Playback is not guaranteed.")),o.partTargetDuration=u}return o},Wg=(t,e)=>{!t.mediaGroups||["AUDIO","SUBTITLES"].forEach(n=>{if(!!t.mediaGroups[n])for(const i in t.mediaGroups[n])for(const r in t.mediaGroups[n][i]){const s=t.mediaGroups[n][i][r];e(s,n,i,r)}})},KY=({playlist:t,uri:e,id:n})=>{t.id=n,t.playlistErrors_=0,e&&(t.uri=e),t.attributes=t.attributes||{}},vxe=t=>{let e=t.playlists.length;for(;e--;){const n=t.playlists[e];KY({playlist:n,id:Rm(e,n.uri)}),n.resolvedUri=js(t.uri,n.uri),t.playlists[n.id]=n,t.playlists[n.uri]=n,n.attributes.BANDWIDTH||XY.warn("Invalid playlist STREAM-INF detected. Missing BANDWIDTH attribute.")}},yxe=t=>{Wg(t,e=>{e.uri&&(e.resolvedUri=js(t.uri,e.uri))})}
vendor: 4,640 bytes, line 265
265,bxe=(t,e)=>{const n=Rm(0,e),i={mediaGroups:{AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},uri:ue.location.href,resolvedUri:ue.location.href,playlists:[{uri:e,id:n,resolvedUri:e,attributes:{}}]};return i.playlists[n]=i.playlists[0],i.playlists[e]=i.playlists[0],i},ZY=(t,e,n=YY)=>{t.uri=e;for(let r=0;r<t.playlists.length;r++)if(!t.playlists[r].uri){const s=`placeholder-uri-${r}`;t.playlists[r].uri=s}const i=qb(t);Wg(t,(r,s,a,o)=>{if(!r.playlists||!r.playlists.length){if(i&&s==="AUDIO"&&!r.uri)for(let l=0;l<t.playlists.length;l++){const u=t.playlists[l];if(u.attributes&&u.attributes.AUDIO&&u.attributes.AUDIO===a)return}r.playlists=[Do({},r)]}r.playlists.forEach(function(l,u){const c=n(s,a,o,l),f=Rm(u,c);l.uri?l.resolvedUri=l.resolvedUri||js(t.uri,l.uri):(l.uri=u===0?c:f,l.resolvedUri=l.uri),l.id=l.id||f,l.attributes=l.attributes||{},t.playlists[l.id]=l,t.playlists[l.uri]=l})}),vxe(t),yxe(t)};class HB{constructor(){this.offset_=null,this.pendingDateRanges_=new Map,this.processedDateRanges_=new Map}setOffset(e=[]){if(this.offset_!==null||!e.length)return;const[n]=e;n.programDateTime!==void 0&&(this.offset_=n.programDateTime/1e3)}setPendingDateRanges(e=[]){if(!e.length)return;const[n]=e,i=n.startDate.getTime();this.trimProcessedDateRanges_(i),this.pendingDateRanges_=e.reduce((r,s)=>(r.set(s.id,s),r),new Map)}processDateRange(e){this.pendingDateRanges_.delete(e.id),this.processedDateRanges_.set(e.id,e)}getDateRangesToProcess(){if(this.offset_===null)return[];const e={},n=[];this.pendingDateRanges_.forEach((i,r)=>{if(!this.processedDateRanges_.has(r)&&(i.startTime=i.startDate.getTime()/1e3-this.offset_,i.processDateRange=()=>this.processDateRange(i),n.push(i),!!i.class))if(e[i.class]){const s=e[i.class].push(i);i.classListIndex=s-1}else e[i.class]=[i],i.classListIndex=0});for(const i of n){const r=e[i.class]||[];i.endDate?i.endTime=i.endDate.getTime()/1e3-this.offset_:i.endOnNext&&r[i.classListIndex+1]?i.endTime=r[i.classListIndex+1].startTime:i.duration?i.endTime=i.startTime+i.duration:i.plannedDuration?i.endTime=i.startTime+i.plannedDuration:i.endTime=i.startTime}return n}trimProcessedDateRanges_(e){new Map(this.processedDateRanges_).forEach((i,r)=>{i.startDate.getTime()<e&&this.processedDateRanges_.delete(r)})}}const{EventTarget:xxe}=Be,Sxe=(t,e)=>{if(e.endList||!e.serverControl)return t;const n={};if(e.serverControl.canBlockReload){const{preloadSegment:i}=e;let r=e.mediaSequence+e.segments.length;if(i){const s=i.parts||[],a=zY(e)-1;a>-1&&a!==s.length-1&&(n._HLS_part=a),(a>-1||s.length)&&r--}n._HLS_msn=r}if(e.serverControl&&e.serverControl.canSkipUntil&&(n._HLS_skip=e.serverControl.canSkipDateranges?"v2":"YES"),Object.keys(n).length){const i=new ue.URL(t);["_HLS_skip","_HLS_msn","_HLS_part"].forEach(function(r){!n.hasOwnProperty(r)||i.searchParams.set(r,n[r])}),t=i.toString()}return t},Txe=(t,e)=>{if(!t)return e;const n=Un(t,e);if(t.preloadHints&&!e.preloadHints&&delete n.preloadHints,t.parts&&!e.parts)delete n.parts;else if(t.parts&&e.parts)for(let i=0;i<e.parts.length;i++)t.parts&&t.parts[i]&&(n.parts[i]=Un(t.parts[i],e.parts[i]));return!t.skipped&&e.skipped&&(n.skipped=!1),t.preload&&!e.preload&&(n.preload=!1),n},Exe=(t,e,n)=>{const i=t.slice(),r=e.slice();n=n||0;const s=[];let a;for(let o=0;o<r.length;o++){const l=i[o+n],u=r[o];l?(a=l.map||a,s.push(Txe(l,u))):(a&&!u.map&&(u.map=a),s.push(u))}return s},QY=(t,e)=>{!t.resolvedUri&&t.uri&&(t.resolvedUri=js(e,t.uri)),t.key&&!t.key.resolvedUri&&(t.key.resolvedUri=js(e,t.key.uri)),t.map&&!t.map.resolvedUri&&(t.map.resolvedUri=js(e,t.map.uri)),t.map&&t.map.key&&!t.map.key.resolvedUri&&(t.map.key.resolvedUri=js(e,t.map.key.uri)),t.parts&&t.parts.length&&t.parts.forEach(n=>{n.resolvedUri||(n.resolvedUri=js(e,n.uri))}),t.preloadHints&&t.preloadHints.length&&t.preloadHints.forEach(n=>{n.resolvedUri||(n.resolvedUri=js(e,n.uri))})},JY=function(t){const e=t.segments||[],n=t.preloadSegment;if(n&&n.parts&&n.parts.length){if(n.preloadHints){for(let i=0;i<n.preloadHints.length;i++)if(n.preloadHints[i].type==="MAP")return e}n.duration=t.targetDuration,n.preload=!0,e.push(n)}return e},eK=(t,e)=>t===e||t.segments&&e.segments&&t.segments.length===e.segments.length&&t.endList===e.endList&&t.mediaSequence===e.mediaSequence&&t.preloadSegment===e.preloadSegment,IO=(t,e,n=eK)=>{const i=Un(t,{}),r=i.playlists[e.id];if(!r||n(r,e))return null;e.segments=JY(e);const s=Un(r,e);if(s.preloadSegment&&!e.preloadSegment&&delete s.preloadSegment,r.segments){if(e.skip){e.segments=e.segments||[];for(let a=0;a<e.skip.skippedSegments;a++)e.segments.unshift({skipped:!0})}s.segments=Exe(r.segments,e.segments,e.mediaSequence-r.mediaSequence)}
265s.segments.forEach(a=>{QY(a,s.resolvedUri)});for(let a=0;a<i.playlists.length;a++)i.playlists[a].id===e.id&&(i.playlists[a]=s);return i.playlists[e.id]=s,i.playlists[e.uri]=s,Wg(t,(a,o,l,u)=>{if(!!a.playlists)for(let c=0;c<a.playlists.length;c++)e.id===a.playlists[c].id&&(a.playlists[c]=s)}),i},LO=(t,e)=>{const n=t.segments||[],i=n[n.length-1],r=i&&i.parts&&i.parts[i.parts.length-1],s=r&&r.duration||i&&i.duration;return e&&s?s*1e3:(t.partTargetDuration||t.targetDuration||10)*500};class rm extends xxe{constructor(e,n,i={}){if(super(),!e)throw new Error("A non-empty playlist URL or object is required");this.logger_=Fo("PlaylistLoader");const{withCredentials:r=!1}=i;this.src=e,this.vhs_=n,this.withCredentials=r,this.addDateRangesToTextTrack_=i.addDateRangesToTextTrack;const s=n.options_;this.customTagParsers=s&&s.customTagParsers||[],this.customTagMappers=s&&s.customTagMappers||[],this.llhls=s&&s.llhls,this.dateRangesStorage_=new HB,this.state="HAVE_NOTHING",this.handleMediaupdatetimeout_=this.handleMediaupdatetimeout_.bind(this),this.on("mediaupdatetimeout",this.handleMediaupdatetimeout_),this.on("loadedplaylist",this.handleLoadedPlaylist_.bind(this))}handleLoadedPlaylist_(){const e=this.media();if(!e)return;this.dateRangesStorage_.setOffset(e.segments),this.dateRangesStorage_.setPendingDateRanges(e.dateRanges);const n=this.dateRangesStorage_.getDateRangesToProcess();!n.length||!this.addDateRangesToTextTrack_||this.addDateRangesToTextTrack_(n)}handleMediaupdatetimeout_(){if(this.state!=="HAVE_METADATA")return;const e=this.media();let n=js(this.main.uri,e.uri);this.llhls&&(n=Sxe(n,e)),this.state="HAVE_CURRENT_METADATA",this.request=this.vhs_.xhr({uri:n,withCredentials:this.withCredentials,requestType:"hls-playlist"},(i,r)=>{if(!!this.request){if(i)return this.playlistRequestError(this.request,this.media(),"HAVE_METADATA");this.haveMetadata({playlistString:this.request.responseText,url:this.media().uri,id:this.media().id})}})}playlistRequestError(e,n,i){const{uri:r,id:s}=n;this.request=null,i&&(this.state=i),this.error={playlist:this.main.playlists[s],status:e.status,message:`HLS playlist request error at URL: ${r}.`,responseText:e.responseText,code:e.status>=500?4:2,metadata:{errorType:Be.Error.HlsPlaylistRequestError}},this.trigger("error")}parseManifest_({url:e,manifestString:n}){return _xe({onwarn:({message:i})=>this.logger_(`m3u8-parser warn for ${e}: ${i}`),oninfo:({message:i})=>this.logger_(`m3u8-parser info for ${e}: ${i}`),manifestString:n,customTagParsers:this.customTagParsers,customTagMappers:this.customTagMappers,llhls:this.llhls})}haveMetadata({playlistString:e,playlistObject:n,url:i,id:r}){this.request=null,this.state="HAVE_METADATA";const s=n||this.parseManifest_({url:i,manifestString:e});s.lastRequest=Date.now(),KY({playlist:s,uri:i,id:r});const a=IO(this.main,s);this.targetDuration=s.partTargetDuration||s.targetDuration,this.pendingMedia_=null,a?(this.main=a,this.media_=this.main.playlists[r]):this.trigger("playlistunchanged"),this.updateMediaUpdateTimeout_(LO(this.media(),!!a)),this.trigger("loadedplaylist")}dispose(){this.trigger("dispose"),this.stopRequest(),ue.clearTimeout(this.mediaUpdateTimeout),ue.clearTimeout(this.finalRenditionTimeout),this.dateRangesStorage_=new HB,this.off()}stopRequest(){if(this.request){const e=this.request;this.request=null,e.onreadystatechange=null,e.abort()}}media(e,n){if(!e)return this.media_;if(this.state==="HAVE_NOTHING")throw new Error("Cannot switch media playlist from "+this.state);if(typeof e=="string"){if(!this.main.playlists[e])throw new Error("Unknown playlist URI: "+e);e=this.main.playlists[e]}if(ue.clearTimeout(this.finalRenditionTimeout),n){const a=(e.partTargetDuration||e.targetDuration)/2*1e3||5e3;this.finalRenditionTimeout=ue.setTimeout(this.media.bind(this,e,!1),a);return}const i=this.state,r=!this.media_||e.id!==this.media_.id,s=this.main.playlists[e.id];if(s&&s.endList||e.endList&&e.segments.length){this.request&&(this.request.onreadystatechange=null,this.request.abort(),this.request=null),this.state="HAVE_METADATA",this.media_=e,r&&(this.trigger("mediachanging"),i==="HAVE_MAIN_MANIFEST"?this.trigger("loadedmetadata"):this.trigger("mediachange"));return}if(this.updateMediaUpdateTimeout_(LO(e,!0)),!!r){if(this.state="SWITCHING_MEDIA",this.request){if(e.resolvedUri===this.request.url)return;this.request.onreadystatechange=null,this.request.abort(),this.request=null}this.media_&&this.trigger("mediachanging"),this.pendingMedia_=e,this.request=this.vhs_.xhr({uri:e.resolvedUri,withCredentials:this.withCredentials,requestType:"hls-playlist"},(a,o)=>
265{if(!!this.request){if(e.lastRequest=Date.now(),e.resolvedUri=Y2(e.resolvedUri,o),a)return this.playlistRequestError(this.request,e,i);this.haveMetadata({playlistString:o.responseText,url:e.uri,id:e.id}),i==="HAVE_MAIN_MANIFEST"?this.trigger("loadedmetadata"):this.trigger("mediachange")}})}}pause(){this.mediaUpdateTimeout&&(ue.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null),this.stopRequest(),this.state==="HAVE_NOTHING"&&(this.started=!1),this.state==="SWITCHING_MEDIA"?this.media_?this.state="HAVE_METADATA":this.state="HAVE_MAIN_MANIFEST":this.state==="HAVE_CURRENT_METADATA"&&(this.state="HAVE_METADATA")}load(e){this.mediaUpdateTimeout&&(ue.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null);const n=this.media();if(e){const i=n?(n.partTargetDuration||n.targetDuration)/2*1e3:5e3;this.mediaUpdateTimeout=ue.setTimeout(()=>{this.mediaUpdateTimeout=null,this.load()},i);return}if(!this.started){this.start();return}n&&!n.endList?this.trigger("mediaupdatetimeout"):this.trigger("loadedplaylist")}updateMediaUpdateTimeout_(e){this.mediaUpdateTimeout&&(ue.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null),!(!this.media()||this.media().endList)&&(this.mediaUpdateTimeout=ue.setTimeout(()=>{this.mediaUpdateTimeout=null,this.trigger("mediaupdatetimeout"),this.updateMediaUpdateTimeout_(e)},e))}start(){if(this.started=!0,typeof this.src=="object"){this.src.uri||(this.src.uri=ue.location.href),this.src.resolvedUri=this.src.uri,setTimeout(()=>{this.setupInitialPlaylist(this.src)},0);return}this.request=this.vhs_.xhr({uri:this.src,withCredentials:this.withCredentials,requestType:"hls-playlist"},(e,n)=>{if(!this.request)return;if(this.request=null,e)return this.error={status:n.status,message:`HLS playlist request error at URL: ${this.src}.`,responseText:n.responseText,code:2,metadata:{errorType:Be.Error.HlsPlaylistRequestError}},this.state==="HAVE_NOTHING"&&(this.started=!1),this.trigger("error");this.src=Y2(this.src,n);const i=this.parseManifest_({manifestString:n.responseText,url:this.src});this.setupInitialPlaylist(i)})}srcUri(){return typeof this.src=="string"?this.src:this.src.uri}setupInitialPlaylist(e){if(this.state="HAVE_MAIN_MANIFEST",e.playlists){this.main=e,ZY(this.main,this.srcUri()),e.playlists.forEac
265h(i=>{i.segments=JY(i),i.segments.forEach(r=>{QY(r,i.resolvedUri)})}),this.trigger("loadedplaylist"),this.request||this.media(this.main.playlists[0]);return}const n=this.srcUri()||ue.location.href;this.main=bxe(e,n),this.haveMetadata({playlistObject:e,url:n,id:this.main.playlists[0].id}),this.trigger("loadedmetadata")}updateOrDeleteClone(e,n){const i=this.main,r=e.ID;let s=i.playlists.length;for(;s--;){const a=i.playlists[s];if(a.attributes["PATHWAY-ID"]===r){const o=a.resolvedUri,l=a.id;if(n){const u=this.createCloneURI_(a.resolvedUri,e),c=Rm(r,u),f=this.createCloneAttributes_(r,a.attributes),h=this.createClonePlaylist_(a,c,e,f);i.playlists[s]=h,i.playlists[c]=h,i.playlists[u]=h}else i.playlists.splice(s,1);delete i.playlists[l],delete i.playlists[o]}}this.updateOrDeleteCloneMedia(e,n)}updateOrDeleteCloneMedia(e,n){const i=this.main,r=e.ID;["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(s=>{if(!(!i.mediaGroups[s]||!i.mediaGroups[s][r])){for(const a in i.mediaGroups[s])if(a===r){for(const o in i.mediaGroups[s][a])i.mediaGroups[s][a][o].playlists.forEac
265h((u,c)=>{const f=i.playlists[u.id],h=f.id,p=f.resolvedUri;delete i.playlists[h],delete i.playlists[p]});delete i.mediaGroups[s][a]}}}),n&&this.createClonedMediaGroups_(e)}addClonePathway(e,n={}){const i=this.main,r=i.playlists.length,s=this.createCloneURI_(n.resolvedUri,e),a=Rm(e.ID,s),o=this.createCloneAttributes_(e.ID,n.attributes),l=this.createClonePlaylist_(n,a,e,o);i.playlists[r]=l,i.playlists[a]=l,i.playlists[s]=l,this.createClonedMediaGroups_(e)}createClonedMediaGroups_(e){const n=e.ID,i=e["BASE-ID"],r=this.main;["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(s=>{if(!(!r.mediaGroups[s]||r.mediaGroups[s][n]))for(const a in r.mediaGroups[s]){if(a===i)r.mediaGroups[s][n]={};else continue;for(const o in r.mediaGroups[s][a]){const l=r.mediaGroups[s][a][o];r.mediaGroups[s][n][o]=Do({},l);const u=r.mediaGroups[s][n][o],c=this.createCloneURI_(l.resolvedUri,e);u.resolvedUri=c,u.uri=c,u.playlists=[],l.playlists.forEach((f,h)=>{const p=r.playlists[f.id],m=YY(s,n,o),y=Rm(n,m);if(p&&!r.playlists[y]){const v=this.createClonePlaylist_(p,y,e),_=v.resolvedUri;r.playlists[y]=v,r.playlists[_]=v}u.playlists[h]=this.createClonePlaylist_(f,y,e)})}}})}createClonePlaylist_(e,n,i,r){const s=this.createCloneURI_(e.resolvedUri,i),a={resolvedUri:s,uri:s,id:n};return e.segments&&(a.segments=[]),r&&(a.attributes=r),Un(e,a)}createCloneURI_(e,n){const i=new URL(e);i.hostname=n["URI-REPLACEMENT"].HOST;const r=n["URI-REPLACEMENT"].PARAMS;for(const s of Object.keys(r))i.searchParams.set(s,r[s]);return i.href}createCloneAttributes_(e,n){const i={["PATHWAY-ID"]:e};return["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(r=>{n[r]&&(i[r]=e)}),i}getKeyIdSet(e){if(e.contentProtection){const n=new Set;for(const i in e.contentProtection){const r=e.contentProtection[i].attributes.keyId;r&&n.add(r.toLowerCase())}return n}}}const FO=function(t,e,n,i){const r=t.responseType==="arraybuffer"?t.response:t.responseText;!e&&r&&(t.responseTime=Date.now(),t.roundTripTime=t.responseTime-t.requestTime,t.bytesReceived=r.byteLength||r.length,t.bandwidth||(t.bandwidth=Math.floor(t.bytesReceived/t.roundTripTime*8*1e3))),n.headers&&(t.responseHeaders=n.headers),e&&e.code==="ETIMEDOUT"&&(t.timedout=!0),!e&&!t.aborted&&n.statusCode!==200&&n.statusCode!==206&&n.statusCode!==0&&(e=new Error("XHR Failed with a response of: "+(t&&(r||t.responseText)))),i(e,t)},wxe=(t,e)=>{if(!t||!t.size)return;let n=e;return t.forEach(i=>{n=i(n)}),n},Cxe=(t,e,n,i)=>{!t||!t.size||t.forEach(r=>{r(e,n,i)})},tK=function(){const t=function e(n,i){n=Un({timeout:45e3},n);const r=e.beforeRequest||Be.Vhs.xhr.beforeRequest,s=e._requestCallbackSet||Be.Vhs.xhr._requestCallbackSet||new Set,a=e._responseCallbackSet||Be.Vhs.xhr._responseCallbackSet;r&&typeof r=="function"&&(Be.log.warn("beforeRequest is deprecated, use onRequest instead."),s.add(r));const o=Be.Vhs.xhr.original===!0?Be.xhr:Be.Vhs.xhr,l=wxe(s,n);s.delete(r);const u=o(l||n,function(f,h){return Cxe(a,u,f,h),FO(u,f,h,i)}),c=u.abort;return u.abort=function(){return u.aborted=!0,c.apply(u,arguments)},u.uri=n.uri,u.requestTime=Date.now(),u};return t.original=!0,t},Axe=function(t){let e;const n=t.offset;return typeof t.offset=="bigint"||typeof t.length=="bigint"?e=ue.BigInt(t.offset)+ue.BigInt(t.length)-ue.BigInt(1):e=t.offset+t.length-1,"bytes="+n+"-"+e},NO=function(t){const e={};return t.byterange&&(e.Range=Axe(t.byterange)),e},Mxe=function(t,e){return t.start(e)+"-"+t.end(e)},Dxe=function(t,e){const n=t.toString(16);return"00".substring(0,2-n.length)+n+(e%2?" ":"")},Pxe=function(t){return t>=32&&t<126?String.fromCharCode(t):"."},nK=function(t){const e={};return Object.keys(t).forEach(n=>{const i=t[n];Iq(i)?e[n]={bytes:i.buffer,byteOffset:i.byteOffset,byteLength:i.byteLength}:e[n]=i}),e},K2=function(t){const e=t.byterange||{length:1/0,offset:0};return[e.length,e.offset,t.resolvedUri].join(",")},iK=function(t){return t.resolvedUri},rK=t=>{const e=Array.prototype.slice.call(t),n=16;let i="",r,s;for(let a=0;a<e.length/n;a++)r=e.slice(a*n,a*n+n).map(Dxe).join(""),s=e.slice(a*n,a*n+n).map(Pxe).join(""),i+=r+" "+s+`
266`;return i},Oxe=({bytes:t})=>rK(t),Rxe=t=>{let e="",n;for(n=0;n<t.length;n++)e+=Mxe(t,n)+" ";return e};var kxe=Object.freeze({__proto__:null,createTransferableMessage:nK,initSegmentId:K2,segmentKeyId:iK,hexDump:rK,tagDump:Oxe,textRanges:Rxe});const sK=.25,Ixe=(t,e)=>{if(!e.dateTimeObject)return null;const n=e.videoTimingInfo.transmuxerPrependedSeconds,r=e.videoTimingInfo.transmuxedPresentationStart+n,s=t-r;return new Date(e.dateTimeObject.getTime()+s*1e3)},Lxe=t=>t.transmuxedPresentationEnd-t.transmuxedPresentationStart-t.transmuxerPrependedSeconds,Fxe=(t,e)=>{let n;try{n=new Date(t)}catch(l){return null}if(!e||!e.segments||e.segments.length===0)return null;let i=e.segments[0];if(n<new Date(i.dateTimeObject))return null;for(let l=0;l<e.segments.length-1;l++){i=e.segments[l];const u=new Date(e.segments[l+1].dateTimeObject);if(n<u)break}const r=e.segments[e.segments.length-1],s=r.dateTimeObject,a=r.videoTimingInfo?Lxe(r.videoTimingInfo):r.duration+r.duration*sK,o=new Date(s.getTime()+a*1e3);return n>o?null:(n>new Date(s)&&(i=r),{segment:i,estimatedStart:i.videoTimingInfo?i.videoTimingInfo.transmuxedPresentationStart:qs.duration(e,e.mediaSequence+e.segments.indexOf(i)),type:i.videoTimingInfo?"accurate":"estimate"})},Nxe=(t,e)=>{if(!e||!e.segments||e.segments.length===0)return null;let n=0,i;for(let s=0;s<e.segments.length&&(i=e.segments[s],n=i.videoTimingInfo?i.videoTimingInfo.transmuxedPresentationEnd:n+i.duration,!(t<=n));s++);const r=e.segments[e.segments.length-1];if(r.videoTimingInfo&&r.videoTimingInfo.transmuxedPresentationEnd<t)return null;if(t>n){if(t>n+r.duration*sK)return null;i=r}return{segment:i,estimatedStart:i.videoTimingInfo?i.videoTimingInfo.transmuxedPresentationStart:n-i.duration,type:i.videoTimingInfo?"accurate":"estimate"}},Bxe=(t,e)=>{let n,i;try{n=new Date(t),i=new Date(e)}catch(a){}const r=n.getTime();return(i.getTime()-r)/1e3},Uxe=t=>
266{if(!t.segments||t.segments.length===0)return!1;for(let e=0;e<t.segments.length;e++)if(!t.segments[e].dateTimeObject)return!1;return!0},$xe=({playlist:t,time:e=void 0,callback:n})=>{if(!n)throw new Error("getProgramTime: callback must be provided");if(!t||e===void 0)return n({message:"getProgramTime: playlist and time must be provided"});const i=Nxe(e,t);if(!i)return n({message:"valid programTime was not found"});if(i.type==="estimate")return n({message:"Accurate programTime could not be determined. Please seek to e.seekTime and try again",seekTime:i.estimatedStart});const r={mediaSeconds:e},s=Ixe(e,i.segment);return s&&(r.programDateTime=s.toISOString()),n(null,r)},aK=({programTime:t,playlist:e,retryCount:n=2,seekTo:i,pauseAfterSeek:r=!0,tech:s,callback:a})=>{if(!a)throw new Error("seekToProgramTime: callback must be provided");if(typeof t>"u"||!e||!i)return a({message:"seekToProgramTime: programTime, seekTo and playlist must be provided"});if(!e.endList&&!s.hasStarted_)return a({message:"player must be playing a live stream to start buffering"});if(!Uxe(e))return a({message:"programDateTime tags must be provided in the manifest "+e.resolvedUri});const o=Fxe(t,e);if(!o)return a({message:`${t} was not found in the stream`});const l=o.segment,u=Bxe(l.dateTimeObject,t);if(o.type==="estimate"){if(n===0)return a({message:`${t} is not buffered yet. Try again`});i(o.estimatedStart+u),s.one("seeked",()=>{aK({programTime:t,playlist:e,retryCount:n-1,seekTo:i,pauseAfterSeek:r,tech:s,callback:a})});return}const c=l.start+u,f=()=>a(null,s.currentTime());s.one("seeked",f),r&&s.pause(),i(c)},QM=(t,e)=>{if(t.readyState===4)return e()},zxe=(t,e,n)=>{let i=[],r,s=!1;const a=function(c,f,h,p){return f.abort(),s=!0,n(c,f,h,p)},o=function(c,f){if(s)return;if(c)return a(c,f,"",i);const h=f.responseText.substring(i&&i.byteLength||0,f.responseText.length);if(i=qve(i,Lq(h,!0)),r=r||wv(i),i.length<10||r&&i.length<r+2)return QM(f,()=>a(c,f,"",i));const p=sL(i);return p==="ts"&&i.length<188?QM(f,()=>a(c,f,"",i)):!p&&i.length<376?QM(f,()=>a(c,f,"",i)):a(null,f,p,i)},u=e({uri:t,beforeSend(c){c.overrideMimeType("text/plain; charset=x-user-defined"),c.addEventListener("progress",function({total:f,loaded:h}){return FO(c,null,{statusCode:c.status},o)})}},function(c,f){return FO(u,c,f,o)});return u},{EventTarget:Hxe}=Be,VB=function(t,e){if(!eK(t,e)||t.sidx&&e.sidx&&(t.sidx.offset!==e.sidx.offset||t.sidx.length!==e.sidx.length))return!1;if(!t.sidx&&e.sidx||t.sidx&&!e.sidx||t.segments&&!e.segments||!t.segments&&e.segments)return!1;if(!t.segments&&!e.segments)return!0;for(let n=0;n<t.segments.length;n++){const i=t.segments[n],r=e.segments[n];if(i.uri!==r.uri)return!1;if(!i.byterange&&!r.byterange)continue;const s=i.byterange,a=r.byterange;if(s&&!a||!s&&a||s.offset!==a.offset||s.length!==a.length)return!1}return!0},Vxe=(t,e,n,i)=>{const r=i.attributes.NAME||n;return`placeholder-uri-${t}-${e}-${r}`},Wxe=({mainXml:t,srcUrl:e,clientOffset:n,sidxMapping:i,previousManifest:r})=>{const s=gbe(t,{manifestUri:e,clientOffset:n,sidxMapping:i,previousManifest:r});return ZY(s,e,Vxe),s},Gxe=(t,e)=>{Wg(t,(n,i,r,s)=>{s in e.mediaGroups[i][r]||delete t.mediaGroups[i][r][s]})},jxe=(t,e,n)=>{let i=!0,r=Un(t,{duration:e.duration,minimumUpdatePeriod:e.minimumUpdatePeriod,timelineStarts:e.timelineStarts});for(let s=0;s<e.playlists.length;s++){const a=e.playlists[s];if(a.sidx){const l=yw(a.sidx);n&&n[l]&&n[l].sidx&&nL(a,n[l].sidx,a.sidx.resolvedUri)}const o=IO(r,a,VB);o&&(r=o,i=!1)}return Wg(e,(s,a,o,l)=>{if(s.playlists&&s.playlists.length){const u=s.playlists[0].id,c=IO(r,s.playlists[0],VB);c&&(r=c,l in r.mediaGroups[a][o]||(r.mediaGroups[a][o][l]=s),r.mediaGroups[a][o][l].playlists[0]=r.playlists[u],i=!1)}}),Gxe(r,e),e.minimumUpdatePeriod!==t.minimumUpdatePeriod&&(i=!1),i?null:r},qxe=(t,e)=>(Boolean(!t.map&&!e.map)||Boolean(t.map&&e.map&&t.map.byterange.offset===e.map.byterange.offset&&t.map.byterange.length===e.map.byterange.length))&&t.uri===e.uri&&t.byterange.offset===e.byterange.offset&&t.byterange.length===e.byterange.length,WB=(t,e)=>{const n={};for(const i in t){const s=t[i].sidx;if(s){const a=yw(s);if(!e[a])break;const o=e[a].sidxInfo;qxe(o,s)&&(n[a]=e[a])}}return n},Xxe=(t,e)=>{let i=WB(t.playlists,e);return Wg(t,(r,s,a,o)=>
266{if(r.playlists&&r.playlists.length){const l=r.playlists;i=Un(i,WB(l,e))}}),i};class BO extends Hxe{constructor(e,n,i={},r){super(),this.mainPlaylistLoader_=r||this,r||(this.isMain_=!0);const{withCredentials:s=!1}=i;if(this.vhs_=n,this.withCredentials=s,this.addMetadataToTextTrack=i.addMetadataToTextTrack,!e)throw new Error("A non-empty playlist URL or object is required");this.on("minimumUpdatePeriod",()=>{this.refreshXml_()}),this.on("mediaupdatetimeout",()=>{this.refreshMedia_(this.media().id)}),this.state="HAVE_NOTHING",this.loadedPlaylists_={},this.logger_=Fo("DashPlaylistLoader"),this.isMain_?(this.mainPlaylistLoader_.srcUrl=e,this.mainPlaylistLoader_.sidxMapping_={}):this.childPlaylist_=e}requestErrored_(e,n,i){if(!this.request)return!0;if(this.request=null,e)return this.error=typeof e=="object"&&!(e instanceof Error)?e:{status:n.status,message:"DASH request error at URL: "+n.uri,response:n.response,code:2,metadata:e.metadata},i&&(this.state=i),this.trigger("error"),!0}addSidxSegments_(e,n,i){const r=e.sidx&&yw(e.sidx);if(!e.sidx||!r||this.mainPlaylistLoader_.sidxMapping_[r]){this.mediaRequest_=ue.setTimeout(()=>i(!1),0);return}const s=Y2(e.sidx.resolvedUri),a=(o,l)=>{if(this.requestErrored_(o,l,n))return;const u=this.mainPlaylistLoader_.sidxMapping_;let c;try{c=xbe(Lt(l.response).subarray(8))}catch(f){f.metadata={errorType:Be.Error.DashManifestSidxParsingError},this.requestErrored_(f,l,n);return}return u[r]={sidxInfo:e.sidx,sidx:c},nL(e,c,e.sidx.resolvedUri),i(!0)};this.request=zxe(s,this.vhs_.xhr,(o,l,u,c)=>{if(o)return a(o,l);if(!u||u!=="mp4"){const p=u||"unknown";return a({status:l.status,message:`Unsupported ${p} container type for sidx segment at URL: ${s}`,response:"",playlist:e,internal:!0,playlistExclusionDuration:1/0,code:2,metadata:{errorType:Be.Error.UnsupportedSidxContainer,sidxContainer:p}},l)}const{offset:f,length:h}=e.sidx.byterange;if(c.length>=h+f)return a(o,{response:c.subarray(f,f+h),status:l.status,uri:l.uri});this.request=this.vhs_.xhr({uri:s,responseType:"arraybuffer",headers:NO({byterange:e.sidx.byterange})},a)})}dispose(){this.trigger("dispose"),this.stopRequest(),this.loadedPlaylists_={},ue.clearTimeout(this.minimumUpdatePeriodTimeout_),ue.clearTimeout(this.mediaRequest_),ue.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null,this.mediaRequest_=null,this.minimumUpdatePeriodTimeout_=null,this.mainPlaylistLoader_.createMupOnMedia_&&(this.off("loadedmetadata",this.mainPlaylistLoader_.createMupOnMedia_),this.mainPlaylistLoader_.createMupOnMedia_=null),this.off()}hasPendingRequest(){return this.request||this.mediaRequest_}stopRequest(){if(this.request){const e=this.request;this.request=null,e.onreadystatechange=null,e.abort()}}media(e){if(!e)return this.media_;if(this.state==="HAVE_NOTHING")throw new Error("Cannot switch media playlist from "+this.state);const n=this.state;if(typeof e=="string"){if(!this.mainPlaylistLoader_.main.playlists[e])throw new Error("Unknown playlist URI: "+e);e=this.mainPlaylistLoader_.main.playlists[e]}const i=!this.media_||e.id!==this.media_.id;if(i&&this.loadedPlaylists_[e.id]&&this.loadedPlaylists_[e.id].endList){this.state="HAVE_METADATA",this.media_=e,i&&(this.trigger("mediachanging"),this.trigger("mediachange"));return}!i||(this.media_&&this.trigger("mediachanging"),this.addSidxSegments_(e,n,r=>{this.haveMetadata({startingState:n,playlist:e})}))}haveMetadata({startingState:e,playlist:n}){this.state="HAVE_METADATA",this.loadedPlaylists_[n.id]=n,this.mediaRequest_=null,this.refreshMedia_(n.id),e==="HAVE_MAIN_MANIFEST"?this.trigger("loadedmetadata"):this.trigger("mediachange")}pause(){this.mainPlaylistLoader_.createMupOnMedia_&&(this.off("loadedmetadata",this.mainPlaylistLoader_.createMupOnMedia_),this.mainPlaylistLoader_.createMupOnMedia_=null),this.stopRequest(),ue.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null,this.isMain_&&(ue.clearTimeout(this.mainPlaylistLoader_.minimumUpdatePeriodTimeout_),this.mainPlaylistLoader_.minimumUpdatePeriodTimeout_=null),this.state==="HAVE_NOTHING"&&(this.started=!1)}load(e){ue.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null;const n=this.media();if(e){const i=n?n.targetDuration/2*1e3:5e3;this.mediaUpdateTimeout=ue.setTimeout(()=>this.load(),i);return}if(!this.started){this.start();return}n&&!n.endList?(this.isMain_&&!this.minimumUpdatePeriodTimeout_&&(this.trigger("minimumUpdatePeriod"),this.updateMinimumUpdatePeriodTimeout_()),this.trigger("mediaupdatetimeout")):this.trigger("loadedplaylist")}
266start(){if(this.started=!0,!this.isMain_){this.mediaRequest_=ue.setTimeout(()=>this.haveMain_(),0);return}this.requestMain_((e,n)=>{this.haveMain_(),!this.hasPendingRequest()&&!this.media_&&this.media(this.mainPlaylistLoader_.main.playlists[0])})}requestMain_(e){this.request=this.vhs_.xhr({uri:this.mainPlaylistLoader_.srcUrl,withCredentials:this.withCredentials,requestType:"dash-manifest"},(n,i)=>{if(this.requestErrored_(n,i)){this.state==="HAVE_NOTHING"&&(this.started=!1);return}const r=i.responseText!==this.mainPlaylistLoader_.mainXml_;if(this.mainPlaylistLoader_.mainXml_=i.responseText,i.responseHeaders&&i.responseHeaders.date?this.mainLoaded_=Date.parse(i.responseHeaders.date):this.mainLoaded_=Date.now(),this.mainPlaylistLoader_.srcUrl=Y2(this.mainPlaylistLoader_.srcUrl,i),r){this.handleMain_(),this.syncClientServerClock_(()=>e(i,r));return}return e(i,r)})}syncClientServerClock_(e){const n=_be(this.mainPlaylistLoader_.mainXml_);if(n===null)return this.mainPlaylistLoader_.clientOffset_=this.mainLoaded_-Date.now(),e();if(n.method==="DIRECT")return this.mainPlaylistLoader_.clientOffset_=n.value-Date.now(),e();this.request=this.vhs_.xhr({uri:js(this.mainPlaylistLoader_.srcUrl,n.value),method:n.method,withCredentials:this.withCredentials,requestType:"dash-clock-sync"},(i,r)=>{if(!this.request)return;if(i)return this.mainPlaylistLoader_.clientOffset_=this.mainLoaded_-Date.now(),e();let s;n.method==="HEAD"?!r.responseHeaders||!r.responseHeaders.date?s=this.mainLoaded_:s=Date.parse(r.responseHeaders.date):s=Date.parse(r.responseText),this.mainPlaylistLoader_.clientOffset_=s-Date.now(),e()})}haveMain_(){this.state="HAVE_MAIN_MANIFEST",this.isMain_?this.trigger("loadedplaylist"):this.media_||this.media(this.childPlaylist_)}handleMain_(){this.mediaRequest_=null;const e=this.mainPlaylistLoader_.main;let n=Wxe({mainXml:this.mainPlaylistLoader_.mainXml_,srcUrl:this.mainPlaylistLoader_.srcUrl,clientOffset:this.mainPlaylistLoader_.clientOffset_,sidxMapping:this.mainPlaylistLoader_.sidxMapping_,previousManifest:e});e&&(n=jxe(e,n,this.mainPlaylistLoader_.sidxMapping_)),this.mainPlaylistLoader_.main=n||e;const i=this.mainPlaylistLoader_.main.locations&&this.mainPlaylistLoader_.main.locations[0];return i&&i!==this.mainPlaylistLoader_.srcUrl&&(this.mainPlaylistLoader_.srcUrl=i),(!e||n&&n.minimumUpdatePeriod!==e.minimumUpdatePeriod)&&this.updateMinimumUpdatePeriodTimeout_(),this.addEventStreamToMetadataTrack_(n),Boolean(n)}updateMinimumUpdatePeriodTimeout_(){const e=this.mainPlaylistLoader_;e.createMupOnMedia_&&(e.off("loadedmetadata",e.createMupOnMedia_),e.createMupOnMedia_=null),e.minimumUpdatePeriodTimeout_&&(ue.clearTimeout(e.minimumUpdatePeriodTimeout_),e.minimumUpdatePeriodTimeout_=null);let n=e.main&&e.main.minimumUpdatePeriod;if(n===0&&(e.media()?n=e.media().targetDuration*1e3:(e.createMupOnMedia_=e.updateMinimumUpdatePeriodTimeout_,e.one("loadedmetadata",e.createMupOnMedia_))),typeof n!="number"||n<=0){n<0&&this.logger_(`found invalid minimumUpdatePeriod of ${n}, not setting a timeout`);return}this.createMUPTimeout_(n)}createMUPTimeout_(e){const n=this.mainPlaylistLoader_;n.minimumUpdatePeriodTimeout_=ue.setTimeout(()=>{n.minimumUpdatePeriodTimeout_=null,n.trigger("minimumUpdatePeriod"),n.createMUPTimeout_(e)},e)}refreshXml_(){this.requestMain_((e,n)=>{!n||(this.media_&&(this.media_=this.mainPlaylistLoader_.main.playlists[this.media_.id]),this.mainPlaylistLoader_.sidxMapping_=Xxe(this.mainPlaylistLoader_.main,this.mainPlaylistLoader_.sidxMapping_),this.addSidxSegments_(this.media(),this.state,i=>{this.refreshMedia_(this.media().id)}))})}refreshMedia_(e){if(!e)throw new Error("refreshMedia_ must take a media id");this.media_&&this.isMain_&&this.handleMain_();const n=this.mainPlaylistLoader_.main.playlists,i=!this.media_||this.media_!==n[e];if(i?this.media_=n[e]:this.trigger("playlistunchanged"),!this.mediaUpdateTimeout){const r=()=>{this.media().endList||(this.mediaUpdateTimeout=ue.setTimeout(()=>{this.trigger("mediaupdatetimeout"),r()},LO(this.media(),Boolean(i))))};r()}this.trigger("loadedplaylist")}addEventStreamToMetadataTrack_(e){if(e&&this.mainPlaylistLoader_.main.eventStream){const n=this.mainPlaylistLoader_.main.eventStream.map(i=>({cueTime:i.start,frames:[{data:i.messageData}]}));this.addMetadataToTextTrack("EventStream",n,this.mainPlaylistLoader_.main.duration)}}getKeyIdSet(e){if(e.contentProtection){const n=new Set;for(const i in e.contentProtection){const r=e.contentProtection[i].attributes["cenc:default_KID"];r&&n.add(r.replace(/-/g,"").toLowerCase())}return n}}}var _r={GOAL_BUFFER_LENGTH:30,MAX_GOAL_BUFFER_LENGTH:60,BACK_BUFFER_LENGTH:30,GOAL_BUFFER_LENGTH_RATE:1,INITIAL_BANDWIDTH:4194304,BANDWIDTH_VARIANCE:1.2,BUFFER_LOW_WATER_LINE:0,MAX_BUFFER_LOW_WATER_LINE:30,EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE:16,BUFFER_LOW_WATER_LINE_RATE:1,BUFFER_HIGH_WATER_LINE:30};const Yxe=t=>{const e=new Uint8Array(new ArrayBuffer(t.length));for(let n=0;n<t.length;n++)e[n]=t.charCodeAt(n);return e.buffer},oK=function(t){return t.on=t.addEventListener,t.off=t.removeEventListener,t},Kxe=function(t){try{return URL.createObjectURL(new Blob([t],{type:"application/javascript"}))}catch(e){const n=new BlobBuilder;return n.append(t),URL.createObjectURL(n.getBlob())}},lK=function(t){return function(){const e=Kxe(t),n=oK(new Worker(e));n.objURL=e;const i=n.terminate;return n.on=n.addEventListener,n.off=n.removeEventListener,n.terminate=function(){return URL.revokeObjectURL(e),i.call(this)},n}},uK=function(t){return`var browserWorkerPolyFill = ${oK.toString()};
267browserWorkerPolyFill(self);
268`+t},cK=function(t){return t.toString().replace(/^function.+?{/,"").slice(0,-1)},Zxe=uK(cK(function(){var t=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=function(){this.init=function(){var S={};this.on=function(M,O){S[M]||(S[M]=[]),S[M]=S[M].concat(O)},this.off=function(M,O){var P;return S[M]?(P=S[M].indexOf(O),S[M]=S[M].slice(),S[M].splice(P,1),P>-1):!1},this.trigger=function(M){var O,P,I,B;if(O=S[M],!!O)if(arguments.length===2)for(I=O.length,P=0;P<I;++P)O[P].call(this,arguments[1]);else{for(B=[],P=arguments.length,P=1;P<arguments.length;++P)B.push(arguments[P]);for(I=O.length,P=0;P<I;++P)O[P].apply(this,B)}},this.dispose=function(){S={}}}};e.prototype.pipe=function(S){return this.on("data",function(M){S.push(M)}),this.on("done",function(M){S.flush(M)}),this.on("partialdone",function(M){S.partialFlush(M)}),this.on("endedtimeline",function(M){S.endTimeline(M)}),this.on("reset",function(M){S.reset(M)}),S},e.prototype.push=function(S){this.trigger("data",S)},e.prototype.flush=function(S){this.trigger("done",S)},e.prototype.partialFlush=function(S){this.trigger("partialdone",S)},e.prototype.endTimeline=function(S){this.trigger("endedtimeline",S)},e.prototype.reset=function(S){this.trigger("reset",S)};var n=e,i=Math.pow(2,32),r=function(S){var M=new DataView(S.buffer,S.byteOffset,S.byteLength),O;return M.getBigUint64?(O=M.getBigUint64(0),O<Number.MAX_SAFE_INTEGER?
268Number(O):O):M.getUint32(0)*i+M.getUint32(4)},s={getUint64:r,MAX_UINT32:i},a=s.MAX_UINT32,o,l,u,c,f,h,p,m,y,v,_,b,x,T,E,C,D,R,A,k,F,N,U,$,G,Y,Q,re,he,X,ae,de,Re,_e,xe,we;(function(){var S;if(U={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],mvex:[],mvhd:[],pasp:[],sdtp:[],smhd:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],styp:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[]},!(typeof Uint8Array>"u")){for(S in U)U.hasOwnProperty(S)&&(U[S]=[S.charCodeAt(0),S.charCodeAt(1),S.charCodeAt(2),S.charCodeAt(3)]);$=new Uint8Array(["i".charCodeAt(0),"s".charCodeAt(0),"o".charCodeAt(0),"m".charCodeAt(0)]),Y=new Uint8Array(["a".charCodeAt(0),"v".charCodeAt(0),"c".charCodeAt(0),"1".charCodeAt(0)]),G=new Uint8Array([0,0,0,1]),Q=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),re=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]),he={video:Q,audio:re},de=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),ae=new Uint8Array([0,0,0,0,0,0,0,0]),Re=new Uint8Array([0,0,0,0,0,0,0,0]),_e=Re,xe=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),we=Re,X=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])}})(),o=function(S){var M=[],O=0,P,I,B;for(P=1;P<arguments.length;P++)M.push(arguments[P]);for(P=M.length;P--;)O+=M[P].byteLength;for(I=new Uint8Array(O+8),B=new DataView(I.buffer,I.byteOffset,I.byteLength),B.setUint32(0,I.byteLength),I.set(S,4),P=0,O=8;P<M.length;P++)I.set(M[P],O),O+=M[P].byteLength;return I},l=function(){return o(U.dinf,o(U.dref,de))},u=function(S){return o(U.esds,new Uint8Array([0,0,0,0,3,25,0,0,0,4,17,64,21,0,6,0,0,0,218,192,0,0,218,192,5,2,S.audioobjecttype<<3|S.samplingfrequencyindex>>>1,S.samplingfrequencyindex<<7|S.channelcount<<3,6,1,2]))},c=function(){return o(U.ftyp,$,G,$,Y)},C=function(S){return o(U.hdlr,he[S])},f=function(S){return o(U.mdat,S)},E=function(S){var M=new Uint8Array([0,0,0,0,0,0,0,2,0,0,0,3,0,1,95,144,S.duration>>>24&255,S.duration>>>16&255,S.duration>>>8&255,S.duration&255,85,196,0,0]);return S.samplerate&&(M[12]=S.samplerate>>>24&255,M[13]=S.samplerate>>>16&255,M[14]=S.samplerate>>>8&255,M[15]=S.samplerate&255),o(U.mdhd,M)},T=function(S){return o(U.mdia,E(S),C(S.type),p(S))},h=function(S){return o(U.mfhd,new Uint8Array([0,0,0,0,(S&4278190080)>>24,(S&16711680)>>16,(S&65280)>>8,S&255]))},p=function(S){return o(U.minf,S.type==="video"?o(U.vmhd,X):o(U.smhd,ae),l(),R(S))},m=function(S,M){for(var O=[],P=M.length;P--;)O[P]=k(M[P]);return o.apply(null,[U.moof,h(S)].concat(O))},y=function(S){for(var M=S.length,O=[];M--;)O[M]=b(S[M]);return o.apply(null,[U.moov,_(4294967295)].concat(O).concat(v(S)))},v=function(S){for(var M=S.length,O=[];M--;)O[M]=F(S[M]);return o.apply(null,[U.mvex].concat(O))},_=function(S){var M=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,2,0,1,95,144,(S&4278190080)>>24,(S&16711680)>>16,(S&65280)>>8,S&255,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]);return o(U.mvhd,M)},D=function(S){var M=S.samples||[],O=new Uint8Array(4+M.length),P,I;for(I=0;I<M.length;I++)P=M[I].flags,O[I+4]=P.dependsOn<<4|P.isDependedOn<<2|P.hasRedundancy;return o(U.sdtp,O)},R=function(S){return o(U.stbl,A(S),o(U.stts,we),o(U.stsc,_e),o(U.stsz,xe),o(U.stco,Re))},function(){var S,M;A=function(O){return o(U.stsd,new Uint8Array([0,0,0,0,0,0,0,1]),O.type==="video"?S(O):M(O))},S=function(O){var P=O.sps||[],I=O.pps||[],B=[],Z=[],ee,se;for(ee=0;ee<P.length;ee++)B.push((P[ee].byteLength&65280)>>>8),B.push(P[ee].byteLength&255),B=B.concat(Array.prototype.slice.call(P[ee]));for(ee=0;ee<I.length;ee++)Z.push((I[ee].byteLength&65280)>>>8),Z.push(I[ee].byteLength&255),Z=Z.concat(Array.prototype.slice.call(I[ee]));if(se=[U.avc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,(O.width&65280)>>8,O.width&255,(O.height&65280)>>8,O.height&255,0,72,0,0,0,72,0,0,0,0,0,0,0,1,19,118,105,100,101,111,106,115,45,99,111,110,116,114,105,98,45,104,108,115,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),o(U.avcC,new Uint8Array([1,O.profileIdc,O.profileCompatibility,O.levelIdc,255].concat([P.length],B,[I.length],Z))),o(U.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192]))],O.sarRatio){var fe=O.sarRatio[0],be=O.sarRatio[1];se.push(o(U.pasp,new Uint8Array([(fe&4278190080)>>24,(fe&16711680)>>16,(fe&65280)>>8,fe&255,(be&4278190080)>>24,(be&16711680)>>16,(be&65280)>>8,be&255])))}return o.apply(null,se)},M=function(O){return o(U.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,(O.channelcount&65280)>>8,O.channelcount&255,(O.samplesize&65280)>>8,O.samplesize&255,0,0,0,0,(O.samplerate&65280)>>8,O.samplerate&255,0,0]),u(O))}}(),x=function(S){var M=new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,(S.id&4278190080)>>24,(S.id&16711680)>>16,(S.id&65280)>>8,S.id&255,0,0,0,0,(S.duration&4278190080)>>24,(S.duration&16711680)>>16,(S.duration&65280)>>8,S.duration&255,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,(S.width&65280)>>8,S.width&255,0,0,(S.height&65280)>>8,S.height&255,0,0]);return o(U.tkhd,M)},k=function(S){var M,O,P,I,B,Z,ee;return M=o(U.tfhd,new Uint8Array([0,0,0,58,(S.id&4278190080)>>24,(S.id&16711680)>>16,(S.id&65280)>>8,S.id&255,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0])),Z=Math.floor(S.baseMediaDecodeTime/a),ee=Math.floor(S.baseMediaDecodeTime%a),O=o(U.tfdt,new Uint8Array([1,0,0,0,Z>>>24&255,Z>>>16&255,Z>>>8&255,Z&255,ee>>>24&255,ee>>>16&255,ee>>>8&255,ee&255])),B=32+20+8+16+8+8,S.type==="audio"?(P=N(S,B),o(U.traf,M,O,P)):(I=D(S),P=N(S,I.length+B),o(U.traf,M,O,P,I))},b=function(S){return S.duration=S.duration||4294967295,o(U.trak,x(S),T(S))},F=function(S){var M=new Uint8Array([0,0,0,0,(S.id&4278190080)>>24,(S.id&16711680)>>16,(S.id&65280)>>8,S.id&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]);return S.type!=="video"&&(M[M.length-1]=0),o(U.trex,M)},function(){var S,M,O;O=function(P,I){var B=0,Z=0,ee=0,se=0;return P.length&&(P[0].duration!==void 0&&(B=1),P[0].size!==void 0&&(Z=2),P[0].flags!==void 0&&(ee=4),P[0].compositionTimeOffset!==void 0&&(se=8)),[0,0,B|Z|ee|se,1,(P.length&4278190080)>>>24,(P.length&16711680)>>>16,(P.length&65280)>>>8,P.length&255,(I&4278190080)>>>24,(I&16711680)>>>16,(I&65280)>>>8,I&255]},M=function(P,I){var B,Z,ee,se,fe,be;for(se=P.samples||[],I+=8+12+16*se.length,ee=O(se,I),Z=new Uint8Array(ee.length+se.length*16),Z.set(ee),B=ee.length,be=0;be<se.length;be++)fe=se[be],Z[B++]=(fe.duration&4278190080)>>>24,Z[B++]=(fe.duration&16711680)>>>16,Z[B++]=(fe.duration&65280)>>>8,Z[B++]=fe.duration&255,Z[B++]=(fe.size&4278190080)>>>24,Z[B++]=(fe.size&16711680)>>>16,Z[B++]=(fe.size&65280)>>>8,Z[B++]=fe.size&255,Z[B++]=fe.flags.isLeading<<2|fe.flags.dependsOn,Z[B++]=fe.flags.isDependedOn<<6|fe.flags.hasRedundancy<<4|fe.flags.paddingValue<<1|fe.flags.isNonSyncSample,Z[B++]=fe.flags.degradationPriority&240<<8,Z[B++]=fe.flags.degradationPriority&15,Z[B++]=(fe.compositionTimeOffset&4278190080)>>>24,Z[B++]=(fe.compositionTimeOffset&16711680)>>>16,Z[B++]=(fe.compositionTimeOffset&65280)>>>8,Z[B++]=fe.compositionTimeOffset&255;return o(U.trun,Z)},S=function(P,I){var B,Z,ee,se,fe,be;for(se=P.samples||[],I+=8+12+8*se.length,ee=O(se,I),B=new Uint8Array(ee.length+se.length*8),B.set(ee),Z=ee.length,be=0;be<se.length;be++)fe=se[be],B[Z++]=(fe.duration&4278190080)>>>24,B[Z++]=(fe.duration&16711680)>>>16,B[Z++]=(fe.duration&65280)>>>8,B[Z++]=fe.duration&255,B[Z++]=(fe.size&4278190080)>>>24,B[Z++]=(fe.size&16711680)>>>16,B[Z++]=(fe.size&65280)>>>8,B[Z++]=fe.size&255;return o(U.trun,B)},N=function(P,I){return P.type==="audio"?S(P,I):M(P,I)}}();var ve={ftyp:c,mdat:f,moof:m,moov:y,initSegment:function(S){var M=c(),O
268=y(S),P;return P=new Uint8Array(M.byteLength+O.byteLength),P.set(M),P.set(O,M.byteLength),P}},De=function(S){var M,O,P=[],I=[];for(I.byteLength=0,I.nalCount=0,I.duration=0,P.byteLength=0,M=0;M<S.length;M++)O=S[M],O.nalUnitType==="access_unit_delimiter_rbsp"?(P.length&&(P.duration=O.dts-P.dts,I.byteLength+=P.byteLength,I.nalCount+=P.length,I.duration+=P.duration,I.push(P)),P=[O],P.byteLength=O.data.byteLength,P.pts=O.pts,P.dts=O.dts):(O.nalUnitType==="slice_layer_without_partitioning_rbsp_idr"&&(P.keyFrame=!0),P.duration=O.dts-P.dts,P.byteLength+=O.data.byteLength,P.push(O));return I.length&&(!P.duration||P.duration<=0)&&(P.duration=I[I.length-1].duration),I.byteLength+=P.byteLength,I.nalCount+=P.length,I.duration+=P.duration,I.push(P),I},We=function(S){var M,O,P=[],I=[];for(P.byteLength=0,P.nalCount=0,P.duration=0,P.pts=S[0].pts,P.dts=S[0].dts,I.byteLength=0,I.nalCount=0,I.duration=0,I.pts=S[0].pts,I.dts=S[0].dts,M=0;M<S.length;M++)O=S[M],O.keyFrame?(P.length&&(I.push(P),I.byteLength+=P.byteLength,I.nalCount+=P.nalCount,I.duration+=P.duration),P=[O],P.nalCount=O.length,P.byteLength=O.byteLength,P.pts=O.pts,P.dts=O.dts,P.duration=O.duration):(P.duration+=O.duration,P.nalCount+=O.length,P.byteLength+=O.byteLength,P.push(O));return I.length&&P.duration<=0&&(P.duration=I[I.length-1].duration),I.byteLength+=P.byteLength,I.nalCount+=P.nalCount,I.duration+=P.duration,I.push(P),I},lt=function(S){var M;return!S[0][0].keyFrame&&S.length>1&&(M=S.shift(),S.byteLength-=M.byteLength,S.nalCount-=M.nalCount,S[0][0].dts=M.dts,S[0][0].pts=M.pts,S[0][0].duration+=M.duration),S},Ze=function(){return{size:0,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0,degradationPriority:0,isNonSyncSample:1}}},z=function(S,M){var O=Ze();return O.dataOffset=M,O.compositionTimeOffset=S.pts-S.dts,O.duration=S.duration,O.size=4*S.length,O.size+=S.byteLength,S.keyFrame&&(O.flags.dependsOn=2,O.flags.isNonSyncSample=0),O},J=function(S,M){var O,P,I,B,Z,ee=M||0,se=[];for(O=0;O<S.length;O++)for(B=S[O],P=0;P<B.length;P++)Z=B[P],I=z(Z,ee),ee+=I.size,se.push(I);return se},te=function(S){var M,O,P,I,B,Z,ee=0,se=S.byteLength,fe=S.nalCount,be=se+4*fe,$e=new Uint8Array(be),dt=new DataView($e.buffer);for(M=0;M<S.length;M++)for(I=S[M],O=0;O<I.length;O++)for(B=I[O],P=0;P<B.length;P++)Z=B[P],dt.setUint32(ee,Z.data.byteLength),ee+=4,$e.set(Z.data,ee),ee+=Z.data.byteLength;return $e},pe=function(S,M){var O,P=M||0,I=[];return O=z(S,P),I.push(O),I},me=function(S){var M,O,P=0,I=S.byteLength,B=S.length,Z=I+4*B,ee=new Uint8Array(Z),se=new DataView(ee.buffer);for(M=0;M<S.length;M++)O=S[M],se.setUint32(P,O.data.byteLength),P+=4,ee.set(O.data,P),P+=O.data.byteLength;return ee},ne={groupNalsIntoFrames:De,groupFramesIntoGops:We,extendFirstKeyFrame:lt,generateSampleTable:J,concatenateNalData:te,generateSampleTableForFrame:pe,concatenateNalDataForFrame:me},Le=[33,16,5,32,164,27],Pe=[33,65,108,84,1,2,4,8,168,2,4,8,17,191,252],Ce=function(S){for(var M=[];S--;)M.push(0);return M},Te=function(S){return Object.keys(S).reduce(function(M,O){return M[O]=new Uint8Array(S[O].reduce(function(P,I){return P.concat(I)},[])),M},{})},et,j=function(){if(!et){var S={96e3:[Le,[227,64],Ce(154),[56]],88200:[Le,[231],Ce(170),[56]],64e3:[Le,[248,192],Ce(240),[56]],48e3:[Le,[255,192],Ce(268),[55,148,128],Ce(54),[112]],44100:[Le,[255,192],Ce(268),[55,163,128],Ce(84),[112]],32e3:[Le,[255,192],Ce(268),[55,234],Ce(226),[112]],24e3:[Le,[255,192],Ce(268),[55,255,128],Ce(268),[111,112],Ce(126),[224]],16e3:[Le,[255,192],Ce(268),[55,255,128],Ce(268),[111,255],Ce(269),[223,108],Ce(195),[1,192]],12e3:[Pe,Ce(268),[3,127,248],Ce(268),[6,255,240],Ce(268),[13,255,224],Ce(268),[27,253,128],Ce(259),[56]],11025:[Pe,Ce(268),[3,127,248],Ce(268),[6,255,240],Ce(268),[13,255,224],Ce(268),[27,255,192],Ce(268),[55,175,128],Ce(108),[112]],8e3:[Pe,Ce(268),[3,121,16],Ce(47),[7]]};et=Te(S)}return et},V=9e4,oe,Ne,Ae,Ue,tt,qe,ke;oe=function(S){return S*V},Ne=function(S,M){return S*M},Ae=function(S){return S/V},Ue=function(S,M){return S/M},tt=function(S,M){return oe(Ue(S,M))},qe=function(S,M){return Ne(Ae(S),M)},ke=function(S,M,O){return Ae(O?S:S-M)};var ie={ONE_SECOND_IN_TS:V,secondsToVideoTs:oe,secondsToAudioTs:Ne,videoTsToSeconds:Ae,audioTsToSeconds:Ue,audioTsToVideoTs:tt,videoTsToAudioTs:qe,metadataTsToSeconds:ke},Ve=j,rt=ie,Je=function(S){var M,O,P=0;for(M=0;M<S.length;M++)O=S[M],P+=O.data.byteLength;return P},nt=function(S,M,O,P){var I,B=0,Z=0,ee=0,se=0,fe,be,$e;if(!!M.length&&(I=rt.audioTsToVideoTs(S.baseMediaDecodeTime,S.samplerate),B=Math.ceil(rt.ONE_SECOND_IN_TS/(S.samplerate/1024)),O&&P&&(Z=I-Math.max(O,P),ee=Math.floor(Z/B),se=ee*B),!(ee<1||se>rt.ONE_SECOND_IN_TS/2))){for(fe=Ve()[S.samplerate],fe||(fe=M[0].data),be=0;be<ee;be++)$e=M[0],M.splice(0,0,{data:fe,dts:$e.dts-B,pts:$e.pts-B});return S.baseMediaDecodeTime-=Math.floor(rt.videoTsToAudioTs(se,S.samplerate)),se}},Tt=function(S,M,O){return M.minSegmentDts>=O?S:(M.minSegmentDts=1/0,S.filter(function(P){return P.dts>=O?(M.minSegmentDts=Math.min(M.minSegmentDts,P.dts),M.minSegmentPts=M.minSegmentDts,!0):!1}))},Mt=function(S){var M,O,P=[];for(M=0;M<S.length;M++)O=S[M],P.push({size:O.data.byteLength,duration:1024});return P},ce=function(S){var M,O,P=0,I=new Uint8Array(Je(S));for(M=0;M<S.length;M++)O=S[M],I.set(O.data,P),P+=O.data.byteLength;return I},ot={prefixWithSilence:nt,trimAdtsFramesByEarliestDts:Tt,generateSampleTable:Mt,concatenateFrameData:ce},Oe=ie.ONE_SECOND_IN_TS,Qe=function(S,M){typeof M.pts=="number"&&(S.timelineStartInfo.pts===void 0&&(S.timelineStartInfo.pts=M.pts),S.minSegmentPts===void 0?S.minSegmentPts=M.pts:S.minSegmentPts=Math.min(S.minSegmentPts,M.pts),S.maxSegmentPts===void 0?S.maxSegmentPts=M.pts:S.maxSegmentPts=Math.max(S.maxSegmentPts,M.pts)),typeof M.dts=="number"&&(S.timelineStartInfo.dts===void 0&&(S.timelineStartInfo.dts=M.dts),S.minSegmentDts===void 0?S.minSegmentDts=M.dts:S.minSegmentDts=Math.min(S.minSegmentDts,M.dts),S.maxSegmentDts===void 0?S.maxSegmentDts=M.dts:S.maxSegmentDts=Math.max(S.maxSegmentDts,M.dts))},st=function(S){delete S.minSegmentDts,delete S.maxSegmentDts,delete S.minSegmentPts,delete S.maxSegmentPts},Rt=function(S,M){var O,P,I=S.minSegmentDts;return M||(I-=S.timelineStartInfo.dts),O=S.timelineStartInfo.baseMediaDecodeTime,O+=I,O=Math.max(0,O),S.type==="audio"&&(P=S.samplerate/Oe,O*=P,O=Math.floor(O)),O},Vt={clearDtsInfo:st,calculateTrackBaseMediaDecodeTime:Rt,collectDtsInfo:Qe},Wt=4,Vn=128,ht=function(S){for(var M=0,O={payloadType:-1,payloadSize:0},P=0,I=0;M<S.byteLength&&S[M]!==Vn;){for(;S[M]===255;)P+=255,M++;for(P+=S[M++];S[M]===255;)I+=255,M++;if(I+=S[M++],!O.payload&&P===Wt){var B=String.fromCharCode(S[M+3],S[M+4],S[M+5],S[M+6]);if(B==="GA94"){O.payloadType=P,O.payloadSize=I,O.payload=S.subarray(M,M+I);break}else O.payload=void 0}M+=I,P=0,I=0}return O},Et=function(S){return S.payload[0]!==181||(S.payload[1]<<8|S.payload[2])!==49||String.fromCharCode(S.payload[3],S.payload[4],S.payload[5],S.payload[6])!=="GA94"||S.payload[7]!==3?null:S.payload.subarray(8,S.payload.length-1)},It=function(S,M){var O=[],P,I,B,Z;if(!(M[0]&64))return O;for(I=M[0]&31,P=0;P<I;P++)B=P*3,Z={type:M[B+2]&3,pts:S},M[B+2]&4&&(Z.ccData=M[B+3]<<8|M[B+4],O.push(Z));return O},ft=function(S){for(var M=S.byteLength,O=[],P=1,I,B;P<M-2;)S[P]===0&&S[P+1]===0&&S[P+2]===3?(O.push(P+2),P+=2):P++;if(O.length===0)return S;I=M-O.length,B=new Uint8Array(I);var Z=0;for(P=0;P<I;Z++,P++)Z===O[0]&&(Z++,O.shift()),B[P]=S[Z];return B},Ot={parseSei:ht,parseUserData:Et,parseCaptionPackets:It,discardEmulationPreventionBytes:ft,USER_DATA_REGISTERED_ITU_T_T35:Wt},bt=n,Dt=Ot,sn=function(S){S=S||{},sn.prototype.init.call(this),this.parse708captions_=typeof S.parse708captions=="boolean"?S.parse708captions:!0,this.captionPackets_=[],this.ccStreams_=[new at(0,0),new at(0,1),new at(1,0),new at(1,1)],this.parse708captions_&&(this.cc708Stream_=new q({captionServices:S.captionServices})),this.reset(),this.ccStreams_.forEach(function(M){M.on("data",this.trigger.bind(this,"data")),M.on("partialdone",this.trigger.bind(this,"partialdone")),M.on("done",this.trigger.bind(this,"done"))},this),this.parse708captions_&&(this.cc708Stream_.on("data",this.trigger.bind(this,"data")),this.cc708Stream_.on("partialdone",this.trigger.bind(this,"partialdone")),this.cc708Stream_.on("done",this.trigger.bind(this,"done")))};sn.prototype=new bt,sn.prototype.push=function(S){var M,O,P;if(S.nalUnitType==="sei_rbsp"&&(M=Dt.parseSei(S.escapedRBSP),!!M.payload&&M.payloadType===Dt.USER_DATA_REGISTERED_ITU_T_T35&&(O=Dt.parseUserData(M),!!O))){if
268(S.dts<this.latestDts_){this.ignoreNextEqualDts_=!0;return}else if(S.dts===this.latestDts_&&this.ignoreNextEqualDts_){this.numSameDts_--,this.numSameDts_||(this.ignoreNextEqualDts_=!1);return}P=Dt.parseCaptionPackets(S.pts,O),this.captionPackets_=this.captionPackets_.concat(P),this.latestDts_!==S.dts&&(this.numSameDts_=0),this.numSameDts_++,this.latestDts_=S.dts}},sn.prototype.flushCCStreams=function(S){this.ccStreams_.forEach(function(M){return S==="flush"?M.flush():M.partialFlush()},this)},sn.prototype.flushStream=function(S){if(!this.captionPackets_.length){this.flushCCStreams(S);return}this.captionPackets_.forEach(function(M,O){M.presortIndex=O}),this.captionPackets_.sort(function(M,O){return M.pts===O.pts?M.presortIndex-O.presortIndex:M.pts-O.pts}),this.captionPackets_.forEach(function(M){M.type<2?this.dispatchCea608Packet(M):this.dispatchCea708Packet(M)},this),this.captionPackets_.length=0,this.flushCCStreams(S)},sn.prototype.flush=function(){return this.flushStream("flush")},sn.prototype.partialFlush=function(){return this.flushStream("partialFlush")},sn.prototype.reset=function(){this.latestDts_=null,this.ignoreNextEqualDts_=!1,this.numSameDts_=0,this.activeCea608Channel_=[null,null],this.ccStreams_.forEach(function(S){S.reset()})},sn.prototype.dispatchCea608Packet=function(S){this.setsTextOrXDSActive(S)?this.activeCea608Channel_[S.type]=null:this.setsChannel1Active(S)?this.activeCea608Channel_[S.type]=0:this.setsChannel2Active(S)&&(this.activeCea608Channel_[S.type]=1),this.activeCea608Channel_[S.type]!==null&&this.ccStreams_[(S.type<<1)+this.activeCea608Channel_[S.type]].push(S)},sn.prototype.setsChannel1Active=function(S){return(S.ccData&30720)===4096},sn.prototype.setsChannel2Active=function(S){return(S.ccData&30720)===6144},sn.prototype.setsTextOrXDSActive=function(S){return(S.ccData&28928)===256||(S.ccData&30974)===4138||(S.ccData&30974)===6186},sn.prototype.dispatchCea708Packet=function(S){this.parse708captions_&&this.cc708Stream_.push(S)};var Ht={127:9834,4128:32,4129:160,4133:8230,4138:352,4140:338,4144:9608,4145:8216,4146:8217,4147:8220,4148:8221,4149:8226,4153:8482,4154:353,4156:339,4157:8480,4159:376,4214:8539,4215:8540,4216:8541,4217:8542,4218:9168,4219:9124,4220:9123,4221:9135,4222:9126,4223:9121,4256:12600},Wn=function(S){var M=Ht[S]||S;return S&4096&&S===M?"":String.fromCharCode(M)},li=function(S){return 32<=S&&S<=127||160<=S&&S<=255},vn=function(S){this.windowNum=S,this.reset()};vn.prototype.reset=function(){this.clearText(),this.pendingNewLine=!1,this.winAttr={},this.penAttr={},this.penLoc={},this.penColor={},this.visible=0,this.rowLock=0,this.columnLock=0,this.priority=0,this.relativePositioning=0,this.anchorVertical=0,this.anchorHorizontal=0,this.anchorPoint=0,this.rowCount=1,this.virtualRowCount=this.rowCount+1,this.columnCount=41,this.windowStyle=0,this.penStyle=0},vn.prototype.getText=function(){return this.rows.join(`
269`)},vn.prototype.clearText=function(){this.rows=[""],this.rowIdx=0},vn.prototype.newLine=function(S){for(this.rows.length>=this.virtualRowCount&&typeof this.beforeRowOverflow=="function"&&this.beforeRowOverflow(S),this.rows.length>0&&(this.rows.push(""),this.rowIdx++);this.rows.length>this.virtualRowCount;)this.rows.shift(),this.rowIdx--},vn.prototype.isEmpty=function(){return this.rows.length===0?!0:this.rows.length===1?this.rows[0]==="":!1},vn.prototype.addText=function(S){this.rows[this.rowIdx]+=S},vn.prototype.backspace=function(){if(!this.isEmpty()){var S=this.rows[this.rowIdx];this.rows[this.rowIdx]=S.substr(0,S.length-1)}};var Pn=function(S,M,O){this.serviceNum=S,this.text="",this.currentWindow=new vn(-1),this.windows=[],this.stream=O,typeof M=="string"&&this.createTextDecoder(M)};Pn.prototype.init=function(S,M){this.startPts=S;for(var O=0;O<8;O++)this.windows[O]=new vn(O),typeof M=="function"&&(this.windows[O].beforeRowOverflow=M)},Pn.prototype.setCurrentWindow=function(S){this.currentWindow=this.windows[S]},Pn.prototype.createTextDecoder=function(S){if(typeof TextDecoder>"u")this.stream.trigger("log",{level:"warn",message:"The `encoding` option is unsupported without TextDecoder support"});else try{this.textDecoder_=new TextDecoder(S)}catch(M){this.stream.trigger("log",{level:"warn",message:"TextDecoder could not be created with "+S+" encoding. "+M})}};var q=function(S){S=S||{},q.prototype.init.call(this);var M=this,O=S.captionServices||{},P={},I;Object.keys(O).forEach(B=>{I=O[B],/^SERVICE/.test(B)&&(P[B]=I.encoding)}),this.serviceEncodings=P,this.current708Packet=null,this.services={},this.push=function(B){B.type===3?(M.new708Packet(),M.add708Bytes(B)):(M.current708Packet===null&&M.new708Packet(),M.add708Bytes(B))}};q.prototype=new bt,q.prototype.new708Packet=function(){this.current708Packet!==null&&this.push708Packet(),this.current708Packet={data:[],ptsVals:[]}},q.prototype.add708Bytes=function(S){var M=S.ccData,O=M>>>8,P=M&255;this.current708Packet.ptsVals.push(S.pts),this.current708Packet.data.push(O),this.current708Packet.data.push(P)},q.prototype.push708Packet=function(){var S=this.current708Packet,M=S.data,O=null,P=null,I=0,B=M[I++];for(S.seq=B>>6,S.sizeCode=B&63;I<M.length;I++)B=M[I++],O=B>>5,P=B&31,O===7&&P>0&&(B=M[I++],O=B),this.pushServiceBlock(O,I,P),P>0&&(I+=P-1)},q.prototype.pushServiceBlock=function(S,M,O){var P,I=M,B=this.current708Packet.data,Z=this.services[S];for(Z||(Z=this.initService(S,I));I<M+O&&I<B.length;I++)P=B[I],li(P)?I=this.handleText(I,Z):P===24?I=this.multiByteCharacter(I,Z):P===16?I=this.extendedCommands(I,Z):128<=P&&P<=135?I=this.setCurrentWindow(I,Z):152<=P&&P<=159?I=this.defineWindow(I,Z):P===136?I=this.clearWindows(I,Z):P===140?I=this.deleteWindows(I,Z):P===137?I=this.displayWindows(I,Z):P===138?I=this.hideWindows(I,Z):P===139?I=this.toggleWindows(I,Z):P===151?I=this.setWindowAttributes(I,Z):P===144?I=this.setPenAttributes(I,Z):P===145?I=this.setPenColor(I,Z):P===146?I=this.setPenLocation(I,Z):P===143?Z=this.reset(I,Z):P===8?Z.currentWindow.backspace():P===12?Z.currentWindow.clearText():P===13?Z.currentWindow.pendingNewLine=!0:P===14?Z.currentWindow.clearText():P===141&&I++},q.prototype.extendedCommands=function(S,M){var O=this.current708Packet.data,P=O[++S];return li(P)&&(S=this.handleText(S,M,{isExtended:!0})),S},q.prototype.getPts=function(S){return this.current708Packet.ptsVals[Math.floor(S/2)]},q.prototype.initService=function(S,M){var P="SERVICE"+S,O=this,P,I;return P in this.serviceEncodings&&(I=this.serviceEncodings[P]),this.services[S]=new Pn(S,I,O),this.services[S].init(this.getPts(M),function(B){O.flushDisplayed(B,O.services[S])}),this.services[S]},q.prototype.handleText=function(S,M,O){var P=O&&O.isExtended,I=O&&O.isMultiByte,B=this.current708Packet.data,Z=P?4096:0,ee=B[S],se=B[S+1],fe=M.currentWindow,be,$e;function dt(Xe){return Xe.map(kt=>("0"+(kt&255).toString(16)).slice(-2)).join("")}if(I?($e=[ee,se],S++):$e=[ee],M.textDecoder_&&!P)be=M.textDecoder_.decode(new Uint8Array($e));else if(I){const Xe=dt($e);be=String.fromCharCode(parseInt(Xe,16))}else be=Wn(Z|ee);return fe.pendingNewLine&&!fe.isEmpty()&&fe.newLine(this.getPts(S)),fe.pen
269dingNewLine=!1,fe.addText(be),S},q.prototype.multiByteCharacter=function(S,M){var O=this.current708Packet.data,P=O[S+1],I=O[S+2];return li(P)&&li(I)&&(S=this.handleText(++S,M,{isMultiByte:!0})),S},q.prototype.setCurrentWindow=function(S,M){var O=this.current708Packet.data,P=O[S],I=P&7;return M.setCurrentWindow(I),S},q.prototype.defineWindow=function(S,M){var O=this.current708Packet.data,P=O[S],I=P&7;M.setCurrentWindow(I);var B=M.currentWindow;return P=O[++S],B.visible=(P&32)>>5,B.rowLock=(P&16)>>4,B.columnLock=(P&8)>>3,B.priority=P&7,P=O[++S],B.relativePositioning=(P&128)>>7,B.anchorVertical=P&127,P=O[++S],B.anchorHorizontal=P,P=O[++S],B.anchorPoint=(P&240)>>4,B.rowCount=P&15,P=O[++S],B.columnCount=P&63,P=O[++S],B.windowStyle=(P&56)>>3,B.penStyle=P&7,B.virtualRowCount=B.rowCount+1,S},q.prototype.setWindowAttributes=function(S,M){var O=this.current708Packet.data,P=O[S],I=M.currentWindow.winAttr;return P=O[++S],I.fillOpacity=(P&192)>>6,I.fillRed=(P&48)>>4,I.fillGreen=(P&12)>>2,I.fillBlue=P&3,P=O[++S],I.borderType=(P&192)>>6,I.borderRed=(P&48)>>4,I.borderGreen=(P&12)>>2,I.borderBlue=P&3,P=O[++S],I.borderType+=(P&128)>>5,I.wordWrap=(P&64)>>6,I.printDirection=(P&48)>>4,I.scrollDirection=(P&12)>>2,I.justify=P&3,P=O[++S],I.effectSpeed=(P&240)>>4,I.effectDirection=(P&12)>>2,I.displayEffect=P&3,S},q.prototype.flushDisplayed=function(S,M){for(var O=[],P=0;P<8;P++)M.windows[P].visible&&!M.windows[P].isEmpty()&&O.push(M.windows[P].getText());M.endPts=S,M.text=O.join(`
270
271`),this.pushCaption(M),M.startPts=S},q.prototype.pushCaption=function(S){S.text!==""&&(this.trigger("data",{startPts:S.startPts,endPts:S.endPts,text:S.text,stream:"cc708_"+S.serviceNum}),S.text="",S.startPts=S.endPts)},q.prototype.displayWindows=function(S,M){var O=this.current708Packet.data,P=O[++S],I=this.getPts(S);this.flushDisplayed(I,M);for(var B=0;B<8;B++)P&1<<B&&(M.windows[B].visible=1);return S},q.prototype.hideWindows=function(S,M){var O=this.current708Packet.data,P=O[++S],I=this.getPts(S);this.flushDisplayed(I,M);for(var B=0;B<8;B++)P&1<<B&&(M.windows[B].visible=0);return S},q.prototype.toggleWindows=function(S,M){var O=this.current708Packet.data,P=O[++S],I=this.getPts(S);this.flushDisplayed(I,M);for(var B=0;B<8;B++)P&1<<B&&(M.windows[B].visible^=1);return S},q.prototype.clearWindows=function(S,M){var O=this.current708Packet.data,P=O[++S],I=this.getPts(S);this.flushDisplayed(I,M);for(var B=0;B<8;B++)P&1<<B&&M.windows[B].clearText();return S},q.prototype.deleteWindows=function(S,M){var O=this.current708Packet.data,P=O[++S],I=this.getPts(S);this.flushDisplayed(I,M);for(var B=0;B<8;B++)P&1<<B&&M.windows[B].reset();return S},q.prototype.setPenAttributes=function(S,M){var O=this.current708Packet.data,P=O[S],I=M.currentWindow.penAttr;return P=O[++S],I.textTag=(P&240)>>4,I.offset=(P&12)>>2,I.penSize=P&3,P=O[++S],I.italics=(P&128)>>7,I.underline=(P&64)>>6,I.edgeType=(P&56)>>3,I.fontStyle=P&7,S},q.prototype.setPenColor=function(S,M){var O=this.current708Packet.data,P=O[S],I=M.currentWindow.penColor;return P=O[++S],I.fgOpacity=(P&192)>>6,I.fgRed=(P&48)>>4,I.fgGreen=(P&12)>>2,I.fgBlue=P&3,P=O[++S],I.bgOpacity=(P&192)>>6,I.bgRed=(P&48)>>4,I.bgGreen=(P&12)>>2,I.bgBlue=P&3,P=O[++S],I.edgeRed=(P&48)>>4,I.edgeGreen=(P&12)>>2,I.edgeBlue=P&3,S},q.prototype.setPenLocation=function(S,M){var O=this.current708Packet.data,P=O[S],I=M.currentWindow.penLoc;return M.currentWindow.pendingNewLine=!0,P=O[++S],I.row=P&15,P=O[++S],I.column=P&63,S},q.prototype.reset=function(S,M){var O=this.getPts(S);return this.flushDisplayed(O,M),this.initService(M.serviceNum,S)};var Me={42:225,92:233,94:237,95:243,96:250,123:231,124:247,125:209,126:241,127:9608,304:174,305:176,306:189,307:191,308:8482,309:162,310:163,311:9834,312:224,313:160,314:232,315:226,316:234,317:238,318:244,319:251,544:193,545:201,546:211,547:218,548:220,549:252,550:8216,551:161,552:42,553:39,554:8212,555:169,556:8480,557:8226,558:8220,559:8221,560:192,561:194,562:199,563:200,564:202,565:203,566:235,567:206,568:207,569:239,570:212,571:217,572:249,573:219,574:171,575:187,800:195,801:227,802:205,803:204,804:236,805:210,806:242,807:213,808:245,809:123,810:125,811:92,812:94,813:95,814:124,815:126,816:196,817:228,818:214,819:246,820:223,821:165,822:164,823:9474,824:197,825:229,826:216,827:248,828:9484,829:9488,830:9492,831:9496},Fe=function(S){return S===null?"":(S=Me[S]||S,String.fromCharCode(S))},Se=14,He=[4352,4384,4608,4640,5376,5408,5632,5664,5888,5920,4096,4864,4896,5120,5152],ut=function(){for(var S=[],M=Se+1;M--;)S.push({text:"",indent:0,offset:0});return S},at=function(S,M){at.prototype.init.call(this),this.field_=S||0,this.dataChannel_=M||0,this.name_="CC"+((this.field_<<1|this.dataChannel_)+1),this.setConstants(),this.reset(),this.push=function(O){var P,I,B,Z,ee;if(P=O.ccData&32639,P===this.lastControlCode_){this.lastControlCode_=null;return}if((P&61440)===4096?this.lastControlCode_=P:P!==this.PADDING_&&(this.lastControlCode_=null),B=P>>>8,Z=P&255,P!==this.PADDING_)if(P===this.RESUME_CAPTION_LOADING_)this.mode_="popOn";else if(P===this.END_OF_CAPTION_)this.mode_="popOn",this.clearFormatting(O.pts),this.flushDisplayed(O.pts),I=this.displayed_,this.displayed_=this.nonDisplayed_,this.nonDisplayed_=I,this.startPts_=O.pts;else if(P===this.ROLL_UP_2_ROWS_)this.rollUpRows_=2,this.setRollUp(O.pts);else if(P===this.ROLL_UP_3_ROWS_)this.rollUpRows_=3,this.setRollUp(O.pts);else if(P===this.ROLL_UP_4_ROWS_)this.rollUpRows_=4,this.setRollUp(O.pts);else if(P===this.CARRIAGE_RETURN_)this.clearFormatting(O.pts),this.flushDisplayed(O.pts),this.shiftRowsUp_(),this.startPts_=O.pts;else if(P===this.BACKSPACE_)this.mode_==="popOn"?this.nonDisplayed_[this.row_].text=this.nonDisplayed_[this.row_].text.slice(0,-1):this.displayed_[this.row_].text=this.displayed_[this.row_].text.slice(0,-1);else if(P===this.ERASE_DISPLAYED_MEMORY_)this.flushDisplayed(O.pts),this.displayed_=ut();else if(P===this.ERASE_NON_DISPLAYED_MEMORY_)this.nonDisplayed_=ut();else if(P===this.RESUME_DIRECT_CAPTIONING_)this.mode_!=="paintOn"&&(this.flushDisplayed(O.pts),this.displayed_=ut()),this.mode_="paintOn",this.startPts_=O.pts;else if(this.isSpecialCharacter(B,Z))B=(B&3)<<8,ee=Fe(B|Z),this[this.mode_](O.pts,ee),this.column_++;else if(this.isExtCharacter(B,Z))this.mode_==="popOn"?this.nonDisplayed_[this.row_].text=this.nonDisplayed_[this.row_].text.slice(0,-1):this.displayed_[this.row_].text=this.displayed_[this.row_].text.slice(0,-1),B=(B&3)<<8,ee=Fe(B|Z),this[this.mode_](O.pts,ee),this.column_++;else if(this.isMidRowCode(B,Z))this.clearFormatting(O.pts),this[this.mode_](O.pts," "),this.column_++,(Z&14)===14&&this.addFormatting(O.pts,["i"]),(Z&1)===1&&this.addFormatting(O.pts,["u"]);else if(this.isOffsetControlCode(B,Z)){const fe=Z&3;this.nonDisplayed_[this.row_].offset=fe,this.column_+=fe}else if(this.isPAC(B,Z)){var se=He.indexOf(P&7968);
271if(this.mode_==="rollUp"&&(se-this.rollUpRows_+1<0&&(se=this.rollUpRows_-1),this.setRollUp(O.pts,se)),se!==this.row_&&se>=0&&se<=14&&(this.clearFormatting(O.pts),this.row_=se),Z&1&&this.formatting_.indexOf("u")===-1&&this.addFormatting(O.pts,["u"]),(P&16)===16){const fe=(P&14)>>1;this.column_=fe*4,this.nonDisplayed_[this.row_].indent+=fe}this.isColorPAC(Z)&&(Z&14)===14&&this.addFormatting(O.pts,["i"])}else this.isNormalChar(B)&&(Z===0&&(Z=null),ee=Fe(B),ee+=Fe(Z),this[this.mode_](O.pts,ee),this.column_+=ee.length)}};at.prototype=new bt,at.prototype.flushDisplayed=function(S){const M=P=>{this.trigger("log",{level:"warn",message:"Skipping a malformed 608 caption at index "+P+"."})},O=[];this.displayed_.forEach((P,I)=>{if(P&&P.text&&P.text.length){try{P.text=P.text.trim()}catch(B){M(I)}P.text.length&&O.push({text:P.text,line:I+1,position:10+Math.min(70,P.indent*10)+P.offset*2.5})}else P==null&&M(I)}),O.length&&this.trigger("data",{startPts:this.startPts_,endPts:S,content:O,stream:this.name_})},at.prototype.reset=function(){this.mode_="popOn",this.topRow_=0,this.startPts_=0,this.displayed_=ut(),this.nonDisplayed_=ut(),this.lastControlCode_=null,this.column_=0,this.row_=Se,this.rollUpRows_=2,this.formatting_=[]},at.prototype.setConstants=function(){this.dataChannel_===0?(this.BASE_=16,this.EXT_=17,this.CONTROL_=(20|this.field_)<<8,this.OFFSET_=23):this.dataChannel_===1&&(this.BASE_=24,this.EXT_=25,this.CONTROL_=(28|this.field_)<<8,this.OFFSET_=31),this.PADDING_=0,this.RESUME_CAPTION_LOADING_=this.CONTROL_|32,this.END_OF_CAPTION_=this.CONTROL_|47,this.ROLL_UP_2_ROWS_=this.CONTROL_|37,this.ROLL_UP_3_ROWS_=this.CONTROL_|38,this.ROLL_UP_4_ROWS_=this.CONTROL_|39,this.CARRIAGE_RETURN_=this.CONTROL_|45,this.RESUME_DIRECT_CAPTIONING_=this.CONTROL_|41,this.BACKSPACE_=this.CONTROL_|33,this.ERASE_DISPLAYED_MEMORY_=this.CONTROL_|44,this.ERASE_NON_DISPLAYED_MEMORY_=this.CONTROL_|46},at.prototype.isSpecialCharacter=function(S,M){return S===this.EXT_&&M>=48&&M<=63},at.prototype.isExtCharacter=function(S,M){return(S===this.EXT_+1||S===this.EXT_+2)&&M>=32&&M<=63},at.prototype.isMidRowCode=function(S,M){return S===this.EXT_&&M>=32&&M<=47},at.prototype.isOffsetControlCode=function(S,M){return S===this.OFFSET_&&M>=33&&M<=35},at.prototype.isPAC=function(S,M){return S>=this.BASE_&&S<this.BASE_+8&&M>=64&&M<=127},at.prototype.isColorPAC=function(S){return S>=64&&S<=79||S>=96&&S<=127},at.prototype.isNormalChar=function(S){return S>=32&&S<=127},at.prototype.setRollUp=function(S,M){if(this.mode_!=="rollUp"&&(this.row_=Se,this.mode_="rollUp",this.flushDisplayed(S),this.nonDisplayed_=ut(),this.displayed_=ut()),M!==void 0&&M!==this.row_)for(var O=0;O<this.rollUpRows_;O++)this.displayed_[M-O]=this.displayed_[this.row_-O],this.displayed_[this.row_-O]={text:"",indent:0,offset:0};M===void 0&&(M=this.row_),this.topRow_=M-this.rollUpRows_+1},at.prototype.addFormatting=function(S,M){this.formatting_=this.formatting_.concat(M);var O=M.reduce(function(P,I){return P+"<"+I+">"},"");this[this.mode_](S,O)},at.prototype.clearFormatting=function(S){if(!!this.formatting_.length){var M=this.formatting_.reverse().reduce(function(O,P){return O+"</"+P+">"},"");this.formatting_=[],this[this.mode_](S,M)}},at.prototype.popOn=function(S,M){var O=this.nonDisplayed_[this.row_].text;O+=M,this.nonDisplayed_[this.row_].text=O},at.prototype.rollUp=function(S,M){var O=this.displayed_[this.row_].text;O+=M,this.displayed_[this.row_].text=O},at.prototype.shiftRowsUp_=function(){var S;for(S=0;S<this.topRow_;S++)this.displayed_[S]={text:"",indent:0,offset:0};for(S=this.row_+1;S<Se+1;S++)this.displayed_[S]={text:"",indent:0,offset:0};for(S=this.topRow_;S<this.row_;S++)this.displayed_[S]=this.displayed_[S+1];this.displayed_[this.row_]={text:"",indent:0,offset:0}},at.prototype.paintOn=function(S,M){var O=this.displayed_[this.row_].text;O+=M,this.displayed_[this.row_].text=O};var xt={CaptionStream:sn,Cea608Stream:at,Cea708Stream:q},At={H264_STREAM_TYPE:27,ADTS_STREAM_TYPE:15,METADATA_STREAM_TYPE:21},Gt=n,vt=8589934592,Ct=4294967296,hn="shared",In=function(S,M){var O=1;for(S>M&&(O=-1);Math.abs(M-S)>Ct;)S+=O*vt;return S},ki=function(S){var M,O;ki.prototype.init.call(this),this.type_=S||hn,this.push=function(P){if(P.type==="metadata"){this.trigger("data",P);return}this.type_!==hn&&P.type!==this.type_||(O===void 0&&(O=P.dts),P.dts=In(P.dts,O),P.pts=In(P.pts,O),M=P.dts,this.trigger("data",P))},this.flush=function(){O=M,this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")},this.discontinuity=function(){O=void 0,M=void 0},this.reset=function(){this.discontinuity(),this.trigger("reset")}};ki.prototype=new Gt;var $i={TimestampRolloverStream:ki,handleRollover:In},yn=(S,M,O)=>{if(!S)return-1;for(var P=O;P<S.length;P++)if(S[P]===M)return P;return-1},jt={typedArrayIndexOf:yn},os=jt.typedArrayIndexOf,bn={Iso88591:0,Utf16:1,Utf16be:2,Utf8:3},Qa=function(S,M,O){var P,I="";for(P=M;P<O;P++)I+="%"+("00"+S[P].toString(16)).slice(-2);return I},Bo=function(S,M,O){return decodeURIComponent(Qa(S,M,O))},Os=function(S,M,O){return unescape(Qa(S,M,O))},Ja=function(S){return S[0]<<21|S[1]<<14|S[2]<<7|S[3]},ui={APIC:function(S){var M=1,O,P,I="-->";S.data[0]===bn.Utf8&&(O=os(S.data,0,M),!(O<0)&&(S.mimeType=Os(S.data,M,O),M=O+1,S.pictureType=S.data[M],M++,P=os(S.data,0,M),!(P<0)&&(S.description=Bo(S.data,M,P),M=P+1,S.mimeType===I?S.url=Os(S.data,M,S.data.length):S.pictureData=S.data.subarray(M,S.data.length))))},"T*":function(S){S.data[0]===bn.Utf8&&(S.value=Bo(S.data,1,S.data.length).replace(/\0*$/,""),S.values=S.value.split("\0"))},TXXX:function(S){var M;S.data[0]===bn.Utf8&&(M=os(S.data,0,1),M!==-1&&(S.description=Bo(S.data,1,M),S.value=
271Bo(S.data,M+1,S.data.length).replace(/\0*$/,""),S.data=S.value))},"W*":function(S){S.url=Os(S.data,0,S.data.length).replace(/\0.*$/,"")},WXXX:function(S){var M;S.data[0]===bn.Utf8&&(M=os(S.data,0,1),M!==-1&&(S.description=Bo(S.data,1,M),S.url=Os(S.data,M+1,S.data.length).replace(/\0.*$/,"")))},PRIV:function(S){var M;for(M=0;M<S.data.length;M++)if(S.data[M]===0){S.owner=Os(S.data,0,M);break}S.privateData=S.data.subarray(M+1),S.data=S.privateData}},Uo=function(S){var M,O,P=10,I=0,B=[];if(!(S.length<10||S[0]!=="I".charCodeAt(0)||S[1]!=="D".charCodeAt(0)||S[2]!=="3".charCodeAt(0))){I=Ja(S.subarray(6,10)),I+=10;var Z=S[5]&64;Z&&(P+=4,P+=Ja(S.subarray(10,14)),I-=Ja(S.subarray(16,20)));do{if(M=Ja(S.subarray(P+4,P+8)),M<1)break;O=String.fromCharCode(S[P],S[P+1],S[P+2],S[P+3]);var ee={id:O,data:S.subarray(P+10,P+M+10)};ee.key=ee.id,ui[ee.id]?ui[ee.id](ee):ee.id[0]==="T"?ui["T*"](ee):ee.id[0]==="W"&&ui["W*"](ee),B.push(ee),P+=10,P+=M}while(P<I);return B}},Eu={parseId3Frames:Uo,parseSyncSafeInteger:Ja,frameParsers:ui},qi=n,Uc=At,eo=Eu,Tl;Tl=function(S){var M={descriptor:S&&S.descriptor},O=0,P=[],I=0,B;if(Tl.prototype.init.call(this),this.dispatchType=Uc.METADATA_STREAM_TYPE.toString(16),M.descriptor)for(B=0;B<M.descriptor.length;B++)this.dispatchType+=("00"+M.descriptor[B].toString(16)).slice(-2);this.push=function(Z){var ee,se,fe,be,$e,dt;if(Z.type==="timed-metadata"){if(Z.dataAlignmentIndicator&&(I=0,P.length=0),P.length===0&&(Z.data.length<10||Z.data[0]!=="I".charCodeAt(0)||Z.data[1]!=="D".charCodeAt(0)||Z.data[2]!=="3".charCodeAt(0))){this.trigger("log",{level:"warn",message:"Skipping unrecognized metadata packet"});return}if(P.push(Z),I+=Z.data.byteLength,P.length===1&&(O=eo.parseSyncSafeInteger(Z.data.subarray(6,10)),O+=10),!(I<O)){for(ee={data:new Uint8Array(O),frames:[],pts:P[0].pts,dts:P[0].dts},$e=0;$e<O;)ee.data.set(P[0].data.subarray(0,O-$e),$e),$e+=P[0].data.byteLength,I-=P[0].data.byteLength,P.shift();se=10,ee.data[5]&64&&(se+=4,se+=eo.parseSyncSafeInteger(ee.data.subarray(10,14)),O-=eo.parseSyncSafeInteger(ee.data.subarray(16,20)));do{if(fe=eo.parseSyncSafeInteger(ee.data.subarray(se+4,se+8)),fe<1){this.trigger("log",{level:"warn",message:"Malformed ID3 frame encountered. Skipping remaining metadata parsing."});break}if(dt=String.fromCharCode(ee.data[se],ee.data[se+1],ee.data[se+2],ee.data[se+3]),be={id:dt,data:ee.data.subarray(se+10,se+fe+10)},be.key=be.id,eo.frameParsers[be.id]?eo.frameParsers[be.id](be):be.id[0]==="T"?eo.frameParsers["T*"](be):be.id[0]==="W"&&eo.frameParsers["W*"](be),be.owner==="com.apple.streaming.transportStreamTimestamp"){var Xe=be.data,kt=(Xe[3]&1)<<30|Xe[4]<<22|Xe[5]<<14|Xe[6]<<6|Xe[7]>>>2;kt*=4,kt+=Xe[7]&3,be.timeStamp=kt,ee.pts===void 0&&ee.dts===void 0&&(ee.pts=be.timeStamp,ee.dts=be.timeStamp),this.trigger("timestamp",be)}ee.frames.push(be),se+=10,se+=fe}while(se<O);this.trigger("data",ee)}}}},Tl.prototype=new qi;var f1=Tl,Od=n,i_=xt,Rs=At,r_=$i.TimestampRolloverStream,$c,to,Rd,wu=188,s_=71;$c=function(){var S=new Uint8Array(wu),M=0;$c.prototype.init.call(this),this.push=function(O){var P=0,I=wu,B;for(M?(B=new Uint8Array(O.byteLength+M),B.set(S.subarray(0,M)),B.set(O,M),M=0):B=O;I<B.byteLength;){if(B[P]===s_&&B[I]===s_){this.trigger("data",B.subarray(P,I)),P+=wu,I+=wu;continue}P++,I++}P<B.byteLength&&(S.set(B.subarray(P),0),M=B.byteLength-P)},this.flush=function(){M===wu&&S[0]===s_&&(this.trigger("data",S),M=0),this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")},this.reset=function(){M=0,this.trigger("reset")}},$c.prototype=new Od,to=function(){var S,M,O,P;to.prototype.init.call(this),P=this,this.packetsWaitingForPmt=[],this.programMapTable=void 0,S=function(I,B){var Z=0;B.payloadUnitStartIndicator&&(Z+=I[Z]+1),B.type==="pat"?M(I.subarray(Z),B):O(I.subarray(Z),B)},M=function(I,B){B.section_number=I[7],B.last_section_number=I[8],P.pmtPid=(I[10]&31)<<8|I[11],B.pmtPid=P.pmtPid},O=function(I,B){var Z,ee,se,fe;if(!!(I[5]&1)){for(P.programMapTable={video:null,audio:null,"timed-metadata":{}},Z=(I[1]&15)<<8|I[2],ee=3+Z-4,se=(I[10]&15)<<8|I[11],fe=12+se;fe<ee;){var be=I[fe],$e=(I[fe+1]&31)<<8|I[fe+2];be===Rs.H264_STREAM_TYPE&&P.programMapTable.video===null?P.programMapTable.video=$e:be===Rs.ADTS_STREAM_TYPE&&P.programMapTable.audio===null?P.programMapTable.audio=$e:be===Rs.METADATA_STREAM_TYPE&&(P.programMapTable["timed-metadata"][$e]=be),fe+=((I[fe+3]&15)<<8|I[fe+4])+5}B.programMapTable=P.programMapTable}},this.push=function(I){var B={},Z=4;if(B.payloadUnitStartIndicator=!!(I[1]&64),B.pid=I[1]&31,B.pid<<=8,B.pid|=I[2],(I[3]&48)>>>4>1&&(Z+=I[Z]+1),B.pid===0)B.type="pat",S(I.subarray(Z),B),this.trigger("data",B);else if(B.pid===this.pmtPid)for(B.type="pmt",S(I.subarray(Z),B),this.trigger("data",B);this.packetsWaitingForPmt.length;)this.processPes_.apply(this,this.packetsWaitingForPmt.shift());
271else this.programMapTable===void 0?this.packetsWaitingForPmt.push([I,Z,B]):this.processPes_(I,Z,B)},this.processPes_=function(I,B,Z){Z.pid===this.programMapTable.video?Z.streamType=Rs.H264_STREAM_TYPE:Z.pid===this.programMapTable.audio?Z.streamType=Rs.ADTS_STREAM_TYPE:Z.streamType=this.programMapTable["timed-metadata"][Z.pid],Z.type="pes",Z.data=I.subarray(B),this.trigger("data",Z)}},to.prototype=new Od,to.STREAM_TYPES={h264:27,adts:15},Rd=function(){var S=this,M=!1,O={data:[],size:0},P={data:[],size:0},I={data:[],size:0},B,Z=function(se,fe){var be;const $e=se[0]<<16|se[1]<<8|se[2];fe.data=new Uint8Array,$e===1&&(fe.packetLength=6+(se[4]<<8|se[5]),fe.dataAlignmentIndicator=(se[6]&4)!==0,be=se[7],be&192&&(fe.pts=(se[9]&14)<<27|(se[10]&255)<<20|(se[11]&254)<<12|(se[12]&255)<<5|(se[13]&254)>>>3,fe.pts*=4,fe.pts+=(se[13]&6)>>>1,fe.dts=fe.pts,be&64&&(fe.dts=(se[14]&14)<<27|(se[15]&255)<<20|(se[16]&254)<<12|(se[17]&255)<<5|(se[18]&254)>>>3,fe.dts*=4,fe.dts+=(se[18]&6)>>>1)),fe.data=se.subarray(9+se[8]))},ee=function(se,fe,be){var $e=new Uint8Array(se.size),dt={type:fe},Xe=0,kt=0,W=!1,ti;if(!(!se.data.length||se.size<9)){for(dt.trackId=se.data[0].pid,Xe=0;Xe<se.data.length;Xe++)ti=se.data[Xe],$e.set(ti.data,kt),kt+=ti.data.byteLength;Z($e,dt),W=fe==="video"||dt.packetLength<=se.size,(be||W)&&(se.size=0,se.data.length=0),W&&S.trigger("data",dt)}};Rd.prototype.init.call(this),this.push=function(se){({pat:function(){},pes:function(){var fe,be;switch(se.streamType){case Rs.H264_STREAM_TYPE:fe=O,be="video";break;case Rs.ADTS_STREAM_TYPE:fe=P,be="audio";break;case Rs.METADATA_STREAM_TYPE:fe=I,be="timed-metadata";break;default:return}se.payloadUnitStartIndicator&&ee(fe,be,!0),fe.data.push(se),fe.size+=se.data.byteLength},pmt:function(){var fe={type:"metadata",tracks:[]};B=se.programMapTable,B.video!==null&&fe.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+B.video,codec:"avc",type:"video"}),B.audio!==null&&fe.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+B.audio,codec:"adts",type:"audio"}),M=!0,S.trigger("data",fe)}})[se.type]()},this.reset=function(){O.size=0,O.data.length=0,P.size=0,P.data.length=0,this.trigger("reset")},this.flushStreams_=function(){ee(O,"video"),ee(P,"audio"),ee(I,"timed-metadata")},this.flush=function(){if(!M&&B){var se={type:"metadata",tracks:[]};B.video!==null&&se.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+B.video,codec:"avc",type:"video"}),B.audio!==null&&se.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+B.audio,codec:"adts",type:"audio"}),S.trigger("data",se)}M=!1,this.flushStreams_(),this.trigger("done")}},Rd.prototype=new Od;var a_={PAT_PID:0,MP2T_PACKET_LENGTH:wu,TransportPacketStream:$c,TransportParseStream:to,ElementaryStream:Rd,TimestampRolloverStream:r_,CaptionStream:i_.CaptionStream,Cea608Stream:i_.Cea608Stream,Cea708Stream:i_.Cea708Stream,MetadataStream:f1};for(var Fp in Rs)Rs.hasOwnProperty(Fp)&&(a_[Fp]=Rs[Fp]);var d1=a_,h1=n,DC=ie.ONE_SECOND_IN_TS,Np,p1=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];Np=function(S){var M,O=0;Np.prototype.init.call(this),this.skipWarn_=function(P,I){this.trigger("log",{level:"warn",message:`adts ski
271ping bytes ${P} to ${I} in frame ${O} outside syncword`})},this.push=function(P){var I=0,B,Z,ee,se,fe;if(S||(O=0),P.type==="audio"){M&&M.length?(ee=M,M=new Uint8Array(ee.byteLength+P.data.byteLength),M.set(ee),M.set(P.data,ee.byteLength)):M=P.data;for(var be;I+7<M.length;){if(M[I]!==255||(M[I+1]&246)!==240){typeof be!="number"&&(be=I),I++;continue}if(typeof be=="number"&&(this.skipWarn_(be,I),be=null),Z=(~M[I+1]&1)*2,B=(M[I+3]&3)<<11|M[I+4]<<3|(M[I+5]&224)>>5,se=((M[I+6]&3)+1)*1024,fe=se*DC/p1[(M[I+2]&60)>>>2],M.byteLength-I<B)break;this.trigger("data",{pts:P.pts+O*fe,dts:P.dts+O*fe,sampleCount:se,audioobjecttype:(M[I+2]>>>6&3)+1,channelcount:(M[I+2]&1)<<2|(M[I+3]&192)>>>6,samplerate:p1[(M[I+2]&60)>>>2],samplingfrequencyindex:(M[I+2]&60)>>>2,samplesize:16,data:M.subarray(I+7+Z,I+B)}),O++,I+=B}typeof be=="number"&&(this.skipWarn_(be,I),be=null),M=M.subarray(I)}},this.flush=function(){O=0,this.trigger("done")},this.reset=function(){M=void 0,this.trigger("reset")},this.endTimeline=function(){M=void 0,this.trigger("endedtimeline")}},Np.prototype=new h1;var m1=Np,g1;g1=function(S){var M=S.byteLength,O=0,P=0;this.length=function(){return 8*M},this.bitsAvailable=function(){return 8*M+P},this.loadWord=function(){var I=S.byteLength-M,B=new Uint8Array(4),Z=Math.min(4,M);if(Z===0)throw new Error("no bytes available");B.set(S.subarray(I,I+Z)),O=new DataView(B.buffer).getUint32(0),P=Z*8,M-=Z},this.skipBits=function(I){var B;P>I?(O<<=I,P-=I):(I-=P,B=Math.floor(I/8),I-=B*8,M-=B,this.loadWord(),O<<=I,P-=I)},this.readBits=function(I){var B=Math.min(P,I),Z=O>>>32-B;return P-=B,P>0?O<<=B:M>0&&this.loadWord(),B=I-B,B>0?Z<<B|this.readBits(B):Z},this.skipLeadingZeros=function(){var I;for(I=0;I<P;++I)if((O&2147483648>>>I)!==0)return O<<=I,P-=I,I;return this.loadWord(),I+this.skipLeadingZeros()},this.skipUnsignedExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())},this.skipExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())},this.readUnsignedExpGolomb=function(){var I=this.skipLeadingZeros();return this.readBits(I+1)-1},this.readExpGolomb=function(){var I=this.readUnsignedExpGolomb();return 1&I?1+I>>>1:-1*(I>>>1)},this.readBoolean=function(){return this.readBits(1)===1},this.readUnsignedByte=function(){return this.readBits(8)},this.loadWord()};var PC=g1,_1=n,OC=PC,zc,kd,v1;kd=function(){var S=0,M,O;kd.prototype.init.call(this),this.push=function(P){var I;O?(I=new Uint8Array(O.byteLength+P.data.byteLength),I.set(O),I.set(P.data,O.byteLength),O=I):O=P.data;for(var B=O.byteLength;S<B-3;S++)if(O[S+2]===1){M=S+5;break}for(;M<B;)switch(O[M]){case 0:if(O[M-1]!==0){M+=2;break}else if(O[M-2]!==0){M++;break}S+3!==M-2&&this.trigger("data",O.subarray(S+3,M-2));do M++;while(O[M]!==1&&M<B);S=M-2,M+=3;break;case 1:if(O[M-1]!==0||O[M-2]!==0){M+=3;break}this.trigger("data",O.subarray(S+3,M-2)),S=M-2,M+=3;break;default:M+=3;break}O=O.subarray(S),M-=S,S=0},this.reset=function(){O=null,S=0,this.trigger("reset")},this.flush=function(){O&&O.byteLength>3&&this.trigger("data",O.subarray(S+3)),O=null,S=0,this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")}},kd.prototype=new _1,v1={100:!0,110:!0,122:!0,244:!0,44:!0,83:!0,86:!0,118:!0,128:!0,138:!0,139:!0,134:!0},zc=function(){var S=new kd,M,O,P,I,B,Z,ee;zc.prototype.init.call(this),M=this,this.push=function(se){se.type==="video"&&(O=se.trackId,P=se.pts,I=se.dts,S.push(se))},S.on("data",function(se){var fe={trackId:O,pts:P,dts:I,data:se,nalUnitTypeCode:se[0]&31};switch(fe.nalUnitTypeCode){case 5:fe.nalUnitType="slice_layer_without_partitioning_rbsp_idr";break;case 6:fe.nalUnitType="sei_rbsp",fe.escapedRBSP=B(se.subarray(1));break;case 7:fe.nalUnitType="seq_parameter_set_rbsp",fe.escapedRBSP=B(se.subarray(1)),fe.config=Z(fe.escapedRBSP);break;case 8:fe.nalUnitType="pic_parameter_set_rbsp";break;case 9:fe.nalUnitType="access_unit_delimiter_rbsp";break}M.trigger("data",fe)}),S.on("done",function(){M.trigger("done")}),S.on("partialdone",function(){M.trigger("partialdone")}),S.on("reset",function(){M.trigger("reset")}),S.on("endedtimeline",function(){M.trigger("endedtimeline")}),this.flush=function(){S.flush()},this.partialFlush=function(){S.partialFlush()},this.reset=function(){S.reset()},this.endTimeline=function(){S.endTimeline()},ee=function(se,fe){var be=8,$e=8,dt,Xe;for(dt=0;dt<se;dt++)$e!==0&&(Xe=fe.readExpGolomb(),$e=(be+Xe+256)%256),be=$e===0?be:$e},B=function(se){for(var fe=se.byteLength,be=[],$e=1,dt,Xe;$e<fe-2;)se[$e]===0&&se[$e+1]===0&&se[$e+2]===3?(be.push($e+2),$e+=2):$e++;if(be.length===0)return se;dt=fe-be.length,Xe=new Uint8Array(dt);var kt=0;for($e=0;
271$e<dt;kt++,$e++)kt===be[0]&&(kt++,be.shift()),Xe[$e]=se[kt];return Xe},Z=function(se){var fe=0,be=0,$e=0,dt=0,Xe,kt,W,ti,Dr,Xi,un,j1,q1,g_,Al,Ei=[1,1],X1,Ou;if(Xe=new OC(se),kt=Xe.readUnsignedByte(),ti=Xe.readUnsignedByte(),W=Xe.readUnsignedByte(),Xe.skipUnsignedExpGolomb(),v1[kt]&&(Dr=Xe.readUnsignedExpGolomb(),Dr===3&&Xe.skipBits(1),Xe.skipUnsignedExpGolomb(),Xe.skipUnsignedExpGolomb(),Xe.skipBits(1),Xe.readBoolean()))for(Al=Dr!==3?8:12,Ou=0;Ou<Al;Ou++)Xe.readBoolean()&&(Ou<6?ee(16,Xe):ee(64,Xe));if(Xe.skipUnsignedExpGolomb(),Xi=Xe.readUnsignedExpGolomb(),Xi===0)Xe.readUnsignedExpGolomb();else if(Xi===1)for(Xe.skipBits(1),Xe.skipExpGolomb(),Xe.skipExpGolomb(),un=Xe.readUnsignedExpGolomb(),Ou=0;Ou<un;Ou++)Xe.skipExpGolomb();if(Xe.skipUnsignedExpGolomb(),Xe.skipBits(1),j1=Xe.readUnsignedExpGolomb(),q1=Xe.readUnsignedExpGolomb(),g_=Xe.readBits(1),g_===0&&Xe.skipBits(1),Xe.skipBits(1),Xe.readBoolean()&&(fe=Xe.readUnsignedExpGolomb(),be=Xe.readUnsignedExpGolomb(),$e=Xe.readUnsignedExpGolomb(),dt=Xe.readUnsignedExpGolomb()),Xe.readBoolean()&&Xe.readBoolean()){switch(X1=Xe.readUnsignedByte(),X1){case 1:Ei=[1,1];break;case 2:Ei=[12,11];break;case 3:Ei=[10,11];break;case 4:Ei=[16,11];break;case 5:Ei=[40,33];break;case 6:Ei=[24,11];break;case 7:Ei=[20,11];break;case 8:Ei=[32,11];break;case 9:Ei=[80,33];break;case 10:Ei=[18,11];break;case 11:Ei=[15,11];break;case 12:Ei=[64,33];break;case 13:Ei=[160,99];break;case 14:Ei=[4,3];break;case 15:Ei=[3,2];break;case 16:Ei=[2,1];break;case 255:{Ei=[Xe.readUnsignedByte()<<8|Xe.readUnsignedByte(),Xe.readUnsignedByte()<<8|Xe.readUnsignedByte()];break}}Ei&&Ei[0]/Ei[1]}return{profileIdc:kt,levelIdc:W,profileCompatibility:ti,width:(j1+1)*16-fe*2-be*2,height:(2-g_)*(q1+1)*16-$e*2-dt*2,sarRatio:Ei}}},zc.prototype=new _1;var RC={H264Stream:zc,NalByteStream:kd},kC=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],y1=function(S,M){var O=S[M+6]<<21|
271S[M+7]<<14|S[M+8]<<7|S[M+9],P=S[M+5],I=(P&16)>>4;return O=O>=0?O:0,I?O+20:O+10},Gn=function(S,M){return S.length-M<10||S[M]!=="I".charCodeAt(0)||S[M+1]!=="D".charCodeAt(0)||S[M+2]!=="3".charCodeAt(0)?M:(M+=y1(S,M),Gn(S,M))},jn=function(S){var M=Gn(S,0);return S.length>=M+2&&(S[M]&255)===255&&(S[M+1]&240)===240&&(S[M+1]&22)===16},b1=function(S){return S[0]<<21|S[1]<<14|S[2]<<7|S[3]},IC=function(S,M,O){var P,I="";for(P=M;P<O;P++)I+="%"+("00"+S[P].toString(16)).slice(-2);return I},LC=function(S,M,O){return unescape(IC(S,M,O))},FC=function(S,M){var O=(S[M+5]&224)>>5,P=S[M+4]<<3,I=S[M+3]&3<<11;return I|P|O},NC=function(S,M){return S[M]==="I".charCodeAt(0)&&S[M+1]==="D".charCodeAt(0)&&S[M+2]==="3".charCodeAt(0)?"timed-metadata":S[M]&!0&&(S[M+1]&240)===240?"audio":null},BC=function(S){for(var M=0;M+5<S.length;){if(S[M]!==255||(S[M+1]&246)!==240){M++;continue}return kC[(S[M+2]&60)>>>2]}return null},x1=function(S){var M,O,P,I;M=10,S[5]&64&&(M+=4,M+=b1(S.subarray(10,14)));do{if(O=b1(S.subarray(M+4,M+8)),O<1)return null;if(I=String.fromCharCode(S[M],S[M+1],S[M+2],S[M+3]),I==="PRIV"){P=S.subarray(M+10,M+O+10);for(var B=0;B<P.byteLength;B++)if(P[B]===0){var Z=LC(P,0,B);if(Z==="com.apple.streaming.transportStreamTimestamp"){var ee=P.subarray(B+1),se=(ee[3]&1)<<30|ee[4]<<22|ee[5]<<14|ee[6]<<6|ee[7]>>>2;return se*=4,se+=ee[7]&3,se}break}}M+=10,M+=O}while(M<S.byteLength);return null},o_={isLikelyAacData:jn,parseId3TagSize:y1,parseAdtsSize:FC,parseType:NC,parseSampleRate:BC,parseAacTimestamp:x1},nr=n,Bp=o_,no;no=function(){var S=new Uint8Array,M=0;no.prototype.init.call(this),this.setTimestamp=function(O){M=O},this.push=function(O){var P=0,I=0,B,Z,ee,se;for(S.length?(se=S.length,S=new Uint8Array(O.byteLength+se),S.set(S.subarray(0,se)),S.set(O,se)):S=O;S.length-I>=3;){if(S[I]==="I".charCodeAt(0)&&S[I+1]==="D".charCodeAt(0)&&S[I+2]==="3".charCodeAt(0)){if(S.length-I<10||(P=Bp.parseId3TagSize(S,I),I+P>S.length))break;Z={type:"timed-metadata",data:S.subarray(I,I+P)},this.trigger("data",Z),I+=P;continue}else if((S[I]&255)===255&&(S[I+1]&240)===240){if(S.length-I<7||(P=Bp.parseAdtsSize(S,I),I+P>S.length))break;ee={type:"audio",data:S.subarray(I,I+P),pts:M,dts:M},this.trigger("data",ee),I+=P;continue}I++}B=S.length-I,B>0?S=S.subarray(I):S=new Uint8Array},this.reset=function(){S=new Uint8Array,this.trigger("reset")},this.endTimeline=function(){S=new Uint8Array,this.trigger("endedtimeline")}},no.prototype=new nr;var S1=no,l_=["audioobjecttype","channelcount","samplerate","samplingfrequencyindex","samplesize"],ks=l_,T1=["width","height","profileIdc","levelIdc","profileCompatibility","sarRatio"],E1=T1,Id=n,Hc=ve,Vc=ne,Ld=ot,ci=Vt,$o=d1,Mr=ie,w1=m1,C1=RC.H264Stream,El=S1,Up=o_.isLikelyAacData,u_=ie.ONE_SECOND_IN_TS,qn=ks,io=E1,Cu,Wc,Gc,Au,UC=function(S,M){M.stream=S,this.trigger("log",M)},A1=function(S,M){for(var O=Object.keys(M),P=0;P<O.length;P++){var I=O[P];I==="headOfPipeline"||!M[I].on||M[I].on("log",UC.bind(S,I))}},c_=function(S,M){var O;if(S.length!==M.length)return!1;for(O=0;O<S.length;O++)if(S[O]!==M[O])return!1;return!0},jc=function(S,M,O,P,I,B){var Z=O-M,ee=P-M,se=I-O;return{start:{dts:S,pts:S+Z},end:{dts:S+ee,pts:S+se},prependedContentDuration:B,baseMediaDecodeTime:S}};Wc=function(S,M){var O=[],P,I=0,B=0,Z=1/0;M=M||{},P=M.firstSequenceNumber||0,Wc.prototype.init.call(this),this.push=function(ee){ci.collectDtsInfo(S,ee),S&&qn.forEach(function(se){S[se]=ee[se]}),O.push(ee)},this.setEarliestDts=function(ee){I=ee},this.setVideoBaseMediaDecodeTime=function(ee){Z=ee},this.setAudioAppendStart=function(ee){B=ee},this.flush=function(){var ee,se,fe,be,$e,dt,Xe;if(O.length===0){this.trigger("done","AudioSegmentStream");return}ee=Ld.trimAdtsFramesByEarliestDts(O,S,I),S.baseMediaDecodeTime=ci.calculateTrackBaseMediaDecodeTime(S,M.keepOriginalTimestamps),Xe=Ld.prefixWithSilence(S,ee,B,Z),S.samples=Ld.generateSampleTable(ee),fe=Hc.mdat(Ld.concatenateFrameData(ee)),O=[],se=Hc.moof(P,[S]),be=new Uint8Array(se.byteLength+fe.byteLength),P++,be.set(se),be.set(fe,se.byteLength),ci.clearDtsInfo(S),$e=Math.ceil(u_*1024/S.samplerate),ee.length&&(dt=ee.length*$e,this.trigger("segmentTimingInfo",jc(Mr.audioTsToVideoTs(S.baseMediaDecodeTime,S.samplerate),ee[0].dts,ee[0].pts,ee[0].dts+dt,ee[0].pts+dt,Xe||0
271)),this.trigger("timingInfo",{start:ee[0].pts,end:ee[0].pts+dt})),this.trigger("data",{track:S,boxes:be}),this.trigger("done","AudioSegmentStream")},this.reset=function(){ci.clearDtsInfo(S),O=[],this.trigger("reset")}},Wc.prototype=new Id,Cu=function(S,M){var O,P=[],I=[],B,Z;M=M||{},O=M.firstSequenceNumber||0,Cu.prototype.init.call(this),delete S.minPTS,this.gopCache_=[],this.push=function(ee){ci.collectDtsInfo(S,ee),ee.nalUnitType==="seq_parameter_set_rbsp"&&!B&&(B=ee.config,S.sps=[ee.data],io.forEach(function(se){S[se]=B[se]},this)),ee.nalUnitType==="pic_parameter_set_rbsp"&&!Z&&(Z=ee.data,S.pps=[ee.data]),P.push(ee)},this.flush=function(){for(var ee,se,fe,be,$e,dt,Xe=0,kt,W;P.length&&P[0].nalUnitType!=="access_unit_delimiter_rbsp";)P.shift();if(P.length===0){this.resetStream_(),this.trigger("done","VideoSegmentStream");return}if(ee=Vc.groupNalsIntoFrames(P),fe=Vc.groupFramesIntoGops(ee),fe[0][0].keyFrame||(se=this.getGopForFusion_(P[0],S),se?(Xe=se.duration,fe.unshift(se),fe.byteLength+=se.byteLength,fe.nalCount+=se.nalCount,fe.pts=se.pts,fe.dts=se.dts,fe.duration+=se.duration):fe=Vc.extendFirstKeyFrame(fe)),I.length){var ti;if(M.alignGopsAtEnd?ti=this.alignGopsAtEnd_(fe):ti=this.alignGopsAtStart_(fe),!ti){this.gopCache_.unshift({gop:fe.pop(),pps:S.pps,sps:S.sps}),this.gopCache_.length=Math.min(6,this.gopCache_.length),P=[],this.resetStream_(),this.trigger("done","VideoSegmentStream");return}ci.clearDtsInfo(S),fe=ti}ci.collectDtsInfo(S,fe),S.samples=Vc.generateSampleTable(fe),$e=Hc.mdat(Vc.concatenateNalData(fe)),S.baseMediaDecodeTime=ci.calculateTrackBaseMediaDecodeTime(S,M.keepOriginalTimestamps),this.trigger("processedGopsInfo",fe.map(function(Dr){return{pts:Dr.pts,dts:Dr.dts,byteLength:Dr.byteLength}})),kt=fe[0],W=fe[fe.length-1],this.trigger("segmentTimingInfo",jc(S.baseMediaDecodeTime,kt.dts,kt.pts,W.dts+W.duration,W.pts+W.duration,Xe)),this.trigger("timingInfo",{start:fe[0].pts,end:fe[fe.length-1].pts+fe[fe.length-1].duration}),this.gopCache_.unshift({gop:fe.pop(),pps:S.pps,sps:S.sps}),this.gopCache_.length=Math.min(6,this.gopCache_.length),P=[],this.trigger("baseMediaDecodeTime",S.baseMediaDecodeTime),this.trigger("timelineStartInfo",S.timelineStartInfo),be=Hc.moof(O,[S]),dt=new Uint8Array(be.byteLength+$e.byteLength),O++,dt.set(be),dt.set($e,be.byteLength),this.trigger("data",{track:S,boxes:dt}),this.resetStream_(),this.trigger("done","VideoSegmentStream")},this.reset=function(){this.resetStream_(),P=[],this.gopCache_.length=0,I.length=0,this.trigger("reset")},this.resetStream_=function(){ci.clearDtsInfo(S),B=void 0,Z=void 0},this.getGopForFusion_=function(ee){var se=45e3,fe=1e4,be=1/0,$e,dt,Xe,kt,W;for(W=0;W<this.gopCache_.length;W++)kt=this.gopCache_[W],Xe=kt.gop,!(!(S.pps&&c_(S.pps[0],kt.pps[0]))||!(S.sps&&c_(S.sps[0],kt.sps[0])))&&(Xe.dts<S.timelineStartInfo.dts||($e=ee.dts-Xe.dts-Xe.duration,$e>=-fe&&$e<=se&&(!dt||be>$e)&&(dt=kt,be=$e)));return dt?dt.gop:null},this.alignGopsAtStart_=function(ee){var se,fe,be,$e,dt,Xe,kt,W;for(dt=ee.byteLength,Xe=ee.nalCount,kt=ee.duration,se=fe=0;se<I.length&&fe<ee.length&&(be=I[se],$e=ee[fe],be.pts!==$e.pts);){if($e.pts>be.pts){se++;continue}fe++,dt-=$e.byteLength,Xe-=$e.nalCount,kt-=$e.duration}return fe===0?ee:fe===ee.length?null:(W=ee.slice(fe),W.byteLength=dt,W.duration=kt,W.nalCount=Xe,W.pts=W[0].pts,W.dts=W[0].dts,W)},this.alignGopsAtEnd_=function(ee){var se,fe,be,$e,dt,Xe;for(se=I.length-1,fe=ee.length-1,dt=null,Xe=!1;se>=0&&fe>=0;){if(be=I[se],$e=ee[fe],be.pts===$e.pts){Xe=!0;break}if(be.pts>$e.pts){se--;continue}
271se===I.length-1&&(dt=fe),fe--}if(!Xe&&dt===null)return null;var kt;if(Xe?kt=fe:kt=dt,kt===0)return ee;var W=ee.slice(kt),ti=W.reduce(function(Dr,Xi){return Dr.byteLength+=Xi.byteLength,Dr.duration+=Xi.duration,Dr.nalCount+=Xi.nalCount,Dr},{byteLength:0,duration:0,nalCount:0});return W.byteLength=ti.byteLength,W.duration=ti.duration,W.nalCount=ti.nalCount,W.pts=W[0].pts,W.dts=W[0].dts,W},this.alignGopsWith=function(ee){I=ee}},Cu.prototype=new Id,Au=function(S,M){this.numberOfTracks=0,this.metadataStream=M,S=S||{},typeof S.remux<"u"?this.remuxTracks=!!S.remux:this.remuxTracks=!0,typeof S.keepOriginalTimestamps=="boolean"?this.keepOriginalTimestamps=S.keepOriginalTimestamps:this.keepOriginalTimestamps=!1,this.pendingTracks=[],this.videoTrack=null,this.pendingBoxes=[],this.pendingCaptions=[],this.pendingMetadata=[],this.pendingBytes=0,this.emittedTracks=0,Au.prototype.init.call(this),this.push=function(O){if(O.content||O.text)return this.pendingCaptions.push(O);if(O.frames)return this.pendingMetadata.push(O);this.pendingTracks.push(O.track),this.pendingBytes+=O.boxes.byteLength,O.track.type==="video"&&(this.videoTrack=O.track,this.pendingBoxes.push(O.boxes)),O.track.type==="audio"&&(this.audioTrack=O.track,this.pendingBoxes.unshift(O.boxes))}},Au.prototype=new Id,Au.prototype.flush=function(S){var M=0,O={captions:[],captionStreams:{},metadata:[],info:{}},P,I,B,Z=0,ee;if(this.pendingTracks.length<this.numberOfTracks){if(S!=="VideoSegmentStream"&&S!=="AudioSegmentStream")return;if(this.remuxTracks)return;if(this.pendingTracks.length===0){this.emittedTracks++,this.emittedTracks>=this.numberOfTracks&&(this.trigger("done"),this.emittedTracks=0);return}}if(this.videoTrack?(Z=this.videoTrack.timelineStartInfo.pts,io.forEach(function(se){O.info[se]=this.videoTrack[se]},this)):this.audioTrack&&(Z=this.audioTrack.timelineStartInfo.pts,qn.forEach(function(se){O.info[se]=this.audioTrack[se]},this)),this.videoTrack||this.audioTrack){for(this.pendingTracks.length===1?O.type=this.pendingTracks[0].type:O.type="combined",this.emittedTracks+=this.pendingTracks.length,B=Hc.initSegment(this.pendingTracks),O.initSegment=new Uint8Array(B.byteLength),O.initSegment.set(B),O.data=new Uint8Array(this.pendingBytes),ee=0;ee<this.pendingBoxes.length;ee++)O.data.set(this.pendingBoxes[ee],M),M+=this.pendingBoxes[ee].byteLength;for(ee=0;ee<this.pendingCaptions.length;ee++)P=this.pendingCaptions[ee],P.startTime=Mr.metadataTsToSeconds(P.startPts,Z,this.keepOriginalTimestamps),P.endTime=Mr.metadataTsToSeconds(P.endPts,Z,this.keepOriginalTimestamps),O.captionStreams[P.stream]=!0,O.captions.push(P);for(ee=0;ee<this.pendingMetadata.length;ee++)I=this.pendingMetadata[ee],I.cueTime=Mr.metadataTsToSeconds(I.pts,Z,this.keepOriginalTimestamps),O.metadata.push(I);for(O.metadata.dispatchType=this.metadataStream.dispatchType,this.pendingTracks.length=0,this.videoTrack=null,this.pendingBoxes.length=0,this.pendingCaptions.length=0,this.pendingBytes=0,this.pendingMetadata.length=0,this.trigger("data",O),ee=0;ee<O.captions.length;ee++)P=O.captions[ee],this.trigger("caption",P);for(ee=0;ee<O.metadata.length;ee++)I=O.metadata[ee],this.trigger("id3Frame",I)}this.emittedTracks>=this.numberOfTracks&&(this.trigger("done"),this.emittedTracks=0)},Au.prototype.setRemux=function(S){this.remuxTracks=S},Gc=function(S){var M=this,O=!0,P,I;Gc.prototype.init.call(this),S=S||{},this.baseMediaDecodeTime=S.baseMediaDecodeTime||0,this.transmuxPipeline_={},this.setupAacPipeline=function(){var B={};this.transmuxPipeline_=B,B.type="aac",B.metadataStream=new $o.MetadataStream,B.aacStream=new El,B.audioTimestampRolloverStream=new $o.TimestampRolloverStream("audio"),B.timedMetadataTimestampRolloverStream=new $o.TimestampRolloverStream("timed-metadata"),B.adtsStream=new w1,B.coalesceStream=new Au(S,B.metadataStream),B.headOfPipeline=B.aacStream,B.aacStream.pipe(B.audioTimestampRolloverStream).pipe(B.adtsStream),B.aacStream.pipe(B.timedMetadataTimestampRolloverStream).pipe(B.metadataStream).pipe(B.coalesceStream),B.metadataStream.on("timestamp",function(Z){B.aacStream.setTimestamp(Z.timeStamp)}),B.aacStream.on("data",function(Z){Z.type!=="timed-metadata"&&Z.type!=="audio"||B.audioSegmentStream||(I=I||{timelineStartInfo:{baseMediaDecodeTime:M.baseMediaDecodeTime},codec:"adts",type:"audio"},B.coalesceStream.numberOfTracks++,B.audioSegmentStream=new Wc(I,S),B.audioSegmentStream.on("log",M.getLogTrigger_("audioSegmentStream")),B.audioSegmentStream.on("timingInfo",M.trigger.bind(M,"audioTimingInfo")),B.adtsStream.pipe(B.audioSegmentStream).pipe(B.coalesceStream),M.trigger("trackinfo",{hasAudio:!!I,hasVideo:!!P}))}),B.coalesceStream.on("data",this.trigger.bind(this,"data")),B.coalesceStream.on("done",this.trigger.bind(this,"done")),A1(this,B)},this.setupTsPipeline=function(){var B={};this.transmuxPipeline_=B,B.type="ts",B.metadataStream=new $o.MetadataStream,B.packetStream=new $o.Trans
271portPacketStream,B.parseStream=new $o.TransportParseStream,B.elementaryStream=new $o.ElementaryStream,B.timestampRolloverStream=new $o.TimestampRolloverStream,B.adtsStream=new w1,B.h264Stream=new C1,B.captionStream=new $o.CaptionStream(S),B.coalesceStream=new Au(S,B.metadataStream),B.headOfPipeline=B.packetStream,B.packetStream.pipe(B.parseStream).pipe(B.elementaryStream).pipe(B.timestampRolloverStream),B.timestampRolloverStream.pipe(B.h264Stream),B.timestampRolloverStream.pipe(B.adtsStream),B.timestampRolloverStream.pipe(B.metadataStream).pipe(B.coalesceStream),B.h264Stream.pipe(B.captionStream).pipe(B.coalesceStream),B.elementaryStream.on("data",function(Z){var ee;if(Z.type==="metadata"){for(ee=Z.tracks.length;ee--;)!P&&Z.tracks[ee].type==="video"?(P=Z.tracks[ee],P.timelineStartInfo.baseMediaDecodeTime=M.baseMediaDecodeTime):!I&&Z.tracks[ee].type==="audio"&&(I=Z.tracks[ee],I.timelineStartInfo.baseMediaDecodeTime=M.baseMediaDecodeTime);P&&!B.videoSegmentStream&&(B.coalesceStream.numberOfTracks++,B.videoSegmentStream=new Cu(P,S),B.videoSegmentStream.on("log",M.getLogTrigger_("videoSegmentStream")),B.videoSegmentStream.on("timelineStartInfo",function(se){I&&!S.keepOriginalTimestamps&&(I.timelineStartInfo=se,B.audioSegmentStream.setEarliestDts(se.dts-M.baseMediaDecodeTime))}),B.videoSegmentStream.on("processedGopsInfo",M.trigger.bind(M,"gopInfo")),B.videoSegmentStream.on("segmentTimingInfo",M.trigger.bind(M,"videoSegmentTimingInfo")),B.videoSegmentStream.on("baseMediaDecodeTime",function(se){I&&B.audioSegmentStream.setVideoBaseMediaDecodeTime(se)}),B.videoSegmentStream.on("timingInfo",M.trigger.bind(M,"videoTimingInfo")),B.h264Stream.pipe(B.videoSegmentStream).pipe(B.coalesceStream)),I&&!B.audioSegmentStream&&(B.coalesceStream.numberOfTracks++,B.audioSegmentStream=new Wc(I,S),B.audioSegmentStream.on("log",M.getLogTrigger_("audioSegmentStream")),B.audioSegmentStream.on("timingInfo",M.trigger.bind(M,"audioTimingInfo")),B.audioSegmentStream.on("segmentTimingInfo",M.trigger.bind(M,"audioSegmentTimingInfo")),B.adtsStream.pipe(B.audioSegmentStream).pipe(B.coalesceStream)),M.trigger("trackinfo",{hasAudio:!!I,hasVideo:!!P})}}),B.coalesceStream.on("data",this.trigger.bind(this,"data")),B.coalesceStream.on("id3Frame",function(Z){Z.dispatchType=B.metadataStream.dispatchType,M.trigger("id3Frame",Z)}),B.coalesceStream.on("caption",this.trigger.bind(this,"caption")),B.coalesceStream.on("done",this.trigger.bind(this,"done")),A1(this,B)},this.setBaseMediaDecodeTime=function(B){var Z=this.transmuxPipeline_;S.keepOriginalTimestamps||(this.baseMediaDecodeTime=B),I&&(I.timelineStartInfo.dts=void 0,I.timelineStartInfo.pts=void 0,ci.clearDtsInfo(I),Z.audioTimestampRolloverStream&&Z.audioTimestampRolloverStream.discontinuity()),P&&(Z.videoSegmentStream&&(Z.videoSegmentStream.gopCache_=[]),P.timelineStartInfo.dts=void 0,P.timelineStartInfo.pts=void 0,ci.clearDtsInfo(P),Z.captionStream.reset()),Z.timestampRolloverStream&&Z.timestampRolloverStream.discontinuity()},this.setAudioAppendStart=function(B){I&&this.transmuxPipeline_.audioSegmentStream.setAudioAppendStart(B)},this.setRemux=function(B){var Z=this.transmuxPipeline_;S.remux=B,Z&&Z.coalesceStream&&Z.coalesceStream.setRemux(B)},this.alignGopsWith=function(B){P&&this.transmuxPipeline_.videoSegmentStream&&this.transmuxPipeline_.videoSegmentStream.alignGopsWith(B)},this.getLogTrigger_=function(B){var Z=this;return function(ee){ee.stream=B,Z.trigger("log",ee)}},this.push=function(B){if(O){var Z=Up(B);Z&&this.transmuxPipeline_.type!=="aac"?this.setupAacPipeline():!Z&&this.transmuxPipeline_.type!=="ts"&&this.setupTsPipeline(),O=!1}this.transmuxPipeline_.headOfPipeline.push(B)},this.flush=function(){O=!0,this.transmuxPipeline_.headOfPipeline.flush()},this.endTimeline=function(){this.transmuxPipeline_.headOfPipeline.endTimeline()},this.reset=function(){this.transmuxPipeline_.headOfPipeline&&this.transmuxPipeline_.headOfPipeline.reset()},this.resetCaptions=function(){this.transmuxPipeline_.captionStream&&this.transmuxPipeline_.captionStream.reset()}},Gc.prototype=new Id;var qc={Transmuxer:Gc,VideoSegmentStream:Cu,AudioSegmentStream:Wc,AUDIO_PROPERTIES:qn,VIDEO_PROPERTIES:io,generateSegmentTimingInfo:jc},$C=function(S){return S>>>0},M1=function(S){return("00"+S.toString(16)).slice(-2)},Fd={toUnsigned:$C,toHexString:M1},f_=function(S){var M="";return M+=String.fromCharCode(S[0]),M+=String.fromCharCode(S[1]),M+=String.fromCharCode(S[2]),M+=String.fromCharCode(S[3]),M},$p=f_,D1=Fd.toUnsigned,zC=$p,zp=function(S,M){var O=[],P,I,B,Z,ee;if(!M.length)return null;for(P=0;P<S.byteLength;)I=D1(S[P]<<24|S[P+1]<<16|S[P+2]<<8|S[P+3]),B=zC(S.subarray(P+4,P+8)),Z=I>1?P+I:S.byteLength,B===M[0]&&(M.length===1?O.push(S.subarray(P+8,Z)):(ee=zp(S.subarray(P+8,Z),M.slice(1)),ee.length&&(O=O.concat(ee)))),P=Z;return O},Hp=zp,HC=Fd.toUnsigned,P1=s.getUint64,ls=function(S){var M={version:S[0],flags:new Uint8Array(S.subarray(1,4))};return M.version===1?M.baseMediaDecodeTime=P1(S.subarray(4)):M.baseMediaDecodeTime=HC(S[4]<<24|S[5]<<16|S[6]<<8|S[7]),M},Vp=ls,Nd=function(S){return{isLeading:(S[0]&12)>>>2,dependsOn:S[0]&3,isDependedOn:(S[1]&192)>>>6,hasRedundancy:(S[1]&48)>>>4,paddingValue:(S[1]&14)>>>1,isNonSyncSample:S[1]&1,degradationPriority:S[2]<<8|S[3]}},O1=Nd,d_=O1,VC=function(S){var M={version:S[0],flags:new Uint8Array(S.subarray(1,4)),samples:[]},O=new DataView(S.buffer,S.byteOffset,S.byteLength),P=M.flags[2]&1,I=M.flags[2]&4,B=M.flags[1]&1,Z=M.flags[1]&2,ee=M.flags[1]&4,se=M.flags[1]&8,fe=O.getUint32(4),be=8,$e;for(P&&(M.dataOffset=O.getInt32(be),be+=4),I&&fe&&($e={flags:d_(S.subarray(be,be+4))},be+=4,B&&($e.duration=O.getUint32(be),be+=4),Z&&($e.size=O.getUint32(be),be+=4),se&&(M.version===1?$e.compositionTimeOffset=O.getInt32(be):$e.compositionTimeOffset=O.getUint32(be),be+=4),M.samples.push($e),fe--);fe--;)$e={},B&&($e.duration=O.getUint32(be),be+=4),Z&&($e.size=O.getUint32(be),be+=4),ee&&($e.flags=d_(S.subarray(be,be+4)),be+=4),se&&(M.version===1?$e.compositionTimeOffset=O.getInt32(be):$e.compositionTimeOffset=O.getUint32(be),be+=4),M.samples.push($e);return M},R1=VC,WC=function(S){var M=new DataView(S.buffer,S.byteOffset,S.byteLength),O={version:S[0],flags:new Uint8Array(S.subarray(1,4)),trackId:M.getUint32(4)},P=O.flags[2]&1,I=O.flags[2]&2,B=O.flags[2]&8,Z=O.flags[2]&16,ee=O.flags[2]&32,se=O.flags[0]&65536,fe=O.flags[0]&131072,be;return be=8,P&&(be+=4,O.baseDataOffset=M.getUint32(12),be+=4),I&&(O.sampleDescriptionIndex=M.getUint32(be),be+=4),B&&(O.defaultSampleDuration=M.getUint32(be),be+=4),Z&&(O.defaultSampleSize=M.getUint32(be),be+=4),ee&&(O.defaultSampleFlags=M.getUint32(be)),se&&(O.durationIsEmpty=!0),!P&&fe&&(O.baseDataOffsetIsMoof=!0),O},k1=WC,Bd;typeof window<"u"?Bd=window:typeof t<"u"?Bd=t:typeof self<"u"?Bd=self:Bd={};var Mu=Bd,GC=Ot.discardEmulationPreventionBytes,jC=xt.CaptionStream,Du=Hp,I1=Vp,wl=R1,Wp=k1,L1=Mu,qC=function(S,M){for(var O=S,P=0;P<M.length;P++){var I=M[P];if(O<I.size)return I;O-=I.size}return null},XC=function(S,M,O){var P=new DataView(S.buffer,S.byteOffset,S.byteLength),I={logs:[],seiNals:[]},B,Z,ee,se;for(Z=0;Z+4<S.length;Z+=ee)if(ee=P.getUint32(Z),Z+=4,!(ee<=0))switch(S[Z]&31){case 6:var fe=S.subarray(Z+1,Z+1+ee),be=qC(Z,M);if(B={nalUnitType:"sei_rbsp",size:ee,data:fe,escapedRBSP:GC(fe),trackId:O},be)B.pts=be.pts,B.dts=be.dts,se=be;else if(se)B.pts=se.pts,B.dts=se.dts;else{I.logs.push({level:"warn",message:"We've encountered a nal unit without data at "+Z+" for trackId "+O+". See mux.js#223."});break}I.seiNals.push(B);break}return I},Xc=function(S,M,O){var P=M,I=O.defaultSampleDuration||0,B=O.defaultSampleSize||0,Z=O.trackId,ee=[];
271return S.forEach(function(se){var fe=wl(se),be=fe.samples;be.forEach(function($e){$e.duration===void 0&&($e.duration=I),$e.size===void 0&&($e.size=B),$e.trackId=Z,$e.dts=P,$e.compositionTimeOffset===void 0&&($e.compositionTimeOffset=0),typeof P=="bigint"?($e.pts=P+L1.BigInt($e.compositionTimeOffset),P+=L1.BigInt($e.duration)):($e.pts=P+$e.compositionTimeOffset,P+=$e.duration)}),ee=ee.concat(be)}),ee},pa=function(S,M){var O=Du(S,["moof","traf"]),P=Du(S,["mdat"]),I={},B=[];return P.forEach(function(Z,ee){var se=O[ee];B.push({mdat:Z,traf:se})}),B.forEach(function(Z){var ee=Z.mdat,se=Z.traf,fe=Du(se,["tfhd"]),be=Wp(fe[0]),$e=be.trackId,dt=Du(se,["tfdt"]),Xe=dt.length>0?I1(dt[0]).baseMediaDecodeTime:0,kt=Du(se,["trun"]),W,ti;M===$e&&kt.length>0&&(W=Xc(kt,Xe,be),ti=XC(ee,W,$e),I[$e]||(I[$e]={seiNals:[],logs:[]}),I[$e].seiNals=I[$e].seiNals.concat(ti.seiNals),I[$e].logs=I[$e].logs.concat(ti.logs))}),I},F1=function(S,M,O){var P;if(M===null)return null;P=pa(S,M);var I=P[M]||{};return{seiNals:I.seiNals,logs:I.logs,timescale:O}},YC=function(){var S=!1,M,O,P,I,B,Z;this.isInitialized=function(){return S},this.init=function(ee){M=new jC,S=!0,Z=ee?ee.isPartial:!1,M.on("data",function(se){se.startTime=se.startPts/I,se.endTime=se.endPts/I,B.captions.push(se),B.captionStreams[se.stream]=!0}),M.on("log",function(se){B.logs.push(se)})},this.isNewInit=function(ee,se){return ee&&ee.length===0||se&&typeof se=="object"&&Object.keys(se).length===0?!1:P!==ee[0]||I!==se[P]},this.parse=function(ee,se,fe){var be;if(this.isInitialized()){if(!se||!fe)return null;if(this.isNewInit(se,fe))P=se[0],I=fe[P];else if(P===null||!I)return O.push(ee),null}else return null;for(;O.length>0;){var $e=O.shift();this.parse($e,se,fe)}return be=F1(ee,P,I),be&&be.logs&&(B.logs=B.logs.concat(be.logs)),be===null||!be.seiNals?B.logs.length?{logs:B.logs,captions:[],captionStreams:[]}:null:(this.pushNals(be.seiNals),this.flushStream(),B)},this.pushNals=function(ee){if(!this.isInitialized()||!ee||ee.length===0)return null;ee.forEach(function(se){M.push(se)})},this.flushStream=function(){if(!this.isInitialized())return null;Z?M.partialFlush():M.flush()},this.clearParsedCaptions=function(){B.captions=[],B.captionStreams={},B.logs=[]},this.resetCaptionStream=function(){if(!this.isInitialized())return null;M.reset()},this.clearAllCaptions=function(){this.clearParsedCaptions(),this.resetCaptionStream()},this.reset=function(){O=[],P=null,I=null,B?this.clearParsedCaptions():B={captions:[],captionStreams:{},logs:[]},this.resetCaptionStream()},this.reset()},KC=YC,ZC=function(S){for(var M=0,O=String.fromCharCode(S[M]),P="";O!=="\0";)P+=O,M++,O=String.fromCharCode(S[M]);return P+=O,P},QC={uint8ToCString:ZC},Gp=QC.uint8ToCString,Yc=s.getUint64,ye=function(S){var M=4,O=S[0],P,I,B,Z,ee,se,fe,be;if(O===0){P=Gp(S.subarray(M)),M+=P.length,I=Gp(S.subarray(M)),M+=I.length;var $e=new DataView(S.buffer);B=$e.getUint32(M),M+=4,ee=$e.getUint32(M),M+=4,se=$e.getUint32(M),M+=4,fe=$e.getUint32(M),M+=4}else if(O===1){var $e=new DataView(S.buffer);B=$e.getUint32(M),M+=4,Z=Yc(S.subarray(M)),M+=8,se=$e.getUint32(M),M+=4,fe=$e.getUint32(M),M+=4,P=Gp(S.subarray(M)),M+=P.length,I=Gp(S.subarray(M)),M+=I.length}be=new Uint8Array(S.subarray(M,S.byteLength));var dt={scheme_id_uri:P,value:I,timescale:B||1,presentation_time:Z,presentation_time_delta:ee,event_duration:se,id:fe,message_data:be};return ze(O,dt)?dt:void 0},Ge=function(S,M,O,P){return S||S===0?S/M:P+O/M},ze=function(S,M){var O=M.scheme_id_uri!=="\0",P=S===0&&yt(M.presentation_time_delta)&&O,I=S===1&&yt(M.presentation_time)&&O;return!(S>1)&&P||I},yt=function(S){return S!==void 0||S!==null},qt={parseEmsgBox:ye,scaleTime:Ge},xn=Fd.toUnsigned,fi=Fd.toHexString,Ut=Hp,Cl=$p,h_=qt,Is=k1,jp=R1,JC=Vp,Kc=s.getUint64,Ud,$d,Rn,N1,p_,Zc,B1,m_=Mu,eA=Eu.parseId3Frames;Ud=function(S){var M={},O=Ut(S,["moov","trak"]);return O.reduce(function(P,I){var B,Z,ee,se,fe;return B=Ut(I,["tkhd"])[0],!B||(Z=B[0],ee=Z===0?12:20,se=xn(B[ee]<<24|B[ee+1]<<16|B[ee+2]<<8|B[ee+3]),fe=Ut(I,["mdia","mdhd"])[0],!fe)?null:(Z=fe[0],ee=Z===0?12:20,P[se]=xn(fe[ee]<<24|fe[ee+1]<<16|fe[ee+2]<<8|fe[ee+3]),P)},M)},$d=function(S,M){var O;O=Ut(M,["moof","traf"]);var P=O.reduce(function(I,B){var Z=Ut(B,["tfhd"])[0],ee=xn(Z[4]<<24|Z[5]<<16|Z[6]<<8|Z[7]),se=S[ee]||9e4,fe=Ut(B,["tfdt"])[0],be=new DataView(fe.buffer,fe.byteOffset,fe.byteLength),$e;fe[0]===1?$e=Kc(fe.subarray(4,12)):$e=be.getUint32(4);let dt;return typeof $e=="bigint"?dt=$e/m_.BigInt(se):typeof $e=="number"&&!isNaN($e)&&(dt=$e/se),dt<Number.MAX_SAFE_INTEGER&&(dt=Number(dt)),dt<I&&(I=dt),I},1/0);return typeof P=="bigint"||isFinite(P)?P:0},Rn=function(S,M){var O=Ut(M,["moof","traf"]),P=0,I=0,B;if(O&&O.length){var Z=Ut(O[0],["tfhd"])[0],ee=Ut(O[0],["trun"])[0],se=Ut(O[0],["tfdt"])[0];if(Z){var fe=Is(Z);B=fe.trackId}if(se){var be=JC(se);P=be.baseMediaDecodeTime}if(ee){var $e=jp(ee);$e.samples&&$e.samples.length&&(I=$e.samples[0].compositionTimeOffset||0)}}var dt=S[B]||9e4;typeof P=="bigint"&&(I=m_.BigInt(I),dt=m_.BigInt(dt));var Xe=(P+I)/dt;return typeof Xe=="bigint"&&Xe<Number.MAX_SAFE_INTEGER&&(Xe=Number(Xe)),Xe},N1=function(S){var M=Ut(S,["moov","trak"]),O=[];return M.forEach(function(P){var I=Ut(P,["mdia","hdlr"]),B=Ut(P,["tkhd"]);I.forEach(function(Z,ee){var se=Cl(Z.subarray(8,12)),fe=B[ee],be,$e,dt;se==="vide"&&(be=new DataView(fe.buffer,fe.byteOffset,fe.byteLength),$e=be.getUint8(0),dt=$e===0?be.getUint32(12):be.getUint32(20),O.push(dt))})}),O},Zc=function(S){var M=S[0],O=M===0?12:20;return xn(S[O]<<24|S[O+1]<<16|S[O+2]<<8|S[O+3])},p_=function(S){var M=Ut(S,["moov","trak"]),O=[];return M.forEach(function(P){var I={},B=Ut(P,["tkhd"])[0],Z,ee;B&&(Z=new DataView(B.buffer,B.byteOffset,B.byteLength),ee=Z.getUint8(0),I.id=ee===0?Z.getUint32(12):Z.getUint32(20));var se=Ut(P,["mdia","hdlr"])[0];if(se){var fe=Cl(se.subarray(8,12));fe==="vide"?I.type="video":fe==="soun"?I.type="audio":I.type=fe}var be=Ut(P,["mdia","minf","stbl","stsd"])[0];if(be){var $e=be.subarray(8);I.codec=Cl($e.subarray(4,8));var dt=Ut($e,[I.codec])[0],Xe,kt;dt&&(/^[asm]vc[1-9]$/i.test(I.codec)?(Xe=dt.subarray(78),kt=Cl(Xe.subarray(4,8)),kt==="avcC"&&Xe.length>11?(I.codec+=".",I.codec+=fi(Xe[9]),I.codec+=fi(Xe[10]),I.codec+=fi(Xe[11])):I.codec="avc1.4d400d"):/^mp4[a,v]$/i.test(I.codec)?(Xe=dt.subarray(28),kt=Cl(Xe.subarray(4,8)),kt==="esds"&&Xe.length>20&&Xe[19]!==0?(I.codec+="."+fi(Xe[19]),I.codec+="."+fi(Xe[20]>>>2&63).replace(/^0/,"")):I.codec="mp4a.40.2"):I.codec=I.codec.toLowerCase())}var W=Ut(P,["mdia","mdhd"])[0];W&&(I.timescale=Zc(W)),O.push(I)}),O},B1=function(S,M=0){var O=Ut(S,["emsg"]);return O.map(P=>{var I=h_.parseEmsgBox(new Uint8Array(P)),B=eA(I.message_data);return{cueTime:h_.scaleTime(I.presentation_time,I.timescale,I.presentation_time_delta,M),duration:h_.scaleTime(I.event_duration,I.timescale),frames:B}})};var Qc={findBox:Ut,parseType:Cl,timescale:Ud,startTime:$d,compositionStartTime:Rn,videoTrackIds:N1,tracks:p_,getTimescaleFromMediaHeader:Zc,getEmsgID3:B1},ro=At,zd=function(S){var M=S[1]&31;return M<<=8,M|=S[2],M},Hd=function(S){return!!(S[1]&64)},Pu=function(S){var M=0;return(S[3]&48)>>>4>1&&(M+=S[4]+1),M},U1=function(S,M){var O=zd(S);return O===0?"pat":O===M?"pmt":M?"pes":null},$1=function(S){var M=Hd(S),O=4+Pu(S);return M&&(O+=S[O]+1),(S[O+10]&31)<<8|S[O+11]},qp=function(S){var M={},O=Hd(S),P=4+Pu(S);if(O&&(P+=S[P]+1),!!(S[P+5]&1)){var I,B,Z;I=(S[P+1]&15)<<8|S[P+2],B=3+I-4,Z=(S[P+10]&15)<<8|S[P+11];for(var ee=12+Z;ee<B;){var se=P+ee;
271M[(S[se+1]&31)<<8|S[se+2]]=S[se],ee+=((S[se+3]&15)<<8|S[se+4])+5}return M}},z1=function(S,M){var O=zd(S),P=M[O];switch(P){case ro.H264_STREAM_TYPE:return"video";case ro.ADTS_STREAM_TYPE:return"audio";case ro.METADATA_STREAM_TYPE:return"timed-metadata";default:return null}},Vd=function(S){var M=Hd(S);if(!M)return null;var O=4+Pu(S);if(O>=S.byteLength)return null;var P=null,I;return I=S[O+7],I&192&&(P={},P.pts=(S[O+9]&14)<<27|(S[O+10]&255)<<20|(S[O+11]&254)<<12|(S[O+12]&255)<<5|(S[O+13]&254)>>>3,P.pts*=4,P.pts+=(S[O+13]&6)>>>1,P.dts=P.pts,I&64&&(P.dts=(S[O+14]&14)<<27|(S[O+15]&255)<<20|(S[O+16]&254)<<12|(S[O+17]&255)<<5|(S[O+18]&254)>>>3,P.dts*=4,P.dts+=(S[O+18]&6)>>>1)),P},zo=function(S){switch(S){case 5:return"slice_layer_without_partitioning_rbsp_idr";case 6:return"sei_rbsp";case 7:return"seq_parameter_set_rbsp";case 8:return"pic_parameter_set_rbsp";case 9:return"access_unit_delimiter_rbsp";default:return null}},Xp=function(S){for(var M=4+Pu(S),O=S.subarray(M),P=0,I=0,B=!1,Z;I<O.byteLength-3;I++)if(O[I+2]===1){P=I+5;break}for(;P<O.byteLength;)switch(O[P]){case 0:if(O[P-1]!==0){P+=2;break}else if(O[P-2]!==0){P++;break}I+3!==P-2&&(Z=zo(O[I+3]&31),Z==="slice_layer_without_partitioning_rbsp_idr"&&(B=!0));do P++;while(O[P]!==1&&P<O.length);I=P-2,P+=3;break;case 1:if(O[P-1]!==0||O[P-2]!==0){P+=3;break}Z=zo(O[I+3]&31),Z==="slice_layer_without_partitioning_rbsp_idr"&&(B=!0),I=P-2,P+=3;break;default:P+=3;break}return O=O.subarray(I),P-=I,I=0,O&&O.byteLength>3&&(Z=zo(O[I+3]&31),Z==="slice_layer_without_partitioning_rbsp_idr"&&(B=!0)),B},tA={parseType:U1,parsePat:$1,parsePmt:qp,parsePayloadUnitStartIndicator:Hd,parsePesType:z1,parsePesTime:Vd,videoPacketContainsKeyFrame:Xp},H1=At,Jc=$i.handleRollover,Mn={};Mn.ts=tA,Mn.aac=o_;var so=ie.ONE_SECOND_IN_TS,ir=188,ao=71,V1=function(S,M){for(var O=0,P=ir,I,B;P<S.byteLength;){if(S[O]===ao&&S[P]===ao){switch(I=S.subarray(O,P),B=Mn.ts.parseType(I,M.pid),B){case"pat":M.pid=Mn.ts.parsePat(I);break;case"pmt":var Z=Mn.ts.parsePmt(I);M.table=M.table||{},Object.keys(Z).forEach(function(ee){M.table[ee]=Z[ee]});break}O+=ir,P+=ir;continue}O++,P++}},W1=function(S,M,O){for(var P=0,I=ir,B,Z,ee,se,fe,be=!1;I<=S.byteLength;){if(S[P]===ao&&(S[I]===ao||I===S.byteLength)){switch(B=S.subarray(P,I),Z=Mn.ts.parseType(B,M.pid),Z){case"pes":ee=Mn.ts.parsePesType(B,M.table),se=Mn.ts.parsePayloadUnitStartIndicator(B),ee==="audio"&&se&&(fe=Mn.ts.parsePesTime(B),fe&&(fe.type="audio",O.audio.push(fe),be=!0));break}if(be)break;P+=ir,I+=ir;continue}P++,I++}for(I=S.byteLength,P=I-ir,be=!1;P>=0;){if(S[P]===ao&&(S[I]===ao||I===S.byteLength)){switch(B=S.subarray(P,I),Z=Mn.ts.parseType(B,M.pid),Z){case"pes":ee=Mn.ts.parsePesType(B,M.table),se=Mn.ts.parsePayloadUnitStartIndicator(B),ee==="audio"&&se&&(fe=Mn.ts.parsePesTime(B),fe&&(fe.type="audio",O.audio.push(fe),be=!0));break}if(be)break;P-=ir,I-=ir;continue}P--,I--}},nA=function(S,M,O){for(var P=0,I=ir,B,Z,ee,se,fe,be,$e,dt,Xe=!1,kt={data:[],size:0};I<S.byteLength;){if(S[P]===ao&&S[I]===ao){switch(B=S.subarray(P,I),Z=Mn.ts.parseType(B,M.pid),Z){case"pes":if(ee=Mn.ts.parsePesType(B,M.table),se=Mn.ts.parsePayloadUnitStartIndicator(B),ee==="video"&&(se&&!Xe&&(fe=Mn.ts.parsePesTime(B),fe&&(fe.type="video",O.video.push(fe),Xe=!0)),!O.firstKeyFrame)){if(se&&kt.size!==0){for(be=new Uint8Array(kt.size),$e=0;kt.data.length;)dt=kt.data.shift(),be.set(dt,$e),$e+=dt.byteLength;if(Mn.ts.videoPacketContainsKeyFrame(be)){var W=Mn.ts.parsePesTime(be);W?(O.firstKeyFrame=W,O.firstKeyFrame.type="video"):console.warn("Failed to extract PTS/DTS from PES at first keyframe. This could be an unusual TS segment, or else mux.js did not parse your TS segment correctly. If you know your TS segments do contain PTS/DTS on keyframes please file a bug report! You can try ffprobe to double check for yourself.")}kt.size=0}kt.data.push(B),kt.size+=B.byteLength}break}if(Xe&&O.firstKeyFrame)break;P+=ir,I+=ir;continue}P++,I++}for(I=S.byteLength,P=I-ir,Xe=!1;P>=0;){if(S[P]===ao&&S[I]===ao){switch(B=S.subarray(P,I),Z=Mn.ts.parseType(B,M.pid),Z){case"pes":ee=Mn.ts.parsePesType(B,M.table),se=Mn.ts.parsePayloadUnitStartIndicator(B),ee==="video"&&se&&(fe=Mn.ts.parsePesTime(B),fe&&(fe.type="video",O.video.push(fe),Xe=!0));break}if(Xe)break;P-=ir,I-=ir;
271continue}P--,I--}},zi=function(S,M){if(S.audio&&S.audio.length){var O=M;(typeof O>"u"||isNaN(O))&&(O=S.audio[0].dts),S.audio.forEach(function(B){B.dts=Jc(B.dts,O),B.pts=Jc(B.pts,O),B.dtsTime=B.dts/so,B.ptsTime=B.pts/so})}if(S.video&&S.video.length){var P=M;if((typeof P>"u"||isNaN(P))&&(P=S.video[0].dts),S.video.forEach(function(B){B.dts=Jc(B.dts,P),B.pts=Jc(B.pts,P),B.dtsTime=B.dts/so,B.ptsTime=B.pts/so}),S.firstKeyFrame){var I=S.firstKeyFrame;I.dts=Jc(I.dts,P),I.pts=Jc(I.pts,P),I.dtsTime=I.dts/so,I.ptsTime=I.pts/so}}},fr=function(S){for(var M=!1,O=0,P=null,I=null,B=0,Z=0,ee;S.length-Z>=3;){var se=Mn.aac.parseType(S,Z);switch(se){case"timed-metadata":if(S.length-Z<10){M=!0;break}if(B=Mn.aac.parseId3TagSize(S,Z),B>S.length){M=!0;break}I===null&&(ee=S.subarray(Z,Z+B),I=Mn.aac.parseAacTimestamp(ee)),Z+=B;break;case"audio":if(S.length-Z<7){M=!0;break}if(B=Mn.aac.parseAdtsSize(S,Z),B>S.length){M=!0;break}P===null&&(ee=S.subarray(Z,Z+B),P=Mn.aac.parseSampleRate(ee)),O++,Z+=B;break;default:Z++;break}if(M)return null}if(P===null||I===null)return null;var fe=so/P,be={audio:[{type:"audio",dts:I,pts:I},{type:"audio",dts:I+O*1024*fe,pts:I+O*1024*fe}]};return be},iA=function(S){var M={pid:null,table:null},O={};V1(S,M);for(var P in M.table)if(M.table.hasOwnProperty(P)){var I=M.table[P];switch(I){case H1.H264_STREAM_TYPE:O.video=[],nA(S,M,O),O.video.length===0&&delete O.video;break;case H1.ADTS_STREAM_TYPE:O.audio=[],W1(S,M,O),O.audio.length===0&&delete O.audio;break}}return O},rA=function(S,M){var O=Mn.aac.isLikelyAacData(S),P;return O?P=fr(S):P=iA(S),!P||!P.audio&&!P.video?null:(zi(P,M),P)},G1={inspect:rA,parseAudioPes_:W1};const sA=function(S,M){M.on("data",function(O){const P=O.initSegment;O.initSegment={data:P.buffer,byteOffset:P.byteOffset,byteLength:P.byteLength};const I=O.data;O.data=I.buffer,S.postMessage({action:"data",segment:O,byteOffset:I.byteOffset,byteLength:I.byteLength},[O.data])}),M.on("done",function(O){S.postMessage({action:"done"})}),M.on("gopInfo",function(O){S.postMessage({action:"gopInfo",gopInfo:O})}),M.on("videoSegmentTimingInfo",function(O){const P={start:{decode:ie.videoTsToSeconds(O.start.dts),presentation:ie.videoTsToSeconds(O.start.pts)},end:{decode:ie.videoTsToSeconds(O.end.dts),presentation:ie.videoTsToSeconds(O.end.pts)},baseMediaDecodeTime:ie.videoTsToSeconds(O.baseMediaDecodeTime)};O.prependedContentDuration&&(P.prependedContentDuration=ie.videoTsToSeconds(O.prependedContentDuration)),S.postMessage({action:"videoSegmentTimingInfo",videoSegmentTimingInfo:P})}),M.on("audioSegmentTimingInfo",function(O){const P={start:{decode:ie.videoTsToSeconds(O.start.dts),presentation:ie.videoTsToSeconds(O.start.pts)},end:{decode:ie.videoTsToSeconds(O.end.dts),presentation:ie.videoTsToSeconds(O.end.pts)},baseMediaDecodeTime:ie.videoTsToSeconds(O.baseMediaDecodeTime)};O.prependedContentDuration&&(P.prependedContentDuration=ie.videoTsToSeconds(O.prependedContentDuration)),S.postMessage({action:"audioSegmentTimingInfo",audioSegmentTimingInfo:P})}),M.on("id3Frame",function(O){S.postMessage({action:"id3Frame",id3Frame:O})}),M.on("caption",function(O){S.postMessage({action:"caption",caption:O})}),M.on("trackinfo",function(O){S.postMessage({action:"trackinfo",trackInfo:O})}),M.on("audioTimingInfo",function(O){S.postMessage({action:"audioTimingInfo",audioTimingInfo:{start:ie.videoTsToSeconds(O.start),end:ie.videoTsToSeconds(O.end)}})}),M.on("videoTimingInfo",function(O){S.postMessage({action:"videoTimingInfo",videoTimingInfo:{start:ie.videoTsToSeconds(O.start),end:ie.videoTsToSeconds(O.end)}})}),M.on("log",function(O){S.postMessage({action:"log",log:O})})};class Yp{constructor(M,O){this.options=O||{},this.self=M,this.init()}init(){this.transmuxer&&this.transmuxer.dispose(),this.transmuxer=new qc.Transmuxer(this.options),sA(this.self,this.transmuxer)}pushMp4Captions(M){this.captionParser||(this.captionParser=new KC,this.captionParser.init());const O=new Uint8Array(M.data,M.byteOffset,M.byteLength),P=this.captionParser.parse(O,M.trackIds,M.timescales);this.self.postMessage({action:"mp4Captions",captions:P&&P.captions||[],logs:P&&P.logs||[],data:O.buffer},[O.buffer])}probeMp4StartTime({timescales:M,data:O}){const P=Qc.startTime(M,O);this.self.postMessage({action:"probeMp4StartTime",startTime:P,data:O},[O.buffer])}probeMp4Tracks({data:M}){const O=Qc.tracks(M);this.self.postMessage({action:"probeMp4Tracks",tracks:O,data:M},[M.buffer])}probeEmsgID3({data:M,offset:O}){const P=Qc.getEmsgID3(M,O);this.self.postMessage({action:"probeEmsgID3",id3Frames:P,emsgData:M},[M.buffer])}probeTs({data:M,baseStartTime:O}){const P=typeof O=="number"&&!isNaN(O)?O*ie.ONE_SECOND_IN_TS:void 0,I=G1.inspect(M,P);let B=null;I&&(B={hasVideo:I.video&&I.video.length===2||!1,hasAudio:I.audio&&I.audio.length===2||!1},B.hasVideo&&(B.videoStart=I.video[0].ptsTime),B.hasAudio&&(B.audioStart=I.audio[0].ptsTime)),this.self.postMessage({action:"probeTs",result:B,data:M},[M.buffer])}clearAllMp4Captions(){this.captionParser&&this.captionParser.clearAllCaptions()}clearParsedMp4Captions(){this.captionParser&&this.captionParser.clearParsedCaptions()}
271push(M){const O=new Uint8Array(M.data,M.byteOffset,M.byteLength);this.transmuxer.push(O)}reset(){this.transmuxer.reset()}setTimestampOffset(M){const O=M.timestampOffset||0;this.transmuxer.setBaseMediaDecodeTime(Math.round(ie.secondsToVideoTs(O)))}setAudioAppendStart(M){this.transmuxer.setAudioAppendStart(Math.ceil(ie.secondsToVideoTs(M.appendStart)))}setRemux(M){this.transmuxer.setRemux(M.remux)}flush(M){this.transmuxer.flush(),self.postMessage({action:"done",type:"transmuxed"})}endTimeline(){this.transmuxer.endTimeline(),self.postMessage({action:"endedtimeline",type:"transmuxed"})}alignGopsWith(M){this.transmuxer.alignGopsWith(M.gopsToAlignWith.slice())}}self.onmessage=function(S){if(S.data.action==="init"&&S.data.options){this.messageHandlers=new Yp(self,S.data.options);return}this.messageHandlers||(this.messageHandlers=new Yp(self)),S.data&&S.data.action&&S.data.action!=="init"&&this.messageHandlers[S.data.action]&&this.messageHandlers[S.data.action](S.data)}}));var Qxe=lK(Zxe);const Jxe=(t,e,n)=>{const{type:i,initSegment:r,captions:s,captionStreams:a,metadata:o,videoFrameDtsTime:l,videoFramePtsTime:u}=t.data.segment;e.buffer.push({captions:s,captionStreams:a,metadata:o});const c=t.data.segment.boxes||{data:t.data.segment.data},f={type:i,data:new Uint8Array(c.data,c.data.byteOffset,c.data.byteLength),initSegment:new Uint8Array(r.data,r.byteOffset,r.byteLength)};typeof l<"u"&&(f.videoFrameDtsTime=l),typeof u<"u"&&(f.videoFramePtsTime=u),n(f)},eSe=({transmuxedData:t,callback:e})=>{t.buffer=[],e(t)},tSe=(t,e)=>{e.gopInfo=t.data.gopInfo},fK=t=>{const{transmuxer:e,bytes:n,audioAppendStart:i,gopsToAlignWith:r,remux:s,onData:a,onTrackInfo:o,onAudioTimingInfo:l,onVideoTimingInfo:u,onVideoSegmentTimingInfo:c,onAudioSegmentTimingInfo:f,onId3:h,onCaptions:p,onDone:m,onEndedTimeline:y,onTransmuxerLog:v,isEndOfTimeline:_}=t,b={buffer:[]};let x=_;const T=E=>{e.currentTransmux===t&&(E.data.action==="data"&&Jxe(E,b,a),E.data.action==="trackinfo"&&o(E.data.trackInfo),E.data.action==="gopInfo"&&tSe(E,b),E.data.action==="audioTimingInfo"&&l(E.data.audioTimingInfo),E.data.action==="videoTimingInfo"&&u(E.data.videoTimingInfo),E.data.action==="videoSegmentTimingInfo"&&c(E.data.videoSegmentTimingInfo),E.data.action==="audioSegmentTimingInfo"&&f(E.data.audioSegmentTimingInfo),E.data.action==="id3Frame"&&h([E.data.id3Frame],E.data.id3Frame.dispatchType),E.data.action==="caption"&&p(E.data.caption),E.data.action==="endedtimeline"&&(x=!1,y()),E.data.action==="log"&&v(E.data.log),E.data.type==="transmuxed"&&(x||(e.onmessage=null,eSe({transmuxedData:b,callback:m}),dK(e))))};if(e.onmessage=T,i&&e.postMessage({action:"setAudioAppendStart",appendStart:i}),Array.isArray(r)&&e.postMessage({action:"alignGopsWith",gopsToAlignWith:r}),typeof s<"u"&&e.postMessage({action:"setRemux",remux:s}),n.byteLength){const E=n instanceof ArrayBuffer?n:n.buffer,C=n instanceof ArrayBuffer?0:n.byteOffset;e.postMessage({action:"push",data:E,byteOffset:C,byteLength:n.byteLength},[E])}_&&e.postMessage({action:"endTimeline"}),e.postMessage({action:"flush"})},dK=t=>{t.currentTransmux=null,t.transmuxQueue.length&&(t.currentTransmux=t.transmuxQueue.shift(),typeof t.currentTransmux=="function"?t.currentTransmux():fK(t.currentTransmux))},GB=(t,e)=>{t.postMessage({action:e}),dK(t)},hK=(t,e)=>{if(!e.currentTransmux){e.currentTransmux=t,GB(e,t);return}e.transmuxQueue.push(GB.bind(null,e,t))},nSe=t=>{hK("reset",t)},iSe=t=>{hK("endTimeline",t)},pK=t=>{if(!t.transmuxer.currentTransmux){t.transmuxer.currentTransmux=t,fK(t);return}t.transmuxer.transmuxQueue.push(t)},rSe=t=>{const e=new Qxe;e.currentTransmux=null,e.transmuxQueue=[];const n=e.terminate;return e.terminate=()=>(e.currentTransmux=null,e.transmuxQueue.length=0,n.call(e)),e.postMessage({action:"init",options:t}),e};var JM={reset:nSe,endTimeline:iSe,transmux:pK,createTransmuxer:rSe};const oy=function(t){const e=t.transmuxer,n=t.endAction||t.action,i=t.callback,r=Do({},t,{endAction:null,transmuxer:null,callback:null}),s=a=>{a.data.action===n&&(e.removeEventListener("message",s),a.data.data&&(a.data.data=new Uint8Array(a.data.data,t.byteOffset||0,t.byteLength||a.data.data.byteLength),t.data&&(t.data=a.data.data)),i(a.data))};if(e.addEventListener("message",s),t.data){const a=t.data instanceof ArrayBuffer;r.byteOffset=a?0:t.data.byteOffset,r.byteLength=t.data.byteLength;const o=[a?t.data:t.data.buffer];e.postMessage(r,o)}else e.postMessage(r)},Kl={FAILURE:2,TIMEOUT:-101,ABORTED:-102},UO=t=>
271{t.forEach(e=>{e.abort()})},sSe=t=>({bandwidth:t.bandwidth,bytesReceived:t.bytesReceived||0,roundTripTime:t.roundTripTime||0}),aSe=t=>{const e=t.target,i={bandwidth:1/0,bytesReceived:0,roundTripTime:Date.now()-e.requestTime||0};return i.bytesReceived=t.loaded,i.bandwidth=Math.floor(i.bytesReceived/i.roundTripTime*8*1e3),i},$L=(t,e)=>e.timedout?{status:e.status,message:"HLS request timed-out at URL: "+e.uri,code:Kl.TIMEOUT,xhr:e}:e.aborted?{status:e.status,message:"HLS request aborted at URL: "+e.uri,code:Kl.ABORTED,xhr:e}:t?{status:e.status,message:"HLS request errored at URL: "+e.uri,code:Kl.FAILURE,xhr:e}:e.responseType==="arraybuffer"&&e.response.byteLength===0?{status:e.status,message:"Empty HLS response at URL: "+e.uri,code:Kl.FAILURE,xhr:e}:null,jB=(t,e,n)=>(i,r)=>{const s=r.response,a=$L(i,r);if(a)return n(a,t);if(s.byteLength!==16)return n({status:r.status,message:"Invalid HLS key at URL: "+r.uri,code:Kl.FAILURE,xhr:r},t);const o=new DataView(s),l=new Uint32Array([o.getUint32(0),o.getUint32(4),o.getUint32(8),o.getUint32(12)]);for(let u=0;u<e.length;u++)e[u].bytes=l;return n(null,t)},mK=(t,e)=>{const n=sL(t.map.bytes);if(n!=="mp4"){const i=t.map.resolvedUri||t.map.uri,r=n||"unknown";return e({internal:!0,message:`Found unsupported ${r} container for initialization segment at URL: ${i}`,code:Kl.FAILURE,metadata:{errorType:Be.Error.UnsupportedMediaInitialization,mediaType:r}})}oy({action:"probeMp4Tracks",data:t.map.bytes,transmuxer:t.transmuxer,callback:({tracks:i,data:r})=>(t.map.bytes=r,i.forEach(function(s){t.map.tracks=t.map.tracks||{},!t.map.tracks[s.type]&&(t.map.tracks[s.type]=s,typeof s.id=="number"&&s.timescale&&(t.map.timescales=t.map.timescales||{},t.map.timescales[s.id]=s.timescale))}),e(null))})},oSe=({segment:t,finishProcessingFn:e})=>(n,i)=>{const r=$L(n,i);if(r)return e(r,t);const s=new Uint8Array(i.response);if(t.map.key)return t.map.encryptedBytes=s,e(null,t);t.map.bytes=s,mK(t,function(a){if(a)return a.xhr=i,a.status=i.status,e(a,t);e(null,t)})},lSe=({segment:t,finishProcessingFn:e,responseType:n})=>(i,r)=>{const s=$L(i,r);if(s)return e(s,t);const a=n==="arraybuffer"||!r.responseText?r.response:Yxe(r.responseText.substring(t.lastReachedChar||0));return t.stats=sSe(r),t.key?t.encryptedBytes=new Uint8Array(a):t.bytes=new Uint8Array(a),e(null,t)},uSe=({segment:t,bytes:e,trackInfoFn:n,timingInfoFn:i,videoSegmentTimingInfoFn:r,audioSegmentTimingInfoFn:s,id3Fn:a,captionsFn:o,isEndOfTimeline:l,endedTimelineFn:u,dataFn:c,doneFn:f,onTransmuxerLog:h})=>{const p=t.map&&t.map.tracks||{},m=Boolean(p.audio&&p.video);let y=i.bind(null,t,"audio","start");const v=i.bind(null,t,"audio","end");let _=i.bind(null,t,"video","start");const b=i.bind(null,t,"video","end"),x=()=>pK({bytes:e,transmuxer:t.transmuxer,audioAppendStart:t.audioAppendStart,gopsToAlignWith:t.gopsToAlignWith,remux:m,onData:T=>{T.type=T.type==="combined"?"video":T.type,c(t,T)},onTrackInfo:T=>{n&&(m&&(T.isMuxed=!0),n(t,T))},onAudioTimingInfo:T=>{y&&typeof T.start<"u"&&(y(T.start),y=null),v&&typeof T.end<"u"&&v(T.end)},onVideoTimingInfo:T=>{_&&typeof T.start<"u"&&(_(T.start),_=null),b&&typeof T.end<"u"&&b(T.end)},onVideoSegmentTimingInfo:T=>{r(T)},onAudioSegmentTimingInfo:T=>{s(T)},onId3:(T,E)=>{a(t,T,E)},onCaptions:T=>{o(t,[T])},isEndOfTimeline:l,onEndedTimeline:()=>{u()},onTransmuxerLog:h,onDone:T=>{!f||(T.type=T.type==="combined"?"video":T.type,f(null,t,T))}});oy({action:"probeTs",transmuxer:t.transmuxer,data:e,baseStartTime:t.baseStartTime,callback:T=>{t.bytes=e=T.data;const E=T.result;E&&(n(t,{hasAudio:E.hasAudio,hasVideo:E.hasVideo,isMuxed:m}),n=null),x()}})},gK=({segment:t,bytes:e,trackInfoFn:n,timingInfoFn:i,videoSegmentTimingInfoFn:r,audioSegmentTimingInfoFn:s,id3Fn:a,captionsFn:o,isEndOfTimeline:l,endedTimelineFn:u,dataFn:c,doneFn:f,onTransmuxerLog:h})=>{let p=new Uint8Array(e);if(Fbe(p)){t.isFmp4=!0;const{tracks:m}=t.map,y={isFmp4:!0,hasVideo:!!m.video,hasAudio:!!m.audio};m.audio&&m.audio.codec&&m.audio.codec!=="enca"&&(y.audioCodec=m.audio.codec),m.video&&m.video.codec&&m.video.codec!=="encv"&&(y.videoCodec=m.video.codec),m.video&&m.audio&&(y.isMuxed=!0),n(t,y);const v=(_,b)=>{c(t,{data:p,type:y.hasAudio&&!y.isMuxed?"audio":"video"}),b&&b.length&&a(t,b),_&&_.length&&o(t,_),f(null,t,{})};oy({action:"probeMp4StartTime",timescales:t.map.timescales,data:p,transmuxer:t.transmuxer,callback:({data:_,startTime:b})=>{e=_.buffer,t.bytes=p=_,y.hasAudio&&!y.isMuxed&&i(t,"audio","start",b),y.hasVideo&&i(t,"video","start",b),oy({action:"probeEmsgID3",data:p,transmuxer:t.transmuxer,offset:b,callback:({emsgData:x,id3Frames:T})=>
vendor: 10,076 bytes, line 271
271{if(e=x.buffer,t.bytes=p=x,!m.video||!x.byteLength||!t.transmuxer){v(void 0,T);return}oy({action:"pushMp4Captions",endAction:"mp4Captions",transmuxer:t.transmuxer,data:p,timescales:t.map.timescales,trackIds:[m.video.id],callback:E=>{e=E.data.buffer,t.bytes=p=E.data,E.logs.forEach(function(C){h(Un(C,{stream:"mp4CaptionParser"}))}),v(E.captions,T)}})}})}});return}if(!t.transmuxer){f(null,t,{});return}if(typeof t.container>"u"&&(t.container=sL(p)),t.container!=="ts"&&t.container!=="aac"){n(t,{hasAudio:!1,hasVideo:!1}),f(null,t,{});return}uSe({segment:t,bytes:e,trackInfoFn:n,timingInfoFn:i,videoSegmentTimingInfoFn:r,audioSegmentTimingInfoFn:s,id3Fn:a,captionsFn:o,isEndOfTimeline:l,endedTimelineFn:u,dataFn:c,doneFn:f,onTransmuxerLog:h})},_K=function({id:t,key:e,encryptedBytes:n,decryptionWorker:i},r){const s=o=>{if(o.data.source===t){i.removeEventListener("message",s);const l=o.data.decrypted;r(new Uint8Array(l.bytes,l.byteOffset,l.byteLength))}};i.addEventListener("message",s);let a;e.bytes.slice?a=e.bytes.slice():a=new Uint32Array(Array.prototype.slice.call(e.bytes)),i.postMessage(nK({source:t,encrypted:n,key:a,iv:e.iv}),[n.buffer,a.buffer])},cSe=({decryptionWorker:t,segment:e,trackInfoFn:n,timingInfoFn:i,videoSegmentTimingInfoFn:r,audioSegmentTimingInfoFn:s,id3Fn:a,captionsFn:o,isEndOfTimeline:l,endedTimelineFn:u,dataFn:c,doneFn:f,onTransmuxerLog:h})=>{_K({id:e.requestId,key:e.key,encryptedBytes:e.encryptedBytes,decryptionWorker:t},p=>{e.bytes=p,gK({segment:e,bytes:e.bytes,trackInfoFn:n,timingInfoFn:i,videoSegmentTimingInfoFn:r,audioSegmentTimingInfoFn:s,id3Fn:a,captionsFn:o,isEndOfTimeline:l,endedTimelineFn:u,dataFn:c,doneFn:f,onTransmuxerLog:h})})},fSe=({activeXhrs:t,decryptionWorker:e,trackInfoFn:n,timingInfoFn:i,videoSegmentTimingInfoFn:r,audioSegmentTimingInfoFn:s,id3Fn:a,captionsFn:o,isEndOfTimeline:l,endedTimelineFn:u,dataFn:c,doneFn:f,onTransmuxerLog:h})=>{let p=0,m=!1;return(y,v)=>{if(!m){if(y)return m=!0,UO(t),f(y,v);if(p+=1,p===t.length){const _=function(){if(v.encryptedBytes)return cSe({decryptionWorker:e,segment:v,trackInfoFn:n,timingInfoFn:i,videoSegmentTimingInfoFn:r,audioSegmentTimingInfoFn:s,id3Fn:a,captionsFn:o,isEndOfTimeline:l,endedTimelineFn:u,dataFn:c,doneFn:f,onTransmuxerLog:h});gK({segment:v,bytes:v.bytes,trackInfoFn:n,timingInfoFn:i,videoSegmentTimingInfoFn:r,audioSegmentTimingInfoFn:s,id3Fn:a,captionsFn:o,isEndOfTimeline:l,endedTimelineFn:u,dataFn:c,doneFn:f,onTransmuxerLog:h})};if(v.endOfAllRequests=Date.now(),v.map&&v.map.encryptedBytes&&!v.map.bytes)return _K({decryptionWorker:e,id:v.requestId+"-init",encryptedBytes:v.map.encryptedBytes,key:v.map.key},b=>{v.map.bytes=b,mK(v,x=>{if(x)return UO(t),f(x,v);_()})});_()}}}},dSe=({loadendState:t,abortFn:e})=>n=>{n.target.aborted&&e&&!t.calledAbortFn&&(e(),t.calledAbortFn=!0)},hSe=({segment:t,progressFn:e,trackInfoFn:n,timingInfoFn:i,videoSegmentTimingInfoFn:r,audioSegmentTimingInfoFn:s,id3Fn:a,captionsFn:o,isEndOfTimeline:l,endedTimelineFn:u,dataFn:c})=>f=>{if(!f.target.aborted)return t.stats=Un(t.stats,aSe(f)),!t.stats.firstBytesReceivedAt&&t.stats.bytesReceived&&(t.stats.firstBytesReceivedAt=Date.now()),e(f,t)},pSe=({xhr:t,xhrOptions:e,decryptionWorker:n,segment:i,abortFn:r,progressFn:s,trackInfoFn:a,timingInfoFn:o,videoSegmentTimingInfoFn:l,audioSegmentTimingInfoFn:u,id3Fn:c,captionsFn:f,isEndOfTimeline:h,endedTimelineFn:p,dataFn:m,doneFn:y,onTransmuxerLog:v})=>{const _=[],b=fSe({activeXhrs:_,decryptionWorker:n,trackInfoFn:a,timingInfoFn:o,videoSegmentTimingInfoFn:l,audioSegmentTimingInfoFn:u,id3Fn:c,captionsFn:f,isEndOfTimeline:h,endedTimelineFn:p,dataFn:m,doneFn:y,onTransmuxerLog:v});if(i.key&&!i.key.bytes){const D=[i.key];i.map&&!i.map.bytes&&i.map.key&&i.map.key.resolvedUri===i.key.resolvedUri&&D.push(i.map.key);const R=Un(e,{uri:i.key.resolvedUri,responseType:"arraybuffer",requestType:"segment-key"}),A=jB(i,D,b),k=t(R,A);_.push(k)}if(i.map&&!i.map.bytes){if(i.map.key&&(!i.key||i.key.resolvedUri!==i.map.key.resolvedUri)){const F=Un(e,{uri:i.map.key.resolvedUri,responseType:"arraybuffer",requestType:"segment-key"}),N=jB(i,[i.map.key],b),U=t(F,N);_.push(U)}const R=Un(e,{uri:i.map.resolvedUri,responseType:"arraybuffer",headers:NO(i.map),requestType:"segment-media-initialization"}),A=oSe({segment:i,finishProcessingFn:b}),k=t(R,A);_.push(k)}const x=Un(e,{uri:i.part&&i.part.resolvedUri||i.resolvedUri,responseType:"arraybuffer",headers:NO(i),requestType:"segment"}),T=lSe({segment:i,finishProcessingFn:b,responseType:x.responseType}),E=t(x,T);E.addEventListener("progress",hSe({segment:i,progressFn:s,trackInfoFn:a,timingInfoFn:o,videoSegmentTimingInfoFn:l,audioSegmentTimingInfoFn:u,id3Fn:c,captionsFn:f,isEndOfTimeline:h,endedTimelineFn:p,dataFn:m})),_.push(E);const C={};return _.forEach(D=>{D.addEventListener("loadend",dSe({loadendState:C,abortFn:r}))}),()=>UO(_)},mSe=Fo("CodecUtils"),gSe=function(t){const e=t.attributes||{};if(e.CODECS)return Bl(e.CODECS)},vK=(t,e)=>{const n=e.attributes||{};return t&&t.mediaGroups&&t.mediaGroups.AUDIO&&n.AUDIO&&t.mediaGroups.AUDIO[n.AUDIO]},_Se=(t,e)=>{if(!vK(t,e))return!0;const n=e.attributes||{},i=t.mediaGroups.AUDIO[n.AUDIO];for(const r in i)if(!i[r].uri&&!i[r].playlists)return!0;return!1},Z2=function(t){const e={};return t.forEach(({mediaType:n,type:i,details:r})=>{e[n]=e[n]||[],e[n].push(Oq(`${i}${r}`))}),Object.keys(e).forEach(function(n){if(e[n].length>1){mSe(`multiple ${n} codecs found as attributes: ${e[n].join(", ")}. Setting playlist codecs to null so that we wait for mux.js to probe segments for real codecs.`),e[n]=null;return}e[n]=e[n][0]}),e},qB=function(t){let e=0;return t.audio&&e++,t.video&&e++,e},ly=function(t,e){const n=e.attributes||{},i=Z2(gSe(e)||[]);if(vK(t,e)&&!i.audio&&!_Se(t,e)){const r=Z2(Nve(t,n.AUDIO)||[]);r.audio&&(i.audio=r.audio)}return i},Jx=Fo("PlaylistSelector"),XB=function(t){if(!t||!t.playlist)return;const e=t.playlist;return JSON.stringify({id:e.id,bandwidth:t.bandwidth,width:t.width,height:t.height,codecs:e.attributes&&e.attributes.CODECS||""})},Q2=function(t,e){if(!t)return"";const n=ue.getComputedStyle(t);return n?n[e]:""},km=function(t,e){const n=t.slice();t.sort(function(i,r){const s=e(i,r);return s===0?n.indexOf(i)-n.indexOf(r):s})},zL=function(t,e){let n,i;return t.attributes.BANDWIDTH&&(n=t.attributes.BANDWIDTH),n=n||ue.Number.MAX_VALUE,e.attributes.BANDWIDTH&&(i=e.attributes.BANDWIDTH),i=i||ue.Number.MAX_VALUE,n-i},vSe=function(t,e){let n,i;return t.attributes.RESOLUTION&&t.attributes.RESOLUTION.width&&(n=t.attributes.RESOLUTION.width),n=n||ue.Number.MAX_VALUE,e.attributes.RESOLUTION&&e.attributes.RESOLUTION.width&&(i=e.attributes.RESOLUTION.width),i=i||ue.Number.MAX_VALUE,n===i&&t.attributes.BANDWIDTH&&e.attributes.BANDWIDTH?t.attributes.BANDWIDTH-e.attributes.BANDWIDTH:n-i};let yK=function(t,e,n,i,r,s){if(!t)return;const a={bandwidth:e,width:n,height:i,limitRenditionByPlayerDimensions:r};let o=t.playlists;qs.isAudioOnly(t)&&(o=s.getAudioTrackPlaylists_(),a.audioOnly=!0);let l=o.map(E=>{let C;const D=E.attributes&&E.attributes.RESOLUTION&&E.attributes.RESOLUTION.width,R=E.attributes&&E.attributes.RESOLUTION&&E.attributes.RESOLUTION.height;return C=E.attributes&&E.attributes.BANDWIDTH,C=C||ue.Number.MAX_VALUE,{bandwidth:C,width:D,height:R,playlist:E}});km(l,(E,C)=>E.bandwidth-C.bandwidth),l=l.filter(E=>!qs.isIncompatible(E.playlist));let u=l.filter(E=>qs.isEnabled(E.playlist));u.length||(u=l.filter(E=>!qs.isDisabled(E.playlist)));const c=u.filter(E=>E.bandwidth*_r.BANDWIDTH_VARIANCE<e);let f=c[c.length-1];const h=c.filter(E=>E.bandwidth===f.bandwidth)[0];if(r===!1){const E=h||u[0]||l[0];if(E&&E.playlist){let C="sortedPlaylistReps";return h&&(C="bandwidthBestRep"),u[0]&&(C="enabledPlaylistReps"),Jx(`choosing ${XB(E)} using ${C} with options`,a),E.playlist}return Jx("could not choose a playlist with options",a),null}const p=c.filter(E=>E.width&&E.height);km(p,(E,C)=>E.width-C.width);const m=p.filter(E=>E.width===n&&E.height===i);f=m[m.length-1];const y=m.filter(E=>E.bandwidth===f.bandwidth)[0];let v,_,b;y||(v=p.filter(E=>E.width>n||E.height>i),_=v.filter(E=>E.width===v[0].width&&E.height===v[0].height),f=_[_.length-1],b=_.filter(E=>E.bandwidth===f.bandwidth)[0]);let x;if(s.leastPixelDiffSelector){const E=p.map(C=>(C.pixelDiff=Math.abs(C.width-n)+Math.abs(C.height-i),C));km(E,(C,D)=>C.pixelDiff===D.pixelDiff?D.bandwidth-C.bandwidth:C.pixelDiff-D.pixelDiff),x=E[0]}const T=x||b||y||h||u[0]||l[0];if(T&&T.playlist){let E="sortedPlaylistReps";return x?E="leastPixelDiffRep":b?E="resolutionPlusOneRep":y?E="resolutionBestRep":h?E="bandwidthBestRep":u[0]&&(E="enabledPlaylistReps"),Jx(`choosing ${XB(T)} using ${E} with options`,a),T.playlist}return Jx("could not choose a playlist with options",a),null};const YB=function(){let t=this.useDevicePixelRatio&&ue.devicePixelRatio||1;return isNaN(this.customPixelRatio)||(t=this.customPixelRatio),yK(this.playlists.main,this.systemBandwidth,parseInt(Q2(this.tech_.el(),"width"),10)*t,parseInt(Q2(this.tech_.el(),"height"),10)*t,this.limitRenditionByPlayerDimensions,this.playlistController_)},ySe=function(t){let e=-1,n=-1;if(t<0||t>1)throw new Error("Moving average bandwidth decay must be between 0 and 1.");return function(){let i=this.useDevicePixelRatio&&ue.devicePixelRatio||1;return isNaN(this.customPixelRatio)||(i=this.customPixelRatio),e<0&&(e=this.systemBandwidth,n=this.systemBandwidth),this.systemBandwidth>0&&this.systemBandwidth!==n&&(e=t*this.systemBandwidth+(1-t)*e,n=this.systemBandwidth),yK(this.playlists.main,e,parseInt(Q2(this.tech_.el(),"width"),10)*i,parseInt(Q2(this.tech_.el(),"height"),10)*i,this.limitRenditionByPlayerDimensions,this.playlistController_)}},bSe=function(t){const{main:e,currentTime:n,bandwidth:i,duration:r,segmentDuration:s,timeUntilRebuffer:a,currentTimeline:o,syncController:l}=t,u=e.playlists.filter(m=>!qs.isIncompatible(m));let c=u.filter(qs.isEnabled);c.length||(c=u.filter(m=>!qs.isDisabled(m)));const h=c.filter(qs.hasAttribute.bind(null,"BANDWIDTH")).map(m=>{const v=l.getSyncPoint(m,r,o,n)?1:2,b=qs.estimateSegmentRequestTime(s,i,m)*v-a;return{playlist:m,rebufferingImpact:b}}
271),p=h.filter(m=>m.rebufferingImpact<=0);return km(p,(m,y)=>zL(y.playlist,m.playlist)),p.length?p[0]:(km(h,(m,y)=>m.rebufferingImpact-y.rebufferingImpact),h[0]||null)},xSe=function(){const t=this.playlists.main.playlists.filter(qs.isEnabled);return km(t,(n,i)=>zL(n,i)),t.filter(n=>!!ly(this.playlists.main,n).video)[0]||null},SSe=t=>{let e=0,n;return t.bytes&&(n=new Uint8Array(t.bytes),t.segments.forEach(i=>{n.set(i,e),e+=i.byteLength})),n};function bK(t){try{return new URL(t).pathname.split("/").slice(-2).join("/")}catch(e){return""}}const TSe=function(t,e,n){if(!t[n]){e.trigger({type:"usage",name:"vhs-608"});let i=n;/^cc708_/.test(n)&&(i="SERVICE"+n.split("_")[1]);const r=e.textTracks().getTrackById(i);if(r)t[n]=r;else{const s=e.options_.vhs&&e.options_.vhs.captionServices||{};let a=n,o=n,l=!1;const u=s[i];u&&(a=u.label,o=u.language,l=u.default),t[n]=e.addRemoteTextTrack({kind:"captions",id:i,default:l,label:a,language:o},!1).track}}},ESe=function({inbandTextTracks:t,captionArray:e,timestampOffset:n}){if(!e)return;const i=ue.WebKitDataCue||ue.VTTCue;e.forEach(r=>{const s=r.stream;r.content?r.content.forEach(a=>{const o=new i(r.startTime+n,r.endTime+n,a.text);o.line=a.line,o.align="left",o.position=a.position,o.positionAlign="line-left",t[s].addCue(o)}):t[s].addCue(new i(r.startTime+n,r.endTime+n,r.text))})},wSe=function(t){Object.defineProperties(t.frame,{id:{get(){return Be.log.warn("cue.frame.id is deprecated. Use cue.value.key instead."),t.value.key}},value:{get(){return Be.log.warn("cue.frame.value is deprecated. Use cue.value.data instead."),t.value.data}},privateData:{get(){return Be.log.warn("cue.frame.privateData is deprecated. Use cue.value.data instead."),t.value.data}}})},CSe=({inbandTextTracks:t,metadataArray:e,timestampOffset:n,videoDuration:i})=>{if(!e)return;const r=ue.WebKitDataCue||ue.VTTCue,s=t.metadataTrack_;if(!s||(e.forEach(c=>{const f=c.cueTime+n;typeof f!="number"||ue.isNaN(f)||f<0||!(f<1/0)||!c.frames||!c.frames.length||c.frames.forEach(h=>{const p=new r(f,f,h.value||h.url||h.data||"");p.frame=h,p.value=h,wSe(p),s.addCue(p)})}),!s.cues||!s.cues.length))return;const a=s.cues,o=[];for(let c=0;c<a.length;c++)a[c]&&o.push(a[c]);const l=o.reduce((c,f)=>{const h=c[f.startTime]||[];return h.push(f),c[f.startTime]=h,c},{}),u=Object.keys(l).sort((c,f)=>Number(c)-Number(f));u.forEach((c,f)=>{const h=l[c],p=isFinite(i)?i:c,m=Number(u[f+1])||p;h.forEach(y=>{y.endTime=m})})},ASe={id:"ID",class:"CLASS",startDate:"START-DATE",duration:"DURATION",endDate:"END-DATE",endOnNext:"END-ON-NEXT",plannedDuration:"PLANNED-DURATION",scte35Out:"SCTE35-OUT",scte35In:"SCTE35-IN"},MSe=new Set(["id","class","startDate","duration","endDate","endOnNext","startTime","endTime","processDateRange"]),DSe=({inbandTextTracks:t,dateRanges:e})=>{const n=t.metadataTrack_;if(!n)return;const i=ue.WebKitDataCue||ue.VTTCue;e.forEach(r=>{for(const s of Object.keys(r)){if(MSe.has(s))continue;const a=new i(r.startTime,r.endTime,"");a.id=r.id,a.type="com.apple.quicktime.HLS",a.value={key:ASe[s],data:r[s]},(s==="scte35Out"||s==="scte35In")&&(a.value.data=new Uint8Array(a.value.data.match(/[\da-f]{2}/gi)).buffer),n.addCue(a)}r.processDateRange()})},KB=(t,e,n)=>{t.metadataTrack_||(t.metadataTrack_=n.addRemoteTextTrack({kind:"metadata",label:"Timed Metadata"},!1).track,Be.browser.IS_ANY_SAFARI||(t.metadataTrack_.inBandMetadataTrackDispatchType=e))},Av=function(t,e,n){let i,r;if(!!n&&!!n.cues)for(i=n.cues.length;i--;)r=n.cues[i],r.startTime>=t&&r.endTime<=e&&n.removeCue(r)},PSe=function(t){const e=t.cues;if(!e)return;const n={};for(let i=e.length-1;i>=0;i--){const r=e[i],s=`${r.startTime}-${r.endTime}-${r.text}`;n[s]?t.removeCue(r):n[s]=r}},OSe=(t,e,n)=>{if(typeof e>"u"||e===null||!t.length)return[];const i=Math.ceil((e-n+3)*Ah.ONE_SECOND_IN_TS);let r;for(r=0;r<t.length&&!(t[r].pts>i);r++);return t.slice(r)},RSe=(t,e,n)=>{if(!e.length)return t;if(n)return e.slice();const i=e[0].pts;let r=0;for(r;r<t.length&&!(t[r].pts>=i);r++);return t.slice(0,r).concat(e)},kSe=(t,e,n,i)=>{const r=Math.ceil((e-i)*Ah.ONE_SECOND_IN_TS),s=Math.ceil((n-i)*Ah.ONE_SECOND_IN_TS),a=t.slice();let o=t.length;for(;o--&&!(t[o].pts<=s););if(o===-1)return a;let l=o+1;for(;l--&&!(t[l].pts<=r););return l=Math.max(l,0),a.splice(l,o-l+1),a},ISe=function(t,e){if(!t&&!e||!t&&e||t&&!e)return!1;if(t===e)return!0;const n=Object.keys(t).sort(),i=Object.keys(e).sort();if(n.length!==i.length)return!1;for(let r=0;r<n.length;r++){const s=n[r];if(s!==i[r]||t[s]!==e[s])return!1}return!0},xK=22,LSe=function(t,e,n){e=e||[];const i=[];let r=0;for(let s=0;s<e.length;s++){const a=e[s];if(t===a.timeline&&(i.push(s),r+=a.duration,r>n))return s}return i.length===0?0:i[i.length-1]},z_=1,FSe=500,ZB=t=>typeof t=="number"&&isFinite(t),eS=1/60,NSe=(t,e,n)=>t!=="main"||!e||!n?null:!n.hasAudio&&!n.hasVideo?"Neither audio nor video foun
271d in segment.":e.hasVideo&&!n.hasVideo?"Only audio found in segment when we expected video. We can't switch to audio only from a stream that had video. To get rid of this message, please add codec information to the manifest.":!e.hasVideo&&n.hasVideo?"Video found in segment when we expected only audio. We can't switch to a stream with video from an audio only stream. To get rid of this message, please add codec information to the manifest.":null,BSe=(t,e,n)=>{let i=e-_r.BACK_BUFFER_LENGTH;t.length&&(i=Math.max(i,t.start(0)));const r=e-n;return Math.min(r,i)},h0=t=>{const{startOfSegment:e,duration:n,segment:i,part:r,playlist:{mediaSequence:s,id:a,segments:o=[]},mediaIndex:l,partIndex:u,timeline:c}=t,f=o.length-1;let h="mediaIndex/partIndex increment";t.getMediaInfoForTime?h=`getMediaInfoForTime (${t.getMediaInfoForTime})`:t.isSyncRequest&&(h="getSyncSegmentCandidate (isSyncRequest)"),t.independent&&(h+=` with independent ${t.independent}`);const p=typeof u=="number",m=t.segment.uri?"segment":"pre-segment",y=p?zY({preloadSegment:i})-1:0;return`${m} [${s+l}/${s+f}]`+(p?` part [${u}/${y}]`:"")+` segment start/end [${i.start} => ${i.end}]`+(p?` part start/end [${r.start} => ${r.end}]`:"")+` startOfSegment [${e}] duration [${n}] timeline [${c}] selected by [${h}] playlist [${a}]`},QB=t=>`${t}TimingInfo`,USe=({segmentTimeline:t,currentTimeline:e,startOfSegment:n,buffered:i,overrideCheck:r})=>!r&&t===e?null:t<e?n:i.length?i.end(i.length-1):n,JB=({timelineChangeController:t,currentTimeline:e,segmentTimeline:n,loaderType:i,audioDisabled:r})=>{if(e===n)return!1;if(i==="audio"){const s=t.lastTimelineChange({type:"main"});return!s||s.to!==n}if(i==="main"&&r){const s=t.pendingTimelineChange({type:"audio"});return!(s&&s.to===n)}return!1},$Se=t=>{let e=0;return["video","audio"].forEach(function(n){const i=t[`${n}TimingInfo`];if(!i)return;const{start:r,end:s}=i;let a;typeof r=="bigint"||typeof s=="bigint"?a=ue.BigInt(s)-ue.BigInt(r):typeof r=="number"&&typeof s=="number"&&(a=s-r),typeof a<"u"&&a>e&&(e=a)}),typeof e=="bigint"&&e<Number.MAX_SAFE_INTEGER&&(e=Number(e)),e},eU=({segmentDuration:t,maxDuration:e})=>t?Math.round(t)>e+Xl:!1,zSe=(t,e)=>{if(e!=="hls")return null;const n=$Se({audioTimingInfo:t.audioTimingInfo,videoTimingInfo:t.videoTimingInfo});if(!n)return null;const i=t.playlist.targetDuration,r=eU({segmentDuration:n,maxDuration:i*2}),s=eU({segmentDuration:n,maxDuration:i}),a=`Segment with index ${t.mediaIndex} from playlist ${t.playlist.id} has a duration of ${n} when the reported duration is ${t.duration} and the target duration is ${i}. For HLS content, a duration in excess of the target duration may result in playback issues. See the HLS specification section on EXT-X-TARGETDURATION for more details: https://tools.ietf.org/html/draft-pantos-http-live-streaming-23#section-4.3.3.1`;return r||s?{severity:r?"warn":"info",message:a}:null};class $O extends Be.EventTarget{constructor(e,n={}){if(super(),!e)throw new TypeError("Initialization settings are required");if(typeof e.currentTime!="function")throw new TypeError("No currentTime getter specified");if(!e.mediaSource)throw new TypeError("No MediaSource specified");this.bandwidth=e.bandwidth,this.throughput={rate:0,count:0},this.roundTrip=NaN,this.resetStats_(),this.mediaIndex=null,this.partIndex=null,this.hasPlayed_=e.hasPlayed,this.currentTime_=e.currentTime,this.seekable_=e.seekable,this.seeking_=e.seeking,this.duration_=e.duration,this.mediaSource_=e.mediaSource,this.vhs_=e.vhs,this.loaderType_=e.loaderType,this.currentMediaInfo_=void 0,this.startingMediaInfo_=void 0,this.segmentMetadataTrack_=e.segmentMetadataTrack,this.goalBufferLength_=e.goalBufferLength,this.sourceType_=e.sourceType,this.sourceUpdater_=e.sourceUpdater,this.inbandTextTracks_=e.inbandTextTracks,this.state_="INIT",this.timelineChangeController_=e.timelineChangeController,this.shouldSaveSegmentTimingInfo_=!0,this.parse708captions_=e.parse708captions,this.useDtsForTimestampOffset_=e.useDtsForTimestampOffset,this.captionServices_=e.captionServices,this.exactManifestTimings=e.exactManifestTimings,this.addMetadataToTextTrack=e.addMetadataToTextTrack,this.checkBufferTimeout_=null,this.error_=void 0,this.currentTimeline_=-1,this.shouldForceTimestampOffsetAfterResync_=!1,this.pendingSegment_=null,this.xhrOptions_=null,this.pendingSegments_=[],this.audioDisabled_=!1,this.isPendingTimestampOffset_=!1,this.gopBuffer_=[],this.timeMapping_=0,this.safeAppend_=!1,this.appendInitSegment_={audio:!0,video:!0},this.playlistOfLastInitSegment_={audio:null,video:null},this.callQueue_=[],this.loadQueue_=[],this.metadataQueue_={id3:[],caption:[]},this.waitingOnRemove_=!1,this.quotaExceededErrorRetryTimeout_=null,this.activeInitSegmentId_=null,this.initSegments_={}
271,this.cacheEncryptionKeys_=e.cacheEncryptionKeys,this.keyCache_={},this.decrypter_=e.decrypter,this.syncController_=e.syncController,this.syncPoint_={segmentIndex:0,time:0},this.transmuxer_=this.createTransmuxer_(),this.triggerSyncInfoUpdate_=()=>this.trigger("syncinfoupdate"),this.syncController_.on("syncinfoupdate",this.triggerSyncInfoUpdate_),this.mediaSource_.addEventListener("sourceopen",()=>{this.isEndOfStream_()||(this.ended_=!1)}),this.fetchAtBuffer_=!1,this.logger_=Fo(`SegmentLoader[${this.loaderType_}]`),Object.defineProperty(this,"state",{get(){return this.state_},set(i){i!==this.state_&&(this.logger_(`${this.state_} -> ${i}`),this.state_=i,this.trigger("statechange"))}}),this.sourceUpdater_.on("ready",()=>{this.hasEnoughInfoToAppend_()&&this.processCallQueue_()}),this.loaderType_==="main"&&this.timelineChangeController_.on("pendingtimelinechange",()=>{this.hasEnoughInfoToAppend_()&&this.processCallQueue_()}),this.loaderType_==="audio"&&this.timelineChangeController_.on("timelinechange",()=>{this.hasEnoughInfoToLoad_()&&this.processLoadQueue_(),this.hasEnoughInfoToAppend_()&&this.processCallQueue_()})}get mediaSequenceSync_(){return this.syncController_.getMediaSequenceSync(this.loaderType_)}createTransmuxer_(){return JM.createTransmuxer({remux:!1,alignGopsAtEnd:this.safeAppend_,keepOriginalTimestamps:!0,parse708captions:this.parse708captions_,captionServices:this.captionServices_})}resetStats_(){this.mediaBytesTransferred=0,this.mediaRequests=0,this.mediaRequestsAborted=0,this.mediaRequestsTimedout=0,this.mediaRequestsErrored=0,this.mediaTransferDuration=0,this.mediaSecondsLoaded=0,this.mediaAppends=0}dispose(){this.trigger("dispose"),this.state="DISPOSED",this.pause(),this.abort_(),this.transmuxer_&&this.transmuxer_.terminate(),this.resetStats_(),this.checkBufferTimeout_&&ue.clearTimeout(this.checkBufferTimeout_),this.syncController_&&this.triggerSyncInfoUpdate_&&this.syncController_.off("syncinfoupdate",this.triggerSyncInfoUpdate_),this.off()}setAudio(e){this.audioDisabled_=!e,e?this.appendInitSegment_.audio=!0:this.sourceUpdater_.removeAudio(0,this.duration_())}abort(){if(this.state!=="WAITING"){this.pendingSegment_&&(this.pendingSegment_=null);return}this.abort_(),this.state="READY",this.paused()||this.monitorBuffer_()}abort_(){this.pendingSegment_&&this.pendingSegment_.abortRequests&&this.pendingSegment_.abortRequests(),this.pendingSegment_=null,this.callQueue_=[],this.loadQueue_=[],this.metadataQueue_.id3=[],this.metadataQueue_.caption=[],this.timelineChangeController_.clearPendingTimelineChange(this.loaderType_),this.waitingOnRemove_=!1,ue.clearTimeout(this.quotaExceededErrorRetryTimeout_),this.quotaExceededErrorRetryTimeout_=null}checkForAbort_(e){return this.state==="APPENDING"&&!this.pendingSegment_?(this.state="READY",!0):!this.pendingSegment_||this.pendingSegment_.requestId!==e}error(e){return typeof e<"u"&&(this.logger_("error occurred:",e),this.error_=e),this.pendingSegment_=null,this.error_}endOfStream(){this.ended_=!0,this.transmuxer_&&JM.reset(this.transmuxer_),this.gopBuffer_.length=0,this.pause(),this.trigger("ended")}buffered_(){const e=this.getMediaInfo_();if(!this.sourceUpdater_||!e)return es();if(this.loaderType_==="main"){const{hasAudio:n,hasVideo:i,isMuxed:r}=e;if(i&&n&&!this.audioDisabled_&&!r)return this.sourceUpdater_.buffered();if(i)return this.sourceUpdater_.videoBuffered()}return this.sourceUpdater_.audioBuffered()}initSegmentForMap(e,n=!1){if(!e)return null;const i=K2(e);let r=this.initSegments_[i];return n&&!r&&e.bytes&&(this.initSegments_[i]=r={resolvedUri:e.resolvedUri,byterange:e.byterange,bytes:e.bytes,tracks:e.tracks,timescales:e.timescales}),r||e}segmentKey(e,n=!1){if(!e)return null;const i=iK(e);let r=this.keyCache_[i];this.cacheEncryptionKeys_&&n&&!r&&e.bytes&&(this.keyCache_[i]=r={resolvedUri:e.resolvedUri,bytes:e.bytes});const s={resolvedUri:(r||e).resolvedUri};return r&&(s.bytes=r.bytes),s}couldBeginLoading_(){return this.playlist_&&!this.paused()}load(){if(this.monitorBuffer_(),!!this.playlist_){if(this.state==="INIT"&&this.couldBeginLoading_())return this.init_();!this.couldBeginLoading_()||this.state!=="READY"&&this.state!=="INIT"||(this.state="READY")}}init_(){return this.state="READY",this.resetEverything(),this.monitorBuffer_()}playlist(e,n={}){if(!e)return;const i=this.playlist_,r=this.pendingSegment_;this.playlist_=e,this.xhrOptions_=n,this.state==="INIT"&&(e.syncInfo={mediaSequence:e.mediaSequence,time:0},this.loaderType_==="main"&&this.syncController_.setDateTimeMappingForStart(e));let s=null;if(i&&(i.id?s=i.id:i.uri&&(s=i.uri)),this.logger_(`playlist update [${s} => ${e.id||e.uri}]`),this.mediaSequenceSync_&&(this.mediaSequenceSync_.update(e,this.currentTime_()),this.logger_(`Playlist update:
272currentTime: ${this.currentTime_()}
273bufferedEnd: ${ZM(this.buffered_())}
274`,this.mediaSequenceSync_.diagnostics)),this.trigger("syncinfoupdate"),this.state==="INIT"&&this.couldBeginLoading_())return this.init_();if(!i||i.uri!==e.uri){this.mediaIndex!==null&&(!e.endList&&typeof e.partTargetDuration=="number"?this.resetLoader():this.resyncLoader()),this.currentMediaInfo_=void 0,this.trigger("playlistupdate");return}const a=e.mediaSequence-i.mediaSequence;if(this.logger_(`live window shift [${a}]`),this.mediaIndex!==null)if(this.mediaIndex-=a,this.mediaIndex<0)this.mediaIndex=null,this.partIndex=null;else{const o=this.playlist_.segments[this.mediaIndex];if(this.partIndex&&(!o.parts||!o.parts.length||!o.parts[this.partIndex])){const l=this.mediaIndex;this.logger_(`currently processing part (index ${this.partIndex}) no longer exists.`),this.resetLoader(),this.mediaIndex=l}}r&&(r.mediaIndex-=a,r.mediaIndex<0?(r.mediaIndex=null,r.partIndex=null):(r.mediaIndex>=0&&(r.segment=e.segments[r.mediaIndex]),r.partIndex>=0&&r.segment.parts&&(r.part=r.segment.parts[r.partIndex]))),this.syncController_.saveExpiredSegmentInfo(i,e)}pause(){this.checkBufferTimeout_&&(ue.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=null)}paused(){return this.checkBufferTimeout_===null}resetEverything(e){this.ended_=!1,this.activeInitSegmentId_=null,this.appendInitSegment_={audio:!0,video:!0},this.resetLoader(),this.remove(0,1/0,e),this.transmuxer_&&(this.transmuxer_.postMessage({action:"clearAllMp4Captions"}),this.transmuxer_.postMessage({action:"reset"}))}
274resetLoader(){this.fetchAtBuffer_=!1,this.mediaSequenceSync_&&this.mediaSequenceSync_.resetAppendedStatus(),this.resyncLoader()}resyncLoader(){this.transmuxer_&&JM.reset(this.transmuxer_),this.mediaIndex=null,this.partIndex=null,this.syncPoint_=null,this.isPendingTimestampOffset_=!1;const e=this.currentMediaInfo_&&this.currentMediaInfo_.isFmp4;this.sourceType_==="hls"&&!e&&(this.shouldForceTimestampOffsetAfterResync_=!0),this.callQueue_=[],this.loadQueue_=[],this.metadataQueue_.id3=[],this.metadataQueue_.caption=[],this.abort(),this.transmuxer_&&this.transmuxer_.postMessage({action:"clearParsedMp4Captions"})}remove(e,n,i=()=>{},r=!1){if(n===1/0&&(n=this.duration_()),n<=e){this.logger_("skipping remove because end ${end} is <= start ${start}");return}if(!this.sourceUpdater_||!this.getMediaInfo_()){this.logger_("skipping remove because no source updater or starting media info");return}let s=1;const a=()=>{s--,s===0&&i()};(r||!this.audioDisabled_)&&(s++,this.sourceUpdater_.removeAudio(e,n,a)),(r||this.loaderType_==="main")&&(this.gopBuffer_=kSe(this.gopBuffer_,e,n,this.timeMapping_),s++,this.sourceUpdater_.removeVideo(e,n,a));for(const o in this.inbandTextTracks_)Av(e,n,this.inbandTextTracks_[o]);Av(e,n,this.segmentMetadataTrack_),a()}monitorBuffer_(){this.checkBufferTimeout_&&ue.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=ue.setTimeout(this.monitorBufferTick_.bind(this),1)}monitorBufferTick_(){this.state==="READY"&&this.fillBuffer_(),this.checkBufferTimeout_&&ue.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=ue.setTimeout(this.monitorBufferTick_.bind(this),FSe)}fillBuffer_(){if(this.sourceUpdater_.updating())return;const e=this.chooseNextRequest_();!e||(typeof e.timestampOffset=="number"&&(this.isPendingTimestampOffset_=!1,this.timelineChangeController_.pendingTimelineChange({type:this.loaderType_,from:this.currentTimeline_,to:e.timeline})),this.loadSegment_(e))}isEndOfStream_(e=this.mediaIndex,n=this.playlist_,i=this.partIndex){if(!n||!this.mediaSource_)return!1;const r=typeof e=="number"&&n.segments[e],s=e+1===n.segments.length,a=!r||!r.parts||i+1===r.parts.length;return n.endList&&this.mediaSource_.readyState==="open"&&s&&a}chooseNextRequest_(){const e=this.buffered_(),n=ZM(e)||0,i=FL(e,this.currentTime_()),r=!this.hasPlayed_()&&i>=1,s=i>=this.goalBufferLength_(),a=this.playlist_.segments;if(!a.length||r||s)return null;this.syncPoint_=this.syncPoint_||this.syncController_.getSyncPoint(this.playlist_,this.duration_(),this.currentTimeline_,this.currentTime_(),this.loaderType_);const o={partIndex:null,mediaIndex:null,startOfSegment:null,playlist:this.playlist_,isSyncRequest:Boolean(!this.syncPoint_)};if(o.isSyncRequest)o.mediaIndex=LSe(this.currentTimeline_,a,n),this.logger_(`choose next request. Can not find sync point. Fallback to media Index: ${o.mediaIndex}`);else if(this.mediaIndex!==null){const h=a[this.mediaIndex],p=typeof this.partIndex=="number"?this.partIndex:-1;o.startOfSegment=h.end?h.end:n,h.parts&&h.parts[p+1]?(o.mediaIndex=this.mediaIndex,o.partIndex=p+1):o.mediaIndex=this.mediaIndex+1}else{let h,p,m;const y=this.fetchAtBuffer_?n:this.currentTime_();if(this.mediaSequenceSync_&&this.logger_(`chooseNextRequest_ request after Quality Switch:
275For TargetTime: ${y}.
276CurrentTime: ${this.currentTime_()}
277BufferedEnd: ${n}
278Fetch At Buffer: ${this.fetchAtBuffer_}
279`,this.mediaSequenceSync_.diagnostics),this.mediaSequenceSync_&&this.mediaSequenceSync_.isReliable){const v=this.getSyncInfoFromMediaSequenceSync_(y);if(!v)return this.logger_("chooseNextRequest_ - no sync info found using media sequence sync"),null;this.logger_(`chooseNextRequest_ mediaSequence syncInfo (${v.start} --> ${v.end})`),h=v.segmentIndex,p=v.partIndex,m=v.start}else{this.logger_("chooseNextRequest_ - fallback to a regular segment selection algorithm, based on a syncPoint.");const v=qs.getMediaInfoForTime({exactManifestTimings:this.exactManifestTimings,playlist:this.playlist_,currentTime:y,startingPartIndex:this.syncPoint_.partIndex,startingSegmentIndex:this.syncPoint_.segmentIndex,startTime:this.syncPoint_.time});h=v.segmentIndex,p=v.partIndex,m=v.startTime}o.getMediaInfoForTime=this.fetchAtBuffer_?`bufferedEnd ${y}`:`currentTime ${y}`,o.mediaIndex=h,o.startOfSegment=m,o.partIndex=p,this.logger_(`choose next request. Playlist switched and we have a sync point. Media Index: ${o.mediaIndex} `)}const l=a[o.mediaIndex];let u=l&&typeof o.partIndex=="number"&&l.parts&&l.parts[o.partIndex];if(!l||typeof o.partIndex=="number"&&!u)return null;typeof o.partIndex!="number"&&l.parts&&(o.partIndex=0,u=l.parts[0]);const c=this.vhs_.playlists&&this.vhs_.playlists.main&&this.vhs_.playlists.main.independentSegments||this.playlist_.independentSegments;if(!i&&u&&!c&&!u.independent)if(o.partIndex===0){const h=a[o.mediaIndex-1],p=h.parts&&h.parts.length&&h.parts[h.parts.length-1];p&&p.independent&&(o.mediaIndex-=1,o.partIndex=h.parts.length-1,o.independent="previous segment")}else l.parts[o.partIndex-1].independent&&(o.partIndex-=1,o.independent="previous part");const f=this.mediaSource_&&this.mediaSource_.readyState==="ended";return o.mediaIndex>=a.length-1&&f&&!this.seeking_()?null:(this.shouldForceTimestampOffsetAfterResync_&&(this.shouldForceTimestampOffsetAfterResync_=!1,o.forceTimestampOffset=!0,this.logger_("choose next request. Force timestamp offset after loader resync")),this.generateSegmentInfo_(o))}getSyncInfoFromMediaSequenceSync_(e){if(!this.mediaSequenceSync_)return null;const n=Math.max(e,this.mediaSequenceSync_.start);e!==n&&this.logger_(`getSyncInfoFromMediaSequenceSync_. Pulled target time from ${e} to ${n}`);const i=this.mediaSequenceSync_.getSyncInfoForTime(n);if(!i)return null;if(!i.isAppended)return i;const r=this.mediaSequenceSync_.getSyncInfoForTime(i.end);return r?(r.isAppended&&this.logger_("getSyncInfoFromMediaSequenceSync_: We encounter unexpected scenario where next media sequence sync info is also appended!"),r):null}generateSegmentInfo_(e){const{independent:n,playlist:i,mediaIndex:r,startOfSegment:s,isSyncRequest:a,partIndex:o,forceTimestampOffset:l,getMediaInfoForTime:u}=e,c=i.segments[r],f=typeof o=="number"&&c.parts[o],h={requestId:"segment-loader-"+Math.random(),uri:f&&f.resolvedUri||c.resolvedUri,mediaIndex:r,partIndex:f?o:null,isSyncRequest:a,startOfSegment:s,playlist:i,bytes:null,encryptedBytes:null,timestampOffset:null,timeline:c.timeline,duration:f&&f.duration||c.duration,segment:c,part:f,byteLength:0,transmuxer:this.transmuxer_,getMediaInfoForTime:u,independent:n},p=typeof l<"u"?l:this.isPendingTimestampOffset_;h.timestampOffset=this.timestampOffsetForSegment_({segmentTimeline:c.timeline,currentTimeline:this.currentTimeline_,startOfSegment:s,buffered:this.buffered_(),overrideCheck:p});
279const m=ZM(this.sourceUpdater_.audioBuffered());return typeof m=="number"&&(h.audioAppendStart=m-this.sourceUpdater_.audioTimestampOffset()),this.sourceUpdater_.videoBuffered().length&&(h.gopsToAlignWith=OSe(this.gopBuffer_,this.currentTime_()-this.sourceUpdater_.videoTimestampOffset(),this.timeMapping_)),h}timestampOffsetForSegment_(e){return USe(e)}earlyAbortWhenNeeded_(e){if(this.vhs_.tech_.paused()||!this.xhrOptions_.timeout||!this.playlist_.attributes.BANDWIDTH||Date.now()-(e.firstBytesReceivedAt||Date.now())<1e3)return;const n=this.currentTime_(),i=e.bandwidth,r=this.pendingSegment_.duration,s=qs.estimateSegmentRequestTime(r,i,this.playlist_,e.bytesReceived),a=lxe(this.buffered_(),n,this.vhs_.tech_.playbackRate())-1;if(s<=a)return;const o=bSe({main:this.vhs_.playlists.main,currentTime:n,bandwidth:i,duration:this.duration_(),segmentDuration:r,timeUntilRebuffer:a,currentTimeline:this.currentTimeline_,syncController:this.syncController_});if(!o)return;const u=s-a-o.rebufferingImpact;let c=.5;a<=Xl&&(c=1),!(!o.playlist||o.playlist.uri===this.playlist_.uri||u<c)&&(this.bandwidth=o.playlist.attributes.BANDWIDTH*_r.BANDWIDTH_VARIANCE+1,this.trigger("earlyabort"))}handleAbort_(e){this.logger_(`Aborting ${h0(e)}`),this.mediaRequestsAborted+=1}handleProgress_(e,n){this.earlyAbortWhenNeeded_(n.stats),!this.checkForAbort_(n.requestId)&&this.trigger("progress")}handleTrackInfo_(e,n){this.earlyAbortWhenNeeded_(e.stats),!this.checkForAbort_(e.requestId)&&(this.checkForIllegalMediaSwitch(n)||(n=n||{},ISe(this.currentMediaInfo_,n)||(this.appendInitSegment_={audio:!0,video:!0},this.startingMediaInfo_=n,this.currentMediaInfo_=n,this.logger_("trackinfo update",n),this.trigger("trackinfo")),!this.checkForAbort_(e.requestId)&&(this.pendingSegment_.trackInfo=n,this.hasEnoughInfoToAppend_()&&this.processCallQueue_())))}handleTimingInfo_(e,n,i,r){if(this.earlyAbortWhenNeeded_(e.stats),this.checkForAbort_(e.requestId))return;const s=this.pendingSegment_,a=QB(n);s[a]=s[a]||{},s[a][i]=r,this.logger_(`timinginfo: ${n} - ${i} - ${r}`),this.hasEnoughInfoToAppend_()&&this.processCallQueue_()}handleCaptions_(e,n){if(this.earlyAbortWhenNeeded_(e.stats),this.checkForAbort_(e.requestId))return;if(n.length===0){this.logger_("SegmentLoader received no captions from a caption event");return}if(!this.pendingSegment_.hasAppendedData_){this.metadataQueue_.caption.push(this.handleCaptions_.bind(this,e,n));return}const r=this.sourceUpdater_.videoTimestampOffset()===null?this.sourceUpdater_.audioTimestampOffset():this.sourceUpdater_.videoTimestampOffset(),s={};n.forEach(a=>{s[a.stream]=s[a.stream]||{startTime:1/0,captions:[],endTime:0};const o=s[a.stream];o.startTime=Math.min(o.startTime,a.startTime+r),o.endTime=Math.max(o.endTime,a.endTime+r),o.captions.push(a)}),Object.keys(s).forEach(a=>{const{startTime:o,endTime:l,captions:u}=s[a],c=this.inbandTextTracks_;this.logger_(`adding cues from ${o} -> ${l} for ${a}`),TSe(c,this.vhs_.tech_,a),Av(o,l,c[a]),ESe({captionArray:u,inbandTextTracks:c,timestampOffset:r})}),this.transmuxer_&&this.transmuxer_.postMessage({action:"clearParsedMp4Captions"})}handleId3_(e,n,i){if(this.earlyAbortWhenNeeded_(e.stats),this.checkForAbort_(e.requestId))return;if(!this.pendingSegment_.hasAppendedData_){this.metadataQueue_.id3.push(this.handleId3_.bind(this,e,n,i));return}this.addMetadataToTextTrack(i,n,this.duration_())}processMetadataQueue_(){this.metadataQueue_.id3.forEach(e=>e()),this.metadataQueue_.caption.forEach(e=>e()),this.metadataQueue_.id3=[],this.metadataQueue_.caption=[]}processCallQueue_(){const e=this.callQueue_;this.callQueue_=[],e.forEach(n=>n())}processLoadQueue_(){const e=this.loadQueue_;this.loadQueue_=[],e.forEach(n=>n())}hasEnoughInfoToLoad_(){if(this.loaderType_!=="audio")return!0;const e=this.pendingSegment_;return e?this.getCurrentMediaInfo_()?!JB({timelineChangeController:this.timelineChangeController_,currentTimeline:this.currentTimeline_,segmentTimeline:e.timeline,loaderType:this.loaderType_,audioDisabled:this.audioDisabled_}):!0:!1}getCurrentMediaInfo_(e=this.pendingSegment_){return e&&e.trackInfo||this.currentMediaInfo_}getMediaInfo_(e=this.pendingSegment_){return this.getCurrentMediaInfo_(e)||this.startingMediaInfo_}getPendingSegmentPlaylist(){return this.pendingSegment_?this.pendingSegment_.playlist:null}hasEnoughInfoToAppend_(){if(!this.sourceUpdater_.ready()||this.waitingOnRemove_||this.quotaExceededErrorRetryTimeout_)return!1;const e=this.pendingSegment_,n=this.getCurrentMediaInfo_();if(!e||!n)return!1;const{hasAudio:i,hasVideo:r,isMuxed:s}=n;return!(r&&!e.videoTimingInfo||i&&!this.audioDisabled_&&!s&&!e.audioTimingInfo||JB({timelineChangeController:this.timelineChangeController_,currentTimeline:this.currentTimeline_,segmentTimeline:e.timeline,loaderType:this.loaderType_,audioDisabled:this.audioDisabled_}))}handleData_(e,n){if(this.earlyAbortWhenNeeded_(e.stats),this.checkForAbort_(e.requestId))return;if(this.callQueue_.length||!this.hasEnoughInfoToAppend_()){this.callQueue_.push(this.handleData_.bind(this,e,n));return}const i=this.pendingSegment_;if(this.setTimeMapping_(i.timeline),this.updateMediaSecondsLoaded_(i.part||i.segment),this.mediaSource_.readyState!=="closed"){if(e.map&&(e.map=this.initSegmentForMap(e.map,!0),i.segment.map=e.map),e.key&&this.segmentKey(e.ke
279y,!0),i.isFmp4=e.isFmp4,i.timingInfo=i.timingInfo||{},i.isFmp4)this.trigger("fmp4"),i.timingInfo.start=i[QB(n.type)].start;else{const r=this.getCurrentMediaInfo_(),s=this.loaderType_==="main"&&r&&r.hasVideo;let a;s&&(a=i.videoTimingInfo.start),i.timingInfo.start=this.trueSegmentStart_({currentStart:i.timingInfo.start,playlist:i.playlist,mediaIndex:i.mediaIndex,currentVideoTimestampOffset:this.sourceUpdater_.videoTimestampOffset(),useVideoTimingInfo:s,firstVideoFrameTimeForData:a,videoTimingInfo:i.videoTimingInfo,audioTimingInfo:i.audioTimingInfo})}if(this.updateAppendInitSegmentStatus(i,n.type),this.updateSourceBufferTimestampOffset_(i),i.isSyncRequest){this.updateTimingInfoEnd_(i),this.syncController_.saveSegmentTimingInfo({segmentInfo:i,shouldSaveTimelineMapping:this.loaderType_==="main"});const r=this.chooseNextRequest_();if(r.mediaIndex!==i.mediaIndex||r.partIndex!==i.partIndex){this.logger_("sync segment was incorrect, not appending");return}this.logger_("sync segment was correct, appending")}i.hasAppendedData_=!0,this.processMetadataQueue_(),this.appendData_(i,n)}}updateAppendInitSegmentStatus(e,n){this.loaderType_==="main"&&typeof e.timestampOffset=="number"&&!e.changedTimestampOffset&&(this.appendInitSegment_={audio:!0,video:!0}),this.playlistOfLastInitSegment_[n]!==e.playlist&&(this.appendInitSegment_[n]=!0)}getInitSegmentAndUpdateState_({type:e,initSegment:n,map:i,playlist:r}){if(i){const s=K2(i);if(this.activeInitSegmentId_===s)return null;n=this.initSegmentForMap(i,!0).bytes,this.activeInitSegmentId_=s}return n&&this.appendInitSegment_[e]?(this.playlistOfLastInitSegment_[e]=r,this.appendInitSegment_[e]=!1,this.activeInitSegmentId_=null,n):null}handleQuotaExceededError_({segmentInfo:e,type:n,bytes:i},r){const s=this.sourceUpdater_.audioBuffered(),a=this.sourceUpdater_.videoBuffered();s.length>1&&this.logger_("On QUOTA_EXCEEDED_ERR, found gaps in the audio buffer: "+Mh(s).join(", ")),a.length>1&&this.logger_("On QUOTA_EXCEEDED_ERR, found gaps in the video buffer: "+Mh(a).join(", "));const o=s.length?s.start(0):0,l=s.length?s.end(s.length-1):0,u=a.length?a.start(0):0,c=a.length?a.end(a.length-1):0;if(l-o<=z_&&c-u<=z_){this.logger_(`On QUOTA_EXCEEDED_ERR, single segment too large to append to buffer, triggering an error. Appended byte length: ${i.byteLength}, audio buffer: ${Mh(s).join(", ")}, video buffer: ${Mh(a).join(", ")}, `),this.error({message:"Quota exceeded error with append of a single segment of content",excludeUntil:1/0,metadata:{errorType:Be.Error.SegmentExceedsSourceBufferQuota}}),this.trigger("error");return}this.waitingOnRemove_=!0,this.callQueue_.push(this.appendToSourceBuffer_.bind(this,{segmentInfo:e,type:n,bytes:i}));const h=this.currentTime_()-z_;this.logger_(`On QUOTA_EXCEEDED_ERR, removing audio/video from 0 to ${h}`),this.remove(0,h,()=>{this.logger_(`On QUOTA_EXCEEDED_ERR, retrying append in ${z_}s`),this.waitingOnRemove_=!1,this.quotaExceededErrorRetryTimeout_=ue.setTimeout(()=>{this.logger_("On QUOTA_EXCEEDED_ERR, re-processing call queue"),this.quotaExceededErrorRetryTimeout_=null,this.processCallQueue_()},z_*1e3)},!0)}handleAppendError_({segmentInfo:e,type:n,bytes:i},r){if(!!r){if(r.code===xK){this.handleQuotaExceededError_({segmentInfo:e,type:n,bytes:i});return}this.logger_("Received non QUOTA_EXCEEDED_ERR on append",r),this.error({message:`${n} append of ${i.length}b failed for segment #${e.mediaIndex} in playlist ${e.playlist.id}`,metadata:{errorType:Be.Error.SegmentAppendError}}),this.trigger("appenderror")}}appendToSourceBuffer_({segmentInfo:e,type:n,initSegment:i,data:r,bytes:s}){if(!s){const a=[r];let o=r.byteLength;i&&(a.unshift(i),o+=i.byteLength),s=SSe({bytes:o,segments:a})}this.sourceUpdater_.appendBuffer({segmentInfo:e,type:n,bytes:s},this.handleAppendError_.bind(this,{segmentInfo:e,type:n,bytes:s}))}handleSegmentTimingInfo_(e,n,i){if(!this.pendingSegment_||n!==this.pendingSegment_.requestId)return;const r=this.pendingSegment_.segment,s=`${e}TimingInfo`;r[s]||(r[s]={}),r[s].transmuxerPrependedSeconds=i.prependedContentDuration||0,r[s].transmuxedPresentationStart=i.start.presentation,r[s].transmuxedDecodeStart=i.start.decode,r[s].transmuxedPresentationEnd=i.end.presentation,r[s].transmuxedDecodeEnd=i.end.decode,r[s].baseMediaDecodeTime=i.baseMediaDecodeTime}appendData_(e,n){const{type:i,data:r}=n;if(!r||!r.byteLength||i==="audio"&&this.audioDisabled_)return;const s=this.getInitSegmentAndUpdateState_({type:i,initSegment:n.initSegment,playlist:e.playlist,map:e.isFmp4?e.segment.map:null});this.appendToSourceBuffer_({segmentInfo:e,type:i,initSegment:s,data:r})}loadSegment_(e){if(this.state="WAITING",this.pendingSegment_=e,this.trimBackBuffer_(e),typeof e.timestampOffset=="number"&&this.transmuxer_&&this.transmuxer_.postMessage({action:"clearAllMp4Captions"}),!this.hasEnoughInfoToLoad_()){this.loadQueue_.push(()=>{const n=Do({},e,{forceTimestampOffset:!0});Do(e,this.generateSegmentInfo_(n)),this.isPendingTimestampOffset_=!1,this.updateTransmuxerAndRequestSegment_(e)});return}this.updateTransmuxerAndRequestSegment_(e)}updateTransmuxerAndRequestSegment_(e){this.shouldUpdateTransmuxerTimestampOffset_(e.timestampOffset)&&(this.gopBuffer_.length=0,e.gopsToAlignWith=[],this.timeMapping_=0,this.transmuxer_.postMessage({action:"reset"}),this.transmuxer_.postMessage({action:"setTimestampOffset",timestampOffset:e.timestampOffset}));const n=this.createSimplifiedSegmentObj_(e),i=this.isEndOfStream_
279(e.mediaIndex,e.playlist,e.partIndex),r=this.mediaIndex!==null,s=e.timeline!==this.currentTimeline_&&e.timeline>0,a=i||r&&s;this.logger_(`Requesting
280${bK(e.uri)}
281${h0(e)}`),n.map&&!n.map.bytes&&(this.logger_("going to request init segment."),this.appendInitSegment_={video:!0,audio:!0}),e.abortRequests=pSe({xhr:this.vhs_.xhr,xhrOptions:this.xhrOptions_,decryptionWorker:this.decrypter_,segment:n,abortFn:this.handleAbort_.bind(this,e),progressFn:this.handleProgress_.bind(this),trackInfoFn:this.handleTrackInfo_.bind(this),timingInfoFn:this.handleTimingInfo_.bind(this),videoSegmentTimingInfoFn:this.handleSegmentTimingInfo_.bind(this,"video",e.requestId),audioSegmentTimingInfoFn:this.handleSegmentTimingInfo_.bind(this,"audio",e.requestId),captionsFn:this.handleCaptions_.bind(this),isEndOfTimeline:a,endedTimelineFn:()=>{this.logger_("received endedtimeline callback")},id3Fn:this.handleId3_.bind(this),dataFn:this.handleData_.bind(this),doneFn:this.segmentRequestFinished_.bind(this),onTransmuxerLog:({message:o,level:l,stream:u})=>{this.logger_(`${h0(e)} logged from transmuxer stream ${u} as a ${l}: ${o}`)}})}trimBackBuffer_(e){const n=BSe(this.seekable_(),this.currentTime_(),this.playlist_.targetDuration||10);n>0&&this.remove(0,n)}createSimplifiedSegmentObj_(e){const n=e.segment,i=e.part,r={resolvedUri:i?i.resolvedUri:n.resolvedUri,byterange:i?i.byterange:n.byterange,requestId:e.requestId,transmuxer:e.transmuxer,audioAppendStart:e.audioAppendStart,gopsToAlignWith:e.gopsToAlignWith,part:e.part},s=e.playlist.segments[e.mediaIndex-1];if(s&&s.timeline===n.timeline&&(s.videoTimingInfo?r.baseStartTime=s.videoTimingInfo.transmuxedDecodeEnd:s.audioTimingInfo&&(r.baseStartTime=s.audioTimingInfo.transmuxedDecodeEnd)),n.key){const a=n.key.iv||new Uint32Array([0,0,0,e.mediaIndex+e.playlist.mediaSequence]);r.key=this.segmentKey(n.key),r.key.iv=a}return n.map&&(r.map=this.initSegmentForMap(n.map)),r}saveTransferStats_(e){this.mediaRequests+=1,e&&(this.mediaBytesTransferred+=e.bytesReceived,this.mediaTransferDuration+=e.roundTripTime)}saveBandwidthRelatedStats_(e,n){if(this.pendingSegment_.byteLength=n.bytesReceived,e<eS){this.logger_(`Ignoring segment's bandwidth because its duration of ${e} is less than the min to record ${eS}`);return}this.bandwidth=n.bandwidth,this.roundTrip=n.roundTripTime}handleTimeout_(){this.mediaRequestsTimedout+=1,this.bandwidth=1,this.roundTrip=NaN,this.trigger("bandwidthupdate"),this.trigger("timeout")}segmentRequestFinished_(e,n,i){if(this.callQueue_.length){this.callQueue_.push(this.segmentRequestFinished_.bind(this,e,n,i));return}if(this.saveTransferStats_(n.stats),!this.pendingSegment_||n.requestId!==this.pendingSegment_.requestId)return;if(e){if(this.pendingSegment_=null,this.state="READY",e.code===Kl.ABORTED)return;if(this.pause(),e.code===Kl.TIMEOUT){this.handleTimeout_();return}this.mediaRequestsErrored+=1,this.error(e),this.trigger("error");return}const r=this.pendingSegment_;this.saveBandwidthRelatedStats_(r.duration,n.stats),r.endOfAllRequests=n.endOfAllRequests,i.gopInfo&&(this.gopBuffer_=RSe(this.gopBuffer_,i.gopInfo,this.safeAppend_)),this.state="APPENDING",this.trigger("appending"),this.waitForAppendsToComplete_(r)}setTimeMapping_(e){const n=this.syncController_.mappingForTimeline(e);n!==null&&(this.timeMapping_=n)}updateMediaSecondsLoaded_(e){typeof e.start=="number"&&typeof e.end=="number"?this.mediaSecondsLoaded+=e.end-e.start:this.mediaSecondsLoaded+=e.duration}shouldUpdateTransmuxerTimestampOffset_(e){return e===null?!1:this.loaderType_==="main"&&e!==this.sourceUpdater_.videoTimestampOffset()||!this.audioDisabled_&&e!==this.sourceUpdater_.audioTimestampOffset()}trueSegmentStart_({currentStart:e,playlist:n,mediaIndex:i,firstVideoFrameTimeForData:r,currentVideoTimestampOffset:s,useVideoTimingInfo:a,videoTimingInfo:o,audioTimingInfo:l}){if(typeof e<"u")return e;if(!a)return l.start;const u=n.segments[i-1];return i===0||!u||typeof u.start>"u"||u.end!==r+s?r:o.start}waitForAppendsToComplete_(e){const n=this.getCurrentMediaInfo_(e);if(!n){this.error({message:"No starting media returned, likely due to an unsupported media format.",playlistExclusionDuration:1/0,metadata:{errorType:Be.Error.SegmentUnsupportedMediaFormat}}),this.trigger("error");return}const{hasAudio:i,hasVideo:r,isMuxed:s}=n,a=this.loaderType_==="main"&&r,o=!this.audioDisabled_&&i&&!s;if(e.waitingOnAppends=0,!e.hasAppendedData_){!e.timingInfo&&typeof e.timestampOffset=="number"&&(this.isPendingTimestampOffset_=!0),e.timingInfo={start:0},e.waitingOnAppends++,this.isPendingTimestampOffset_||(this.updateSourceBufferTimestampOffset_(e),this.processMetadataQueue_()),this.checkAppendsDone_(e);return}a&&e.waitingOnAppends++,o&&e.waitingOnAppends++,a&&this.sourceUpdater_.videoQueueCallback(this.checkAppendsDone_.bind(this,e)),o&&this.sourceUpdater_.audioQueueCallback(this.checkAppendsDone_.bind(this,e))}
281checkAppendsDone_(e){this.checkForAbort_(e.requestId)||(e.waitingOnAppends--,e.waitingOnAppends===0&&this.handleAppendsDone_())}checkForIllegalMediaSwitch(e){const n=NSe(this.loaderType_,this.getCurrentMediaInfo_(),e);return n?(this.error({message:n,playlistExclusionDuration:1/0,metadata:{errorType:Be.Error.SegmentSwitchError}}),this.trigger("error"),!0):!1}updateSourceBufferTimestampOffset_(e){if(e.timestampOffset===null||typeof e.timingInfo.start!="number"||e.changedTimestampOffset||this.loaderType_!=="main")return;let n=!1;e.timestampOffset-=this.getSegmentStartTimeForTimestampOffsetCalculation_({videoTimingInfo:e.segment.videoTimingInfo,audioTimingInfo:e.segment.audioTimingInfo,timingInfo:e.timingInfo}),e.changedTimestampOffset=!0,e.timestampOffset!==this.sourceUpdater_.videoTimestampOffset()&&(this.sourceUpdater_.videoTimestampOffset(e.timestampOffset),n=!0),e.timestampOffset!==this.sourceUpdater_.audioTimestampOffset()&&(this.sourceUpdater_.audioTimestampOffset(e.timestampOffset),n=!0),n&&this.trigger("timestampoffset")}getSegmentStartTimeForTimestampOffsetCalculation_({videoTimingInfo:e,audioTimingInfo:n,timingInfo:i}){return this.useDtsForTimestampOffset_?e&&typeof e.transmuxedDecodeStart=="number"?e.transmuxedDecodeStart:n&&typeof n.transmuxedDecodeStart=="number"?n.transmuxedDecodeStart:i.start:i.start}updateTimingInfoEnd_(e){e.timingInfo=e.timingInfo||{};const n=this.getMediaInfo_(),r=this.loaderType_==="main"&&n&&n.hasVideo&&e.videoTimingInfo?e.videoTimingInfo:e.audioTimingInfo;!r||(e.timingInfo.end=typeof r.end=="number"?r.end:r.start+e.duration)}handleAppendsDone_(){if(this.pendingSegment_&&this.trigger("appendsdone"),!this.pendingSegment_){this.state="READY",this.paused()||this.monitorBuffer_();return}const e=this.pendingSegment_;e.part&&e.part.syncInfo?e.part.syncInfo.markAppended():e.segment.syncInfo&&e.segment.syncInfo.markAppended(),this.updateTimingInfoEnd_(e),this.shouldSaveSegmentTimingInfo_&&this.syncController_.saveSegmentTimingInfo({segmentInfo:e,shouldSaveTimelineMapping:this.loaderType_==="main"});const n=zSe(e,this.sourceType_);if(n&&(n.severity==="warn"?Be.log.warn(n.message):this.logger_(n.message)),this.recordThroughput_(e),this.pendingSegment_=null,this.state="READY",e.isSyncRequest&&(this.trigger("syncinfoupdate"),!e.hasAppendedData_)){this.logger_(`Throwing away un-appended sync request ${h0(e)}`);return}this.logger_(`Appended ${h0(e)}`),this.addSegmentMetadataCue_(e),this.fetchAtBuffer_=!0,this.currentTimeline_!==e.timeline&&(this.timelineChangeController_.lastTimelineChange({type:this.loaderType_,from:this.currentTimeline_,to:e.timeline}),this.loaderType_==="main"&&!this.audioDisabled_&&this.timelineChangeController_.lastTimelineChange({type:"audio",from:this.currentTimeline_,to:e.timeline})),this.currentTimeline_=e.timeline,this.trigger("syncinfoupdate");const i=e.segment,r=e.part,s=i.end&&this.currentTime_()-i.end>e.playlist.targetDuration*3,a=r&&r.end&&this.currentTime_()-r.end>e.playlist.partTargetDuration*3;if(s||a){this.logger_(`bad ${s?"segment":"part"} ${h0(e)}`),this.resetEverything();return}this.mediaIndex!==null&&this.trigger("bandwidthupdate"),this.trigger("progress"),this.mediaIndex=e.mediaIndex,this.partIndex=e.partIndex,this.isEndOfStream_(e.mediaIndex,e.playlist,e.partIndex)&&this.endOfStream(),this.trigger("appended"),e.hasAppendedData_&&this.mediaAppends++,this.paused()||this.monitorBuffer_()}recordThroughput_(e){if(e.duration<eS){this.logger_(`Ignoring segment's throughput because its duration of ${e.duration} is less than the min to record ${eS}`);return}const n=this.throughput.rate,i=Date.now()-e.endOfAllRequests+1,r=Math.floor(e.byteLength/i*8*1e3);this.throughput.rate+=(r-n)/++this.throughput.count}addSegmentMetadataCue_(e){if(!this.segmentMetadataTrack_)return;const n=e.segment,i=n.start,r=n.end;if(!ZB(i)||!ZB(r))return;Av(i,r,this.segmentMetadataTrack_);const s=ue.WebKitDataCue||ue.VTTCue,a={custom:n.custom,dateTimeObject:n.dateTimeObject,dateTimeString:n.dateTimeString,programDateTime:n.programDateTime,bandwidth:e.playlist.attributes.BANDWIDTH,resolution:e.playlist.attributes.RESOLUTION,codecs:e.playlist.attributes.CODECS,byteLength:e.byteLength,uri:e.ur
281i,timeline:e.timeline,playlist:e.playlist.id,start:i,end:r},o=JSON.stringify(a),l=new s(i,r,o);l.value=a,this.segmentMetadataTrack_.addCue(l)}}function fc(){}const SK=function(t){return typeof t!="string"?t:t.replace(/./,e=>e.toUpperCase())},HSe=["video","audio"],zO=(t,e)=>{const n=e[`${t}Buffer`];return n&&n.updating||e.queuePending[t]},VSe=(t,e)=>{for(let n=0;n<e.length;n++){const i=e[n];if(i.type==="mediaSource")return null;if(i.type===t)return n}return null},Im=(t,e)=>{if(e.queue.length===0)return;let n=0,i=e.queue[n];if(i.type==="mediaSource"){!e.updating()&&e.mediaSource.readyState!=="closed"&&(e.queue.shift(),i.action(e),i.doneFn&&i.doneFn(),Im("audio",e),Im("video",e));return}if(t!=="mediaSource"&&!(!e.ready()||e.mediaSource.readyState==="closed"||zO(t,e))){if(i.type!==t){if(n=VSe(t,e.queue),n===null)return;i=e.queue[n]}if(e.queue.splice(n,1),e.queuePending[t]=i,i.action(t,e),!i.doneFn){e.queuePending[t]=null,Im(t,e);return}}},TK=(t,e)=>{const n=e[`${t}Buffer`],i=SK(t);!n||(n.removeEventListener("updateend",e[`on${i}UpdateEnd_`]),n.removeEventListener("error",e[`on${i}Error_`]),e.codecs[t]=null,e[`${t}Buffer`]=null)},Ul=(t,e)=>t&&e&&Array.prototype.indexOf.call(t.sourceBuffers,e)!==-1,ba={appendBuffer:(t,e,n)=>(i,r)=>{const s=r[`${i}Buffer`];if(!!Ul(r.mediaSource,s)){r.logger_(`Appending segment ${e.mediaIndex}'s ${t.length} bytes to ${i}Buffer`);try{s.appendBuffer(t)}catch(a){r.logger_(`Error with code ${a.code} `+(a.code===xK?"(QUOTA_EXCEEDED_ERR) ":"")+`when appending segment ${e.mediaIndex} to ${i}Buffer`),r.queuePending[i]=null,n(a)}}},remove:(t,e)=>(n,i)=>{const r=i[`${n}Buffer`];if(!!Ul(i.mediaSource,r)){i.logger_(`Removing ${t} to ${e} from ${n}Buffer`);try{r.remove(t,e)}catch(s){i.logger_(`Remove ${t} to ${e} from ${n}Buffer failed`)}}},timestampOffset:t=>(e,n)=>{const i=n[`${e}Buffer`];!Ul(n.mediaSource,i)||(n.logger_(`Setting ${e}timestampOffset to ${t}`),i.timestampOffset=t)},callback:t=>(e,n)=>{t()},endOfStream:t=>e=>{if(e.mediaSource.readyState==="open"){e.logger_(`Calling mediaSource endOfStream(${t||""})`);try{e.mediaSource.endOfStream(t)}catch(n){Be.log.warn("Failed to call media source endOfStream",n)}}},duration:t=>e=>{e.logger_(`Setting mediaSource duration to ${t}`);try{e.mediaSource.duration=t}catch(n){Be.log.warn("Failed to set media source duration",n)}},abort:()=>(t,e)=>{if(e.mediaSource.readyState!=="open")return;const n=e[`${t}Buffer`];if(!!Ul(e.mediaSource,n)){e.logger_(`calling abort on ${t}Buffer`);try{n.abort()}catch(i){Be.log.warn(`Failed to abort on ${t}Buffer`,i)}}},addSourceBuffer:(t,e)=>n=>{const i=SK(t),r=qy(e);n.logger_(`Adding ${t}Buffer with codec ${e} to mediaSource`);const s=n.mediaSource.addSourceBuffer(r);s.addEventListener("updateend",n[`on${i}UpdateEnd_`]),s.addEventListener("error",n[`on${i}Error_`]),n.codecs[t]=e,n[`${t}Buffer`]=s},removeSourceBuffer:t=>e=>{const n=e[`${t}Buffer`];if(TK(t,e),!!Ul(e.mediaSource,n)){e.logger_(`Removing ${t}Buffer with codec ${e.codecs[t]} from mediaSource`);try{e.mediaSource.removeSourceBuffer(n)}catch(i){Be.log.warn(`Failed to removeSourceBuffer ${t}Buffer`,i)}}},changeType:t=>(e,n)=>{const i=n[`${e}Buffer`],r=qy(t);if(!Ul(n.mediaSource,i))return;const s=t.substring(0,t.indexOf(".")),a=n.codecs[e];if(a.substring(0,a.indexOf("."))!==s){n.logger_(`changing ${e}Buffer codec from ${n.codecs[e]} to ${t}`);try{i.changeType(r),n.codecs[e]=t}catch(l){Be.log.warn(`Failed to changeType on ${e}Buffer`,l)}}}},xa=({type:t,sourceUpdater:e,action:n,doneFn:i,name:r})=>{e.queue.push({type:t,action:n,doneFn:i,name:r}),Im(t,e)},tU=(t,e)=>n=>{const i=e[`${t}Buffered`](),r=sxe(i);if(e.logger_(`received "updateend" event for ${t} Source Buffer: `,r),e.queuePending[t]){const s=e.queuePending[t].doneFn;e.queuePending[t]=null,s&&s(e[`${t}Error_`])}Im(t,e)};class EK extends Be.EventTarget{constructor(e){super(),this.mediaSource=e,this.sourceopenListener_=()=>Im("mediaSource",this),this.mediaSource.addEventListener("sourceopen",this.sourceopenListener_),this.logger_=Fo("SourceUpdater"),this.audioTimestampOffset_=0,this.videoTimestampOffset_=0,this.queue=[],this.queuePending={audio:null,video:null},this.delayedAudioAppendQueue_=[],this.videoAppendQueued_=!1,this.codecs={},this.onVideoUpdateEnd_=tU("video",this),this.onAudioUpdateEnd_=tU("audio",this),this.onVideoError_=n=>{this.videoError_=n},this.onAudioError_=n=>{this.audioError_=n},this.createdSourceBuffers_=!1,this.initializedEme_=!1,this.triggeredReady_=!1}initializedEme(){this.initializedEme_=!0,this.triggerReady()}hasCreatedSourceBuffers(){return this.createdSourceBuffers_}hasInitializedAnyEme(){return this.initializedEme_}ready(){return this.hasCreatedSourceBuffers()&&this.hasInitializedAnyEme()}createSourceBuffers(e){this.hasCreatedSourceBuffers()||(this.addOrChangeSourceBuffers(e),this.createdSourceBuffers_=!0,this.trigger("createdsourcebuffers"),this.triggerReady())}
281triggerReady(){this.ready()&&!this.triggeredReady_&&(this.triggeredReady_=!0,this.trigger("ready"))}addSourceBuffer(e,n){xa({type:"mediaSource",sourceUpdater:this,action:ba.addSourceBuffer(e,n),name:"addSourceBuffer"})}abort(e){xa({type:e,sourceUpdater:this,action:ba.abort(e),name:"abort"})}removeSourceBuffer(e){if(!this.canRemoveSourceBuffer()){Be.log.error("removeSourceBuffer is not supported!");return}xa({type:"mediaSource",sourceUpdater:this,action:ba.removeSourceBuffer(e),name:"removeSourceBuffer"})}canRemoveSourceBuffer(){return!Be.browser.IS_FIREFOX&&ue.MediaSource&&ue.MediaSource.prototype&&typeof ue.MediaSource.prototype.removeSourceBuffer=="function"}static canChangeType(){return ue.SourceBuffer&&ue.SourceBuffer.prototype&&typeof ue.SourceBuffer.prototype.changeType=="function"}canChangeType(){return this.constructor.canChangeType()}changeType(e,n){if(!this.canChangeType()){Be.log.error("changeType is not supported!");return}xa({type:e,sourceUpdater:this,action:ba.changeType(n),name:"changeType"})}addOrChangeSourceBuffers(e){if(!e||typeof e!="object"||Object.keys(e).length===0)throw new Error("Cannot addOrChangeSourceBuffers to undefined codecs");Object.keys(e).forEach(n=>{const i=e[n];if(!this.hasCreatedSourceBuffers())return this.addSourceBuffer(n,i);this.canChangeType()&&this.changeType(n,i)})}appendBuffer(e,n){const{segmentInfo:i,type:r,bytes:s}=e;if(this.processedAppend_=!0,r==="audio"&&this.videoBuffer&&!this.videoAppendQueued_){this.delayedAudioAppendQueue_.push([e,n]),this.logger_(`delayed audio append of ${s.length} until video append`);return}const a=n;if(xa({type:r,sourceUpdater:this,action:ba.appendBuffer(s,i||{mediaIndex:-1},a),doneFn:n,name:"appendBuffer"}),r==="video"){if(this.videoAppendQueued_=!0,!this.delayedAudioAppendQueue_.length)return;const o=this.delayedAudioAppendQueue_.slice();this.logger_(`queuing delayed audio ${o.length} appendBuffers`),this.delayedAudioAppendQueue_.length=0,o.forEach(l=>{this.appendBuffer.apply(this,l)})}}audioBuffered(){return Ul(this.mediaSource,this.audioBuffer)&&this.audioBuffer.buffered?this.audioBuffer.buffered:es()}videoBuffered(){return Ul(this.mediaSource,this.videoBuffer)&&this.videoBuffer.buffered?this.videoBuffer.buffered:es()}buffered(){const e=Ul(this.mediaSource,this.videoBuffer)?this.videoBuffer:null,n=Ul(this.mediaSource,this.audioBuffer)?this.audioBuffer:null;return n&&!e?this.audioBuffered():e&&!n?this.videoBuffered():oxe(this.audioBuffered(),this.videoBuffered())}setDuration(e,n=fc){xa({type:"mediaSource",sourceUpdater:this,action:ba.duration(e),name:"duration",doneFn:n})}endOfStream(e=null,n=fc){typeof e!="string"&&(e=void 0),xa({type:"mediaSource",sourceUpdater:this,action:ba.endOfStream(e),name:"endOfStream",doneFn:n})}removeAudio(e,n,i=fc){if(!this.audioBuffered().length||this.audioBuffered().end(0)===0){i();return}xa({type:"audio",sourceUpdater:this,action:ba.remove(e,n),doneFn:i,name:"remove"})}removeVideo(e,n,i=fc){if(!this.videoBuffered().length||this.videoBuffered().end(0)===0){i();return}xa({type:"video",sourceUpdater:this,action:ba.remove(e,n),doneFn:i,name:"remove"})}updating(){return!!(zO("audio",this)||zO("video",this))}audioTimestampOffset(e){return typeof e<"u"&&this.audioBuffer&&this.audioTimestampOffset_!==e&&(xa({type:"audio",sourceUpdater:this,action:ba.timestampOffset(e),name:"timestampOffset"}),this.audioTimestampOffset_=e),this.audioTimestampOffset_}videoTimestampOffset(e){return typeof e<"u"&&this.videoBuffer&&this.videoTimestampOffset!==e&&(xa({type:"video",sourceUpdater:this,action:ba.timestampOffset(e),name:"timestampOffset"}),this.videoTimestampOffset_=e),this.videoTimestampOffset_}audioQueueCallback(e){!this.audioBuffer||xa({type:"audio",sourceUpdater:this,action:ba.callback(e),name:"callback"})}videoQueueCallback(e){!this.videoBuffer||xa({type:"video",sourceUpdater:this,action:ba.callback(e),name:"callback"})}dispose(){this.trigger("dispose"),HSe.forEach(e=>{this.abort(e),this.canRemoveSourceBuffer()?this.removeSourceBuffer(e):this[`${e}QueueCallback`](()=>TK(e,this))}),this.videoAppendQueued_=!1,this.delayedAudioAppendQueue_.length=0,this.sourceopenListener_&&this.mediaSource.removeEventListener("sourceopen",this.sourceopenListener_),this.off()}}const nU=t=>decodeURIComponent(escape(String.fromCharCode.apply(null,t))),WSe=t=>{const e=new Uint8Array(t);return Array.from(e).map(n=>n.toString(16).padStart(2,"0")).join("")},iU=new Uint8Array(`
282
283`.split("").map(t=>t.charCodeAt(0)));
283class GSe extends Error{constructor(){super("Trying to parse received VTT cues, but there is no WebVTT. Make sure vtt.js is loaded.")}}class jSe extends $O{constructor(e,n={}){super(e,n),this.mediaSource_=null,this.subtitlesTrack_=null,this.featuresNativeTextTracks_=e.featuresNativeTextTracks,this.loadVttJs=e.loadVttJs,this.shouldSaveSegmentTimingInfo_=!1}createTransmuxer_(){return null}buffered_(){if(!this.subtitlesTrack_||!this.subtitlesTrack_.cues||!this.subtitlesTrack_.cues.length)return es();const e=this.subtitlesTrack_.cues,n=e[0].startTime,i=e[e.length-1].startTime;return es([[n,i]])}initSegmentForMap(e,n=!1){if(!e)return null;const i=K2(e);let r=this.initSegments_[i];if(n&&!r&&e.bytes){const s=iU.byteLength+e.bytes.byteLength,a=new Uint8Array(s);a.set(e.bytes),a.set(iU,e.bytes.byteLength),this.initSegments_[i]=r={resolvedUri:e.resolvedUri,byterange:e.byterange,bytes:a}}return r||e}couldBeginLoading_(){return this.playlist_&&this.subtitlesTrack_&&!this.paused()}init_(){return this.state="READY",this.resetEverything(),this.monitorBuffer_()}track(e){return typeof e>"u"?this.subtitlesTrack_:(this.subtitlesTrack_=e,this.state==="INIT"&&this.couldBeginLoading_()&&this.init_(),this.subtitlesTrack_)}remove(e,n){Av(e,n,this.subtitlesTrack_)}fillBuffer_(){const e=this.chooseNextRequest_();if(!!e){if(this.syncController_.timestampOffsetForTimeline(e.timeline)===null){const n=()=>{this.state="READY",this.paused()||this.monitorBuffer_()};this.syncController_.one("timestampoffset",n),this.state="WAITING_ON_TIMELINE";return}this.loadSegment_(e)}}timestampOffsetForSegment_(){return null}chooseNextRequest_(){return this.skipEmptySegments_(super.chooseNextRequest_())}skipEmptySegments_(e){for(;e&&e.segment.empty;){if(e.mediaIndex+1>=e.playlist.segments.length){e=null;break}e=this.generateSegmentInfo_({playlist:e.playlist,mediaIndex:e.mediaIndex+1,startOfSegment:e.startOfSegment+e.duration,isSyncRequest:e.isSyncRequest})}return e}stopForError(e){this.error(e),this.state="READY",this.pause(),this.trigger("error")}segmentRequestFinished_(e,n,i){if(!this.subtitlesTrack_){this.state="READY";return}if(this.saveTransferStats_(n.stats),!this.pendingSegment_){this.state="READY",this.mediaRequestsAborted+=1;return}if(e){e.code===Kl.TIMEOUT&&this.handleTimeout_(),e.code===Kl.ABORTED?this.mediaRequestsAborted+=1:this.mediaRequestsErrored+=1,this.stopForError(e);return}const r=this.pendingSegment_;this.saveBandwidthRelatedStats_(r.duration,n.stats),n.key&&this.segmentKey(n.key,!0),this.state="APPENDING",this.trigger("appending");const s=r.segment;if(s.map&&(s.map.bytes=n.map.bytes),r.bytes=n.bytes,typeof ue.WebVTT!="function"&&typeof this.loadVttJs=="function"){this.state="WAITING_ON_VTTJS",this.loadVttJs().then(()=>this.segmentRequestFinished_(e,n,i),()=>this.stopForError({message:"Error loading vtt.js",metadata:{errorType:Be.Error.VttLoadError}}));return}s.requested=!0;try{this.parseVTTCues_(r)}catch(a){this.stopForError({message:a.message,metadata:{errorType:Be.Error.VttCueParsingError}});return}if(this.updateTimeMapping_(r,this.syncController_.timelines[r.timeline],this.playlist_),r.cues.length?r.timingInfo={start:r.cues[0].startTime,end:r.cues[r.cues.length-1].endTime}:r.timingInfo={start:r.startOfSegment,end:r.startOfSegment+r.duration},r.isSyncRequest){this.trigger("syncinfoupdate"),this.pendingSegment_=null,this.state="READY";return}r.byteLength=r.bytes.byteLength,this.mediaSecondsLoaded+=s.duration,r.cues.forEach(a=>{this.subtitlesTrack_.addCue(this.featuresNativeTextTracks_?new ue.VTTCue(a.startTime,a.endTime,a.text):a)}),PSe(this.subtitlesTrack_),this.handleAppendsDone_()}handleData_(){}updateTimingInfoEnd_(){}parseVTTCues_(e){let n,i=!1;if(typeof ue.WebVTT!="function")throw new GSe;typeof ue.TextDecoder=="function"?n=new ue.TextDecoder("utf8"):(n=ue.WebVTT.StringDecoder(),i=!0);const r=new ue.WebVTT.Parser(ue,ue.vttjs,n);if(e.cues=[],e.timestampmap={MPEGTS:0,LOCAL:0},r.oncue=e.cues.push.bind(e.cues),r.ontimestampmap=a=>{e.timestampmap=a},r.onparsingerror=a=>{Be.log.warn("Error encountered when parsing cues: "+a.message)},e.segment.map){let a=e.segment.map.bytes;i&&(a=nU(a)),r.parse(a)}let s=e.bytes;i&&(s=nU(s)),r.parse(s),r.flush()}updateTimeMapping_(e,n,i){const r=e.segment;if(!n)return;if(!e.cues.length){r.empty=!0;return}const{MPEGTS:s,LOCAL:a}=e.timestampmap,l=s/Ah.ONE_SECOND_IN_TS-a+n.mapping;
vendor: 6,674 bytes, lines 283-286
283if(e.cues.forEach(u=>{const c=u.endTime-u.startTime,f=s===0?u.startTime+l:this.handleRollover_(u.startTime+l,n.time);u.startTime=Math.max(f,0),u.endTime=Math.max(f+c,0)}),!i.syncInfo){const u=e.cues[0].startTime,c=e.cues[e.cues.length-1].startTime;i.syncInfo={mediaSequence:i.mediaSequence+e.mediaIndex,time:Math.min(u,c-r.duration)}}}handleRollover_(e,n){if(n===null)return e;let i=e*Ah.ONE_SECOND_IN_TS;const r=n*Ah.ONE_SECOND_IN_TS;let s;for(r<i?s=-8589934592:s=8589934592;Math.abs(i-r)>4294967296;)i+=s;return i/Ah.ONE_SECOND_IN_TS}}const qSe=function(t,e){const n=t.cues;for(let i=0;i<n.length;i++){const r=n[i];if(e>=r.adStartTime&&e<=r.adEndTime)return r}return null},XSe=function(t,e,n=0){if(!t.segments)return;let i=n,r;for(let s=0;s<t.segments.length;s++){const a=t.segments[s];if(r||(r=qSe(e,i+a.duration/2)),r){if("cueIn"in a){r.endTime=i,r.adEndTime=i,i+=a.duration,r=null;continue}if(i<r.endTime){i+=a.duration;continue}r.endTime+=a.duration}else if("cueOut"in a&&(r=new ue.VTTCue(i,i+a.duration,a.cueOut),r.adStartTime=i,r.adEndTime=i+parseFloat(a.cueOut),e.addCue(r)),"cueOutCont"in a){const[o,l]=a.cueOutCont.split("/").map(parseFloat);r=new ue.VTTCue(i,i+a.duration,""),r.adStartTime=i-o,r.adEndTime=r.adStartTime+l,e.addCue(r)}i+=a.duration}};class rU{constructor({start:e,end:n,segmentIndex:i,partIndex:r=null,appended:s=!1}){this.start_=e,this.end_=n,this.segmentIndex_=i,this.partIndex_=r,this.appended_=s}isInRange(e){return e>=this.start&&e<this.end}markAppended(){this.appended_=!0}resetAppendedStatus(){this.appended_=!1}get isAppended(){return this.appended_}get start(){return this.start_}get end(){return this.end_}get segmentIndex(){return this.segmentIndex_}get partIndex(){return this.partIndex_}}class YSe{constructor(e,n=[]){this.segmentSyncInfo_=e,this.partsSyncInfo_=n}get segmentSyncInfo(){return this.segmentSyncInfo_}get partsSyncInfo(){return this.partsSyncInfo_}get hasPartsSyncInfo(){return this.partsSyncInfo_.length>0}resetAppendStatus(){this.segmentSyncInfo_.resetAppendedStatus(),this.partsSyncInfo_.forEach(e=>e.resetAppendedStatus())}}class eD{constructor(){this.storage_=new Map,this.diagnostics_="",this.isReliable_=!1,this.start_=-1/0,this.end_=1/0}get start(){return this.start_}get end(){return this.end_}get diagnostics(){return this.diagnostics_}get isReliable(){return this.isReliable_}resetAppendedStatus(){this.storage_.forEach(e=>e.resetAppendStatus())}update(e,n){const{mediaSequence:i,segments:r}=e;if(this.isReliable_=this.isReliablePlaylist_(i,r),!!this.isReliable_)return this.updateStorage_(r,i,this.calculateBaseTime_(i,n))}getSyncInfoForTime(e){for(const{segmentSyncInfo:n,partsSyncInfo:i}of this.storage_.values())if(i.length){for(const r of i)if(r.isInRange(e))return r}else if(n.isInRange(e))return n;return null}updateStorage_(e,n,i){const r=new Map;let s=`
284`,a=i,o=n;this.start_=a,e.forEach((l,u)=>{const c=this.storage_.get(o),f=a,h=f+l.duration,p=Boolean(c&&c.segmentSyncInfo&&c.segmentSyncInfo.isAppended),m=new rU({start:f,end:h,appended:p,segmentIndex:u});l.syncInfo=m;let y=a;const v=(l.parts||[]).map((_,b)=>{const x=y,T=y+_.duration,E=Boolean(c&&c.partsSyncInfo&&c.partsSyncInfo[b]&&c.partsSyncInfo[b].isAppended),C=new rU({start:x,end:T,appended:E,segmentIndex:u,partIndex:b});return y=T,s+=`Media Sequence: ${o}.${b} | Range: ${x} --> ${T} | Appended: ${E}
285`,_.syncInfo=C,C});r.set(o,new YSe(m,v)),s+=`${bK(l.resolvedUri)} | Media Sequence: ${o} | Range: ${f} --> ${h} | Appended: ${p}
286`,o++,a=h}),this.end_=a,this.storage_=r,this.diagnostics_=s}calculateBaseTime_(e,n){return this.storage_.size?this.storage_.has(e)?this.storage_.get(e).segmentSyncInfo.start:n:0}isReliablePlaylist_(e,n){return e!=null&&Array.isArray(n)&&n.length}}const KSe=86400,tD=[{name:"VOD",run:(t,e,n,i,r)=>n!==1/0?{time:0,segmentIndex:0,partIndex:null}:null},{name:"MediaSequence",run:(t,e,n,i,r,s)=>{const a=t.getMediaSequenceSync(s);if(!a||!a.isReliable)return null;const o=a.getSyncInfoForTime(r);return o?{time:o.start,partIndex:o.partIndex,segmentIndex:o.segmentIndex}:null}},{name:"ProgramDateTime",run:(t,e,n,i,r)=>{if(!Object.keys(t.timelineToDatetimeMappings).length)return null;let s=null,a=null;const o=RO(e);r=r||0;for(let l=0;l<o.length;l++){const u=e.endList||r===0?l:o.length-(l+1),c=o[u],f=c.segment,h=t.timelineToDatetimeMappings[f.timeline];if(!h||!f.dateTimeObject)continue;let m=f.dateTimeObject.getTime()/1e3+h;if(f.parts&&typeof c.partIndex=="number")for(let v=0;v<c.partIndex;v++)m+=f.parts[v].duration;const y=Math.abs(r-m);if(a!==null&&(y===0||a<y))break;a=y,s={time:m,segmentIndex:c.segmentIndex,partIndex:c.partIndex}}return s}},{name:"Segment",run:(t,e,n,i,r)=>{let s=null,a=null;r=r||0;const o=RO(e);for(let l=0;l<o.length;l++){const u=e.endList||r===0?l:o.length-(l+1),c=o[u],f=c.segment,h=c.part&&c.part.start||f&&f.start;if(f.timeline===i&&typeof h<"u"){const p=Math.abs(r-h);if(a!==null&&a<p)break;(!s||a===null||a>=p)&&(a=p,s={time:h,segmentIndex:c.segmentIndex,partIndex:c.partIndex})}}return s}},{name:"Discontinuity",run:(t,e,n,i,r)=>{let s=null;if(r=r||0,e.discontinuityStarts&&e.discontinuityStarts.length){let a=null;for(let o=0;o<e.discontinuityStarts.length;o++){const l=e.discontinuityStarts[o],u=e.discontinuitySequence+o+1,c=t.discontinuities[u];if(c){const f=Math.abs(r-c.time);if(a!==null&&a<f)break;(!s||a===null||a>=f)&&(a=f,s={time:c.time,segmentIndex:l,partIndex:null})}}}return s}},{name:"Playlist",run:(t,e,n,i,r)=>e.syncInfo?{time:e.syncInfo.time,segmentIndex:e.syncInfo.mediaSequence-e.mediaSequence,partIndex:null}:null}];class ZSe extends Be.EventTarget{constructor(e={}){super(),this.timelines=[],this.discontinuities=[],this.timelineToDatetimeMappings={},this.mediaSequenceStorage_={main:new eD,audio:new eD,vtt:new eD},this.logger_=Fo("SyncController")}getMediaSequenceSync(e){return this.mediaSequenceStorage_[e]||null}getSyncPoint(e,n,i,r,s){if(n!==1/0)return tD.find(({name:l})=>l==="VOD").run(this,e,n);const a=this.runStrategies_(e,n,i,r,s);if(!a.length)return null;for(const o of a){const{syncPoint:l,strategy:u}=o,{segmentIndex:c,time:f}=l;if(c<0)continue;const h=e.segments[c],p=f,m=p+h.duration;if(this.logger_(`Strategy: ${u}. Current time: ${r}. selected segment: ${c}. Time: [${p} -> ${m}]}`),r>=p&&r<m)return this.logger_("Found sync point with exact match: ",l),l}return this.selectSyncPoint_(a,{key:"time",value:r})}getExpiredTime(e,n){if(!e||!e.segments)return null;const i=this.runStrategies_(e,n,e.discontinuitySequence,0);if(!i.length)return null;const r=this.selectSyncPoint_(i,{key:"segmentIndex",value:0});return r.segmentIndex>0&&(r.time*=-1),Math.abs(r.time+ay({defaultDuration:e.targetDuration,durationList:e.segments,startIndex:r.
286segmentIndex,endIndex:0}))}runStrategies_(e,n,i,r,s){const a=[];for(let o=0;o<tD.length;o++){const l=tD[o],u=l.run(this,e,n,i,r,s);u&&(u.strategy=l.name,a.push({strategy:l.name,syncPoint:u}))}return a}selectSyncPoint_(e,n){let i=e[0].syncPoint,r=Math.abs(e[0].syncPoint[n.key]-n.value),s=e[0].strategy;for(let a=1;a<e.length;a++){const o=Math.abs(e[a].syncPoint[n.key]-n.value);o<r&&(r=o,i=e[a].syncPoint,s=e[a].strategy)}return this.logger_(`syncPoint for [${n.key}: ${n.value}] chosen with strategy [${s}]: [time:${i.time}, segmentIndex:${i.segmentIndex}`+(typeof i.partIndex=="number"?`,partIndex:${i.partIndex}`:"")+"]"),i}saveExpiredSegmentInfo(e,n){const i=n.mediaSequence-e.mediaSequence;if(i>KSe){Be.log.warn(`Not saving expired segment info. Media sequence gap ${i} is too large.`);return}for(let r=i-1;r>=0;r--){const s=e.segments[r];if(s&&typeof s.start<"u"){n.syncInfo={mediaSequence:e.mediaSequence+r,time:s.start},this.logger_(`playlist refresh sync: [time:${n.syncInfo.time}, mediaSequence: ${n.syncInfo.mediaSequence}]`),this.trigger("syncinfoupdate");break}}}setDateTimeMappingForStart(e){if(this.timelineToDatetimeMappings={},e.segments&&e.segments.length&&e.segments[0].dateTimeObject){const n=e.segments[0],i=n.dateTimeObject.getTime()/1e3;this.timelineToDatetimeMappings[n.timeline]=-i}}saveSegmentTimingInfo({segmentInfo:e,shouldSaveTimelineMapping:n}){const i=this.calculateSegmentTimeMapping_(e,e.timingInfo,n),r=e.segment;i&&(this.saveDiscontinuitySyncInfo_(e),e.playlist.syncInfo||(e.playlist.syncInfo={mediaSequence:e.playlist.mediaSequence+e.mediaIndex,time:r.start}));const s=r.dateTimeObject;r.discontinuity&&n&&s&&(this.timelineToDatetimeMappings[r.timeline]=-(s.getTime()/1e3))}timestampOffsetForTimeline(e){return typeof this.timelines[e]>"u"?null:this.timelines[e].time}mappingForTimeline(e){return typeof this.timelines[e]>"u"?null:this.timelines[e].mapping}calculateSegmentTimeMapping_(e,n,i){const r=e.segment,s=e.part;let a=this.timelines[e.timeline],o,l;if(typeof e.timestampOffset=="number")a={time:e.startOfSegment,mapping:e.startOfSegment-n.start},i&&(this.timelines[e.timeline]=a,this.trigger("timestampoffset"),this.logger_(`time mapping for timeline ${e.timeline}: [time: ${a.time}] [mapping: ${a.mapping}]`)),o=e.startOfSegment,l=n.end+a.mapping;else if(a)o=n.start+a.mapping,l=n.end+a.mapping;else return!1;return s&&(s.start=o,s.end=l),(!r.start||o<r.start)&&(r.start=o),r.end=l,!0}saveDiscontinuitySyncInfo_(e){const n=e.playlist,i=e.segment;if(i.discontinuity)this.discontinuities[i.timeline]={time:i.start,accuracy:0};else if(n.discontinuityStarts&&n.discontinuityStarts.length)for(let r=0;r<n.discontinuityStarts.length;r++){const s=n.discontinuityStarts[r],a=n.discontinuitySequence+r+1,o=s-e.mediaIndex,l=Math.abs(o);if(!this.discontinuities[a]||this.discontinuities[a].accuracy>l){let u;o<0?u=i.start-ay({defaultDuration:n.targetDuration,durationList:n.segments,startIndex:e.mediaIndex,endIndex:s}):u=i.end+ay({defaultDuration:n.targetDuration,durationList:n.segments,startIndex:e.mediaIndex+1,endIndex:s}),this.discontinuities[a]={time:u,accuracy:l}}}}dispose(){this.trigger("dispose"),this.off()}}class QSe extends Be.EventTarget{constructor(){super(),this.pendingTimelineChanges_={},this.lastTimelineChanges_={}}clearPendingTimelineChange(e){this.pendingTimelineChanges_[e]=null,this.trigger("pendingtimelinechange")}pendingTimelineChange({type:e,from:n,to:i}){return typeof n=="number"&&typeof i=="number"&&(this.pendingTimelineChanges_[e]={type:e,from:n,to:i},this.trigger("pendingtimelinechange")),this.pendingTimelineChanges_[e]}lastTimelineChange({type:e,from:n,to:i}){return typeof n=="number"&&typeof i=="number"&&(this.lastTimelineChanges_[e]={type:e,from:n,to:i},delete this.pendingTimelineChanges_[e],this.trigger("timelinechange")),this.lastTimelineChanges_[e]}dispose(){this.trigger("dispose"),this.pendingTimelineChanges_={},this.lastTimelineChanges_={},this.off()}}const JSe=uK(cK(function(){var t=function(){function y(){this.listeners={}}var v=y.prototype;return v.on=function(b,x){this.listeners[b]||(this.listeners[b]=[]),this.listeners[b].push(x)},v.off=function(b,x){if(!this.listeners[b])return!1;var T=this.listeners[b].indexOf(x);return this.listeners[b]=this.listeners[b].slice(0),this.listeners[b].splice(T,1),T>-1},v.trigger=function(b){var x=this.listeners[b];if(!!x)if(arguments.length===2)for(var T=x.length,E=0;E<T;++E)x[E].call(this,arguments[1]);
286else for(var C=Array.prototype.slice.call(arguments,1),D=x.length,R=0;R<D;++R)x[R].apply(this,C)},v.dispose=function(){this.listeners={}},v.pipe=function(b){this.on("data",function(x){b.push(x)})},y}();/*! @name pkcs7 @version 1.0.4 @license Apache-2.0 */function e(y){return y.subarray(0,y.byteLength-y[y.byteLength-1])}/*! @name aes-decrypter @version 4.0.1 @license Apache-2.0 */const n=function(){const y=[[[],[],[],[],[]],[[],[],[],[],[]]],v=y[0],_=y[1],b=v[4],x=_[4];let T,E,C;const D=[],R=[];let A,k,F,N,U,$;for(T=0;T<256;T++)R[(D[T]=T<<1^(T>>7)*283)^T]=T;for(E=C=0;!b[E];E^=A||1,C=R[C]||1)for(N=C^C<<1^C<<2^C<<3^C<<4,N=N>>8^N&255^99,b[E]=N,x[N]=E,F=D[k=D[A=D[E]]],$=F*16843009^k*65537^A*257^E*16843008,U=D[N]*257^N*16843008,T=0;T<4;T++)v[T][E]=U=U<<24^U>>>8,_[T][N]=$=$<<24^$>>>8;for(T=0;T<5;T++)v[T]=v[T].slice(0),_[T]=_[T].slice(0);return y};let i=null;class r{constructor(v){i||(i=n()),this._tables=[[i[0][0].slice(),i[0][1].slice(),i[0][2].slice(),i[0][3].slice(),i[0][4].slice()],[i[1][0].slice(),i[1][1].slice(),i[1][2].slice(),i[1][3].slice(),i[1][4].slice()]];let _,b,x;const T=this._tables[0][4],E=this._tables[1],C=v.length;let D=1;if(C!==4&&C!==6&&C!==8)throw new Error("Invalid aes key size");const R=v.slice(0),A=[];for(this._key=[R,A],_=C;_<4*C+28;_++)x=R[_-1],(_%C===0||C===8&&_%C===4)&&(x=T[x>>>24]<<24^T[x>>16&255]<<16^T[x>>8&255]<<8^T[x&255],_%C===0&&(x=x<<8^x>>>24^D<<24,D=D<<1^(D>>7)*283)),R[_]=R[_-C]^x;for(b=0;_;b++,_--)x=R[b&3?_:_-4],_<=4||b<4?A[b]=x:A[b]=E[0][T[x>>>24]]^E[1][T[x>>16&255]]^E[2][T[x>>8&255]]^E[3][T[x&255]]}decrypt(v,_,b,x,T,E){const C=this._key[1];let D=v^C[0],R=x^C[1],A=b^C[2],k=_^C[3],F,N,U;const $=C.length/4-2;let G,Y=4;const Q=this._tables[1],re=Q[0],he=Q[1],X=Q[2],ae=Q[3],de=Q[4];for(G=0;G<$;G++)F=re[D>>>24]^he[R>>16&255]^X[A>>8&255]^ae[k&255]^C[Y],N=re[R>>>24]^he[A>>16&255]^X[k>>8&255]^ae[D&255]^C[Y+1],U=re[A>>>24]^he[k>>16&255]^X[D>>8&255]^ae[R&255]^C[Y+2],k=re[k>>>24]^he[D>>16&255]^X[R>>8&255]^ae[A&255]^C[Y+3],Y+=4,D=F,R=N,A=U;for(G=0;G<4;G++)T[(3&-G)+E]=de[D>>>24]<<24^de[R>>16&255]<<16^de[A>>8&255]<<8^de[k&255]^C[Y++],F=D,D=R,R=A,A=k,k=F}}class s extends t{constructor(){super(t),this.jobs=[],this.delay=1,this.timeout_=null}processJob_(){this.jobs.shift()(),this.jobs.length?this.timeout_=setTimeout(this.processJob_.bind(this),this.delay):this.timeout_=null}push(v){this.jobs.push(v),this.timeout_||(this.timeout_=setTimeout(this.processJob_.bind(this),this.delay))}}const a=function(y){return y<<24|(y&65280)<<8|(y&16711680)>>8|y>>>24},o=function(y,v,_){const b=new Int32Array(y.buffer,y.byteOffset,y.byteLength>>2),x=new r(Array.prototype.slice.call(v)),T=new Uint8Array(y.byteLength),E=new Int32Array(T.buffer);let C,D,R,A,k,F,N,U,$;for(C=_[0],D=_[1],R=_[2],A=_[3],$=0;$<b.length;$+=4)k=a(b[$]),F=a(b[$+1]),N=a(b[$+2]),U=a(b[$+3]),x.decrypt(k,F,N,U,E,$),E[$]=a(E[$]^C),E[$+1]=a(E[$+1]^D),E[$+2]=a(E[$+2]^R),E[$+3]=a(E[$+3]^A),C=k,D=F,R=N,A=U;return T};class l{constructor(v,_,b,x){const T=l.STEP,E=new Int32Array(v.buffer),C=new Uint8Array(v.byteLength);let D=0;for(this.asyncStream_=new s,this.asyncStream_.push(this.decryptChunk_(E.subarray(D,D+T),_,b,C)),D=T;D<E.length;D+=T)b=new Uint32Array([a(E[D-4]),a(E[D-3]),a(E[D-2]),a(E[D-1])]),this.asyncStream_.push(this.decryptChunk_(E.subarray(D,D+T),_,b,C));this.asyncStream_.push(function(){x(null,e(C))})}static get STEP(){return 32e3}decryptChunk_(v,_,b,x){return function(){const T=o(v,_,b);x.set(T,v.byteOffset)}}}var u=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},c;typeof window<"u"?c=window:typeof u<"u"?c=u:typeof self<"u"?c=self:c={};var f=c,h=function(v){return ArrayBuffer.isView==="function"?ArrayBuffer.isView(v):v&&v.buffer instanceof ArrayBuffer},p=f.BigInt||Number;p("0x1"),p("0x100"),p("0x10000"),p("0x1000000"),p("0x100000000"),p("0x10000000000"),p("0x1000000000000"),p("0x100000000000000"),p("0x10000000000000000"),function(){var y=new Uint16Array([65484]),v=new Uint8Array(y.buffer,y.byteOffset,y.byteLength);return v[0]===255?"big":v[0]===204?"little":"unknown"}();const m=function(y){const v={};
286return Object.keys(y).forEach(_=>{const b=y[_];h(b)?v[_]={bytes:b.buffer,byteOffset:b.byteOffset,byteLength:b.byteLength}:v[_]=b}),v};self.onmessage=function(y){const v=y.data,_=new Uint8Array(v.encrypted.bytes,v.encrypted.byteOffset,v.encrypted.byteLength),b=new Uint32Array(v.key.bytes,v.key.byteOffset,v.key.byteLength/4),x=new Uint32Array(v.iv.bytes,v.iv.byteOffset,v.iv.byteLength/4);new l(_,b,x,function(T,E){self.postMessage(m({source:v.source,decrypted:E}),[E.buffer])})}}));var eTe=lK(JSe);const tTe=t=>{let e=t.default?"main":"alternative";return t.characteristics&&t.characteristics.indexOf("public.accessibility.describes-video")>=0&&(e="main-desc"),e},wK=(t,e)=>{t.abort(),t.pause(),e&&e.activePlaylistLoader&&(e.activePlaylistLoader.pause(),e.activePlaylistLoader=null)},HO=(t,e)=>{e.activePlaylistLoader=t,t.load()},nTe=(t,e)=>()=>{const{segmentLoaders:{[t]:n,main:i},mediaTypes:{[t]:r}}=e,s=r.activeTrack(),a=r.getActiveGroup(),o=r.activePlaylistLoader,l=r.lastGroup_;if(!(a&&l&&a.id===l.id)&&(r.lastGroup_=a,r.lastTrack_=s,wK(n,r),!(!a||a.isMainPlaylist))){if(!a.playlistLoader){o&&i.resetEverything();return}n.resyncLoader(),HO(a.playlistLoader,r)}},iTe=(t,e)=>()=>{const{segmentLoaders:{[t]:n},mediaTypes:{[t]:i}}=e;i.lastGroup_=null,n.abort(),n.pause()},rTe=(t,e)=>()=>{const{mainPlaylistLoader:n,segmentLoaders:{[t]:i,main:r},mediaTypes:{[t]:s}}=e,a=s.activeTrack(),o=s.getActiveGroup(),l=s.activePlaylistLoader,u=s.lastTrack_;if(!(u&&a&&u.id===a.id)&&(s.lastGroup_=o,s.lastTrack_=a,wK(i,s),!!o)){if(o.isMainPlaylist){if(!a||!u||a.id===u.id)return;const c=e.vhs.playlistController_,f=c.selectPlaylist();if(c.media()===f)return;s.logger_(`track change. Switching main audio from ${u.id} to ${a.id}`),n.pause(),r.resetEverything(),c.fastQualityChange_(f);return}if(t==="AUDIO"){if(!o.playlistLoader){r.setAudio(!0),r.resetEverything();return}i.setAudio(!0),r.setAudio(!1)}if(l===o.playlistLoader){HO(o.playlistLoader,s);return}i.track&&i.track(a),i.resetEverything(),HO(o.playlistLoader,s)}},J2={AUDIO:(t,e)=>()=>{const{mediaTypes:{[t]:n},excludePlaylist:i}=e,r=n.activeTrack(),s=n.activeGroup(),a=(s.filter(l=>l.default)[0]||s[0]).id,o=n.tracks[a];if(r===o){i({error:{message:"Problem encountered loading the default audio track."}});return}Be.log.warn("Problem encountered loading the alternate audio track.Switching back to default.");for(const l in n.tracks)n.tracks[l].enabled=n.tracks[l]===o;n.onTrackChanged()},SUBTITLES:(t,e)=>()=>{const{mediaTypes:{[t]:n}}=e;Be.log.warn("Problem encountered loading the subtitle track.Disabling subtitle track.");const i=n.activeTrack();i&&(i.mode="disabled"),n.onTrackChanged()}},sU={AUDIO:(t,e,n)=>{if(!e)return;const{tech:i,requestOptions:r,segmentLoaders:{[t]:s}}=n;e.on("loadedmetadata",()=>{const a=e.media();s.playlist(a,r),(!i.paused()||a.endList&&i.preload()!=="none")&&s.load()}),e.on("loadedplaylist",()=>{s.playlist(e.media(),r),i.paused()||s.load()}),e.on("error",J2[t](t,n))},SUBTITLES:(t,e,n)=>{const{tech:i,requestOptions:r,segmentLoaders:{[t]:s},mediaTypes:{[t]:a}}=n;e.on("loadedmetadata",()=>{const o=e.media();s.playlist(o,r),s.track(a.activeTrack()),(!i.paused()||o.endList&&i.preload()!=="none")&&s.load()}),e.on("loadedplaylist",()=>{s.playlist(e.media(),r),i.paused()||s.load()}),e.on("error",J2[t](t,n))}},sTe={AUDIO:(t,e)=>{const{vhs:n,sourceType:i,segmentLoaders:{[t]:r},requestOptions:s,main:{mediaGroups:a},mediaTypes:{[t]:{groups:o,tracks:l,logger_:u}},mainPlaylistLoader:c}=e,f=qb(c.main);(!a[t]||Object.keys(a[t]).length===0)&&(a[t]={main:{default:{default:!0}}},f&&(a[t].main.default.playlists=c.main.playlists));for(const h in a[t]){o[h]||(o[h]=[]);for(const p in a[t][h]){let m=a[t][h][p],y;if(f?(u(`AUDIO group '${h}' label '${p}' is a main playlist`),m.isMainPlaylist=!0,y=null):i==="vhs-json"&&m.playlists?y=new rm(m.playlists[0],n,s):m.resolvedUri?y=new rm(m.resolvedUri,n,s):m.playlists&&i==="dash"?y=new BO(m.playlists[0],n,s,c):y=null,m=Un({id:p,playlistLoader:y},m),sU[t](t,m.playlistLoader,e),o[h].push(m),typeof l[p]>"u"){const v=new Be.AudioTrack({id:p,kind:tTe(m),enabled:!1,language:m.language,default:m.default,label:p});l[p]=v}}}r.on("error",J2[t](t,e))},SUBTITLES:(t,e)=>{const{tech:n,vhs:i,sourceType:r,segmentLoaders:{[t]:s},requestOptions:a,main:{mediaGroups:o},mediaTypes:{[t]:{groups:l,tracks:u}},mainPlaylistLoader:c}=e;for(const f in o[t]){l[f]||(l[f]=[]);for(const h in o[t][f]){if(!i.options_.useForcedSubtitles&&o[t][f][h].forced)continue;let p=o[t][f][h],m;
vendor: 5,384 bytes, line 286
286if(r==="hls")m=new rm(p.resolvedUri,i,a);else if(r==="dash"){if(!p.playlists.filter(v=>v.excludeUntil!==1/0).length)return;m=new BO(p.playlists[0],i,a,c)}else r==="vhs-json"&&(m=new rm(p.playlists?p.playlists[0]:p.resolvedUri,i,a));if(p=Un({id:h,playlistLoader:m},p),sU[t](t,p.playlistLoader,e),l[f].push(p),typeof u[h]>"u"){const y=n.addRemoteTextTrack({id:h,kind:"subtitles",default:p.default&&p.autoselect,language:p.language,label:h},!1).track;u[h]=y}}}s.on("error",J2[t](t,e))},"CLOSED-CAPTIONS":(t,e)=>{const{tech:n,main:{mediaGroups:i},mediaTypes:{[t]:{groups:r,tracks:s}}}=e;for(const a in i[t]){r[a]||(r[a]=[]);for(const o in i[t][a]){const l=i[t][a][o];if(!/^(?:CC|SERVICE)/.test(l.instreamId))continue;const u=n.options_.vhs&&n.options_.vhs.captionServices||{};let c={label:o,language:l.language,instreamId:l.instreamId,default:l.default&&l.autoselect};if(u[c.instreamId]&&(c=Un(c,u[c.instreamId])),c.default===void 0&&delete c.default,r[a].push(Un({id:o},l)),typeof s[o]>"u"){const f=n.addRemoteTextTrack({id:c.instreamId,kind:"captions",default:c.default,language:c.language,label:c.label},!1).track;s[o]=f}}}}},CK=(t,e)=>{for(let n=0;n<t.length;n++)if(UL(e,t[n])||t[n].playlists&&CK(t[n].playlists,e))return!0;return!1},aTe=(t,e)=>n=>{const{mainPlaylistLoader:i,mediaTypes:{[t]:{groups:r}}}=e,s=i.media();if(!s)return null;let a=null;s.attributes[t]&&(a=r[s.attributes[t]]);const o=Object.keys(r);if(!a)if(t==="AUDIO"&&o.length>1&&qb(e.main))for(let l=0;l<o.length;l++){const u=r[o[l]];if(CK(u,s)){a=u;break}}else r.main?a=r.main:o.length===1&&(a=r[o[0]]);return typeof n>"u"?a:n===null||!a?null:a.filter(l=>l.id===n.id)[0]||null},oTe={AUDIO:(t,e)=>()=>{const{mediaTypes:{[t]:{tracks:n}}}=e;for(const i in n)if(n[i].enabled)return n[i];return null},SUBTITLES:(t,e)=>()=>{const{mediaTypes:{[t]:{tracks:n}}}=e;for(const i in n)if(n[i].mode==="showing"||n[i].mode==="hidden")return n[i];return null}},lTe=(t,{mediaTypes:e})=>()=>{const n=e[t].activeTrack();return n?e[t].activeGroup(n):null},uTe=t=>{["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(u=>{sTe[u](u,t)});const{mediaTypes:e,mainPlaylistLoader:n,tech:i,vhs:r,segmentLoaders:{["AUDIO"]:s,main:a}}=t;["AUDIO","SUBTITLES"].forEach(u=>{e[u].activeGroup=aTe(u,t),e[u].activeTrack=oTe[u](u,t),e[u].onGroupChanged=nTe(u,t),e[u].onGroupChanging=iTe(u,t),e[u].onTrackChanged=rTe(u,t),e[u].getActiveGroup=lTe(u,t)});const o=e.AUDIO.activeGroup();if(o){const u=(o.filter(f=>f.default)[0]||o[0]).id;e.AUDIO.tracks[u].enabled=!0,e.AUDIO.onGroupChanged(),e.AUDIO.onTrackChanged(),e.AUDIO.getActiveGroup().playlistLoader?(a.setAudio(!1),s.setAudio(!0)):a.setAudio(!0)}n.on("mediachange",()=>{["AUDIO","SUBTITLES"].forEach(u=>e[u].onGroupChanged())}),n.on("mediachanging",()=>{["AUDIO","SUBTITLES"].forEach(u=>e[u].onGroupChanging())});const l=()=>{e.AUDIO.onTrackChanged(),i.trigger({type:"usage",name:"vhs-audio-change"})};i.audioTracks().addEventListener("change",l),i.remoteTextTracks().addEventListener("change",e.SUBTITLES.onTrackChanged),r.on("dispose",()=>{i.audioTracks().removeEventListener("change",l),i.remoteTextTracks().removeEventListener("change",e.SUBTITLES.onTrackChanged)}),i.clearTracks("audio");for(const u in e.AUDIO.tracks)i.audioTracks().addTrack(e.AUDIO.tracks[u])},cTe=()=>{const t={};return["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(e=>{t[e]={groups:{},tracks:{},activePlaylistLoader:null,activeGroup:fc,activeTrack:fc,getActiveGroup:fc,onGroupChanged:fc,onTrackChanged:fc,lastTrack_:null,logger_:Fo(`MediaGroups[${e}]`)}}),t};class aU{constructor(){this.priority_=[],this.pathwayClones_=new Map}set version(e){e===1&&(this.version_=e)}set ttl(e){this.ttl_=e||300}set reloadUri(e){e&&(this.reloadUri_=js(this.reloadUri_,e))}set priority(e){e&&e.length&&(this.priority_=e)}set pathwayClones(e){e&&e.length&&(this.pathwayClones_=new Map(e.map(n=>[n.ID,n])))}get version(){return this.version_}get ttl(){return this.ttl_}get reloadUri(){return this.reloadUri_}get priority(){return this.priority_}get pathwayClones(){return this.pathwayClones_}}class fTe extends Be.EventTarget{constructor(e,n){super(),this.currentPathway=null,this.defaultPathway=null,this.queryBeforeStart=!1,this.availablePathways_=new Set,this.steeringManifest=new aU,this.proxyServerUrl_=null,this.manifestType_=null,this.ttlTimeout_=null,this.request_=null,this.currentPathwayClones=new Map,this.nextPathwayClones=new Map,this.excludedSteeringManifestURLs=new Set,this.logger_=Fo("Content Steering"),this.xhr_=e,this.getBandwidth_=n}assignTagProperties(e,n){this.manifestType_=n.serverUri?"HLS":"DASH";const i=n.serverUri||n.serverURL;if(!i){this.logger_(`steering manifest URL is ${i}, cannot request steering manifest.`),this.trigger("error");return}if(i.startsWith("data:")){this.decodeDataUriManifest_(i.substring(i.indexOf(",")+1));return}this.steeringManifest.reloadUri=js(e,i),this.defaultPathway=n.pathwayId||n.defaultServiceLocation,this.queryBeforeStart=n.queryBeforeStart,this.proxyServerUrl_=n.proxyServerURL,this.defaultPathway&&!this.queryBeforeStart&&this.trigger("content-steering")}requestSteeringManifest(e){const n=this.steeringManifest.reloadUri;if(!n)return;const i=e?n:this.getRequestURI(n);if(!i){this.logger_("No valid content steering manifest URIs. Stopping content steering."),this.trigger("error"),this.dispose();return}this.request_=this.xhr_({uri:i,requestType:"content-steering-manifest"},(r,s)=>
286{if(r){if(s.status===410){this.logger_(`manifest request 410 ${r}.`),this.logger_(`There will be no more content steering requests to ${i} this session.`),this.excludedSteeringManifestURLs.add(i);return}if(s.status===429){const o=s.responseHeaders["retry-after"];this.logger_(`manifest request 429 ${r}.`),this.logger_(`content steering will retry in ${o} seconds.`),this.startTTLTimeout_(parseInt(o,10));return}this.logger_(`manifest failed to load ${r}.`),this.startTTLTimeout_();return}const a=JSON.parse(this.request_.responseText);this.assignSteeringProperties_(a),this.startTTLTimeout_()})}setProxyServerUrl_(e){const n=new ue.URL(e),i=new ue.URL(this.proxyServerUrl_);return i.searchParams.set("url",encodeURI(n.toString())),this.setSteeringParams_(i.toString())}decodeDataUriManifest_(e){const n=JSON.parse(ue.atob(e));this.assignSteeringProperties_(n)}setSteeringParams_(e){const n=new ue.URL(e),i=this.getPathway(),r=this.getBandwidth_();if(i){const s=`_${this.manifestType_}_pathway`;n.searchParams.set(s,i)}if(r){const s=`_${this.manifestType_}_throughput`;n.searchParams.set(s,r)}return n.toString()}assignSteeringProperties_(e){if(this.steeringManifest.version=e.VERSION,!this.steeringManifest.version){this.logger_(`manifest version is ${e.VERSION}, which is not supported.`),this.trigger("error");return}this.steeringManifest.ttl=e.TTL,this.steeringManifest.reloadUri=e["RELOAD-URI"],this.steeringManifest.priority=e["PATHWAY-PRIORITY"]||e["SERVICE-LOCATION-PRIORITY"],this.steeringManifest.pathwayClones=e["PATHWAY-CLONES"],this.nextPathwayClones=this.steeringManifest.pathwayClones,this.availablePathways_.size||(this.logger_("There are no available pathways for content steering. Ending content steering."),this.trigger("error"),this.dispose());const i=(r=>{for(const s of r)if(this.availablePathways_.has(s))return s;return[...this.availablePathways_][0]})(this.steeringManifest.priority);this.currentPathway!==i&&(this.currentPathway=i,this.trigger("content-steering"))}getPathway(){return this.currentPathway||this.defaultPathway}getRequestURI(e){if(!e)return null;const n=r=>this.excludedSteeringManifestURLs.has(r);if(this.proxyServerUrl_){const r=this.setProxyServerUrl_(e);if(!n(r))return r}const i=this.setSteeringParams_(e);return n(i)?null:i}startTTLTimeout_(e=this.steeringManifest.ttl){const n=e*1e3;this.ttlTimeout_=ue.setTimeout(()=>{this.requestSteeringManifest()},n)}clearTTLTimeout_(){ue.clearTimeout(this.ttlTimeout_),this.ttlTimeout_=null}abort(){this.request_&&this.request_.abort(),this.request_=null}dispose(){this.off("content-steering"),this.off("error"),this.abort(),this.clearTTLTimeout_(),this.currentPathway=null,this.defaultPathway=null,this.queryBeforeStart=null,this.proxyServerUrl_=null,this.manifestType_=null,this.ttlTimeout_=null,this.request_=null,this.excludedSteeringManifestURLs=new Set,this.availablePathways_=new Set,this.steeringManifest=new aU}addAvailablePathway(e){e&&this.availablePathways_.add(e)}clearAvailablePathways(){this.availablePathways_.clear()}excludePathway(e){return this.availablePathways_.delete(e)}didDASHTagChange(e,n){return!n&&this.steeringManifest.reloadUri||n&&(js(e,n.serverURL)!==this.steeringManifest.reloadUri||n.defaultServiceLocation!==this.defaultPathway||n.queryBeforeStart!==this.queryBeforeStart||n.proxyServerURL!==this.proxyServerUrl_)}getAvailablePathways(){return this.availablePathways_}}const dTe=10;let Vu;const hTe=["mediaRequests","mediaRequestsAborted","mediaRequestsTimedout","mediaRequestsErrored","mediaTransferDuration","mediaBytesTransferred","mediaAppends"],pTe=function(t){return this.audioSegmentLoader_[t]+this.mainSegmentLoader_[t]},mTe=function({currentPlaylist:t,buffered:e,currentTime:n,nextPlaylist:i,bufferLowWaterLine:r,bufferHighWaterLine:s,duration:a,bufferBasedABR:o,log:l}){if(!i)return Be.log.warn("We received no playlist to switch to. Please check your stream."),!1;const u=`allowing switch ${t&&t.id||"null"} -> ${i.id}`;if(!t)return l(`${u} as current playlist is not set`),!0;if(i.id===t.id)return!1;const c=Boolean(im(e,n).length);if(!t.endList)return!c&&typeof t.partTargetDuration=="number"?(l(`n
286ot ${u} as current playlist is live llhls, but currentTime isn't in buffered.`),!1):(l(`${u} as current playlist is live`),!0);const f=FL(e,n),h=o?_r.EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE:_r.MAX_BUFFER_LOW_WATER_LINE;if(a<h)return l(`${u} as duration < max low water line (${a} < ${h})`),!0;const p=i.attributes.BANDWIDTH,m=t.attributes.BANDWIDTH;if(p<m&&(!o||f<s)){let y=`${u} as next bandwidth < current bandwidth (${p} < ${m})`;return o&&(y+=` and forwardBuffer < bufferHighWaterLine (${f} < ${s})`),l(y),!0}if((!o||p>m)&&f>=r){let y=`${u} as forwardBuffer >= bufferLowWaterLine (${f} >= ${r})`;return o&&(y+=` and next bandwidth > current bandwidth (${p} > ${m})`),l(y),!0}return l(`not ${u} as no switching criteria met`),!1};class gTe extends Be.EventTarget{constructor(e){super();const{src:n,withCredentials:i,tech:r,bandwidth:s,externVhs:a,useCueTags:o,playlistExclusionDuration:l,enableLowInitialPlaylist:u,sourceType:c,cacheEncryptionKeys:f,bufferBasedABR:h,leastPixelDiffSelector:p,captionServices:m}=e;if(!n)throw new Error("A non-empty playlist URL or JSON manifest string is required");let{maxPlaylistRetries:y}=e;(y===null||typeof y>"u")&&(y=1/0),Vu=a,this.bufferBasedABR=Boolean(h),this.leastPixelDiffSelector=Boolean(p),this.withCredentials=i,this.tech_=r,this.vhs_=r.vhs,this.sourceType_=c,this.useCueTags_=o,this.playlistExclusionDuration=l,this.maxPlaylistRetries=y,this.enableLowInitialPlaylist=u,this.useCueTags_&&(this.cueTagsTrack_=this.tech_.addTextTrack("metadata","ad-cues"),this.cueTagsTrack_.inBandMetadataTrackDispatchType=""),this.requestOptions_={withCredentials:i,maxPlaylistRetries:y,timeout:null},this.on("error",this.pauseLoading),this.mediaTypes_=cTe(),this.mediaSource=new ue.MediaSource,this.handleDurationChange_=this.handleDurationChange_.bind(this),this.handleSourceOpen_=this.handleSourceOpen_.bind(this),this.handleSourceEnded_=this.handleSourceEnded_.bind(this),this.mediaSource.addEventListener("durationchange",this.handleDurationChange_),this.mediaSource.addEventListener("sourceopen",this.handleSourceOpen_),this.mediaSource.addEventListener("sourceended",this.handleSourceEnded_),this.seekable_=es(),this.hasPlayed_=!1,this.syncController_=new ZSe(e),this.segmentMetadataTrack_=r.addRemoteTextTrack({kind:"metadata",label:"segment-metadata"},!1).track,this.decrypter_=new eTe,this.sourceUpdater_=new EK(this.mediaSource),this.inbandTextTracks_={},this.timelineChangeController_=new QSe,this.keyStatusMap_=new Map;const v={vhs:this.vhs_,parse708captions:e.parse708captions,useDtsForTimestampOffset:e.useDtsForTimestampOffset,captionServices:m,mediaSource:this.mediaSource,currentTime:this.tech_.currentTime.bind(this.tech_),seekable:()=>this.seekable(),seeking:()=>this.tech_.seeking(),duration:()=>this.duration(),hasPlayed:()=>this.hasPlayed_,goalBufferLength:()=>this.goalBufferLength(),bandwidth:s,syncController:this.syncController_,decrypter:this.decrypter_,sourceType:this.sourceType_,inbandTextTracks:this.inbandTextTracks_,cacheEncryptionKeys:f,sourceUpdater:this.sourceUpdater_,timelineChangeController:this.timelineChangeController_,exactManifestTimings:e.exactManifestTimings,addMetadataToTextTrack:this.addMetadataToTextTrack.bind(this)};this.mainPlaylistLoader_=this.sourceType_==="dash"?new BO(n,this.vhs_,Un(this.requestOptions_,{addMetadataToTextTrack:this.addMetadataToTextTrack.bind(this)})):new rm(n,this.vhs_,Un(this.requestOptions_,{addDateRangesToTextTrack:this.addDateRangesToTextTrack_.bind(this)})),this.setupMainPlaylistLoaderListeners_(),this.mainSegmentLoader_=new $O(Un(v,{segmentMetadataTrack:this.segmentMetadataTrack_,loaderType:"main"}),e),this.audioSegmentLoader_=new $O(Un(v,{loaderType:"audio"}),e),this.subtitleSegmentLoader_=new jSe(Un(v,{loaderType:"vtt",featuresNativeTextTracks:this.tech_.featuresNativeTextTracks,loadVttJs:()=>new Promise((x,T)=>{function E(){r.off("vttjserror",C),x()}function C(){r.off("vttjsloaded",E),T()}r.one("vttjsloaded",E),r.one("vttjserror",C),r.addWebVttScript_()})}),e);const _=()=>this.mainSegmentLoader_.bandwidth;this.contentSteeringController_=new fTe(this.vhs_.xhr,_),this.setupSegmentLoaderListeners_(),this.bufferBasedABR&&(this.mainPlaylistLoader_.one("loadedplaylist",()=>this.startABRTimer_()),this.tech_.on("pause",()=>this.stopABRTimer_()),this.tech_.on("play",()=>this.startABRTimer_())),hTe.forEach(x=>{this[x+"_"]=pTe.bind(this,x)}),this.logger_=Fo("pc"),this.triggeredFmp4Usage=!1,this.tech_.preload()==="none"?(this.loadOnPlay_=()=>{this.loadOnPlay_=null,this.mainPlaylistLoader_.load()},this.tech_.one("play",this.loadOnPlay_)):this.mainPlaylistLoader_.load(),this.timeToLoadedData__=-1,this.mainAppendsToLoadedData__=-1,this.audioAppendsToLoadedData__=-1;const b=this.tech_.preload()==="none"?"play":"loadstart";this.tech_.one(b,()=>{const x=Date.now();this.tech_.one("loadeddata",()=>{this.timeToLoadedData__=Date.now()-x,this.mainAppendsToLoadedData__=this.mainSegmentLoader_.mediaAppends,this.audioAppendsToLoadedData__=this.audioSegmentLoader_.mediaAppends})})}mainAppendsToLoadedData_(){return this.mainAppendsToLoadedData__}audioAppendsToLoadedData_(){return this.audioAppendsToLoadedData__}appendsToLoadedData_(){const e=this.mainAppendsToLoadedData_(),n=this.audioAppendsToLoadedData_();return e===-1||n===-1?-1:e+n}timeToLoadedData_(){return this.timeToLoadedData__}checkABR_(e="abr"){const n=this.selectPlaylist();n&&this.shouldSwitchToMedia_(n)&&this.switchMedia_(n,e)}switchMedia_(e,n,i){const r=this.media(),s=r&&(r.id||r.uri),a=e&&(e.id||e.uri);s&&s!==a&&(this.logger_(`switch media ${s} -> ${a} from ${n}`),this.tech_.trigger({type:"usage",name:`vhs-rendition-change-${n}`})),this.mainPlaylistLoader_.media(e,i)}switchMediaForDASHContentSteering_(){["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(e
vendor: 5,265 bytes, line 286
286=>{const n=this.mediaTypes_[e],i=n?n.activeGroup():null,r=this.contentSteeringController_.getPathway();if(i&&r){const a=(i.length?i[0].playlists:i.playlists).filter(o=>o.attributes.serviceLocation===r);a.length&&this.mediaTypes_[e].activePlaylistLoader.media(a[0])}})}startABRTimer_(){this.stopABRTimer_(),this.abrTimer_=ue.setInterval(()=>this.checkABR_(),250)}stopABRTimer_(){this.tech_.scrubbing&&this.tech_.scrubbing()||(ue.clearInterval(this.abrTimer_),this.abrTimer_=null)}getAudioTrackPlaylists_(){const e=this.main(),n=e&&e.playlists||[];if(!e||!e.mediaGroups||!e.mediaGroups.AUDIO)return n;const i=e.mediaGroups.AUDIO,r=Object.keys(i);let s;if(Object.keys(this.mediaTypes_.AUDIO.groups).length)s=this.mediaTypes_.AUDIO.activeTrack();else{const o=i.main||r.length&&i[r[0]];for(const l in o)if(o[l].default){s={label:l};break}}if(!s)return n;const a=[];for(const o in i)if(i[o][s.label]){const l=i[o][s.label];if(l.playlists&&l.playlists.length)a.push.apply(a,l.playlists);else if(l.uri)a.push(l);else if(e.playlists.length)for(let u=0;u<e.playlists.length;u++){const c=e.playlists[u];c.attributes&&c.attributes.AUDIO&&c.attributes.AUDIO===o&&a.push(c)}}return a.length?a:n}setupMainPlaylistLoaderListeners_(){this.mainPlaylistLoader_.on("loadedmetadata",()=>{const e=this.mainPlaylistLoader_.media(),n=e.targetDuration*1.5*1e3;kO(this.mainPlaylistLoader_.main,this.mainPlaylistLoader_.media())?this.requestOptions_.timeout=0:this.requestOptions_.timeout=n,e.endList&&this.tech_.preload()!=="none"&&(this.mainSegmentLoader_.playlist(e,this.requestOptions_),this.mainSegmentLoader_.load()),uTe({sourceType:this.sourceType_,segmentLoaders:{AUDIO:this.audioSegmentLoader_,SUBTITLES:this.subtitleSegmentLoader_,main:this.mainSegmentLoader_},tech:this.tech_,requestOptions:this.requestOptions_,mainPlaylistLoader:this.mainPlaylistLoader_,vhs:this.vhs_,main:this.main(),mediaTypes:this.mediaTypes_,excludePlaylist:this.excludePlaylist.bind(this)}),this.triggerPresenceUsage_(this.main(),e),this.setupFirstPlay(),!this.mediaTypes_.AUDIO.activePlaylistLoader||this.mediaTypes_.AUDIO.activePlaylistLoader.media()?this.trigger("selectedinitialmedia"):this.mediaTypes_.AUDIO.activePlaylistLoader.one("loadedmetadata",()=>{this.trigger("selectedinitialmedia")})}),this.mainPlaylistLoader_.on("loadedplaylist",()=>{this.loadOnPlay_&&this.tech_.off("play",this.loadOnPlay_);let e=this.mainPlaylistLoader_.media();if(!e){this.attachContentSteeringListeners_(),this.initContentSteeringController_(),this.excludeUnsupportedVariants_();let n;if(this.enableLowInitialPlaylist&&(n=this.selectInitialPlaylist()),n||(n=this.selectPlaylist()),!n||!this.shouldSwitchToMedia_(n)||(this.initialMedia_=n,this.switchMedia_(this.initialMedia_,"initial"),!(this.sourceType_==="vhs-json"&&this.initialMedia_.segments)))return;e=this.initialMedia_}this.handleUpdatedMediaPlaylist(e)}),this.mainPlaylistLoader_.on("error",()=>{const e=this.mainPlaylistLoader_.error;this.excludePlaylist({playlistToExclude:e.playlist,error:e})}),this.mainPlaylistLoader_.on("mediachanging",()=>{this.mainSegmentLoader_.abort(),this.mainSegmentLoader_.pause()}),this.mainPlaylistLoader_.on("mediachange",()=>{const e=this.mainPlaylistLoader_.media(),n=e.targetDuration*1.5*1e3;kO(this.mainPlaylistLoader_.main,this.mainPlaylistLoader_.media())?this.requestOptions_.timeout=0:this.requestOptions_.timeout=n,this.sourceType_==="dash"&&this.mainPlaylistLoader_.load(),this.mainSegmentLoader_.pause(),this.mainSegmentLoader_.playlist(e,this.requestOptions_),this.waitingForFastQualityPlaylistReceived_?this.runFastQualitySwitch_():this.mainSegmentLoader_.load(),this.tech_.trigger({type:"mediachange",bubbles:!0})}),this.mainPlaylistLoader_.on("playlistunchanged",()=>{const e=this.mainPlaylistLoader_.media();if(e.lastExcludeReason_==="playlist-unchanged")return;this.stuckAtPlaylistEnd_(e)&&(this.excludePlaylist({error:{message:"Playlist no longer updating.",reason:"playlist-unchanged"}}),this.tech_.trigger("playliststuck"))}),this.mainPlaylistLoader_.on("renditiondisabled",()=>{this.tech_.trigger({type:"usage",name:"vhs-rendition-disabled"})}),this.mainPlaylistLoader_.on("renditionenabled",()=>{this.tech_.trigger({type:"usage",name:"vhs-rendition-enabled"})})}handleUpdatedMediaPlaylist(e){this.useCueTags_&&this.updateAdCues_(e),this.mainSegmentLoader_.pause(),this.mainSegmentLoader_.playlist(e,this.requestOptions_),this.waitingForFastQualityPlaylistReceived_&&this.runFastQualitySwitch_(),this.updateDuration(!e.endList),this.tech_.paused()||(this.mainSegmentLoader_.load(),this.audioSegmentLoader_&&this.audioSegmentLoader_.load())}triggerPresenceUsage_(e,n){const i=e.mediaGroups||{};let r=!0;const s=Object.keys(i.AUDIO);for(const a in i.AUDIO)for(const o in i.AUDIO[a])i.AUDIO[a][o].uri||(r=!1);r&&this.tech_.trigger({type:"usage",name:"vhs-demuxed"}),Object.keys(i.SUBTITLES).length&&this.tech_.trigger({type:"usage",name:"vhs-webvtt"}),Vu.Playlist.isAes(n)&&this.tech_.trigger({type:"usage",name:"vhs-aes"}),s.length&&Object.keys(i.AUDIO[s[0]]).length>1&&this.tech_.trigger({type:"usage",name:"vhs-alternate-audio"}),this.useCueTags_&&this.tech_.trigger({type:"usage",name:"vhs-playlist-cue-tags"})}shouldSwitchToMedia_(e){const n=this.mainPlaylistLoader_.media()||this.mainPlaylistLoader_.pen
vendor: 1,329 bytes, line 286
286dingMedia_,i=this.tech_.currentTime(),r=this.bufferLowWaterLine(),s=this.bufferHighWaterLine(),a=this.tech_.buffered();return mTe({buffered:a,currentTime:i,currentPlaylist:n,nextPlaylist:e,bufferLowWaterLine:r,bufferHighWaterLine:s,duration:this.duration(),bufferBasedABR:this.bufferBasedABR,log:this.logger_})}setupSegmentLoaderListeners_(){this.mainSegmentLoader_.on("bandwidthupdate",()=>{this.checkABR_("bandwidthupdate"),this.tech_.trigger("bandwidthupdate")}),this.mainSegmentLoader_.on("timeout",()=>{this.bufferBasedABR&&this.mainSegmentLoader_.load()}),this.bufferBasedABR||this.mainSegmentLoader_.on("progress",()=>{this.trigger("progress")}),this.mainSegmentLoader_.on("error",()=>{const n=this.mainSegmentLoader_.error();this.excludePlaylist({playlistToExclude:n.playlist,error:n})}),this.mainSegmentLoader_.on("appenderror",()=>{this.error=this.mainSegmentLoader_.error_,this.trigger("error")}),this.mainSegmentLoader_.on("syncinfoupdate",()=>{this.onSyncInfoUpdate_()}),this.mainSegmentLoader_.on("timestampoffset",()=>{this.tech_.trigger({type:"usage",name:"vhs-timestamp-offset"})}),this.audioSegmentLoader_.on("syncinfoupdate",()=>{this.onSyncInfoUpdate_()}),this.audioSegmentLoader_.on("appenderror",()=>{this.error=this.audioSegmentLoader_.error_,this.trigger("error")}),this.mainSegmentLoader_.on("ended",()=>
286{this.logger_("main segment loader ended"),this.onEndOfStream()}),this.mainSegmentLoader_.on("earlyabort",n=>{this.bufferBasedABR||(this.delegateLoaders_("all",["abort"]),this.excludePlaylist({error:{message:"Aborted early because there isn't enough bandwidth to complete the request without rebuffering."},playlistExclusionDuration:dTe}))});const e=()=>{if(!this.sourceUpdater_.hasCreatedSourceBuffers())return this.tryToCreateSourceBuffers_();const n=this.getCodecsOrExclude_();!n||this.sourceUpdater_.addOrChangeSourceBuffers(n)};this.mainSegmentLoader_.on("trackinfo",e),this.audioSegmentLoader_.on("trackinfo",e),this.mainSegmentLoader_.on("fmp4",()=>{this.triggeredFmp4Usage||(this.tech_.trigger({type:"usage",name:"vhs-fmp4"}),this.triggeredFmp4Usage=!0)}),this.audioSegmentLoader_.on("fmp4",()=>{this.triggeredFmp4Usage||(this.tech_.trigger({type:"usage",name:"vhs-fmp4"}),this.triggeredFmp4Usage=!0)}),this.audioSegmentLoader_.on("ended",()=>{this.logger_("audioSegmentLoader ended"),this.onEndOfStream()})}mediaSecondsLoaded_(){return Math.max(this.audioSegmentLoader_.mediaSecondsLoaded+this.mainSegmentLoader_.mediaSecondsLoaded)}load(){this.mainSegmentLoader_.load(),this.mediaTypes_.AUDIO.activePlaylistLoader&&this.audioSegmentLoader_.load(),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&this.subtitleSegmentLoader_.load()}fastQualityChange_(e=this.selectPlaylist()){if(e&&e===this.mainPlaylistLoader_.media()){this.logger_("skipping fastQualityChange because new media is same as old");return}this.switchMedia_(e,"fast-quality"),this.waitingForFastQualityPlaylistReceived_=!0}runFastQualitySwitch_(){this.waitingForFastQualityPlaylistReceived_=!1,this.mainSegmentLoader_.pause(),this.mainSegmentLoader_.resetEverything(()=>{this.tech_.setCurrentTime(this.tech_.currentTime())})}play(){if(this.setupFirstPlay())return;this.tech_.ended()&&this.tech_.setCurrentTime(0),this.hasPlayed_&&this.load();const e=this.tech_.seekable();if(this.tech_.duration()===1/0&&this.tech_.currentTime()<e.start(0))return this.tech_.setCurrentTime(e.end(e.length-1))}setupFirstPlay(){const e=this.mainPlaylistLoader_.media();if(!e||this.tech_.paused()||this.hasPlayed_)return!1;if(!e.endList||e.start){const n=this.seekable();if(!n.length)return!1;const i=n.end(0);let r=i;if(e.start){const s=e.start.timeOffset;s<0?r=Math.max(i+s,n.start(0)):r=Math.min(i,s)}this.trigger("firstplay"),this.tech_.setCurrentTime(r)}return this.hasPlayed_=!0,this.load(),!0}handleSourceOpen_(){if(this.tryToCreateSourceBuffers_(),this.tech_.autoplay()){const e=this.tech_.play();typeof e<"u"&&typeof e.then=="function"&&e.then(null,n=>{})}this.trigger("sourceopen")}handleSourceEnded_(){if(!this.inbandTextTracks_.metadataTrack_)return;const e=this.inbandTextTracks_.metadataTrack_.cues;if(!e||!e.length)return;const n=this.duration();e[e.length-1].endTime=isNaN(n)||Math.abs(n)===1/0?Number.MAX_VALUE:n}handleDurationChange_(){this.tech_.trigger("durationchange")}onEndOfStream(){let e=this.mainSegmentLoader_.ended_;if(this.mediaTypes_.AUDIO.activePlaylistLoader){const n=this.mainSegmentLoader_.getCurrentMediaInfo_();!n||n.hasVideo?e=e&&this.audioSegmentLoader_.ended_:e=this.audioSegmentLoader_.ended_}!e||(this.stopABRTimer_(),this.sourceUpdater_.endOfStream())}stuckAtPlaylistEnd_(e){if(!this.seekable().length)return!1;const i=this.syncController_.getExpiredTime(e,this.duration());if(i===null)return!1;const r=Vu.Playlist.playlistEnd(e,i),s=this.tech_.currentTime(),a=this.tech_.buffered();if(!a.length)return r-s<=Yl;const o=a.end(a.length-1);return o-s<=Yl&&r-o<=Yl}excludePlaylist({playlistToExclude:e=this.mainPlaylistLoader_.media(),error:n={},playlistExclusionDuration:i}){if(e=e||this.mainPlaylistLoader_.media(),i=i||n.playlistExclusionDuration||this.playlistExclusionDuration,!e){this.error=n,this.mediaSource.readyState!=="open"?this.trigger("error"):this.sourceUpdater_.endOfStream("network");return}e.playlistErrors_++;const r=this.mainPlaylistLoader_.main.playlists,s=r.filter(Nw),a=s.length===1&&s[0]===e;if(r.length===1&&i!==1/0)return Be.log.warn(`Problem encountered with playlist ${e.id}. Trying again since it is the only playlist.`),this.tech_.trigger("retryplaylist"),this.mainPlaylistLoader_.load(a);if(a){if(this.main().contentSteering){const m=this.pathwayAttribute_(e),y=this.contentSteeringController_.steeringManifest.ttl*1e3;this.contentSteeringController_.excludePathway(m),this.excludeThenChangePathway_(),setTimeout(()=>{this.contentSteeringController_.addAvailablePathway(m)},y);return}let p=!1;r.forEach(m=>{if(m===e)return;const y=m.excludeUntil;typeof y<"u"&&y!==1/0&&(p=!0,delete m.excludeUntil)}),p&&(Be.log.warn("Removing other playlists from the exclusion list because the last rendition is about to be excluded."),this.tech_.trigger("retryplaylist"))}let o;e.playlistErrors_>this.maxPlaylistRetries?o=1/0:o=Date.now()+i*1e3,e.excludeUntil=o,n.reason&&(e.lastExcludeReason_=n.reason),this.tech_.trigger("excludeplaylist"),this.tech_.trigger({type:"usage",name:"vhs-rendition-excluded"});const l=this.selectPlaylist();if(!l){this.error="Playback cannot continue. No available working or supported playlists.",this.trigger("error");return}const u=n.internal?this.logger_:Be.log.warn,c=n.message?" "+n.message:"";u(`${n.internal?"Internal problem":"Problem"} encountered with playlist ${e.id}.${c} Switching to playlist ${l.id}.`),l.attributes.AUDIO!==e.attributes.AUDIO&&this.delegateLoaders_("audio",["abort","pause"]),l.attributes.SUBTITLES!==e.attributes.SUBTITLES&&this.delegateLoaders_("subtitle",["abort","pause"]),this.delegateLoaders_("main",["abort","pause"]);const f=l.targetDuration/2*1e3||5*1e3,h=typeof l.lastRequest=="number"&&Date.now()-l.lastRequest<=f;return this.switchMedia_(l,"exclude",a||h)}pauseLoading(){this.delegateLoaders_("all",["abort","pause"]),this.stopABRTimer_()}delegateLoaders_(e,n){const i=[],r=e==="all";(r||e==="main")&&i.push(this.mainPlaylistLoader_);const s=[];(r||e==="audio")&&s.push("AUDIO"),(r||e==="subtitle")&&(s.push("CLOSED-CAPTIONS"),s.push("SUBTITLES")),s.forEac
286h(a=>{const o=this.mediaTypes_[a]&&this.mediaTypes_[a].activePlaylistLoader;o&&i.push(o)}),["main","audio","subtitle"].forEach(a=>{const o=this[`${a}SegmentLoader_`];o&&(e===a||e==="all")&&i.push(o)}),i.forEach(a=>n.forEach(o=>{typeof a[o]=="function"&&a[o]()}))}setCurrentTime(e){const n=im(this.tech_.buffered(),e);if(!(this.mainPlaylistLoader_&&this.mainPlaylistLoader_.media())||!this.mainPlaylistLoader_.media().segments)return 0;if(n&&n.length)return e;this.mainSegmentLoader_.pause(),this.mainSegmentLoader_.resetEverything(),this.mediaTypes_.AUDIO.activePlaylistLoader&&(this.audioSegmentLoader_.pause(),this.audioSegmentLoader_.resetEverything()),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&(this.subtitleSegmentLoader_.pause(),this.subtitleSegmentLoader_.resetEverything()),this.load()}duration(){if(!this.mainPlaylistLoader_)return 0;const e=this.mainPlaylistLoader_.media();return e?e.endList?this.mediaSource?this.mediaSource.duration:Vu.Playlist.duration(e):1/0:0}seekable(){return this.seekable_}onSyncInfoUpdate_(){let e;if(!this.mainPlaylistLoader_)return;let n=this.mainPlaylistLoader_.media();if(!n)return;let i=this.syncController_.getExpiredTime(n,this.duration());if(i===null)return;const r=this.mainPlaylistLoader_.main,s=Vu.Playlist.seekable(n,i,Vu.Playlist.liveEdgeDelay(r,n));if(s.length===0||this.mediaTypes_.AUDIO.activePlaylistLoader&&(n=this.mediaTypes_.AUDIO.activePlaylistLoader.media(),i=this.syncController_.getExpiredTime(n,this.duration()),i===null||(e=Vu.Playlist.seekable(n,i,Vu.Playlist.liveEdgeDelay(r,n)),e.length===0)))return;let a,o;this.seekable_&&this.seekable_.length&&(a=this.seekable_.end(0),o=this.seekable_.start(0)),e?e.start(0)>s.end(0)||s.start(0)>e.end(0)?this.seekable_=s:this.seekable_=es([[e.start(0)>s.start(0)?e.start(0):s.start(0),e.end(0)<s.end(0)?e.end(0):s.end(0)]]):this.seekable_=s,!(this.seekable_&&this.seekable_.length&&this.seekable_.end(0)===a&&this.seekable_.start(0)===o)&&(this.logger_(`seekable updated [${UY(this.seekable_)}]`),this.tech_.trigger("seekablechanged"))}updateDuration(e){if(this.updateDuration_&&(this.mediaSource.removeEventListener("sourceopen",this.updateDuration_),this.updateDuration_=null),this.mediaSource.readyState!=="open"){this.updateDuration_=this.updateDuration.bind(this,e),this.mediaSource.addEventListener("sourceopen",this.updateDuration_);return}if(e){const r=this.seekable();if(!r.length)return;(isNaN(this.mediaSource.duration)||this.mediaSource.duration<r.end(r.length-1))&&this.sourceUpdater_.setDuration(r.end(r.length-1));return}const n=this.tech_.buffered();let i=Vu.Playlist.duration(this.mainPlaylistLoader_.media());n.length>0&&(i=Math.max(i,n.end(n.length-1))),this.mediaSource.duration!==i&&this.sourceUpdater_.setDuration(i)}dispose(){this.trigger("dispose"),this.decrypter_.terminate(),this.mainPlaylistLoader_.dispose(),this.mainSegmentLoader_.dispose(),this.contentSteeringController_.dispose(),this.keyStatusMap_.clear(),this.loadOnPlay_&&this.tech_.off("play",this.loadOnPlay_),["AUDIO","SUBTITLES"].forEach(e=>{const n=this.mediaTypes_[e].groups;for(const i in n)n[i].forEach(r=>{r.playlistLoader&&r.playlistLoader.dispose()})}),this.audioSegmentLoader_.dispose(),this.subtitleSegmentLoader_.dispose(),this.sourceUpdater_.dispose(),this.timelineChangeController_.dispose(),this.stopABRTimer_(),this.updateDuration_&&this.mediaSource.removeEventListener("sourceopen",this.updateDuration_),this.mediaSource.removeEventListener("durationchange",this.handleDurationChange_),this.mediaSource.removeEventListener("sourceopen",this.handleSourceOpen_),this.mediaSource.removeEventListener("sourceended",this.handleSourceEnded_),this.off()}main(){return this.mainPlaylistLoader_.main}media(){return this.mainPlaylistLoader_.media()||this.initialMedia_}areMediaTypesKnown_(){const e=!!this.mediaTypes_.AUDIO.activePlaylistLoader,n=!!this.mainSegmentLoader_.getCurrentMediaInfo_(),i=e?!!this.audioSegmentLoader_.getCurrentMediaInfo_():!0;return!(!n||!i)}getCodecsOrExclude_(){const e={main:this.mainSegmentLoader_.getCurrentMediaInfo_()||{},audio:this.audioSegmentLoader_.getCurrentMediaInfo_()||{}},n=this.mainSegmentLoader_.getPendingSegmentPlaylist()||this.media();e.video=e.main;const i=ly(this.main(),n),r={},s=!!this.mediaTypes_.AUDIO.activePlaylistLoader;if(e.main.hasVideo&&(r.video=i.video||e.main.videoCodec||Uve),e.main.isMuxed&&(r.video+=`,${i.audio||e.main.audioCodec||W8}`),(e.main.hasAudio&&!e.main.isMuxed||e.audio.hasAudio||s)&&(r.audio=i.audio||e.main.audioCodec||e.audio.audioCodec||W8,e.audio.isFmp4=e.main.hasAudio&&!e.main.isMuxed?e.main.isFmp4:e.audio.isFmp4),!r.audio&&!r.video){this.excludePlaylist({playlistToExclude:n,error:{message:"Could not determine codecs for playlist."},playlistExclusionDuration:1/0});return}const a=(u,c)=>u?DT(c):NM(c),o={};let l;if(["video","audio"].forEach(function(u){if(r.hasOwnProperty(u)&&!a(e[u].isFmp4,r[u])){const c=e[u].isFmp4?"browser":"muxer";o[c]=o[c]||[],o[c].push(r[u]),u==="audio"&&(l=c)}}),s&&l&&n.attributes.AUDIO){const u=n.attributes.AUDIO;
286this.main().playlists.forEach(c=>{(c.attributes&&c.attributes.AUDIO)===u&&c!==n&&(c.excludeUntil=1/0)}),this.logger_(`excluding audio group ${u} as ${l} does not support codec(s): "${r.audio}"`)}if(Object.keys(o).length){const u=Object.keys(o).reduce((c,f)=>(c&&(c+=", "),c+=`${f} does not support codec(s): "${o[f].join(",")}"`,c),"")+".";this.excludePlaylist({playlistToExclude:n,error:{internal:!0,message:u},playlistExclusionDuration:1/0});return}if(this.sourceUpdater_.hasCreatedSourceBuffers()&&!this.sourceUpdater_.canChangeType()){const u=[];if(["video","audio"].forEach(c=>{const f=(Bl(this.sourceUpdater_.codecs[c]||"")[0]||{}).type,h=(Bl(r[c]||"")[0]||{}).type;f&&h&&f.toLowerCase()!==h.toLowerCase()&&u.push(`"${this.sourceUpdater_.codecs[c]}" -> "${r[c]}"`)}),u.length){this.excludePlaylist({playlistToExclude:n,error:{message:`Codec switching not supported: ${u.join(", ")}.`,internal:!0},playlistExclusionDuration:1/0});return}}return r}tryToCreateSourceBuffers_(){if(this.mediaSource.readyState!=="open"||this.sourceUpdater_.hasCreatedSourceBuffers()||!this.areMediaTypesKnown_())return;const e=this.getCodecsOrExclude_();if(!e)return;this.sourceUpdater_.createSourceBuffers(e);const n=[e.video,e.audio].filter(Boolean).join(",");this.excludeIncompatibleVariants_(n)}excludeUnsupportedVariants_(){const e=this.main().playlists,n=[];Object.keys(e).forEach(i=>{const r=e[i];if(n.indexOf(r.id)!==-1)return;n.push(r.id);const s=ly(this.main,r),a=[];s.audio&&!NM(s.audio)&&!DT(s.audio)&&a.push(`audio codec ${s.audio}`),s.video&&!NM(s.video)&&!DT(s.video)&&a.push(`video codec ${s.video}`),s.text&&s.text==="stpp.ttml.im1t"&&a.push(`text codec ${s.text}`),a.length&&(r.excludeUntil=1/0,this.logger_(`excluding ${r.id} for unsupported: ${a.join(", ")}`))})}excludeIncompatibleVariants_(e){const n=[],i=this.main().playlists,r=Z2(Bl(e)),s=qB(r),a=r.video&&Bl(r.video)[0]||null,o=r.audio&&Bl(r.audio)[0]||null;
286Object.keys(i).forEach(l=>{const u=i[l];if(n.indexOf(u.id)!==-1||u.excludeUntil===1/0)return;n.push(u.id);const c=[],f=ly(this.mainPlaylistLoader_.main,u),h=qB(f);if(!(!f.audio&&!f.video)){if(h!==s&&c.push(`codec count "${h}" !== "${s}"`),!this.sourceUpdater_.canChangeType()){const p=f.video&&Bl(f.video)[0]||null,m=f.audio&&Bl(f.audio)[0]||null;p&&a&&p.type.toLowerCase()!==a.type.toLowerCase()&&c.push(`video codec "${p.type}" !== "${a.type}"`),m&&o&&m.type.toLowerCase()!==o.type.toLowerCase()&&c.push(`audio codec "${m.type}" !== "${o.type}"`)}c.length&&(u.excludeUntil=1/0,this.logger_(`excluding ${u.id}: ${c.join(" && ")}`))}})}updateAdCues_(e){let n=0;const i=this.seekable();i.length&&(n=i.start(0)),XSe(e,this.cueTagsTrack_,n)}goalBufferLength(){const e=this.tech_.currentTime(),n=_r.GOAL_BUFFER_LENGTH,i=_r.GOAL_BUFFER_LENGTH_RATE,r=Math.max(n,_r.MAX_GOAL_BUFFER_LENGTH);return Math.min(n+e*i,r)}bufferLowWaterLine(){const e=this.tech_.currentTime(),n=_r.BUFFER_LOW_WATER_LINE,i=_r.BUFFER_LOW_WATER_LINE_RATE,r=Math.max(n,_r.MAX_BUFFER_LOW_WATER_LINE),s=Math.max(n,_r.EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE);return Math.min(n+e*i,this.bufferBasedABR?s:r)}bufferHighWaterLine(){return _r.BUFFER_HIGH_WATER_LINE}addDateRangesToTextTrack_(e){KB(this.inbandTextTracks_,"com.apple.streaming",this.tech_),DSe({inbandTextTracks:this.inbandTextTracks_,dateRanges:e})}addMetadataToTextTrack(e,n,i){const r=this.sourceUpdater_.videoBuffer?this.sourceUpdater_.videoTimestampOffset():this.sourceUpdater_.audioTimestampOffset();KB(this.inbandTextTracks_,e,this.tech_),CSe({inbandTextTracks:this.inbandTextTracks_,metadataArray:n,timestampOffset:r,videoDuration:i})}pathwayAttribute_(e){return e.attributes["PATHWAY-ID"]||e.attributes.serviceLocation}initContentSteeringController_(){const e=this.main();if(!!e.contentSteering){for(const n of e.playlists)this.contentSteeringController_.addAvailablePathway(this.pathwayAttribute_(n));if(this.contentSteeringController_.assignTagProperties(e.uri,e.contentSteering),this.contentSteeringController_.queryBeforeStart){this.contentSteeringController_.requestSteeringManifest(!0);return}this.tech_.one("canplay",()=>{this.contentSteeringController_.requestSteeringManifest()})}}resetContentSteeringController_(){this.contentSteeringController_.clearAvailablePathways(),this.contentSteeringController_.dispose(),this.initContentSteeringController_()}attachContentSteeringListeners_(){this.contentSteeringController_.on("content-steering",this.excludeThenChangePathway_.bind(this)),this.sourceType_==="dash"&&this.mainPlaylistLoader_.on("loadedplaylist",()=>{const e=this.main();(this.contentSteeringController_.didDASHTagChange(e.uri,e.contentSteering)||(()=>{const r=this.contentSteeringController_.getAvailablePathways(),s=[];for(const a of e.playlists){const o=a.attributes.serviceLocation;if(o&&(s.push(o),!r.has(o)))return!0}return!!(!s.length&&r.size)})())&&this.resetContentSteeringController_()})}excludeThenChangePathway_(){const e=this.contentSteeringController_.getPathway();if(!e)return;this.handlePathwayClones_();const i=this.main().playlists,r=new Set;let s=!1;
286Object.keys(i).forEach(a=>{const o=i[a],l=this.pathwayAttribute_(o),u=l&&e!==l;o.excludeUntil===1/0&&o.lastExcludeReason_==="content-steering"&&!u&&(delete o.excludeUntil,delete o.lastExcludeReason_,s=!0);const f=!o.excludeUntil&&o.excludeUntil!==1/0;!(!r.has(o.id)&&u&&f)||(r.add(o.id),o.excludeUntil=1/0,o.lastExcludeReason_="content-steering",this.logger_(`excluding ${o.id} for ${o.lastExcludeReason_}`))}),this.contentSteeringController_.manifestType_==="DASH"&&Object.keys(this.mediaTypes_).forEach(a=>{const o=this.mediaTypes_[a];if(o.activePlaylistLoader){const l=o.activePlaylistLoader.media_;l&&l.attributes.serviceLocation!==e&&(s=!0)}}),s&&this.changeSegmentPathway_()}handlePathwayClones_(){const n=this.main().playlists,i=this.contentSteeringController_.currentPathwayClones,r=this.contentSteeringController_.nextPathwayClones;if(!!(i&&i.size||r&&r.size)){for(const[a,o]of i.entries())r.get(a)||(this.mainPlaylistLoader_.updateOrDeleteClone(o),this.contentSteeringController_.excludePathway(a));for(const[a,o]of r.entries()){const l=i.get(a);if(!l){n.filter(c=>
vendor: 1,039 bytes, line 286
286c.attributes["PATHWAY-ID"]===o["BASE-ID"]).forEach(c=>{this.mainPlaylistLoader_.addClonePathway(o,c)}),this.contentSteeringController_.addAvailablePathway(a);continue}this.equalPathwayClones_(l,o)||(this.mainPlaylistLoader_.updateOrDeleteClone(o,!0),this.contentSteeringController_.addAvailablePathway(a))}this.contentSteeringController_.currentPathwayClones=new Map(JSON.parse(JSON.stringify([...r])))}}equalPathwayClones_(e,n){if(e["BASE-ID"]!==n["BASE-ID"]||e.ID!==n.ID||e["URI-REPLACEMENT"].HOST!==n["URI-REPLACEMENT"].HOST)return!1;const i=e["URI-REPLACEMENT"].PARAMS,r=n["URI-REPLACEMENT"].PARAMS;for(const s in i)if(i[s]!==r[s])return!1;for(const s in r)if(i[s]!==r[s])return!1;return!0}changeSegmentPathway_(){const e=this.selectPlaylist();this.pauseLoading(),this.contentSteeringController_.manifestType_==="DASH"&&this.switchMediaForDASHContentSteering_(),this.switchMedia_(e,"content-steering")}excludeNonUsablePlaylistsByKeyId_(){if(!this.mainPlaylistLoader_||!this.mainPlaylistLoader_.main)return;let e=0;const n="non-usable";
286this.mainPlaylistLoader_.main.playlists.forEach(i=>{const r=this.mainPlaylistLoader_.getKeyIdSet(i);!r||!r.size||r.forEach(s=>{const a="usable",o=this.keyStatusMap_.has(s)&&this.keyStatusMap_.get(s)===a,l=i.lastExcludeReason_===n&&i.excludeUntil===1/0;o?o&&l&&(delete i.excludeUntil,delete i.lastExcludeReason_,this.logger_(`enabling playlist ${i.id} because key ID ${s} is ${a}`)):(i.excludeUntil!==1/0&&i.lastExcludeReason_!==n&&(i.excludeUntil=1/0,i.lastExcludeReason_=n,this.logger_(`excluding playlist ${i.id} because the key ID ${s} doesn't exist in the keyStatusMap or is not ${a}`)),e++)})}),e>=this.mainPlaylistLoader_.main.playlists.length&&this.mainPlaylistLoader_.main.playlists.forEach(i=>{const r=i&&i.attributes&&i.attributes.RESOLUTION&&i.attributes.RESOLUTION.height<720,s=i.excludeUntil===1/0&&i.lastExcludeReason_===n;r&&s&&(delete i.excludeUntil,Be.log.warn(`enabling non-HD playlist ${i.id} because all playlists were excluded due to ${n} key IDs`))})}addKeyStatus_(e,n){const s=(typeof e=="string"?e:WSe(e)).slice(0,32).toLowerCase();this.logger_(`KeyStatus '${n}' with key ID ${s} added to the keyStatusMap`),this.keyStatusMap_.set(s,n)}updatePlaylistByKeyStatus(e,n){this.addKeyStatus_(e,n),this.waitingForFastQualityPlaylistReceived_||this.excludeNonUsableThenChangePlaylist_(),this.mainPlaylistLoader_.off("loadedplaylist",this.excludeNonUsableThenChangePlaylist_.bind(this)),this.mainPlaylistLoader_.on("loadedplaylist",this.excludeNonUsableThenChangePlaylist_.bind(this))}excludeNonUsableThenChangePlaylist_(){this.excludeNonUsablePlaylistsByKeyId_(),this.fastQualityChange_()}}const _Te=(t,e,n)=>i=>{const r=t.main.playlists[e],s=BL(r),a=Nw(r);return typeof i>"u"?a:(i?delete r.disabled:r.disabled=!0,i!==a&&!s&&(n(r),i?t.trigger("renditionenabled"):t.trigger("renditiondisabled")),i)};class vTe{constructor(e,n,i){const{playlistController_:r}=e,s=r.fastQualityChange_.bind(r);if(n.attributes){const a=n.attributes.RESOLUTION;this.width=a&&a.width,this.height=a&&a.height,this.bandwidth=n.attributes.BANDWIDTH,this.frameRate=n.attributes["FRAME-RATE"]}this.codecs=ly(r.main(),n),this.playlist=n,this.id=i,this.enabled=_Te(e.playlists,n.id,s)}}const yTe=function(t){t.representations=()=>{const e=t.playlistController_.main(),n=qb(e)?t.playlistController_.getAudioTrackPlaylists_():e.playlists;return n?n.filter(i=>!BL(i)).map((i,r)=>new vTe(t,i,i.id)):[]}},oU=["seeking","seeked","pause","playing","error"];class bTe{constructor(e){this.playlistController_=e.playlistController,this.tech_=e.tech,this.seekable=e.seekable,this.allowSeeksWithinUnsafeLiveWindow=e.allowSeeksWithinUnsafeLiveWindow,this.liveRangeSafeTimeDelta=e.liveRangeSafeTimeDelta,this.media=e.media,this.consecutiveUpdates=0,this.lastRecordedTime=null,this.checkCurrentTimeTimeout_=null,this.logger_=Fo("PlaybackWatcher"),this.logger_("initialize");const n=()=>this.monitorCurrentTime_(),i=()=>this.monitorCurrentTime_(),r=()=>this.techWaiting_(),s=()=>this.resetTimeUpdate_(),a=this.playlistController_,o=["main","subtitle","audio"],l={};o.forEach(c=>{l[c]={reset:()=>this.resetSegmentDownloads_(c),updateend:()=>this.checkSegmentDownloads_(c)},a[`${c}SegmentLoader_`].on("appendsdone",l[c].updateend),a[`${c}SegmentLoader_`].on("playlistupdate",l[c].reset),this.tech_.on(["seeked","seeking"],l[c].reset)});const u=c=>{["main","audio"].forEach(f=>{a[`${f}SegmentLoader_`][c]("appended",this.seekingAppendCheck_)})};this.seekingAppendCheck_=()=>{this.fixesBadSeeks_()&&(this.consecutiveUpdates=0,this.lastRecordedTime=this.tech_.currentTime(),u("off"))},this.clearSeekingAppendCheck_=()=>u("off"),this.watchForBadSeeking_=()=>{this.clearSeekingAppendCheck_(),u("on")},this.tech_.on("seeked",this.clearSeekingAppendCheck_),this.tech_.on("seeking",this.watchForBadSeeking_),this.tech_.on("waiting",r),this.tech_.on(oU,s),this.tech_.on("canplay",i),this.tech_.one("play",n),this.dispose=()=>{this.clearSeekingAppendCheck_(),this.logger_("dispose"),this.tech_.off("waiting",r),this.tech_.off(oU,s),this.tech_.off("canplay",i),this.tech_.off("play",n),this.tech_.off("seeking",this.watchForBadSeeking_),this.tech_.off("seeked",this.clearSeekingAppendCheck_),o.forEach(c=>{a[`${c}SegmentLoader_`].off("appendsdone",l[c].updateend),a[`${c}SegmentLoader_`].off("playlistupdate",l[c].reset),this.tech_.off(["seeked","seeking"],l[c].reset)}),this.checkCurrentTimeTimeout_&&ue.clearTimeout(this.checkCurrentTimeTimeout_),this.resetTimeUpdate_()}}monitorCurrentTime_(){this.checkCurrentTime_(),this.checkCurrentTimeTimeout_&&ue.clearTimeout(this.checkCurrentTimeTimeout_),this.checkCurrentTimeTimeout_=ue.setTimeout(this.monitorCurrentTime_.bind(this),250)}resetSegmentDownloads_(e){const n=this.playlistController_[`${e}SegmentLoader_`];this[`${e}StalledDownloads_`]>0&&this.logger_(`resetting possible stalled download count for ${e} loader`),this[`${e}StalledDownloads_`]=0,this[`${e}Buffered_`]=n.buffered_()}checkSegmentDownloads_(e){const n=this.playlistController_,i=n[`${e}SegmentLoader_`],r=i.buffered_(),s=uxe(this[`${e}Buffered_`],r);if(this[`${e}Buffered_`]=r,s){this.resetSegmentDownloads_(e);return}this[`${e}StalledDownloads_`]++,this.logger_(`found #${this[`${e}StalledDownloads_`]} ${e} appends that did not increase buffer (possible stalled download)`,{playlistId:i.playlist_&&i.playlist_.id,buffered:Mh(r)}),!(this[`${e}StalledDownloads_`]<10)&&(this.logger_(`${e} loader stalled download exclusion`),this.resetSegmentDownloads_(e),this.tech_.trigger({type:"usage",name:`vhs-${e}-download-exclusion`}),e!=="subtitle"&&n.excludePlaylist({error:{message:`Excessive ${e} segment downloading detected.`},playlistExclusionDuration:1/0}))}checkCurrentTime_(){if(this.tech_.paused()||this.tech_.seeking())return;const e=this.tech_.currentTime(),n=this.tech_.buffered();if(this.lastRecordedTime===e&&(!n.length||e+Yl>=n.end(n.length-1)))return this.techWaiting_();this.consecutiveUpdates>=5&&e===this.lastRecordedTime?(this.consecutiveUpdates++,this.waiting_()):e===this.lastRecordedTime?this.consecutiveUpdates++:(this.consecutiveUpdates=0,this.lastRecordedTime=e)}resetTimeUpdate_(){this.consecutiveUpdates=0}fixesBadSeeks_(){if(!this.tech_.seeking())return!1;const n=this.seekable(),i=this.tech_.currentTime(),r=this.afterSeekableWindow_(n,i,this.media(),this.allowSeeksWithinUnsafeLiveWindow);let s;if(r&&(s=n.end(n.length-1)),this.beforeSeekableWindow_(n,i)){const m=n.start(0);s=m+(m===n.end(0)?0:Yl)}if(typeof s<"u")return this.logger_(`Trying to seek outside of seekable at time ${i} with seekable range ${UY(n)}. Seeking to ${s}.`),this.tech_.setCurrentTime(s),!0;const a=this.playlistController_.sourceUpdater_,o=this.tech_.buffered(),l=a.audioBuffer?a.audioBuffered():null,u=a.videoBuffer?a.videoBuffered():null,c=this.media(),f=c.partTargetDuration?c.partTargetDuration:(c.targetDuration-Xl)*2,h=[l,u];for(let m=0;m<h.length;
286m++){if(!h[m])continue;if(FL(h[m],i)<f)return!1}const p=Qx(o,i);return p.length===0?!1:(s=p.start(0)+Yl,this.logger_(`Buffered region starts (${p.start(0)})  just beyond seek point (${i}). Seeking to ${s}.`),this.tech_.setCurrentTime(s),!0)}waiting_(){if(this.techWaiting_())return;const e=this.tech_.currentTime(),n=this.tech_.buffered(),i=im(n,e);if(i.length&&e+3<=i.end(0)){this.resetTimeUpdate_(),this.tech_.setCurrentTime(e),this.logger_(`Stopped at ${e} while inside a buffered region [${i.start(0)} -> ${i.end(0)}]. Attempting to resume playback by seeking to the current time.`),this.tech_.trigger({type:"usage",name:"vhs-unknown-waiting"});return}}techWaiting_(){const e=this.seekable(),n=this.tech_.currentTime();if(this.tech_.seeking())return!0;if(this.beforeSeekableWindow_(e,n)){const o=e.end(e.length-1);return this.logger_(`Fell out of live window at time ${n}. Seeking to live point (seekable end) ${o}`),this.resetTimeUpdate_(),this.tech_.setCurrentTime(o),this.tech_.trigger({type:"usage",name:"vhs-live-resync"}),!0}const i=this.tech_.vhs.playlistController_.sourceUpdater_,r=this.tech_.buffered();if(this.videoUnderflow_({audioBuffered:i.audioBuffered(),videoBuffered:i.videoBuffered(),currentTime:n}))return this.resetTimeUpdate_(),this.tech_.setCurrentTime(n),this.tech_.trigger({type:"usage",name:"vhs-video-underflow"}),!0;const a=Qx(r,n);return a.length>0?(this.logger_(`Stopped at ${n} and seeking to ${a.start(0)}`),this.resetTimeUpdate_(),this.skipTheGap_(n),!0):!1}afterSeekableWindow_(e,n,i,r=!1){if(!e.length)return!1;let s=e.end(e.length-1)+Yl;const a=!i.endList,o=typeof i.partTargetDuration=="number";return a&&(o||r)&&(s=e.end(e.length-1)+i.targetDuration*3),n>s}beforeSeekableWindow_(e,n){return!!(e.length&&e.start(0)>0&&n<e.start(0)-this.liveRangeSafeTimeDelta)}videoUnderflow_({videoBuffered:e,audioBuffered:n,currentTime:i}){if(!e)return;let r;if(e.length&&n.length){const s=im(e,i-3),a=im(e,i),o=im(n,i);o.length&&!a.length&&s.length&&(r={start:s.end(0),end:o.end(0)})}else Qx(e,i).length||(r=this.gapFromVideoUnderflow_(e,i));return r?(this.logger_(`Encountered a gap in video from ${r.start} to ${r.end}. Seeking to current time ${i}`),!0):!1}skipTheGap_(e){const n=this.tech_.buffered(),i=this.tech_.currentTime(),r=Qx(n,i);this.resetTimeUpdate_(),!(r.length===0||i!==e)&&(this.logger_("skipTheGap_:","currentTime:",i,"scheduled currentTime:",e,"nextRange start:",r.start(0)),this.tech_.setCurrentTime(r.start(0)+Xl),this.tech_.trigger({type:"usage",name:"vhs-gap-skip"}))}gapFromVideoUnderflow_(e,n){const i=axe(e);for(let r=0;r<i.length;r++){const s=i.start(r),a=i.end(r);if(n-s<4&&n-s>2)return{start:s,end:a}}return null}}const xTe={errorInterval:30,getSource(t){const n=this.tech({IWillNotUseThisInPlugins:!0}).currentSource_||this.currentSource();return t(n)}},AK=function(t,e){let n=0,i=0;const r=Un(xTe,e);t.ready(()=>{t.trigger({type:"usage",name:"vhs-error-reload-initialized"})});const s=function(){i&&t.currentTime(i)},a=function(c){c!=null&&(i=t.duration()!==1/0&&t.currentTime()||0,t.one("loadedmetadata",s),t.src(c),t.trigger({type:"usage",name:"vhs-error-reload"}),t.play())},o=function(){if(Date.now()-n<r.errorInterval*1e3){t.trigger({type:"usage",name:"vhs-error-reload-canceled"});return}if(!r.getSource||typeof r.getSource!="function"){Be.log.error("ERROR: reloadSourceOnError - The option getSource must be a function!");return}return n=Date.now(),r.getSource.call(t,a)},l=function(){t.off("loadedmetadata",s),t.off("error",o),t.off("dispose",l)},u=function(c){l(),AK(t,c)};t.on("error",o),t.on("dispose",l),t.reloadSourceOnError=u},STe=function(t){AK(this,t)};var MK="3.12.1",TTe="7.0.3",ETe="1.3.0",wTe="7.1.0",CTe="4.0.1";const Oi={PlaylistLoader:rm,Playlist:qs,utils:kxe,STANDARD_PLAYLIST_SELECTOR:YB,INITIAL_PLAYLIST_SELECTOR:xSe,lastBandwidthSelector:YB,movingAverageBandwidthSelector:ySe,comparePlaylistBandwidth:zL,comparePlaylistResolution:vSe,xhr:tK()};Object.keys(_r).forEach(t=>{Object.defineProperty(Oi,t,{get(){return Be.log.warn(`using Vhs.${t} is UNSAFE be sure you know what you are doing`),_r[t]},set(e){if(Be.log.warn(`using Vhs.${t}
286 is UNSAFE be sure you know what you are doing`),typeof e!="number"||e<0){Be.log.warn(`value of Vhs.${t} must be greater than or equal to 0`);return}_r[t]=e}})});const DK="videojs-vhs",PK=function(t,e){const n=e.media();let i=-1;for(let r=0;r<t.length;r++)if(t[r].id===n.id){i=r;break}t.selectedIndex_=i,t.trigger({selectedIndex:i,type:"change"})},ATe=function(t,e){e.representations().forEach(n=>{t.addQualityLevel(n)}),PK(t,e.playlists)};Oi.canPlaySource=function(){return Be.log.warn("VHS is no longer a tech. Please remove it from your player's techOrder.")};const MTe=(t,e,n)=>{if(!t)return t;let i={};e&&e.attributes&&e.attributes.CODECS&&(i=Z2(Bl(e.attributes.CODECS))),n&&n.attributes&&n.attributes.CODECS&&(i.audio=n.attributes.CODECS);const r=qy(i.video),s=qy(i.audio),a={};for(const o in t)a[o]={},s&&(a[o].audioContentType=s),r&&(a[o].videoContentType=r),e.contentProtection&&e.contentProtection[o]&&e.contentProtection[o].pssh&&(a[o].pssh=e.contentProtection[o].pssh),typeof t[o]=="string"&&(a[o].url=t[o]);return Un(t,a)},DTe=(t,e)=>t.reduce((n,i)=>{if(!i.contentProtection)return n;const r=e.reduce((s,a)=>{const o=i.contentProtection[a];return o&&o.pssh&&(s[a]={pssh:o.pssh}),s},{});return Object.keys(r).length&&n.push(r),n},[]),PTe=({player:t,sourceKeySystems:e,audioMedia:n,mainPlaylists:i})=>{if(!t.eme.initializeMediaKeys)return Promise.resolve();const r=n?i.concat([n]):i,s=DTe(r,Object.keys(e)),a=[],o=[];return s.forEach(l=>{o.push(new Promise((u,c)=>{t.tech_.one("keysessioncreated",u)})),a.push(new Promise((u,c)=>{t.eme.initializeMediaKeys({keySystems:l},f=>{if(f){c(f);return}u()})}))}),Promise.race([Promise.all(a),Promise.race(o)])},OTe=({player:t,sourceKeySystems:e,media:n,audioMedia:i})=>{const r=MTe(e,n,i);return r?(t.currentSource().keySystems=r,r&&!t.eme?(Be.log.warn("DRM encrypted source cannot be decrypted without a DRM plugin"),!1):!0):!1},OK=()=>{if(!ue.localStorage)return null;const t=ue.localStorage.getItem(DK);if(!t)return null;try{return JSON.parse(t)}catch(e){return null}},RTe=t=>{if(!ue.localStorage)return!1;let e=OK();e=e?Un(e,t):t;try{ue.localStorage.setItem(DK,JSON.stringify(e))}catch(n){return!1}return e},kTe=t=>t.toLowerCase().indexOf("data:application/vnd.videojs.vhs+json,")===0?JSON.parse(t.substring(t.indexOf(",")+1)):t,RK=(t,e)=>{t._requestCallbackSet||(t._requestCallbackSet=new Set),t._requestCallbackSet.add(e)},kK=(t,e)=>{t._responseCallbackSet||(t._responseCallbackSet=new Set),t._responseCallbackSet.add(e)},IK=(t,e)=>{!t._requestCallbackSet||(t._requestCallbackSet.delete(e),t._requestCallbackSet.size||delete t._requestCallbackSet)},LK=(t,e)=>{!t._responseCallbackSet||(t._responseCallbackSet.delete(e),t._responseCallbackSet.size||delete t._responseCallbackSet)};Oi.supportsNativeHls=function(){if(!ct||!ct.createElement)return!1;const t=ct.createElement("video");return Be.getTech("Html5").isSupported()?["application/vnd.apple.mpegurl","audio/mpegurl","audio/x-mpegurl","application/x-mpegurl","video/x-mpegurl","video/mpegurl","application/mpegurl"].some(function(n){return/maybe|probably/i.test(t.canPlayType(n))}):!1}();Oi.supportsNativeDash=function(){return!ct||!ct.createElement||!Be.getTech("Html5").isSupported()?!1:/maybe|probably/i.test(ct.createElement("video").canPlayType("application/dash+xml"))}();Oi.supportsTypeNatively=t=>t==="hls"?Oi.supportsNativeHls:t==="dash"?Oi.supportsNativeDash:!1;Oi.isSupported=function(){return Be.log.warn("VHS is no longer a tech. Please remove it from your player's techOrder.")};Oi.xhr.onRequest=function(t){RK(Oi.xhr,t)};Oi.xhr.onResponse=function(t){kK(Oi.xhr,t)};Oi.xhr.offRequest=function(t){IK(Oi.xhr,t)};Oi.xhr.offResponse=function(t){LK(Oi.xhr,t)};const ITe=Be.getComponent("Component");class FK extends ITe{constructor(e,n,i){if(super(n,i.vhs),typeof i.initialBandwidth=="number"&&(this.options_.bandwidth=i.initialBandwidth),this.logger_=Fo("VhsHandler"),n.options_&&n.options_.playerId){const r=Be.getPlayer(n.options_.playerId);this.player_=r}if(this.tech_=n,this.source_=e,this.stats={},this.ignoreNextSeekingEvent_=!1,this.setOptions_(),this.options_.overrideNative&&n.overrideNativeAudioTracks&&n.overrideNativeVideoTracks)n.overrideNativeAudioTracks(!0),n.overrideNativeVideoTracks(!0);else if(this.options_.overrideNative&&(n.featuresNativeVideoTracks||n.featuresNativeAudioTracks))throw new Error("Overriding native VHS requires emulated tracks. See https://git.io/vMpjB");this.on(ct,["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],r=>{const s=ct.fullscreenElement||ct.webkitFullscreenElement||ct.mozFullScreenElement||ct.msFullscreenElement;s&&s.contains(this.tech_.el())?this.playlistController_.fastQualityChange_():this.playlistController_.checkABR_()}),this.on(this.tech_,"seeking",function(){if(this.ignoreNextSeekingEvent_){this.ignoreNextSeekingEvent_=!1;return}this.setCurrentTime(this.tech_.currentTime())}),this.on(this.tech_,"error",function(){this.tech_.error()&&this.playlistController_&&this.playlistController_.pauseLoading()}),this.on(this.tech_,"play",this.play)}setOptions_(e={}){if(this.options_=Un(this.options_,e),this.options_.withCredentials=this.options_.withCredentials||!1,this.options_.limitRenditionByPlayerDimensions=this.options_.limitRenditionByPlayerDimensions!==!1,this.options_.useDevicePixelRatio=this.options_.useDevicePixelRatio||!1,this.options_.useBandwidthFromLocalStorage=typeof this.source_.useBandwidthFromLocalStorage<"u"?this.source_.useBandwidthFromLocalStorage:this.options_.useBandwidthFromLocalStorage||!1,this.options_.useForcedSubtitles=this.options_.useForcedSubtitles||
vendor: 7,236 bytes, line 286
286!1,this.options_.useNetworkInformationApi=this.options_.useNetworkInformationApi||!1,this.options_.useDtsForTimestampOffset=this.options_.useDtsForTimestampOffset||!1,this.options_.customTagParsers=this.options_.customTagParsers||[],this.options_.customTagMappers=this.options_.customTagMappers||[],this.options_.cacheEncryptionKeys=this.options_.cacheEncryptionKeys||!1,this.options_.llhls=this.options_.llhls!==!1,this.options_.bufferBasedABR=this.options_.bufferBasedABR||!1,typeof this.options_.playlistExclusionDuration!="number"&&(this.options_.playlistExclusionDuration=60),typeof this.options_.bandwidth!="number"&&this.options_.useBandwidthFromLocalStorage){const i=OK();i&&i.bandwidth&&(this.options_.bandwidth=i.bandwidth,this.tech_.trigger({type:"usage",name:"vhs-bandwidth-from-local-storage"})),i&&i.throughput&&(this.options_.throughput=i.throughput,this.tech_.trigger({type:"usage",name:"vhs-throughput-from-local-storage"}))}typeof this.options_.bandwidth!="number"&&(this.options_.bandwidth=_r.INITIAL_BANDWIDTH),this.options_.enableLowInitialPlaylist=this.options_.enableLowInitialPlaylist&&this.options_.bandwidth===_r.INITIAL_BANDWIDTH,["withCredentials","useDevicePixelRatio","customPixelRatio","limitRenditionByPlayerDimensions","bandwidth","customTagParsers","customTagMappers","cacheEncryptionKeys","playlistSelector","initialPlaylistSelector","bufferBasedABR","liveRangeSafeTimeDelta","llhls","useForcedSubtitles","useNetworkInformationApi","useDtsForTimestampOffset","exactManifestTimings","leastPixelDiffSelector"].forEach(i=>{typeof this.source_[i]<"u"&&(this.options_[i]=this.source_[i])}),this.limitRenditionByPlayerDimensions=this.options_.limitRenditionByPlayerDimensions,this.useDevicePixelRatio=this.options_.useDevicePixelRatio;const n=this.options_.customPixelRatio;typeof n=="number"&&n>=0&&(this.customPixelRatio=n)}setOptions(e={}){this.setOptions_(e)}src(e,n){if(!e)return;this.setOptions_(),this.options_.src=kTe(this.source_.src),this.options_.tech=this.tech_,this.options_.externVhs=Oi,this.options_.sourceType=kq(n),this.options_.seekTo=s=>{this.tech_.setCurrentTime(s)},this.playlistController_=new gTe(this.options_);const i=Un({liveRangeSafeTimeDelta:Yl},this.options_,{seekable:()=>this.seekable(),media:()=>this.playlistController_.media(),playlistController:this.playlistController_});this.playbackWatcher_=new bTe(i),this.playlistController_.on("error",()=>{const s=Be.players[this.tech_.options_.playerId];let a=this.playlistController_.error;typeof a=="object"&&!a.code?a.code=3:typeof a=="string"&&(a={message:a,code:3}),s.error(a)});const r=this.options_.bufferBasedABR?Oi.movingAverageBandwidthSelector(.55):Oi.STANDARD_PLAYLIST_SELECTOR;this.playlistController_.selectPlaylist=this.selectPlaylist?this.selectPlaylist.bind(this):r.bind(this),this.playlistController_.selectInitialPlaylist=Oi.INITIAL_PLAYLIST_SELECTOR.bind(this),this.playlists=this.playlistController_.mainPlaylistLoader_,this.mediaSource=this.playlistController_.mediaSource,Object.defineProperties(this,{selectPlaylist:{get(){return this.playlistController_.selectPlaylist},set(s){this.playlistController_.selectPlaylist=s.bind(this)}},throughput:{get(){return this.playlistController_.mainSegmentLoader_.throughput.rate},set(s){this.playlistController_.mainSegmentLoader_.throughput.rate=s,this.playlistController_.mainSegmentLoader_.throughput.count=1}},bandwidth:{get(){let s=this.playlistController_.mainSegmentLoader_.bandwidth;const a=ue.navigator.connection||ue.navigator.mozConnection||ue.navigator.webkitConnection,o=1e7;if(this.options_.useNetworkInformationApi&&a){const l=a.downlink*1e3*1e3;l>=o&&s>=o?s=Math.max(s,l):s=l}return s},set(s){this.playlistController_.mainSegmentLoader_.bandwidth=s,this.playlistController_.mainSegmentLoader_.throughput={rate:0,count:0}}},systemBandwidth:{get(){const s=1/(this.bandwidth||1);let a;return this.throughput>0?a=1/this.throughput:a=0,Math.floor(1/(s+a))},set(){Be.log.error('The "systemBandwidth" property is read-only')}}}),this.options_.bandwidth&&(this.bandwidth=this.options_.bandwidth),this.options_.throughput&&(this.throughput=this.options_.throughput),Object.defineProperties(this.stats,{bandwidth:{get:()=>this.bandwidth||0,enumerable:!0},mediaRequests:{get:()=>this.playlistController_.mediaRequests_()||0,enumerable:!0},mediaRequestsAborted:{get:()=>this.playlistController_.mediaRequestsAborted_()||0,enumerable:!0},mediaRequestsTimedout:{get:()=>this.playlistController_.mediaRequestsTimedout_()||0,enumerable:!0},mediaRequestsErrored:{get:()=>this.playlistController_.mediaRequestsErrored_()||0,enumerable:!0},mediaTransferDuration:{get:()=>this.playlistController_.mediaTransferDuration_()||0,enumerable:!0},mediaBytesTransferred:{get:()=>this.playlistController_.mediaBytesTransferred_()||0,enumerable:!0},mediaSecondsLoaded:{get:()=>this.playlistController_.mediaSecondsLoaded_()||0,enumerable:!0},mediaAppends:{get:()=>this.playlistController_.mediaAppends_()||0,enumerable:!0},mainAppendsToLoadedData:{get:()=>this.playlistController_.mainAppendsToLoadedData_()||0,enumerable:!0},audioAppendsToLoadedData:{get:()=>this.playlistController_.audioAppendsToLoadedData_()||0,enumerable:!0},appendsToLoadedData:{get:()=>this.playlistController_.appendsToLoadedData_()||0,enumerable:!0},timeToLoadedData:{get:()=>this.playlistController_.timeToLoadedData_()||0,enumerable:!0},buffered:{get:()=>Mh(this.tech_.buffered()),enumerable:!0},currentTime:{get:()=>this.tech_.currentTime(),enumerable:!0},currentSource:{get:()=>this.tech_.currentSource_,enumerable:!0},currentTech:{get:()=>this.tech_.name_,enumerable:!0},duration:{get:()=>this.tech_.duration(),enumerable:!0},main:{get:()=>this.playlists.main,enumerable:!0},playerDimensions:{get:()=>this.tech_.currentDimensions(),enumerable:!0},seekable:{get:()=>Mh(this.tech_.seekable()),enumerable:!0},timestamp:{get:()=>Date.now(),enumerable:!0},videoPlaybackQuality:{get:()=>this.tech_.getVideoPlaybackQuality(),enumerable:!0}}),this.tech_.one("canplay",this.playlistController_.setupFirstPlay.bind(this.playlistController_)),this.tech_.on("bandwidthupdate",()=>{this.options_.useBandwidthFromLocalStorage&&RTe({bandwidth:this.bandwidth,throughput:Math.round(this.throughput)})}),this.playlistController_.on("selectedinitialmedia",()=>{yTe(this)}),this.playlistController_.sourceUpdater_.on("createdsourcebuffers",()=>{this.setupEme_()}),this.on(this.playlistController_,"progress",function(){this.tech_.trigger("progress")}),this.on(this.playlistController_,"firstplay",function(){this.ignoreNextSeekingEvent_=!0}),this.setupQualityLevels_(),this.tech_.el()&&(this.mediaSourceUrl_=ue.URL.createObjectURL(this.playlistController_.mediaSource),this.tech_.src(this.mediaSourceUrl_))}createKeySessions_(){const e=this.playlistController_.mediaTypes_.AUDIO.activePlaylistLoader;this.logger_("waiting for EME key session creation"),PTe({player:this.player_,sourceKeySystems:this.source_.keySystems,audioMedia:e&&e.media(),mainPlaylists:this.playlists.main.playlists}).then(()=>{this.logger_("created EME key session"),this.playlistController_.sourceUpdater_.initializedEme()}).catch(n=>{this.logger_("error while creating EME key session",n),this.player_.error({message:"Failed to initialize media ke
286ys for EME",code:3,metadata:{errorType:Be.Error.EMEKeySessionCreationError}})})}handleWaitingForKey_(){this.logger_("waitingforkey fired, attempting to create any new key sessions"),this.createKeySessions_()}setupEme_(){const e=this.playlistController_.mediaTypes_.AUDIO.activePlaylistLoader,n=OTe({player:this.player_,sourceKeySystems:this.source_.keySystems,media:this.playlists.media(),audioMedia:e&&e.media()});if(this.player_.tech_.on("keystatuschange",i=>{this.playlistController_.updatePlaylistByKeyStatus(i.keyId,i.status)}),this.handleWaitingForKey_=this.handleWaitingForKey_.bind(this),this.player_.tech_.on("waitingforkey",this.handleWaitingForKey_),!n){this.playlistController_.sourceUpdater_.initializedEme();return}this.createKeySessions_()}setupQualityLevels_(){const e=Be.players[this.tech_.options_.playerId];!e||!e.qualityLevels||this.qualityLevels_||(this.qualityLevels_=e.qualityLevels(),this.playlistController_.on("selectedinitialmedia",()=>{ATe(this.qualityLevels_,this)}),this.playlists.on("mediachange",()=>{PK(this.qualityLevels_,this.playlists)}))}static version(){return{"@videojs/http-streaming":MK,"mux.js":TTe,"mpd-parser":ETe,"m3u8-parser":wTe,"aes-decrypter":CTe}}version(){return this.constructor.version()}canChangeType(){return EK.canChangeType()}play(){this.playlistController_.play()}setCurrentTime(e){this.playlistController_.setCurrentTime(e)}duration(){return this.playlistController_.duration()}seekable(){return this.playlistController_.seekable()}dispose(){this.playbackWatcher_&&this.playbackWatcher_.dispose(),this.playlistController_&&this.playlistController_.dispose(),this.qualityLevels_&&this.qualityLevels_.dispose(),this.tech_&&this.tech_.vhs&&delete this.tech_.vhs,this.mediaSourceUrl_&&ue.URL.revokeObjectURL&&(ue.URL.revokeObjectURL(this.mediaSourceUrl_),this.mediaSourceUrl_=null),this.tech_&&this.tech_.off("waitingforkey",this.handleWaitingForKey_),super.dispose()}convertToProgramTime(e,n){return $xe({playlist:this.playlistController_.media(),time:e,callback:n})}seekToProgramTime(e,n,i=!0,r=2){return aK({programTime:e,playlist:this.playlistController_.media(),retryCount:r,pauseAfterSeek:i,seekTo:this.options_.seekTo,tech:this.options_.tech,callback:n})}setupXhrHooks_(){this.xhr.onRequest=e=>{RK(this.xhr,e)},this.xhr.onResponse=e=>{kK(this.xhr,e)},this.xhr.offRequest=e=>{IK(this.xhr,e)},this.xhr.offResponse=e=>{LK(this.xhr,e)},this.player_.trigger("xhr-hooks-ready")}}const eE={name:"videojs-http-streaming",VERSION:MK,canHandleSource(t,e={}){const n=Un(Be.options,e);return eE.canPlayType(t.type,n)},handleSource(t,e,n={}){const i=Un(Be.options,n);return e.vhs=new FK(t,e,i),e.vhs.xhr=tK(),e.vhs.setupXhrHooks_(),e.vhs.src(t.src,t.type),e.vhs},canPlayType(t,e){const n=kq(t);if(!n)return"";const i=eE.getOverrideNative(e);return!Oi.supportsTypeNatively(n)||i?"maybe":""},getOverrideNative(t={}){const{vhs:e={}}=t,n=!(Be.browser.IS_ANY_SAFARI||Be.browser.IS_IOS),{overrideNative:i=n}=e;return i}},LTe=()=>DT("avc1.4d400d,mp4a.40.2");LTe()&&Be.getTech("Html5").registerSourceHandler(eE,0);Be.VhsHandler=FK;Be.VhsSourceHandler=eE;Be.Vhs=Oi;Be.use||Be.registerComponent("Vhs",Oi);Be.options.vhs=Be.options.vhs||{};(!Be.getPlugin||!Be.getPlugin("reloadSourceOnError"))&&Be.registerPlugin("reloadSourceOnError",STe);var NK={exports:{}};(function(t,e){(function(n,i){t.exports=i()})(si,function(){return(()=>{var n={d:(s,a)=>{for(var o in a)n.o(a,o)&&!n.o(s,o)&&Object.defineProperty(s,o,{enumerable:!0,get:a[o]})},o:(s,a)=>Object.prototype.hasOwnProperty.call(s,a),r:s=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})}},i={};function r(s,a,o){var l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;if("IntersectionObserver"in window&&s){var u=l&&l.root?l.root:null,c=l&&l.rootMargin?l.rootMargin:"0px",f={root:u,rootMargin:c,threshold:Array.isArray(a)&&a.length>0||a>=0&&a<=1?a:.5},h=new IntersectionObserver(function(p,m){p.forEach(function(y){y.intersectionRatio>0&&(Array.isArray(o)?(o[0](),o.length===1&&m.unobserve(y.target)):o()),y.isIntersecting===!1&&Array.isArray(o)&&typeof o[1]=="function"&&o[1]()})},f);h.observe(s)}}return n.r(i),n.d(i,{default:()=>r}),i})()})})(NK);
286const hWe=FI(NK.exports);var FTe=typeof global=="object"&&global&&global.Object===Object&&global;const NTe=FTe;var BTe=typeof self=="object"&&self&&self.Object===Object&&self,UTe=NTe||BTe||Function("return this")();const BK=UTe;var $Te=BK.Symbol;const tE=$Te;var UK=Object.prototype,zTe=UK.hasOwnProperty,HTe=UK.toString,H_=tE?tE.toStringTag:void 0;function VTe(t){var e=zTe.call(t,H_),n=t[H_];try{t[H_]=void 0;var i=!0}catch(s){}var r=HTe.call(t);return i&&(e?t[H_]=n:delete t[H_]),r}var WTe=Object.prototype,GTe=WTe.toString;function jTe(t){return GTe.call(t)}var qTe="[object Null]",XTe="[object Undefined]",lU=tE?tE.toStringTag:void 0;function YTe(t){return t==null?t===void 0?XTe:qTe:lU&&lU in Object(t)?VTe(t):jTe(t)}function KTe(t){return t!=null&&typeof t=="object"}var ZTe="[object Symbol]";function QTe(t){return typeof t=="symbol"||KTe(t)&&YTe(t)==ZTe}var JTe=/\s/;function e2e(t){for(var e=t.length;e--&&JTe.test(t.charAt(e)););return e}var t2e=/^\s+/;function n2e(t){return t&&t.slice(0,e2e(t)+1).replace(t2e,"")}function nE(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var uU=0/0,i2e=/^[-+]0x[0-9a-f]+$/i,r2e=/^0b[01]+$/i,s2e=/^0o[0-7]+$/i,a2e=parseInt;function cU(t){if(typeof t=="number")return t;if(QTe(t))return uU;if(nE(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=nE(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=n2e(t);var n=r2e.test(t);return n||s2e.test(t)?a2e(t.slice(2),n?2:8):i2e.test(t)?uU:+t}var o2e=function(){return BK.Date.now()};const nD=o2e;var l2e="Expected a function",u2e=Math.max,c2e=Math.min;function kT(t,e,n){var i,r,s,a,o,l,u=0,c=!1,f=!1,h=!0;if(typeof t!="function")throw new TypeError(l2e);e=cU(e)||0,nE(n)&&(c=!!n.leading,f="maxWait"in n,s=f?u2e(cU(n.maxWait)||0,e):s,h="trailing"in n?!!n.trailing:h);function p(C){var D=i,R=r;return i=r=void 0,u=C,a=t.apply(R,D),a}function m(C){return u=C,o=setTimeout(_,e),c?p(C):a}function y(C){var D=C-l,R=C-u,A=e-D;return f?c2e(A,s-R):A}function v(C){var D=C-l,R=C-u;return l===void 0||D>=e||D<0||f&&R>=s}function _(){var C=nD();if(v(C))return b(C);o=setTimeout(_,y(C))}function b(C){return o=void 0,h&&i?p(C):(i=r=void 0,a)}function x(){o!==void 0&&clearTimeout(o),u=0,i=l=r=o=void 0}function T(){return o===void 0?a:b(nD())}function E(){var C=nD(),D=v(C);if(i=arguments,r=this,l=C,D){if(o===void 0)return m(l);if(f)return clearTimeout(o),o=setTimeout(_,e),p(l)}return o===void 0&&(o=setTimeout(_,e)),a}return E.cancel=x,E.flush=T,E}var f2e="Expected a function";function d2e(t,e,n){var i=!0,r=!0;if(typeof t!="function")throw new TypeError(f2e);return nE(n)&&(i="leading"in n?!!n.leading:i,r="trailing"in n?!!n.trailing:r),kT(t,e,{leading:i,maxWait:e,trailing:r})}var h2e=!!(typeof window<"u"&&window.document&&window.document.createElement),Xb=h2e,sm=function(){return sm=Object.assign||function(e){for(var n,i=1,r=arguments.length;i<r;i++){n=arguments[i];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(e[s]=n[s])}return e},sm.apply(this,arguments)},j0=null,fU=null;Xb&&window.addEventListener("resize",function(){fU!==window.devicePixelRatio&&(fU=window.devicePixelRatio,j0=null)});function dU(){if(j0===null){if(typeof document>"u")return j0=0,j0;var t=document.body,e=document.createElement("div");e.classList.add("simplebar-hide-scrollbar"),t.appendChild(e);var n=e.getBoundingClientRect().right;t.removeChild(e),j0=n}return j0}function $K(t){return!t||!t.ownerDocument||!t.ownerDocument.defaultView?window:t.ownerDocument.defaultView}function zK(t){return!t||!t.ownerDocument?document:t.ownerDocument}var HK=function(t){var e={},n=Array.prototype.reduce.call(t,function(i,r){var s=r.name.match(/data-simplebar-(.+)/);if(s){var a=s[1].replace(/\W+(.)/g,function(o,l){return l.toUpperCase()});switch(r.value){case"true":i[a]=!0;break;case"false":i[a]=!1;break;case void 0:i[a]=!0;break;default:i[a]=r.value}}return i},e);return n};function VK(t,e){var n;!t||(n=t.classList).add.apply(n,e.split(" "))}function WK(t,e){!t||e.split(" ").forEach(function(n){t.classList.remove(n)})}function GK(t){return".".concat(t.split(" ").join("."))}var p2e=Object.freeze({__proto__:null,getElementWindow:$K,getElementDocument:zK,getOptions:HK,addClasses:VK,removeClasses:WK,classNamesToQuery:GK}),df=$K,iD=zK,m2e=HK,hf=VK,pf=WK,Us=GK,iE=function(){function t(e,n){n===void 0&&(n={});var i=this;if(this.removePreventClickId=null,this.minScrollbarWidth=20,this.stopScrollDelay=175,this.isScrolling=!1,this.isMouseEntering=!1,this.scrollXTicking=!1,this.scrollYTicking=!1,this.wrapperEl=null,this.contentWrapperEl=null,this.contentEl=null,this.offsetEl=null,this.maskEl=null,this.placeholderEl=null,this.heightAutoObserverWrapperEl=null,this.heightAutoObserverEl=null,this.rtlHelpers=null,this.scrollbarWidth=0,this.resizeObserver=null,this.mutationObserver=null,this.elStyles=null,this.isRtl=null,this.mouseX=0,this.mouseY=0,this.onMouseMove=function(){},this.onWindowResize=function(){},this.onStopScrolling=function(){},this.onMouseEntered=function(){},this.onScroll=function(){var r=df(i.el);i.scrollXTicking||(r.requestAnimationFrame(i.scrollX),i.scrollXTicking=!0),i.scrollYTicking||(r.requestAnimationFrame(i.scrollY),i.scrollYTicking=!0),i.isScrolling||(i.isScrolling=!0,hf(i.el,i.classNames.scrolling)),i.showScrollbar("x"),i.showScrollbar("y"),i.onStopScrolling()},this.scrollX=function(){i.axis.x.isOverflowing&&i.positionScrollbar("x"),i.scrollXTicking=!1},this.scrollY=function(){i.axis.y.isOverflowing&&i.positionScrollbar("y"),i.scrollYTicking=!1},this._onStopScrolling=function(){pf(i.el,i.classNames.scrolling),i.options.autoHide&&(i.hideScrollbar("x"),i.hideScrollbar("y")),i.isScrolling=!1},this.onMouseEnter=function(){i.isMouseEntering||(hf(i.el,i.classNames.mouseEntered),i.showScrollbar("x"),i.showScrollbar("y"),i.isMouseEntering=!0),i.onMouseEntered()},this._onMouseEntered=function(){pf(i.el,i.classNames.mouseEntered),i.options.autoHide&&(i.hideScrollbar("x"),i.hideScrollbar("y")),i.isMouseEntering=!1},this._onMouseMove=function(r){i.mouseX=r.clientX,i.mouseY=r.clientY,(i.axis.x.isOverflowing||i.axis.x.forceVisible)&&i.onMouseMoveForAxis("x"),(i.axis.y.isOverflowing||i.axis.y.forceVisible)&&i.onMouseMoveForAxis("y")},this.onMouseLeave=function(){i.onMouseMove.cancel(),(i.axis.x.isOverflowing||i.axis.x.forceVisible)&&i.onMouseLeaveForAxis("x"),(i.axis.y.isOverflowing||i.axis.y.forceVisible)&&i.onMouseLeaveForAxis("y"),i.mouseX=-1,i.mouseY=-1}
286,this._onWindowResize=function(){i.scrollbarWidth=i.getScrollbarWidth(),i.hideNativeScrollbar()},this.onPointerEvent=function(r){if(!(!i.axis.x.track.el||!i.axis.y.track.el||!i.axis.x.scrollbar.el||!i.axis.y.scrollbar.el)){var s,a;i.axis.x.track.rect=i.axis.x.track.el.getBoundingClientRect(),i.axis.y.track.rect=i.axis.y.track.el.getBoundingClientRect(),(i.axis.x.isOverflowing||i.axis.x.forceVisible)&&(s=i.isWithinBounds(i.axis.x.track.rect)),(i.axis.y.isOverflowing||i.axis.y.forceVisible)&&(a=i.isWithinBounds(i.axis.y.track.rect)),(s||a)&&(r.stopPropagation(),r.type==="pointerdown"&&r.pointerType!=="touch"&&(s&&(i.axis.x.scrollbar.rect=i.axis.x.scrollbar.el.getBoundingClientRect(),i.isWithinBounds(i.axis.x.scrollbar.rect)?i.onDragStart(r,"x"):i.onTrackClick(r,"x")),a&&(i.axis.y.scrollbar.rect=i.axis.y.scrollbar.el.getBoundingClientRect(),i.isWithinBounds(i.axis.y.scrollbar.rect)?i.onDragStart(r,"y"):i.onTrackClick(r,"y"))))}},this.drag=function(r){var s,a,o,l,u,c,f,h,p,m,y;if(!(!i.draggedAxis||!i.contentWrapperEl)){var v,_=i.axis[i.draggedAxis].track,b=(a=(s=_.rect)===null||s===void 0?void 0:s[i.axis[i.draggedAxis].sizeAttr])!==null&&a!==void 0?a:0,x=i.axis[i.draggedAxis].scrollbar,T=(l=(o=i.contentWrapperEl)===null||o===void 0?void 0:o[i.axis[i.draggedAxis].scrollSizeAttr])!==null&&l!==void 0?l:0,E=parseInt((c=(u=i.elStyles)===null||u===void 0?void 0:u[i.axis[i.draggedAxis].sizeAttr])!==null&&c!==void 0?c:"0px",10);r.preventDefault(),r.stopPropagation(),i.draggedAxis==="y"?v=r.pageY:v=r.pageX;var C=v-((h=(f=_.rect)===null||f===void 0?void 0:f[i.axis[i.draggedAxis].offsetAttr])!==null&&h!==void 0?h:0)-i.axis[i.draggedAxis].dragOffset;C=i.draggedAxis==="x"&&i.isRtl?((m=(p=_.rect)===null||p===void 0?void 0:p[i.axis[i.draggedAxis].sizeAttr])!==null&&m!==void 0?m:0)-x.size-C:C;var D=C/(b-x.size),R=D*(T-E);i.draggedAxis==="x"&&i.isRtl&&(R=!((y=t.getRtlHelpers())===null||y===void 0)&&y.isScrollingToNegative?-R:R),i.contentWrapperEl[i.axis[i.draggedAxis].scrollOffsetAttr]=R}},this.onEndDrag=function(r){var s=iD(i.el),a=df(i.el);r.preventDefault(),r.stopPropagation(),pf(i.el,i.classNames.dragging),s.removeEventListener("mousemove",i.drag,!0),s.removeEventListener("mouseup",i.onEndDrag,!0),i.removePreventClickId=a.setTimeout(function(){s.removeEventListener("click",i.preventClick,!0),s.removeEventListener("dblclick",i.preventClick,!0),i.removePreventClickId=null})},this.preventClick=function(r){r.preventDefault(),r.stopPropagation()},this.el=e,this.options=sm(sm({},t.defaultOptions),n),this.classNames=sm(sm({},t.defaultOptions.classNames),n.classNames),this.axis={x:{scrollOffsetAttr:"scrollLeft",sizeAttr:"width",scrollSizeAttr:"scrollWidth",offsetSizeAttr:"offsetWidth",offsetAttr:"left",overflowAttr:"overflowX",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}},y:{scrollOffsetAttr:"scrollTop",sizeAttr:"height",scrollSizeAttr:"scrollHeight",offsetSizeAttr:"offsetHeight",offsetAttr:"top",overflowAttr:"overflowY",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}}},typeof this.el!="object"||!this.el.nodeName)throw new Error("Argument passed to SimpleBar must be an HTML element instead of ".concat(this.el));this.onMouseMove=d2e(this._onMouseMove,64),this.onWindowResize=kT(this._onWindowResize,64,{leading:!0}),this.onStopScrolling=kT(this._onStopScrolling,this.stopScrollDelay),this.onMouseEntered=kT(this._onMouseEntered,this.stopScrollDelay),this.init()}return t.getRtlHelpers=function(){if(t.rtlHelpers)return t.rtlHelpers;var e=document.createElement("div");e.innerHTML='<div class="simplebar-dummy-scrollbar-size"><div></div></div>';var n=e.firstElementChild,i=n==null?void 0:n.firstElementChild;if(!i)return null;document.body.appendChild(n),n.scrollLeft=0;var r=t.getOffset(n),s=t.getOffset(i);n.scrollLeft=-999;var a=t.getOffset(i);return document.body.removeChild(n),t.rtlHelpers={isScrollOriginAtZero:r.left!==s.left,isScrollingToNegative:s.left!==a.left},t.rtlHelpers},t.prototype.getScrollbarWidth=function(){try{return this.contentWrapperEl&&getComputedStyle(this.contentWrapperEl,"::-webkit-scrollbar").display==="none"||"scrollbarWidth"in document.documentElement.style||"-ms-overflow-style"in document.documentElement.style?0:dU()}catch(e){return dU()}},t.getOffset=function(e){var n=e.getBoundingClientRect(),i=iD(e),r=df(e);return{top:n.top+(r.pageYOffset||i.documentElement.scrollTop),left
286:n.left+(r.pageXOffset||i.documentElement.scrollLeft)}},t.prototype.init=function(){Xb&&(this.initDOM(),this.rtlHelpers=t.getRtlHelpers(),this.scrollbarWidth=this.getScrollbarWidth(),this.recalculate(),this.initListeners())},t.prototype.initDOM=function(){var e,n;this.wrapperEl=this.el.querySelector(Us(this.classNames.wrapper)),this.contentWrapperEl=this.options.scrollableNode||this.el.querySelector(Us(this.classNames.contentWrapper)),this.contentEl=this.options.contentNode||this.el.querySelector(Us(this.classNames.contentEl)),this.offsetEl=this.el.querySelector(Us(this.classNames.offset)),this.maskEl=this.el.querySelector(Us(this.classNames.mask)),this.placeholderEl=this.findChild(this.wrapperEl,Us(this.classNames.placeholder)),this.heightAutoObserverWrapperEl=this.el.querySelector(Us(this.classNames.heightAutoObserverWrapperEl)),this.heightAutoObserverEl=this.el.querySelector(Us(this.classNames.heightAutoObserverEl)),this.axis.x.track.el=this.findChild(this.el,"".concat(Us(this.classNames.track)).concat(Us(this.classNames.horizontal))),this.axis.y.track.el=this.findChild(this.el,"".concat(Us(this.classNames.track)).concat(Us(this.classNames.vertical))),this.axis.x.scrollbar.el=((e=this.axis.x.track.el)===null||e===void 0?void 0:e.querySelector(Us(this.classNames.scrollbar)))||null,this.axis.y.scrollbar.el=((n=this.axis.y.track.el)===null||n===void 0?void 0:n.querySelector(Us(this.classNames.scrollbar)))||null,this.options.autoHide||(hf(this.axis.x.scrollbar.el,this.classNames.visible),hf(this.axis.y.scrollbar.el,this.classNames.visible))},t.prototype.initListeners=function(){var e=this,n,i=df(this.el);if(this.el.addEventListener("mouseenter",this.onMouseEnter),this.el.addEventListener("pointerdown",this.onPointerEvent,!0),this.el.addEventListener("mousemove",this.onMouseMove),this.el.addEventListener("mouseleave",this.onMouseLeave),(n=this.contentWrapperEl)===null||n===void 0||n.addEventListener("scroll",this.onScroll),i.addEventListener("resize",this.onWindowResize),!!this.contentEl){if(window.ResizeObserver){var r=!1,s=i.ResizeObserver||ResizeObserver;this.resizeObserver=new s(function(){!r||i.requestAnimationFrame(function(){e.recalculate()})}),this.resizeObserver.observe(this.el),this.resizeObserver.observe(this.contentEl),i.requestAnimationFrame(function(){r=!0})}this.mutationObserver=new i.MutationObserver(function(){i.requestAnimationFrame(function(){e.recalculate()})}),this.mutationObserver.observe(this.contentEl,{childList:!0,subtree:!0,characterData:!0})}},t.prototype.recalculate=function(){if(!(!this.heightAutoObserverEl||!this.contentEl||!this.contentWrapperEl||!this.wrapperEl||!this.placeholderEl)){var e=df(this.el);this.elStyles=e.getComputedStyle(this.el),this.isRtl=this.elStyles.direction==="rtl";var n=this.contentEl.offsetWidth,i=this.heightAutoObserverEl.offsetHeight<=1,r=this.heightAutoObserverEl.offsetWidth<=1||n>0,s=this.contentWrapperEl.offsetWidth,a=this.elStyles.overflowX,o=this.elStyles.overflowY;this.contentEl.style.padding="".concat(this.elStyles.paddingTop," ").concat(this.elStyles.paddingRight," ").concat(this.elStyles.paddingBottom," ").concat(this.elStyles.paddingLeft),this.wrapperEl.style.margin="-".concat(this.elStyles.paddingTop," -").concat(this.elStyles.paddingRight," -").concat(this.elStyles.paddingBottom," -").concat(this.elStyles.paddingLeft);var l=this.contentEl.scrollHeight,u=this.contentEl.scrollWidth;this.contentWrapperEl.style.height=i?"auto":"100%",this.placeholderEl.style.width=r?"".concat(n||u,"px"):"auto",this.placeholderEl.style.height="".concat(l,"px");var c=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=n!==0&&u>n,this.axis.y.isOverflowing=l>c,this.axis.x.isOverflowing=a==="hidden"?!1:this.axis.x.isOverflowing,this.axis.y.isOverflowing=o==="hidden"?!1:this.axis.y.isOverflowing,this.axis.x.forceVisible=this.options.forceVisible==="x"||this.options.forceVisible===!0,this.axis.y.forceVisible=this.options.forceVisible==="y"||this.options.forceVisible===!0,this.hideNativeScrollbar();var f=this.axis.x.isOverflowing?this.scrollbarWidth:0,h=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&u>s-h,this.axis.y.isOverflowing=this.axis.y.isOverflowing&&l>c-f,this.axis.x.scrollbar.size=this.getScrollbarSize("x"),this.axis.y.scrollbar.size=this.getScrollbarSize("y"),this.axis.x.scrollbar.el&&(this.axis.x.scrollbar.el.style.width="".concat(this.axis.x.scrollbar.size,"px")),this.axis.y.scrollbar.el&&(this.axis.y.scrollbar.el.style.height="".concat(this.axis.y.scrollbar.size,"px")),this.positionScrollbar("x"),this.positionScrollbar("y"),this.toggleTrackVisibility("x"),this.toggleTrackVisibility("y")}},t.prototype.getScrollbarSize=function(e){var n,i;if(e===void 0&&(e="y"),!this.axis[e].isOverflowing||!this.contentEl)return 0;var r=this.contentEl[this.axis[e].scrollSizeAttr],s=(i=(n=this.axis[e].track.el)===null||n===void 0?void 0:n[this.axis[e].offsetSizeAttr])!==null&&i!==void 0?i:0,a=s/r,o;return o=Math.max(~~(a*s),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(o=Math.min(o,this.options.scrollbarMaxSize)),o},t.prototype.positionScrollbar=function(e){var n,i,r;e===void 0&&(e="y");var s=this.axis[e].scrollbar;if(!(!this.axis[e].isOverflowing||!this.contentWrapperEl||!s.el||!this.elStyles)){var a=this.contentWrapperEl[this.axis[e].scrollSizeAttr],o=((n=this.axis[e].track.el)===null||n===void 0?void 0:n[this.axis[e].offsetSizeAttr])||0,l=parseInt(this.elStyles[this.axis[e].sizeAttr],10),u=this.contentWrapperEl[this.axis[e].scrollOffsetAttr];u=e==="x"&&this.isRtl&&((i=t.getRtlHelpers())===null||i===void 0?void 0:i.isScrollOriginAtZero)?-u:u,e==="x"&&this.isRtl&&(u=!((r=t.getRtlHelpers())===null||r===void 0)&&r.isScrollingToNegative?u:-u);var c=u/(a-l),f=~~((o-s.size)*c);f=e==="x"&&this.isRtl?-f+(o-s.size):f,s.el.style.transform=e==="x"?"translate3d(".concat(f,"px, 0, 0)"):"translate3d(0, ".concat(f,"px, 0)")}},t.prototype.toggleTrackVisibility=function(e){e===void 0&&(e="y");var n=this.axis[e].track.el,i=this.axis[e].scrollbar.el;!n||!i||!this.contentWrapperEl||(this.axis[e].isOverflowing||this.axis[e].forceVisible?(n.style.visibility="visible",this.contentWrapperEl.style[this.axis[e].overflowAttr]="scroll",this.el.classList.add("".concat(this.classNames.scrollable,"-").concat(e))):(n.style.visibility="hidden",this.contentWrapperEl.style[this.axis[e].overflowAttr]="hidden",this.el.classList.remove("".concat(this.classNames.scrollable,"-").concat(e))),this.axis[e].isOverflowing?i.style.display="block":i.style.display="none")},t.prototype.showScrollbar=function(e){e===void 0&&(e="y"),this.axis[e].isOverflowing&&!this.axis[e].scrollbar.isVisible&&(hf(this.axis[e].scrollbar.el,this.classNames.visible),this.axis[e].scrollbar.isVisible=!0)},t.prototype.hideScrollbar=function(e){e===void 0&&(e="y"),this.axis[e].isOverflowing&&this.axis[e].scrollbar.isVisible&&(pf(this.axis[e].scrollbar.el,this.classNames.visible),this.axis[e].scrollbar.isVisible=!1)},t.prototype.hideNativeScrollbar=function(){!this.offsetEl||(this.offsetEl.style[this.isRtl?"left":"right"]=this.axis.y.isOverflowing||this.axis.y.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px",this.offsetEl.style.bottom=this.axis.x.isOverflowing||this.axis.x.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px")},t.prototype.onMouseMoveForAxis=function(e){e===void 0&&(e="y");var n=this.axis[e];!n.track.el||!n.scrollbar.el||(n.track.rect=n.track.el.getBoundingClientRect(),n.scrollbar.rect=n.scrollbar.el.getBoundingClientRect(),this.isWithinBounds(n.track.rect)?(this.showScrollbar(e),hf(n.track.el,this.classNames.hover),this.isWithinBounds(n.scrollbar.rect)?hf(n.scrollbar.el,this.classNames.hover):pf(n.scrollbar.el,this.classNames.hover)):(pf(n.track.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(e)))},t.prototype.onMouseLeaveForAxis=function(e){e===void 0&&(e="y"),pf(this.axis[e].track.el,this.classNames.hover),pf(this.axis[e].scrollbar.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(e)},t.prototype.onDragStart=function(e,n){var i;n===void 0&&(n="y");var r=iD(this.el),s=df(this.el),a=this.axis[n].scrollbar,o=n==="y"?e.pageY:e.pageX;this.axis[n].dragOffset=o-(((i=a.rect)===null||i===void 0?void 0:i[this.axis[n].offsetAttr])||0),this.draggedAxis=n,hf(this.el,this.classNames.dragging),r.addEventListener("mousemove",this.drag,!0),r.addEventListener("mouseup",this.onEndDrag,!0),this.removePreventClickId===null?(r.addEventListener("click",this.preventClick,!0),r.addEventListener("dblclick",this.preventClick,!0)):(s.clearTimeout(this.removePreventClickId),this.removePreventClickId=null)},t.prototype.onTrackClick=function(e,n){var i=this,r,s,a,o;n===void 0&&(n="y");var l=this.axis[n];if(!(!this.options.clickOnTrack||!l.scrollbar.el||!this.contentWrapperEl)){e.preventDefault();var u=df(this.el);this.axis[n].scrollbar.rect=l.scrollbar.el.getBoundingClientRect();var c=this.axis[n].scrollbar,f=(s=(r=c.rect)===null||r===void 0?void 0:r[this.axis[n].offsetAttr])!==null&&s!==void 0?s:0,h=parseInt((o=(a=this.elStyles)===null||a===void 0?void 0:a[this.axis[n].sizeAttr])!==null&&o!==void 0?o:"0px",10),p=this.contentWrapperEl[this.axis[n].scrollOffsetAttr],m=n==="y"?this.mouseY-f:this.mouseX-f,y=m<0?-1:1,v=y===-1?p-h:p+h,_=40,b=function(){!i.contentWrapperEl||(y===-1?p>v&&(p-=_,i.contentWrapperEl[i.axis[n].scrollOffsetAttr]=p,u.requestAnimationFrame(b)):p<v&&(p+=_,i.contentWrapperEl[i.axis[n].scrollOffsetAttr]=p,u.requestAnimationFrame(b)))};b()}},t.prototype.getContentElement=function(){return this.contentEl},t.prototype.getScrollElement=function(){return this.contentWrapperEl},t.prototype.removeListeners=function(){var e=df(this.el);this.el.removeEventListener("mouseenter",this.onMouseEnter),this.el.removeEventListener("pointerdown",this.onPointerEvent,!0),this.el.removeEventListener("mousemove",this.onMouseMove),this.el.removeEventListener("mouseleave",this.onMouseLeave),this.contentWrapperEl&&this.contentWrapperEl.removeEventListener("scroll",this.onScroll),e.removeEventListener("resize",this.onWindowResize),this.mutationObserver&&this.mutationObserver.disconnect(),this.resizeObserver&&this.resizeObserver.disconnect(),this.onMouseMove.cancel(),this.onWindowResize.cancel(),this.onStopScrolling.cancel(),this.onMouseEntered.cancel()},t.prototype.unMount=function(){this.removeListeners()},t.prototype.isWithinBounds=function(e){return this.mouseX>=e.left&&this.mouseX<=e.left+e.width&&this.mouseY>=e.top&&this.mouseY<=e.top+e.height},t.prototype.findChild=function(e,n){var i=e.matches||e.webkitMatchesSelector||e.mozMatchesSelector||e.msMatchesSelector;return Array.prototype.filter.call(e.children,function(r){return i.call(r,n)})[0]}
286,t.rtlHelpers=null,t.defaultOptions={forceVisible:!1,clickOnTrack:!0,scrollbarMinSize:25,scrollbarMaxSize:0,ariaLabel:"scrollable content",classNames:{contentEl:"simplebar-content",contentWrapper:"simplebar-content-wrapper",offset:"simplebar-offset",mask:"simplebar-mask",wrapper:"simplebar-wrapper",placeholder:"simplebar-placeholder",scrollbar:"simplebar-scrollbar",track:"simplebar-track",heightAutoObserverWrapperEl:"simplebar-height-auto-observer-wrapper",heightAutoObserverEl:"simplebar-height-auto-observer",visible:"simplebar-visible",horizontal:"simplebar-horizontal",vertical:"simplebar-vertical",hover:"simplebar-hover",dragging:"simplebar-dragging",scrolling:"simplebar-scrolling",scrollable:"simplebar-scrollable",mouseEntered:"simplebar-mouse-entered"},scrollableNode:null,contentNode:null,autoHide:!0},t.getOptions=m2e,t.helpers=p2e,t}(),xh=function(){return xh=Object.assign||function(e){for(var n,i=1,r=arguments.length;i<r;i++){n=arguments[i];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(e[s]=n[s])}return e},xh.apply(this,arguments)},g2e={beforeUnmount:"beforeUnmount",unmount:"unmount"},V_;function _2e(t){var e,n=t.h,i=t.emit,r=t.slots,s=t.props,a=function(l){return i("scroll",l)},o=xh(xh({},iE.defaultOptions.classNames),s.classNames);return n("div",xh({ref:"element"},{"data-simplebar":"init"}),[n("div",{class:o.wrapper},[n("div",{class:o.heightAutoObserverWrapperEl},[n("div",{class:o.heightAutoObserverEl})]),n("div",{class:o.mask},[n("div",{class:o.offset},[n("div",xh(xh({},{onScroll:a,class:o.contentWrapper,tabIndex:0,role:"region","aria-label":s.ariaLabel||iE.defaultOptions.ariaLabel}),{ref:"scrollElement"}),[n("div",{class:o.contentEl,ref:"contentElement"},(e=r.default)===null||e===void 0?void 0:e.call(r))])])]),n("div",{class:o.placeholder})]),n("div",{class:"".concat(o.track," simplebar-horizontal")},[n("div",{class:o.scrollbar})]),n("div",{class:"".concat(o.track," simplebar-vertical")},[n("div",{class:o.scrollbar})])])}var pWe=wp((V_={name:"simplebar-vue",props:{autoHide:{type:Boolean,default:void 0},classNames:Object,forceVisible:{type:[Boolean,String],validator:function(t){return typeof t=="boolean"||t==="x"||t==="y"},default:void 0},ariaLabel:String,direction:{type:String,validator:function(t){return t==="ltr"||t==="rtl"}},timeout:Number,clickOnTrack:{type:Boolean,default:void 0},scrollbarMinSize:Number,scrollbarMaxSize:Number},emits:["scroll"],data:function(){return{}},mounted:function(){for(var t=iE.getOptions(this.$refs.element.attributes),e=0,n=Object.entries(this.$props);e<n.length;e++){var i=n[e],r=i[0],s=i[1];s!=null&&typeof s!="function"&&(t[r]=s)}this.SimpleBar=new iE(this.$refs.element,t),this.scrollElement=this.$refs.scrollElement,this.contentElement=this.$refs.contentElement}},V_[g2e.beforeUnmount]=function(){var t;(t=this.SimpleBar)===null||t===void 0||t.unMount(),this.SimpleBar=void 0},V_.methods={recalculate:function(){var t;(t=this.SimpleBar)===null||t===void 0||t.recalculate()}},V_.render=function(t){var e=this;return _2e({h:typeof t=="function"?t:kr,emit:function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];return e.$emit.apply(e,n)},slots:this.$slots,props:this.$props})},V_));/*!
287 * OverlayScrollbars
288 * Version: 2.16.0
289 *
290 * Copyright (c) Rene Haas | KingSora.
291 * https://github.com/KingSora
292 *
293 * Released under the MIT license.
294 */const Aa=(t,e)=>{const{o:n,i,u:r}=t;let s=n,a;const o=(c,f)=>{const h=s,p=c,m=f||(i?!i(h,p):h!==p);return(m||r)&&(s=p,a=h),[s,m,a]};return[e?c=>o(e(s,a),c):o,c=>[s,!!c,a]]},v2e=typeof window<"u"&&typeof HTMLElement<"u"&&!!window.document,Js=v2e?window:{},jK=Math.max,y2e=Math.min,VO=Math.round,Bf=Math.abs,hU=Math.sign,qK=Js.cancelAnimationFrame,HL=Js.requestAnimationFrame,VL=Js.setTimeout,XK=Js.clearTimeout,Bw=t=>typeof Js[t]<"u"?Js[t]:void 0,b2e=Bw("MutationObserver"),pU=Bw("IntersectionObserver"),am=Bw("ResizeObserver"),Mv=Bw("ScrollTimeline"),WL=t=>t===void 0,Uw=t=>t===null,Jf=t=>typeof t=="number",Gg=t=>typeof t=="string",$w=t=>typeof t=="boolean",gl=t=>typeof t=="function",Io=t=>Array.isArray(t),rE=t=>typeof t=="object"&&!Io(t)&&!Uw(t),GL=t=>{const e=!!t&&t.length,n=Jf(e)&&e>-1&&e%1==0;return Io(t)||!gl(t)&&n?e>0&&rE(t)?e-1 in t:!0:!1},tb=t=>!!t&&t.constructor===Object,sE=t=>t instanceof HTMLElement,zw=t=>t instanceof Element;function Kn(t,e){if(GL(t))for(let n=0;n<t.length&&e(t[n],n,t)!==!1;n++);else t&&Kn(Object.keys(t),n=>e(t[n],n,t));return t}const YK=(t,e)=>t.indexOf(e)>=0,yg=(t,e)=>t.concat(e),Di=(t,e,n)=>(!Gg(e)&&GL(e)?Array.prototype.push.apply(t,e):t.push(e),t),Ad=t=>Array.from(t||[]),jL=t=>Io(t)?t:!Gg(t)&&GL(t)?Ad(t):[t],aE=t=>!!t&&!t.length,oE=t=>Ad(new Set(t)),Va=(t,e,n)=>{Kn(t,r=>r?r.apply(void 0,e||[]):!0),n||(t.length=0)},KK="paddingTop",ZK="paddingRight",QK="paddingLeft",JK="paddingBottom",eZ="marginLeft",tZ="marginRight",nZ="marginBottom",qL="overflowX",XL="overflowY",Hw="width",Vw="height",dc="visible",rl="hidden",Gh="scroll",x2e=t=>{const e=String(t||"");return e?e[0].toUpperCase()+e.slice(1):""},Ww=(t,e,n,i)=>{if(t&&e){let r=!0;return Kn(n,s=>{const a=t[s],o=e[s];a!==o&&(r=!1)}),r}return!1},iZ=(t,e)=>Ww(t,e,["w","h"]),IT=(t,e)=>Ww(t,e,["x","y"]),S2e=(t,e)=>Ww(t,e,["t","r","b","l"]),zt=(t,...e)=>t.bind(0,...e),om=t=>{let e;const n=t?VL:HL,i=t?XK:qK;return[r=>{i(e),e=n(()=>r(),gl(t)?t():t)},()=>i(e)]},mU=t=>{const e=gl(t)?t():t;if(Jf(e)){const n=e?VL:HL,i=e?XK:qK;return r=>{const s=n(()=>r(),e);return()=>{i(s)}}}return e&&e._},rZ=(t,e)=>{const{p:n,v:i,S:r,m:s}=e||{};let a,o,l,u;const c=function(y){o&&o(),a&&a(),u=o=a=l=void 0,t.apply(this,y)},f=m=>s&&l?s(l,m):m,h=()=>{o&&l&&c(f(l)||l)},p=function(){const y=Ad(arguments),v=mU(n);if(v){const _=typeof r=="function"?r():r,b=mU(i),T=f(y)||y,E=c.bind(0,T);o&&o(),_&&!u?(E(),u=!0,o=v(()=>u=void 0)):(o=v(E),b&&!a&&(a=b(h))),l=T}else c(y)};return p.O=h,p},sZ=(t,e)=>
294Object.prototype.hasOwnProperty.call(t,e),Xs=t=>t?Object.keys(t):[],kn=(t,e,n,i,r,s,a)=>{const o=[e,n,i,r,s,a];return(typeof t!="object"||Uw(t))&&!gl(t)&&(t={}),Kn(o,l=>{Kn(l,(u,c)=>{const f=l[c];if(t===f)return!0;const h=Io(f);if(f&&tb(f)){const p=t[c];let m=p;h&&!Io(p)?m=[]:!h&&!tb(p)&&(m={}),t[c]=kn(m,f)}else t[c]=h?f.slice():f})}),t},aZ=(t,e)=>Kn(kn({},t),(n,i,r)=>{n===void 0?delete r[i]:n&&tb(n)&&(r[i]=aZ(n))}),YL=t=>!Xs(t).length,nb=()=>{},oZ=(t,e,n)=>jK(t,y2e(e,n)),jh=t=>oE((Io(t)?t:(t||"").split(" ")).filter(e=>e)),KL=(t,e)=>t&&t.getAttribute(e),gU=(t,e)=>t&&t.hasAttribute(e),ic=(t,e,n)=>{Kn(jh(e),i=>{t&&t.setAttribute(i,String(n||""))})},kl=(t,e)=>{Kn(jh(e),n=>t&&t.removeAttribute(n))},Gw=(t,e)=>{const n=jh(KL(t,e)),i=zt(ic,t,e),r=(s,a)=>{const o=new Set(n);return Kn(jh(s),l=>{o[a](l)}),Ad(o).join(" ")};return{C:s=>i(r(s,"delete")),$:s=>i(r(s,"add")),H:s=>{const a=jh(s);return a.reduce((o,l)=>o&&n.includes(l),a.length>0)}}},lZ=(t,e,n)=>(Gw(t,e).C(n),zt(ZL,t,e,n)),ZL=(t,e,n)=>(Gw(t,e).$(n),zt(lZ,t,e,n)),lE=(t,e,n,i)=>(i?ZL:lZ)(t,e,n),QL=(t,e,n)=>Gw(t,e).H(n),uZ=t=>Gw(t,"class"),cZ=(t,e)=>{uZ(t).C(e)},JL=(t,e)=>(uZ(t).$(e),zt(cZ,t,e)),fZ=(t,e)=>{const n=e?zw(e)&&e:document;return n?Ad(n.querySelectorAll(t)):[]},T2e=(t,e)=>{const n=e?zw(e)&&e:document;return n&&n.querySelector(t)},WO=(t,e)=>zw(t)&&t.matches(e),dZ=t=>WO(t,"body"),GO=t=>t?Ad(t.childNodes):[],ib=t=>t&&t.parentElement,lm=(t,e)=>zw(t)&&t.closest(e),jO=t=>document.activeElement,E2e=(t,e,n)=>{const i=lm(t,e),r=t&&T2e(n,i),s=lm(r,e)===i;return i&&r?i===t||r===t||s&&lm(lm(t,n),e)!==i:!1},bg=t=>{Kn(jL(t),e=>{const n=ib(e);e&&n&&n.removeChild(e)})},Ys=(t,e)=>zt(bg,t&&e&&Kn(jL(e),n=>{n&&t.appendChild(n)}));let hZ;const w2e=()=>hZ,C2e=t=>{hZ=t},Lm=t=>{const e=document.createElement("div");return ic(e,"class",t),e},pZ=t=>{const e=Lm(),n=w2e(),i=t.trim();return e.innerHTML=n?n.createHTML(i):i,Kn(GO(e),r=>bg(r))},_U=(t,e)=>t.getPropertyValue(e)||t[e]||"",mZ=t=>{const e=t||0;return isFinite(e)?e:0},tS=t=>mZ(parseFloat(t||"")),qO=t=>Math.round(t*1e4)/1e4,gZ=t=>`${qO(mZ(t))}px`;function rb(t,e){t&&e&&Kn(e,(n,i)=>{try{const r=t.style,s=Uw(n)||$w(n)?"":Jf(n)?gZ(n):n;i.indexOf("--")===0?r.setProperty(i,s):r[i]=s}catch(r){}})}function gu(t,e,n){const i=Gg(e);let r=i?"":{};if(t){const s=Js.getComputedStyle(t,n)||t.style;r=i?_U(s,e):Ad(e).reduce((a,o)=>(a[o]=_U(s,o),a),r)}return r}const vU=(t,e,n)=>{const i=e?`${e}-`:"",r=n?`-${n}`:"",s=`${i}top${r}`,a=`${i}right${r}`,o=`${i}bottom${r}`,l=`${i}left${r}`,u=gu(t,[s,a,o,l]);return{t:tS(u[s]),r:tS(u[a]),b:tS(u[o]),l:tS(u[l])}},rD=(t,e)=>`translate${rE(t)?`(${t.x},${t.y})`:`${e?"X":"Y"}(${t})`}`,A2e=t=>!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length),M2e={w:0,h:0},jw=(t,e)=>e?{w:e[`${t}Width`],h:e[`${t}Height`]}:M2e,D2e=t=>jw("inner",t||Js),Fm=zt(jw,"offset"),_Z=zt(jw,"client"),uE=zt(jw,"scroll"),e4=t=>{const e=parseFloat(gu(t,Hw))||0,n=parseFloat(gu(t,Vw))||0;return{w:e-VO(e),h:n-VO(n)}},sD=t=>t.getBoundingClientRect(),P2e=t=>!!t&&A2e(t),XO=t=>!!(t&&(t[Vw]||t[Hw])),vZ=(t,e)=>{const n=XO(t);return!XO(e)&&n},yU=(t,e,n,i)=>{Kn(jh(e),r=>{t&&t.removeEventListener(r,n,i)})},di=(t,e,n,i)=>{var r;const s=(r=i&&i.D)!=null?r:!0,a=i&&i.I||!1,o=i&&i.A||!1,l={passive:s,capture:a};return zt(Va,jh(e).map(u=>{const c=o?f=>{yU(t,u,c,a),n&&n(f)}:n;return t&&t.addEventListener(u,c,l),zt(yU,t,u,c,a)}))},yZ=t=>t.stopPropagation(),YO=t=>t.preventDefault(),bZ=t=>yZ(t)||YO(t),Zl=(t,e)=>{const{x:n,y:i}=Jf(e)?{x:e,y:e}:e||{};Jf(n)&&(t.scrollLeft=n),Jf(i)&&(t.scrollTop=i)},Fa=t=>({x:t.scrollLeft,y:t.scrollTop}),xZ=()=>({T:{x:0,y:0},k:{x:0,y:0}}),O2e=(t,e)=>{const{T:n,k:i}=t,{w:r,h:s}=e,a=(f,h,p)=>{let m=hU(f)*p,y=hU(h)*p;if(m===y){const v=Bf(f),_=Bf(h);y=v>_?0:y,m=v<_?0:m}return m=m===y?0:m,[m+0,y+0]},[o,l]=a(n.x,i.x,r),[u,c]=a(n.y,i.y,s);return{T:{x:o,y:u},k:{x:l,y:c}}},aD=({T:t,k:e})=>{const n=(i,r)=>i===0&&i<=r;return{x:n(t.x,e.x),y:n(t.y,e.y)}},bU=({T:t,k:e},n)=>{const i=(r,s,a)=>oZ(0,1,(r-a)/(r-s)||0);return{x:i(t.x,e.x,n.x),y:i(t.y,e.y,n.y)}},KO=t=>{t&&t.focus&&t.focus({preventScroll:!0,focusVisible:!1})},xU=(t,e)=>{Kn(jL(e),t)},ZO=t=>{const e=new Map,n=(s,a)=>
294{if(s){const o=e.get(s);xU(l=>{o&&o[l?"delete":"clear"](l)},a)}else e.forEach(o=>{o.clear()}),e.clear()},i=(s,a)=>{if(Gg(s)){const u=e.get(s)||new Set;return e.set(s,u),xU(c=>{gl(c)&&u.add(c)},a),zt(n,s,a)}$w(a)&&a&&n();const o=Xs(s),l=[];return Kn(o,u=>{const c=s[u];c&&Di(l,i(u,c))}),zt(Va,l)},r=(s,a)=>{Kn(Ad(e.get(s)),o=>{a&&!aE(a)?o.apply(0,a):o()})};return i(t||{}),[i,n,r]},SZ={},TZ={},R2e=t=>{Kn(t,e=>Kn(e,(n,i)=>{SZ[i]=e[i]}))},EZ=(t,e,n)=>Xs(t).map(i=>{const{static:r,instance:s}=t[i],[a,o,l]=n||[],u=n?s:r;if(u){const c=n?u(a,o,e):u(e);return(l||TZ)[i]=c}}),k2e=(t,e)=>t[e],jg=t=>k2e(TZ,t),I2e="__osOptionsValidationPlugin",qg="data-overlayscrollbars",LT="os-environment",nS=`${LT}-scrollbar-hidden`,oD=`${qg}-initialize`,FT="noClipping",SU=`${qg}-body`,ed=qg,L2e="host",rc=`${qg}-viewport`,F2e=qL,N2e=XL,B2e="arrange",wZ="measuring",U2e="scrolling",CZ="scrollbarHidden",$2e="noContent",QO=`${qg}-padding`,TU=`${qg}-content`,t4="os-size-observer",z2e=`${t4}-appear`,H2e=`${t4}-listener`,V2e="os-trinsic-observer",W2e="os-theme-none",Ya="os-scrollbar",G2e=`${Ya}-rtl`,j2e=`${Ya}-horizontal`,q2e=`${Ya}-vertical`,AZ=`${Ya}-track`,n4=`${Ya}-handle`,X2e=`${Ya}-visible`,Y2e=`${Ya}-cornerless`,EU=`${Ya}-interaction`,wU=`${Ya}-unusable`,JO=`${Ya}-auto-hide`,K2e=`${JO}-hidden`,CU=`${Ya}-wheel`,Z2e=`${AZ}-interactive`,Q2e=`${n4}-interactive`,J2e="__osSizeObserverPlugin",eEe=(t,e)=>{const{M:n}=e,[i,r]=t("showNativeOverlaidScrollbars");return[i&&n.x&&n.y,r]},um=t=>t.indexOf(dc)===0,tEe=t=>t.replace(`${dc}-`,""),eR=(t,e)=>{if(t==="auto")return e?Gh:rl;const n=t||rl;return[rl,Gh,dc].includes(n)?n:rl},nEe=(t,e)=>{const{overflowX:n,overflowY:i}=gu(t,[qL,XL]);return{x:eR(n,e.x),y:eR(i,e.y)}},i4="__osScrollbarsHidingPlugin",iEe="__osClickScrollPlugin",AU=t=>JSON.stringify(t,(e,n)=>{if(gl(n))throw 0;return n}),MU=(t,e)=>t?`${e}`.split(".").reduce((n,i)=>n&&sZ(n,i)?n[i]:void 0,t):void 0,rEe=[0,33],MZ=[33,99],DZ=[222,666,!0],sEe={paddingAbsolute:!1,showNativeOverlaidScrollbars:!1,update:{elementEvents:[["img","load"]],debounce:{mutation:rEe,resize:null,event:MZ,env:DZ},attributes:null,ignoreMutation:null,flowDirectionStyles:null},overflow:{x:"scroll",y:"scroll"},scrollbars:{theme:"os-theme-dark",visibility:"auto",autoHide:"never",autoHideDelay:1300,autoHideSuspend:!1,dragScroll:!0,clickScroll:!1,pointers:["mouse","touch","pen"]}},PZ=(t,e)=>{const n={},i=yg(Xs(e),Xs(t));return Kn(i,r=>{const s=t[r],a=e[r];if(rE(s)&&rE(a))kn(n[r]={},PZ(s,a)),YL(n[r])&&delete n[r];else if(sZ(e,r)&&a!==s){let o=!0;if(Io(s)||Io(a))try{AU(s)===AU(a)&&(o=!1)}catch(l){}o&&(n[r]=a)}}),n},lD=(t,e,n)=>i=>[MU(t,i),n||MU(e,i)!==void 0];let OZ;const aEe=()=>OZ,oEe=t=>{OZ=t};let uD;const lEe=()=>{const t=(T,E,C)=>{Ys(document.body,T),Ys(document.body,T);const D=_Z(T),R=Fm(T),A=e4(E);return C&&bg(T),{x:R.h-D.h+A.h,y:R.w-D.w+A.w}},e=T=>{let E=!1;const C=JL(T,nS);try{E=gu(T,"scrollbar-width")==="none"||gu(T,"display","::-webkit-scrollbar")==="none"}catch(D){}return C(),E},n=`.${LT}{scroll-behavior:auto!important;position:fixed;opacity:0;visibility:hidden;overflow:scroll;height:200px;width:200px;z-index:-1}.${LT} div{width:200%;height:200%;margin:10px 0}.${nS}{scrollbar-width:none!important}.${nS}::-webkit-scrollbar,.${nS}::-webkit-scrollbar-corner{appearance:none!important;display:none!important;width:0!important;height:0!important}`,r=pZ(`<div class="${LT}"><div></div><style>${n}</style></div>`)[0],s=r.firstChild,a=r.lastChild,o=aEe();o&&(a.nonce=o);const[l,,u]=ZO(),[c,f]=Aa({o:t(r,s),i:IT},zt(t,r,s,!0)),[h]=f(),p=e(r),m={x:h.x===0,y:h.y===0},y={elements:{host:null,padding:!p,viewport:T=>p&&dZ(T)&&T,content:!1},scrollbars:{slot:!0},cancel:{nativeScrollbarsOverlaid:!1,body:null}},v=kn({},sEe),_=zt(kn,{},v),b=zt(kn,{},y),x={U:h,M:m,P:p,J:!!Mv,G:zt(l,"r"),K:b,Z:T=>kn(y,T)&&b(),tt:_,nt:T=>kn(v,T)&&_(),ot:kn({},y),st:kn({},v)};if(kl(r,"style"),bg(r),di(Js,"resize",()=>{u("r",[])}),gl(Js.matchMedia)&&!p&&(!m.x||!m.y)){const T=E=>{const C=Js.matchMedia(`(resolution: ${Js.devicePixelRatio}dppx)`);di(C,"change",()=>{E(),T(E)},{A:!0})};T(()=>{const[E,C]=c();kn(x.U,E),u("r",[C])})}return x},xu=()=>(uD||(uD=lEe()),uD),uEe=(t,e,n)=>{let i=!1;const r=n?new WeakMap:!1,s=()=>{i=!0},a=o=>{if(r&&n){const l=n.map(u=>{const[c,f]=u||[];return[f&&c?(o||fZ)(c,t):[],f]});Kn(l,u=>Kn(u[0],c=>{const f=u[1],h=r.get(c)||[];if(t.contains(c)&&f){const m=di(c,f,y=>{i?(m(),r.delete(c)):e(y)});r.set(c,Di(h,m))}else Va(h),r.delete(c)}))}};return a(),[s,a]},DU=(t,e,n,i)=>{let r=!1;const{et:s,ct:a,rt:o,it:l,lt:u,ut:c}=i||{},[f,h]=uEe(t,()=>r&&n(!0),o),p=s||[],m=a||[],y=yg(p,m),v=(b,x)=>{if(!aE(x)){const T=u||nb,E=c||nb,C=[],D=[];let R=!1,A=!1;if(Kn(x,k=>{const{attributeName:F,target:N,type:U,oldValue:$,addedNodes:G,removedNodes:Y}=k,Q=U==="attributes",re=U==="childList",he=t===N,X=Q&&F,ae=X&&KL(N,F||""),de=Gg(ae)?ae:null,Re=X&&$!==de,_e=YK(m,F)&&Re;if(e&&(re||!he)){const xe=Q&&Re,we=xe&&l&&WO(N,l),De=(we?!T(N,F,$,de):!Q||xe)&&!E(k,!!we,t,i);Kn(G,We=>Di(C,We)),Kn(Y,We=>Di(C,We)),A=A||De}!e&&he&&Re&&!T(N,F,$,de)&&(Di(D,F),R=R||_e)}),h(k=>oE(C).reduce((F,N)=>(Di(F,fZ(k,N)),WO(N,k)?Di(F,N):F),[])),e)return!b&&A&&n(!1),[!1];if(!aE(D)||R){const k=[oE(D),R];return b||n.apply(0,k),k}}},_=new b2e(zt(v,!1));return[()=>(_.observe(t,{attributes:!0,attributeOldValue:!0,attributeFilter:y,subtree:e,childList:e,characterData:e}),r=!0,()=>{r&&(f(),_.disconnect(),r=!1)}),()=>{if(r)return v(!0,_.takeRecords())}]};let th=null;const RZ=(t,e,n)=>{const{ft:i}=n||{},r=jg(J2e),[s]=Aa({o:!1,u:!0});return()=>{const a=[],l=pZ(`<div class="${t4}"><div class="${H2e}"></div></div>`)[0],u=l.firstChild,c=f=>{const h=Io(f)&&!aE(f);let p=!1,m=!1;if(h){const y=f[0],[v,,_]=s(y.contentRect),b=XO(v);m=vZ(v,_),p=!m&&!b}else m=f===!0;p||e({_t:!0,ft:m})};if(am){if(!$w(th)){const m=new am(nb);m.observe(t,{get box(){th=!0}
vendor: 4,464 bytes, line 294
294}),th=th||!1,m.disconnect()}const f=rZ(c,{p:0,v:0}),h=m=>f(m),p=new am(h);if(p.observe(th?t:u),Di(a,[()=>{p.disconnect()},!th&&Ys(t,l)]),th){const m=new am(h);m.observe(t,{box:"border-box"}),Di(a,()=>m.disconnect())}}else if(r){const[f,h]=r(u,c,i);Di(a,yg([JL(l,z2e),di(l,"animationstart",f),Ys(t,l)],h))}else return nb;return zt(Va,a)}},cEe=(t,e)=>{let n;const i=l=>l.h===0||l.isIntersecting||l.intersectionRatio>0,r=Lm(V2e),[s]=Aa({o:!1}),a=(l,u)=>{if(l){const c=s(i(l)),[,f]=c;return f&&!u&&e(c)&&[c]}},o=(l,u)=>a(u.pop(),l);return[()=>{const l=[];if(pU)n=new pU(zt(o,!1),{root:t}),n.observe(r),Di(l,()=>{n.disconnect()});else{const u=()=>{const c=Fm(r);a(c)};Di(l,RZ(r,u)()),u()}return zt(Va,Di(l,Ys(t,r)))},()=>n&&o(!0,n.takeRecords())]},fEe=(t,e,n,i)=>{let r,s,a,o,l,u,c,f;const h=`[${ed}]`,p=`[${rc}]`,m=["id","class","style","open","wrap","cols","rows"],{dt:y,vt:v,L:_,gt:b,ht:x,V:T,bt:E,yt:C,wt:D,St:R}=t,A=ve=>gu(ve,"direction")==="rtl",k=()=>{let ve,De,We;const lt=rZ(i,{p:()=>ve,v:()=>De,S:()=>We,m(z,J){const[te]=z,[pe]=J;return[yg(Xs(te),Xs(pe)).reduce((me,ne)=>(me[ne]=te[ne]||pe[ne],me),{})]}}),Ze=(z,J)=>{if(Io(J)){const[te,pe,me]=J;ve=te,De=pe,We=me}else Jf(J)?(ve=J,De=!1,We=!1):(ve=!1,De=!1,We=!1);lt(z)};return Ze.O=lt.O,Ze},F={Ot:!1,B:A(y)},N=xu(),U=jg(i4),[$]=Aa({i:iZ,o:{w:0,h:0}},()=>{const ve=U&&U.R(t,e,F,N,n).Y,We=!(E&&T)&&QL(v,ed,FT),lt=!T&&C(B2e),Ze=lt&&Fa(b),z=Ze&&R(),J=D(wZ,We),te=lt&&ve&&ve(),pe=uE(_),me=e4(_);return te&&te(),Zl(b,Ze),z&&z(),We&&J(),{w:pe.w+me.w,h:pe.h+me.h}}),G=k(),Y=ve=>{const De=A(y);kn(ve,{Ct:f!==De}),kn(F,{B:De}),f=De},Q=(ve,De)=>{const[We,lt]=ve,Ze={$t:lt};return kn(F,{Ot:We}),De||i(Ze),Ze},re=({_t:ve,ft:De})=>{const We=De?i:G,lt={_t:ve||De,ft:De};Y(lt),We(lt,s)},he=(ve,De)=>{const[,We]=$(),lt={xt:We};return Y(lt),We&&!De&&G(lt,ve?a:r),lt},X=(ve,De,We)=>{const lt={Ht:De};return Y(lt),De&&!We&&G(lt,r),lt},[ae,de]=x?cEe(v,Q):[],Re=!T&&RZ(v,re,{ft:!0}),[_e,xe]=DU(v,!1,X,{ct:m,et:m}),we=T&&am&&new am(ve=>{const De=ve[ve.length-1].contentRect;re({_t:!0,ft:vZ(De,c)}),c=De});return[()=>{we&&we.observe(v);const ve=Re&&Re(),De=ae&&ae(),We=_e(),lt=N.G(Ze=>{const[,z]=$();G({Et:Ze,xt:z,_t:E},o)});return()=>{we&&we.disconnect(),ve&&ve(),De&&De(),u&&u(),We(),lt()}},({Dt:ve,zt:De,It:We})=>{const lt={},[Ze]=ve("update.ignoreMutation"),[z,J]=ve("update.attributes"),[te,pe]=ve("update.elementEvents"),[me,ne]=ve("update.debounce"),Le=pe||J,Pe=De||We,Ce=Te=>gl(Ze)&&!!Ze(Te);if(Le){l&&l(),u&&u();const[Te,et]=DU(x||_,!0,he,{et:yg(m,z||[]),rt:te,it:h,ut:(j,V)=>{const{target:oe,attributeName:Ne}=j;return(!V&&Ne&&!T?E2e(oe,h,p):!1)||!!lm(oe,`.${Ya}`)||Ce(j)}});u=Te(),l=et}if(ne&&(G.O(),Io(me)||Jf(me)?(r=me,s=!1,a=MZ,o=DZ):tb(me)?(r=me.mutation,s=me.resize,a=me.event,o=me.env):(r=!1,s=!1,a=!1,o=!1)),Pe){const Te=xe(),et=de&&de(),j=l&&l();Te&&kn(lt,X(Te[0],Te[1],Pe)),et&&kn(lt,Q(et[0],Pe)),j&&kn(lt,he(j[0],Pe))}return Y(lt),lt},F]},kZ=(t,e)=>gl(e)?e.apply(0,t):e,dEe=(t,e,n,i)=>{const r=WL(i)?n:i;return kZ(t,r)||e.apply(0,t)},IZ=(t,e,n,i)=>{const r=WL(i)?n:i,s=kZ(t,r);return!!s&&(sE(s)?s:e.apply(0,t))},hEe=(t,e)=>{const{nativeScrollbarsOverlaid:n,body:i}=e||{},{M:r,P:s,K:a}=xu(),{nativeScrollbarsOverlaid:o,body:l}=a().cancel,u=n!=null?n:o,c=WL(i)?l:i,f=(r.x||r.y)&&u,h=t&&(Uw(c)?!s:c);return!!f||!!h},pEe=(t,e,n,i)=>{const r="--os-viewport-percent",s="--os-scroll-percent",a="--os-scroll-direction",{K:o}=xu(),{scrollbars:l}=o(),{slot:u}=l,{dt:c,vt:f,L:h,At:p,gt:m,bt:y,V:v}=e,{scrollbars:_}=p?{}:t,{slot:b}=_||{},x=[],T=[],E=[],C=IZ([c,f,h],()=>v&&y?c:f,u,b),D=ae=>{if(Mv){let de=null,Re=[];const _e=new Mv({source:m,axis:ae}),xe=()=>{de&&de.cancel(),de=null};return{Mt:ve=>{const{Tt:De}=n,We=aD(De)[ae],lt=ae==="x",Ze=[rD(0,lt),rD(`calc(-100% + 100cq${lt?"w":"h"})`,lt)],z=We?Ze:Ze.reverse();return Re[0]===z[0]&&Re[1]===z[1]||(Re=z,xe(),de=ve.kt.animate({clear:["left"],transform:z},{timeline:_e})),xe}}}},R={x:D("x"),y:D("y")},A=()=>{const{Rt:ae,Vt:de}=n,Re=(_e,xe)=>oZ(0,1,_e/(_e+xe)||0);return{x:Re(de.x,ae.x),y:Re(de.y,ae.y)}},k=(ae,de,Re)=>{const _e=Re?JL:cZ;Kn(ae,xe=>{_e(xe.Lt,de)})},F=(ae,de)=>{Kn(ae,Re=>{const[_e,xe]=de(Re);rb(_e,xe)})},N=(ae,de,Re)=>{const _e=$w(Re),xe=_e?Re:!0,we=_e?!Re:!0;xe&&k(T,ae,de),we&&k(E,ae,de)},U=()=>{const ae=A(),de=Re=>_e=>[_e.Lt,{[r]:qO(Re)+""}];F(T,de(ae.x)),F(E,de(ae.y))},$=()=>{if(!Mv){const{Tt:ae}=n,de=bU(ae,Fa(m)),Re=_e=>xe=>[xe.Lt,{[s]:qO(_e)+""}];F(T,Re(de.x)),F(E,Re(de.y))}},G=()=>{const{Tt:ae}=n,de=aD(ae),Re=_e=>xe=>[xe.Lt,{[a]:_e?"0":"1"}];
294F(T,Re(de.x)),F(E,Re(de.y)),Mv&&(T.forEach(R.x.Mt),E.forEach(R.y.Mt))},Y=()=>{if(v&&!y){const{Rt:ae,Tt:de}=n,Re=aD(de),_e=bU(de,Fa(m)),xe=we=>{const{Lt:ve}=we,De=ib(ve)===h&&ve,We=(lt,Ze,z)=>{const J=Ze*lt;return gZ(z?J:-J)};return[De,De&&{transform:rD({x:We(_e.x,ae.x,Re.x),y:We(_e.y,ae.y,Re.y)})}]};F(T,xe),F(E,xe)}},Q=ae=>{const de=ae?"x":"y",_e=Lm(`${Ya} ${ae?j2e:q2e}`),xe=Lm(AZ),we=Lm(n4),ve={Lt:_e,Pt:xe,kt:we},De=R[de];return Di(ae?T:E,ve),Di(x,[Ys(_e,xe),Ys(xe,we),zt(bg,_e),De&&De.Mt(ve),i(ve,N,ae)]),ve},re=zt(Q,!0),he=zt(Q,!1),X=()=>(Ys(C,T[0].Lt),Ys(C,E[0].Lt),zt(Va,x));return re(),he(),[{Ut:U,Nt:$,qt:G,Bt:Y,Ft:N,jt:{Xt:T,Yt:re,Wt:zt(F,T)},Jt:{Xt:E,Yt:he,Wt:zt(F,E)}},X]},mEe=(t,e,n,i,r)=>(s,a,o)=>{const{vt:l,L:u,V:c,gt:f,Gt:h,St:p}=e,{Lt:m,Pt:y,kt:v}=s,[_,b]=om(333),[x,T]=om(444),E=R=>{gl(f.scrollBy)&&f.scrollBy({behavior:"smooth",left:R.x,top:R.y})},C=()=>{const R="pointerup pointercancel lostpointercapture",A=`client${o?"X":"Y"}`,k=o?Hw:Vw,F=o?"left":"top",N=o?"w":"h",U=o?"x":"y",$=[];return di(y,"pointerdown",i(G=>{const Y=lm(G.target,`.${n4}`)===v,Q=Y?v:y,re=t.scrollbars,he=re[Y?"dragScroll":"clickScroll"],{button:X,isPrimary:ae,pointerType:de}=G,{pointers:Re}=re;if(X===0&&ae&&he&&(Re||[]).includes(de)){Va($),T();const xe=!Y&&(G.shiftKey||he==="instant"),we=zt(sD,v),ve=zt(sD,y),De=(oe,Ne)=>(oe||we())[F]-(Ne||ve())[F],We=VO(sD(f)[k])/Fm(f)[N]||1,lt=Fa(f)[U],Ze=oe=>{Zl(f,{[U]:lt+oe})},z=oe=>{const{Rt:Ne}=n,Ae=Fm(y)[N]-Fm(v)[N],Ue=1/We*oe/Ae;Ze(Ue*Ne[U])},J=G[A],te=we(),pe=ve(),me=te[k],ne=De(te,pe)+me/2,Pe=J-pe[F]-ne,Ce=Y?0:Pe,Te=oe=>{Va(V),Q.releasePointerCapture(oe.pointerId)},et=Y||xe,j=p(),V=[di(h,R,Te),di(h,"selectstart",oe=>YO(oe),{D:!1}),di(y,R,Te),et&&di(y,"pointermove",oe=>z(Ce+oe[A]-J)),et&&(()=>{const oe=Fa(f);j();const Ne=Fa(f),Ae={x:Ne.x-oe.x,y:Ne.y-oe.y};(Bf(Ae.x)>3||Bf(Ae.y)>3)&&(p(),Zl(f,oe),E(Ae),x(j))})];if(Q.setPointerCapture(G.pointerId),xe)z(Pe);else if(!Y){const oe=jg(iEe);if(oe){const{Vt:Ne}=n,Ae=oe(Ze,z,zt(De),Pe,Ne[U],he,!!o,Ue=>{Ue?j():Di(V,j)});Di(V,Ae),Di($,zt(Ae,!0))}}}}))};let D=!0;return zt(Va,[di(v,"pointermove pointerleave",i(r)),di(m,"pointerenter",i(()=>{a(EU,!0)})),di(m,"pointerleave pointercancel",i(()=>{a(EU,!1)})),di(m,"wheel",i(R=>{const{deltaX:A,deltaY:k,deltaMode:F}=R;D&&F===0&&ib(m)===l&&E({x:A,y:k}),D=!1,a(CU,!0),_(()=>{D=!0,a(CU)}),YO(R)}),{D:!1,I:!0}),!c&&di(m,"mousedown",i(()=>{const R=jO();(gU(R,rc)||gU(R,ed)||R===document.body)&&VL(zt(KO,u),25)})),di(m,"pointerdown",()=>{const R=di(h,"click",k=>{A(),bZ(k)},{A:!0,I:!0,D:!1}),A=di(h,"pointerup pointercancel",()=>{A(),setTimeout(R,150)},{I:!0,D:!0})},{I:!0,D:!0}),C(),b,T])},gEe=(t,e,n,i,r,s,a)=>{let o,l,u,c,f,h=nb,p=0;const m=["mouse","pen"],y=we=>ve=>{n.Kt||we(ve)},v=we=>m.includes(we.pointerType),[_,b]=om(),[x,T]=om(100),[E,C]=om(50),[D,R]=om(()=>p),[A,k]=pEe(t,s,r,mEe(e,s,r,y,we=>v(we)&&X())),{vt:F,Qt:N,bt:U}=s,{Ft:$,Ut:G,Nt:Y,qt:Q,Bt:re}=A,he=(we,ve)=>{R();const De=We=>{n.Kt||$(K2e,We)};if(we)De();else{const We=u?!o:!0;p>0&&!ve?D(zt(De,We)):De(We)}},X=()=>{(u?!o:!c)&&(he(!0),x(()=>{he(!1)}))},ae=we=>{v(we)&&(o=!0,!n.Kt&&u&&he(!0))},de=we=>{v(we)&&(o=!1,!n.Kt&&u&&he(!1))},Re=we=>{$(JO,we,!0),$(JO,we,!1)},_e=[R,T,C,b,()=>h(),di(F,"pointerover",ae,{A:!0}),di(F,"pointerenter",ae),di(F,"pointerleave",de),di(F,"pointermove",y(we=>{v(we)&&l&&X()})),di(N,"scroll",y(we=>{_(()=>{Y(),X()}),a(we),re()}))],xe=jg(i4);return[()=>zt(Va,Di(_e,k())),({Dt:we,It:ve,Zt:De,tn:We})=>{const{nn:lt,sn:Ze,en:z,cn:J}=We||{},{Ct:te,ft:pe}=De||{},{B:me}=i,{M:ne,P:Le}=xu(),{rn:Pe,j:Ce}=r,[Te,et]=we("showNativeOverlaidScrollbars"),[j,V]=we("scrollbars.theme"),[oe,Ne]=we("scrollbars.visibility"),[Ae,Ue]=we("scrollbars.autoHide"),[tt,qe]=we("scrollbars.autoHideSuspend"),[ke]=we("scrollbars.autoHideDelay"),[ie,Ve]=we("scrollbars.dragScroll"),[rt,Je]=we("scrollbars.clickScroll"),[nt,Tt]=we("overflow"),Mt=pe&&!ve,ce=lt||Ze||J||te||ve,ot=z||Ne||Tt,Oe=Te&&ne.x&&ne.y,Qe=!Le&&!xe,st=Oe||Qe,Rt=(Vt,Wt,Vn)=>{const ht=Vt.includes(Gh)&&(oe===dc||oe==="auto"&&Wt===Gh);return $(X2e,ht,Vn),ht};if(p=ke,(et||Qe)&&$(W2e,st),V&&($(f),$(j,!0),f=j),(qe||Mt)&&(Re(!tt),Mt&&tt&&(Ce.x||Ce.y?(h(),E(()=>{h=di(N,Gh,y(zt(Re,!0)),{A:!0})}
vendor: 6,221 bytes, line 294
294)):Re(!0))),Ue&&(l=Ae==="move",u=Ae==="leave",c=Ae==="never",he(c,!0)),Ve&&$(Q2e,ie),Je&&$(Z2e,!!rt),ot){const Vt=Rt(nt.x,Pe.x,!0),Wt=Rt(nt.y,Pe.y,!1);$(Y2e,!(Vt&&Wt))}ce&&(Y(),G(),re(),J&&Q(),$(wU,!Ce.x,!0),$(wU,!Ce.y,!1),$(G2e,me&&!U))},{},A]},_Ee=t=>{const e=xu(),{K:n,P:i}=e,{elements:r}=n(),{padding:s,viewport:a,content:o}=r,l=sE(t),u=l?{}:t,{elements:c}=u,{padding:f,viewport:h,content:p}=c||{},m=l?t:u.target,y=dZ(m),v=m.ownerDocument,_=v.documentElement,b=()=>v.defaultView||Js,x=zt(dEe,[m]),T=zt(IZ,[m]),E=zt(Lm,""),C=zt(x,E,a),D=zt(T,E,o),R=te=>{const pe=Fm(te),me=uE(te),ne=gu(te,qL),Le=gu(te,XL);return me.w-pe.w>0&&!um(ne)||me.h-pe.h>0&&!um(Le)},A=C(h),k=A===m,F=k&&y,N=!k&&D(p),U=!k&&A===N,$=F?_:A,G=F?$:m,Y=!k&&T(E,s,f),Q=!U&&N,re=[Q,$,Y,G].map(te=>sE(te)&&!ib(te)&&te),he=te=>te&&YK(re,te),X=!he($)&&R($)?$:m,ae=F?_:$,Re={dt:m,vt:G,L:$,ln:Y,ht:Q,gt:ae,Qt:F?v:$,an:y?_:X,Gt:v,bt:y,At:l,V:k,un:b,yt:te=>QL($,rc,te),wt:(te,pe)=>lE($,rc,te,pe),St:()=>lE(ae,rc,U2e,!0)},{dt:_e,vt:xe,ln:we,L:ve,ht:De}=Re,We=[()=>{kl(xe,[ed,oD]),kl(_e,oD),y&&kl(_,[oD,ed])}];let lt=GO([De,ve,we,xe,_e].find(te=>te&&!he(te)));const Ze=F?_e:De||ve,z=zt(Va,We);return[Re,()=>{const te=b(),pe=jO(),me=Te=>{Ys(ib(Te),GO(Te)),bg(Te)},ne=Te=>di(Te,"focusin focusout focus blur",bZ,{I:!0,D:!1}),Le="tabindex",Pe=KL(ve,Le),Ce=ne(pe);return ic(xe,ed,k?"":L2e),ic(we,QO,""),ic(ve,rc,""),ic(De,TU,""),k||(ic(ve,Le,Pe||"-1"),y&&ic(_,SU,"")),Ys(Ze,lt),Ys(xe,we),Ys(we||xe,!k&&ve),Ys(ve,De),Di(We,[Ce,()=>{const Te=jO(),et=he(ve),j=et&&Te===ve?_e:Te,V=ne(j);kl(we,QO),kl(De,TU),kl(ve,rc),y&&kl(_,SU),Pe?ic(ve,Le,Pe):kl(ve,Le),he(De)&&me(De),et&&me(ve),he(we)&&me(we),KO(j),V()}]),i&&!k&&(ZL(ve,rc,CZ),Di(We,zt(kl,ve,rc))),KO(!k&&y&&pe===_e&&te.top===te?ve:pe),Ce(),lt=0,z},z]},vEe=({ht:t})=>({Zt:e,fn:n,It:i})=>{const{$t:r}=e||{},{Ot:s}=n;t&&(r||i)&&rb(t,{[Vw]:s&&"100%"})},yEe=({vt:t,ln:e,L:n,V:i},r)=>{const[s,a]=Aa({i:S2e,o:vU()},zt(vU,t,"padding",""));return({Dt:o,Zt:l,fn:u,It:c})=>{let[f,h]=a(c);const{P:p}=xu(),{_t:m,xt:y,Ct:v}=l||{},{B:_}=u,[b,x]=o("paddingAbsolute");(m||h||(c||y))&&([f,h]=s(c));const E=!i&&(x||v||h);if(E){const C=!b||!e&&!p,D=f.r+f.l,R=f.t+f.b,A={[tZ]:C&&!_?-D:0,[nZ]:C?-R:0,[eZ]:C&&_?-D:0,top:C?-f.t:0,right:C?_?-f.r:"auto":0,left:C?_?"auto":-f.l:0,[Hw]:C&&`calc(100% + ${D}px)`},k={[KK]:C?f.t:0,[ZK]:C?f.r:0,[JK]:C?f.b:0,[QK]:C?f.l:0};rb(e||n,A),rb(n,k),kn(r,{ln:f,_n:!C,F:e?k:kn({},A,k)})}return{dn:E}}},bEe=(t,e)=>{const n=xu(),{vt:i,ln:r,L:s,V:a,Qt:o,gt:l,bt:u,wt:c,un:f}=t,{P:h}=n,p=u&&a,m=zt(jK,0),y={display:()=>!1,direction:_e=>_e!=="ltr",flexDirection:_e=>_e.endsWith("-reverse"),writingMode:_e=>_e!=="horizontal-tb"},v=Xs(y),_={i:iZ,o:{w:0,h:0}},b={i:IT,o:{}},x=_e=>{c(wZ,!p&&_e)},T=()=>gu(s,v),E=(_e,xe)=>{const we=!Xs(_e).length,ve=xe?!0:v.some(Le=>{const Pe=_e[Le];return Gg(Pe)&&y[Le](Pe)});if(we||!ve||!P2e(s))return{T:{x:0,y:0},k:{x:1,y:1}};x(!0);const De=Fa(l),We=di(o,Gh,Le=>{const Pe=Fa(l);Le.isTrusted&&Pe.x===De.x&&Pe.y===De.y&&yZ(Le)},{I:!0,A:!0}),lt=c($2e,!0);Zl(l,{x:0,y:0}),lt();const Ze=Fa(l),z=uE(l);Zl(l,{x:z.w,y:z.h});const J=Fa(l),te={x:J.x-Ze.x,y:J.y-Ze.y};Zl(l,{x:-z.w,y:-z.h});const pe=Fa(l),me={x:pe.x-Ze.x,y:pe.y-Ze.y},ne={x:Bf(te.x)>=Bf(me.x)?J.x:pe.x,y:Bf(te.y)>=Bf(me.y)?J.y:pe.y};return Zl(l,De),HL(()=>We()),{T:Ze,k:ne}},C=(_e,xe)=>{const we=Js.devicePixelRatio%1!==0?1:0,ve={w:m(_e.w-xe.w),h:m(_e.h-xe.h)};return{w:ve.w>we?ve.w:0,h:ve.h>we?ve.h:0}},D=(_e,xe)=>{const we=(ve,De,We,lt)=>{const Ze=ve===dc?rl:tEe(ve),z=um(ve),J=um(We);return!De&&!lt?rl:z&&J?dc:z?De&&lt?Ze:De?dc:rl:De?Ze:J&&lt?dc:rl};return{x:we(xe.x,_e.x,xe.y,_e.y),y:we(xe.y,_e.y,xe.x,_e.x)}},R=_e=>{const xe=ve=>[dc,rl,Gh].map(De=>Re(eR(De),ve)),we=xe(!0).concat(xe()).join(" ");c(we),c(Xs(_e).map(ve=>Re(_e[ve],ve==="x")).join(" "),!0)},[A,k]=Aa(_,zt(e4,s)),[F,N]=Aa(_,zt(uE,s)),[U,$]=Aa(_),[G]=Aa(b),[Y,Q]=Aa(_),[re]=Aa(b),[he]=Aa({i:(_e,xe)=>Ww(_e,xe,oE(yg(Xs(_e),Xs(xe)))),o:{}}),[X,ae]=Aa({i:(_e,xe)=>IT(_e.T,xe.T)&&IT(_e.k,xe.k),o:xZ()}),de=jg(i4),Re=(_e,xe)=>`${xe?F2e:N2e}${x2e(_e)}`;return({Dt:_e,Zt:xe,fn:we,It:ve},{dn:De})=>{const{_t:We,Ht:lt,xt:Ze,Ct:z,ft:J,Et:te}=xe||{},pe=de&&de.R(t,e,we,n,_e),{X:me,Y:ne,W:Le}=pe||{},[Pe,Ce]=eEe(_e,n),[Te,et]=_e("overflow"),j=um(Te.x),V=um(Te.y),oe=We||De||Ze||z||te||Ce;let Ne=k(ve),Ae=N(ve),Ue=$(ve),tt=Q(ve);if(Ce&&h&&c(CZ,!Pe),oe){QL(i,ed,FT)&&x(!0);const It=ne&&ne(),[ft]=Ne=A(ve),[Ot]=Ae=F(ve),bt=_Z(s),Dt=p&&D2e(f()),sn={w:m(Ot.w+ft.w),h:m(Ot.h+ft.h)},Ht={w:m((Dt?Dt.w:bt.w+m(bt.w-Ot.w))+ft.w),h:m((Dt?Dt.h:bt.h+m(bt.h-Ot.h))+ft.h)};It&&It(),tt=Y(Ht),Ue=U(C(sn,Ht),ve)}const[qe,ke]=tt,[ie,Ve]=Ue,[rt,Je]=Ae,[nt,Tt]=Ne,[Mt]=G({x:ie.w>0,y:ie.h>0}),ce=j&&V&&(Mt.x||Mt.y)||j&&Mt.x&&!Mt.y||V&&Mt.y&&!Mt.x,ot=De||z||te||Tt||Je||ke||Ve||et||Ce||oe||lt&&p,[Oe]=_e("update.flowDirectionStyles"),[Qe,st]=he(Oe?Oe(s)||{}:T(),ve),Rt=z||J||st||ve,[Vt,Wt]=Rt?X(E(Qe,!!Oe),ve):ae();let Vn=D(Mt,Te);x(!1),ot&&(R(Vn),Vn=nEe(s,Mt),Le&&me&&(me(Vn,rt,nt),rb(s,Le(Vn))));const[ht,Et]=re(Vn);return lE(i,ed,FT,ce),lE(r,QO,FT,ce),kn(e,{rn:ht,Vt:{x:qe.w,y:qe.h},Rt:{x:ie.w,y:ie.h},j:Mt,Tt:O2e(Vt,ie)}),{en:Et,nn:ke,sn:Ve,cn:Wt||Ve}}},xEe=t=>{const[e,n,i]=_Ee(t),r={ln:{t:0,r:0,b:0,l:0},_n:!1,F:{[tZ]:0,[nZ]:0,[eZ]:0,[KK]:0,[ZK]:0,[JK]:0,[QK]:0},Vt:{x:0,y:0},Rt:{x:0,y:0},rn:{x:rl,y:rl},j:{x:!1,y:!1},Tt:xZ()},{dt:s,gt:a,V:o,St:l}=e,{P:u,M:c}=xu(),f=!u&&(c.x||c.y),h=[vEe(e),yEe(e,r),bEe(e,r)];return[n,p=>{const m={},v=f&&Fa(a),_=v&&l();return Kn(h,b=>{kn(m,b(p,m)||{})}),Zl(a,v),_&&_(),o||Zl(s,0),m},r,e,i]},SEe=(t,e,n,i)=>{let r=!1;const s={Kt:!1,pn:!1},a=lD(e,{}),[o,l,u,c,f]=xEe(t),[h,p,m]=fEe(c,u,a,T=>{x({},T)}),[y,v,,_]=gEe(t,e,s,m,u,c,i),b=T=>Xs(T).some(E=>!!T[E]),x=(T,E)=>{const{Kt:C,pn:D}=s;if(D||C&&r)return!1;const{vn:R,It:A,zt:k}=T,F=R||{},N=!!A||!r,U={Dt:lD(e,F,N),vn:F,It:N},$=E||p(kn({},U,{zt:k})),G=l(kn({},U,{fn:m,Zt:$}));v(kn({},U,{Zt:$,tn:G}));const Y=b($),Q=b(G),re=Y||Q||!YL(F)||N;return r=!0,re&&n(T,{Zt:$,tn:G}),re};return[()=>{const{an:T,gt:E,St:C}=c,D=Fa(T),R=[h(),o(),y(),()=>{s.pn=!0}],A=C();return Zl(E,D),A(),zt(Va,R)},x,T=>{const E=s.Kt;s.Kt=T,!T&&E!==T&&x({It:!0,zt:!0})},()=>{v({Dt:lD(e,{},!1),vn:{},It:!1})},()=>({gn:s,hn:m,bn:u}),{yn:c,wn:_},f]},r4=new WeakMap,TEe=(t,e)=>{r4.set(t,e)},EEe=t=>{r4.delete(t)},LZ=t=>r4.get(t),ol=(t,e,n)=>
294{const{tt:i}=xu(),r=sE(t),s=r?t:t.target,a=LZ(s);if(e&&!a){const o=[],l={},u=N=>{const U=aZ(N),$=jg(I2e);return $?$(U,!0):U},c=kn({},i(),u(e)),[f,h,p]=ZO(),[m,y,v]=ZO(n),_=(N,U)=>{v(N,U),p(N,U)},[b,x,T,E,C,D,R]=SEe(t,c,({vn:N,It:U},{Zt:$,tn:G})=>{const{_t:Y,Ct:Q,$t:re,xt:he,Ht:X,ft:ae}=$,{nn:de,sn:Re,en:_e,cn:xe}=G;_("updated",[F,{updateHints:{sizeChanged:!!Y,directionChanged:!!Q,heightIntrinsicChanged:!!re,overflowEdgeChanged:!!de,overflowAmountChanged:!!Re,overflowStyleChanged:!!_e,scrollCoordinatesChanged:!!xe,contentMutation:!!he,hostMutation:!!X,appear:!!ae},changedOptions:N||{},force:!!U}])},N=>_("scroll",[F,N])),A=N=>{const{gn:U}=C(),{pn:$}=U;$||(EEe(s),Va(o),_("destroyed",[F,N]),h(),y())},F={options(N,U){if(N){const $=U?i():{},G=PZ(c,kn($,u(N)));YL(G)||(kn(c,G),x({vn:G}))}return kn({},c)},on:m,off:(N,U)=>{N&&U&&y(N,U)},state(){const{gn:N,hn:U,bn:$}=C(),{pn:G,Kt:Y}=N,{B:Q}=U,{Vt:re,Rt:he,rn:X,j:ae,ln:de,_n:Re,Tt:_e}=$;return kn({},{overflowEdge:re,overflowAmount:he,overflowStyle:X,hasOverflow:ae,scrollCoordinates:{start:_e.T,end:_e.k},padding:de,paddingAbsolute:Re,directionRTL:Q,sleeping:Y,destroyed:G})},elements(){const{dt:N,vt:U,ln:$,L:G,ht:Y,gt:Q,Qt:re}=D.yn,{jt:he,Jt:X}=D.wn,ae=Re=>{const{kt:_e,Pt:xe,Lt:we}=Re;return{scrollbar:we,track:xe,handle:_e}},de=Re=>{const{Xt:_e,Yt:xe}=Re,we=ae(_e[0]);return kn({},we,{clone:()=>{const ve=ae(xe());return E(),ve}})};return kn({},{target:N,host:U,padding:$||G,viewport:G,content:Y||G,scrollOffsetElement:Q,scrollEventElement:re,scrollbarHorizontal:de(he),scrollbarVertical:de(X)})},update:N=>x({It:N,zt:!0}),destroy:zt(A,!1),sleep:T,plugin:N=>l[Xs(N)[0]]};return Di(o,[R]),TEe(s,F),EZ(SZ,ol,[F,f,l]),hEe(D.yn.bt,!r&&t.cancel)?(A(!0),F):(Di(o,b()),_("initialized",[F]),F.update(),F)}return a};ol.plugin=t=>{const e=Io(t),n=e?t:[t],i=n.map(r=>EZ(r,ol)[0]);return R2e(n),e?i:i[0]};ol.valid=t=>{const e=t&&t.elements,n=gl(e)&&e();return tb(n)&&!!LZ(n.target)};ol.env=()=>{const{U:t,M:e,P:n,J:i,ot:r,st:s,K:a,Z:o,tt:l,nt:u}=xu();return kn({},{scrollbarsSize:t,scrollbarsOverlaid:e,scrollbarsHiding:n,scrollTimeline:i,staticDefaultInitialization:r,staticDefaultOptions:s,getDefaultInitialization:a,setDefaultInitialization:o,getDefaultOptions:l,setDefaultOptions:u})};ol.nonce=oEe;ol.trustedTypePolicy=C2e;const wEe=()=>{if(typeof window>"u"){const u=()=>{};return[u,u]}let t,e;const n=window,i=typeof n.requestIdleCallback=="function",r=n.requestAnimationFrame,s=n.cancelAnimationFrame,a=i?n.requestIdleCallback:r,o=i?n.cancelIdleCallback:s,l=()=>{o(t),s(e)};return[(u,c)=>{l(),t=a(i?()=>{l(),e=r(u)}:u,typeof c=="object"?c:{timeout:2233})},l]},CEe=t=>{let e=null,n,i,r;const s=Ty(t||{}),[a,o]=wEe();return or(()=>{var l;return nu((l=s.value)==null?void 0:l.defer)},l=>{r=l},{deep:!0,immediate:!0}),or(()=>{var l;return nu((l=s.value)==null?void 0:l.options)},l=>{n=l,ol.valid(e)&&e.options(n||{},!0)},{deep:!0,immediate:!0}),or(()=>{var l;return nu((l=s.value)==null?void 0:l.events)},l=>{i=l,ol.valid(e)&&e.on(i||{},!0)},{deep:!0,immediate:!0}),Db(()=>{o(),e==null||e.destroy()}),[l=>{if(ol.valid(e))return e;const u=()=>e=ol(l,n||{},i||{});r?a(u,r):u()},()=>e]},mWe=wp({__name:"OverlayScrollbarsComponent",props:{element:{type:[String,Object],default:"div"},options:{type:Object},events:{type:Object},defer:{type:[Boolean,Object]}},emits:["osInitialized","osUpdated","osDestroyed","osScroll"],setup(t,{expose:e,emit:n}){const i=t,r={initialized:"osInitialized",updated:"osUpdated",destroyed:"osDestroyed",scroll:"osScroll"},{element:s,options:a,events:o,defer:l}=gk(i),u=Ty(null),c=Ty(null),f=tn(),[h,p]=CEe({options:a,events:f,defer:l});return e({osInstance:p,getElement:()=>u.value}),Ek(m=>{const{value:y}=u,{value:v}=c;y&&(h(s.value==="body"?{target:y,cancel:{body:null}}:{target:y,elements:{viewport:v,content:v}}),m(()=>{var _;return(_=p())==null?void 0:_.destroy()}))}),or(()=>nu(o),m=>{const y=m||{};f.value=Object.keys(r).reduce((v,_)=>{const b=y[_];return v[_]=[(...x)=>n(r[_],...x),...(Array.isArray(b)?b:[b]).filter(Boolean)],v},{})},{deep:!0,immediate:!0}),(m,y)=>(Gm(),ZE(EV(nu(s)),{"data-overlayscrollbars-initialize":"",ref_key:"elementRef",ref:u},{default:XE(()=>[nu(s)==="body"?rP(m.$slots,"default",{key:0}):(Gm(),UV("div",{key:1,"data-overlayscrollbars-contents":"",ref_key:"slotRef",ref:c},[rP(m.$slots,"default")],512))]),_:3},512))}}),PU={};function AEe(t){let e=PU[t];if(e)return e;e=PU[t]=[];for(let n=0;n<128;n++){const i=String.fromCharCode(n);e.push(i)}for(let n=0;n<t.length;n++){const i=t.charCodeAt(n);e[i]="%"+("0"+i.toString(16).toUpperCase()).slice(-2)}return e}function xg(t,e){typeof e!="string"&&(e=xg.defaultChars);const n=AEe(e);return t.replace(/(%[a-f0-9]{2})+/gi,function(i){let r="";for(let s=0,a=i.length;s<a;s+=3){const o=parseInt(i.slice(s+1,s+3),16);if(o<128){r+=n[o];continue}if((o&224)===192&&s+3<a){const l=parseInt(i.slice(s+4,s+6),16);if((l&192)===128){const u=o<<6&1984|l&63;u<128?r+="\uFFFD\uFFFD":r+=String.fromCharCode(u),s+=3;continue}}if((o&240)===224&&s+6<a){const l=parseInt(i.slice(s+4,s+6),16),u=parseInt(i.slice(s+7,s+9),16);if((l&192)===128&&(u&192)===128){const c=o<<12&61440|l<<6&4032|u&63;c<2048||c>=55296&&c<=57343?r+="\uFFFD\uFFFD\uFFFD":r+=String.fromCharCode(c),s+=6;continue}}if((o&248)===240&&s+9<a){const l=parseInt(i.slice(s+4,s+6),16),u=parseInt(i.slice(s+7,s+9),16),c=parseInt(i.slice(s+10,s+12),
29416);if((l&192)===128&&(u&192)===128&&(c&192)===128){let f=o<<18&1835008|l<<12&258048|u<<6&4032|c&63;f<65536||f>1114111?r+="\uFFFD\uFFFD\uFFFD\uFFFD":(f-=65536,r+=String.fromCharCode(55296+(f>>10),56320+(f&1023))),s+=9;continue}}r+="\uFFFD"}return r})}xg.defaultChars=";/?:@&=+$,#";xg.componentChars="";const OU={};function MEe(t){let e=OU[t];if(e)return e;e=OU[t]=[];for(let n=0;n<128;n++){const i=String.fromCharCode(n);/^[0-9a-z]$/i.test(i)?e.push(i):e.push("%"+("0"+n.toString(16).toUpperCase()).slice(-2))}for(let n=0;n<t.length;n++)e[t.charCodeAt(n)]=t[n];return e}function Yb(t,e,n){typeof e!="string"&&(n=e,e=Yb.defaultChars),typeof n>"u"&&(n=!0);const i=MEe(e);let r="";for(let s=0,a=t.length;s<a;s++){const o=t.charCodeAt(s);if(n&&o===37&&s+2<a&&/^[0-9a-f]{2}$/i.test(t.slice(s+1,s+3))){r+=t.slice(s,s+3),s+=2;continue}if(o<128){r+=i[o];continue}if(o>=55296&&o<=57343){if(o>=55296&&o<=56319&&s+1<a){const l=t.charCodeAt(s+1);if(l>=56320&&l<=57343){r+=encodeURIComponent(t[s]+t[s+1]),s++;continue}}r+="%EF%BF%BD";continue}r+=encodeURIComponent(t[s])}return r}Yb.defaultChars=";/?:@&=+$,-_.!~*'()#";Yb.componentChars="-_.!~*'()";function s4(t){let e="";return e+=t.protocol||"",e+=t.slashes?"//":"",e+=t.auth?t.auth+"@":"",t.hostname&&t.hostname.indexOf(":")!==-1?e+="["+t.hostname+"]":e+=t.hostname||"",e+=t.port?":"+t.port:"",e+=t.pathname||"",e+=t.search||"",e+=t.hash||"",e}function cE(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}const DEe=/^([a-z0-9.+-]+:)/i,PEe=/:[0-9]*$/,OEe=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,REe=["<",">",'"',"`"," ","\r",`
295`,"	"],kEe=["{","}","|","\\","^","`"].concat(REe),IEe=["'"].concat(kEe),RU=["%","/","?",";","#"].concat(IEe),kU=["/","?","#"],LEe=255,IU=/^[+a-z0-9A-Z_-]{0,63}$/,FEe=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,LU={javascript:!0,"javascript:":!0},FU={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function a4(t,e){if(t&&t instanceof cE)return t;const n=new cE;return n.parse(t,e),n}cE.prototype.parse=function(t,e){let n,i,r,s=t;if(s=s.trim(),!e&&t.split("#").length===1){const u=OEe.exec(s);if(u)return this.pathname=u[1],u[2]&&(this.search=u[2]),this}let a=DEe.exec(s);if(a&&(a=a[0],n=a.toLowerCase(),this.protocol=a,s=s.substr(a.length)),(e||a||s.match(/^\/\/[^@\/]+@[^@\/]+/))&&(r=s.substr(0,2)==="//",r&&!(a&&LU[a])&&(s=s.substr(2),this.slashes=!0)),!LU[a]&&(r||a&&!FU[a])){let u=-1;for(let m=0;m<kU.length;m++)i=s.indexOf(kU[m]),i!==-1&&(u===-1||i<u)&&(u=i);let c,f;u===-1?f=s.lastIndexOf("@"):f=s.lastIndexOf("@",u),f!==-1&&(c=s.slice(0,f),s=s.slice(f+1),this.auth=c),u=-1;for(let m=0;m<RU.length;m++)i=s.indexOf(RU[m]),i!==-1&&(u===-1||i<u)&&(u=i);u===-1&&(u=s.length),s[u-1]===":"&&u--;const h=s.slice(0,u);s=s.slice(u),this.parseHost(h),this.hostname=this.hostname||"";const p=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!p){const m=this.hostname.split(/\./);for(let y=0,v=m.length;y<v;y++){const _=m[y];if(!!_&&!_.match(IU)){let b="";for(let x=0,T=_.length;x<T;x++)_.charCodeAt(x)>127?b+="x":b+=_[x];if(!b.match(IU)){const x=m.slice(0,y),T=m.slice(y+1),E=_.match(FEe);E&&(x.push(E[1]),T.unshift(E[2])),T.length&&(s=T.join(".")+s),this.hostname=x.join(".");break}}}}this.hostname.length>LEe&&(this.hostname=""),p&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}const o=s.indexOf("#");o!==-1&&(this.hash=s.substr(o),s=s.slice(0,o));const l=s.indexOf("?");return l!==-1&&(this.search=s.substr(l),s=s.slice(0,l)),s&&(this.pathname=s),FU[n]&&this.hostname&&!this.pathname&&(this.pathname=""),this};cE.prototype.parseHost=function(t){let e=PEe.exec(t);e&&(e=e[0],e!==":"&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)};const NEe=Object.freeze(Object.defineProperty({__proto__:null,decode:xg,encode:Yb,format:s4,parse:a4},Symbol.toStringTag,{value:"Module"})),FZ=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,NZ=/[\0-\x1F\x7F-\x9F]/,BEe=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/,o4=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,BZ=/[\$\+<->
295\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/,UZ=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,UEe=Object.freeze(Object.defineProperty({__proto__:null,Any:FZ,Cc:NZ,Cf:BEe,P:o4,S:BZ,Z:UZ},Symbol.toStringTag,{value:"Module"})),$Ee=new Uint16Array(
vendor: 47,146 bytes, line 295
295'\u1D41<\xD5\u0131\u028A\u049D\u057B\u05D0\u0675\u06DE\u07A2\u07D6\u080F\u0A4A\u0A91\u0DA1\u0E6D\u0F09\u0F26\u10CA\u1228\u12E1\u1415\u149D\u14C3\u14DF\u1525\0\0\0\0\0\0\u156B\u16CD\u198D\u1C12\u1DDD\u1F7E\u2060\u21B0\u228D\u23C0\u23FB\u2442\u2824\u2912\u2D08\u2E48\u2FCE\u3016\u32BA\u3639\u37AC\u38FE\u3A28\u3A71\u3AE0\u3B2E\u0800EMabcfglmnoprstu\\bfms\x7F\x84\x8B\x90\x95\x98\xA6\xB3\xB9\xC8\xCFlig\u803B\xC6\u40C6P\u803B&\u4026cute\u803B\xC1\u40C1reve;\u4102\u0100iyx}rc\u803B\xC2\u40C2;\u4410r;\uC000\u{1D504}rave\u803B\xC0\u40C0pha;\u4391acr;\u4100d;\u6A53\u0100gp\x9D\xA1on;\u4104f;\uC000\u{1D538}plyFunction;\u6061ing\u803B\xC5\u40C5\u0100cs\xBE\xC3r;\uC000\u{1D49C}ign;\u6254ilde\u803B\xC3\u40C3ml\u803B\xC4\u40C4\u0400aceforsu\xE5\xFB\xFE\u0117\u011C\u0122\u0127\u012A\u0100cr\xEA\xF2kslash;\u6216\u0176\xF6\xF8;\u6AE7ed;\u6306y;\u4411\u0180crt\u0105\u010B\u0114ause;\u6235noullis;\u612Ca;\u4392r;\uC000\u{1D505}pf;\uC000\u{1D539}eve;\u42D8c\xF2\u0113mpeq;\u624E\u0700HOacdefhilorsu\u014D\u0151\u0156\u0180\u019E\u01A2\u01B5\u01B7\u01BA\u01DC\u0215\u0273\u0278\u027Ecy;\u4427PY\u803B\xA9\u40A9\u0180cpy\u015D\u0162\u017Aute;\u4106\u0100;i\u0167\u0168\u62D2talDifferentialD;\u6145leys;\u612D\u0200aeio\u0189\u018E\u0194\u0198ron;\u410Cdil\u803B\xC7\u40C7rc;\u4108nint;\u6230ot;\u410A\u0100dn\u01A7\u01ADilla;\u40B8terDot;\u40B7\xF2\u017Fi;\u43A7rcle\u0200DMPT\u01C7\u01CB\u01D1\u01D6ot;\u6299inus;\u6296lus;\u6295imes;\u6297o\u0100cs\u01E2\u01F8kwiseContourIntegral;\u6232eCurly\u0100DQ\u0203\u020FoubleQuote;\u601Duote;\u6019\u0200lnpu\u021E\u0228\u0247\u0255on\u0100;e\u0225\u0226\u6237;\u6A74\u0180git\u022F\u0236\u023Aruent;\u6261nt;\u622FourIntegral;\u622E\u0100fr\u024C\u024E;\u6102oduct;\u6210nterClockwiseContourIntegral;\u6233oss;\u6A2Fcr;\uC000\u{1D49E}p\u0100;C\u0284\u0285\u62D3ap;\u624D\u0580DJSZacefios\u02A0\u02AC\u02B0\u02B4\u02B8\u02CB\u02D7\u02E1\u02E6\u0333\u048D\u0100;o\u0179\u02A5trahd;\u6911cy;\u4402cy;\u4405cy;\u440F\u0180grs\u02BF\u02C4\u02C7ger;\u6021r;\u61A1hv;\u6AE4\u0100ay\u02D0\u02D5ron;\u410E;\u4414l\u0100;t\u02DD\u02DE\u6207a;\u4394r;\uC000\u{1D507}\u0100af\u02EB\u0327\u0100cm\u02F0\u0322ritical\u0200ADGT\u0300\u0306\u0316\u031Ccute;\u40B4o\u0174\u030B\u030D;\u42D9bleAcute;\u42DDrave;\u4060ilde;\u42DCond;\u62C4ferentialD;\u6146\u0470\u033D\0\0\0\u0342\u0354\0\u0405f;\uC000\u{1D53B}\u0180;DE\u0348\u0349\u034D\u40A8ot;\u60DCqual;\u6250ble\u0300CDLRUV\u0363\u0372\u0382\u03CF\u03E2\u03F8ontourIntegra\xEC\u0239o\u0274\u0379\0\0\u037B\xBB\u0349nArrow;\u61D3\u0100eo\u0387\u03A4ft\u0180ART\u0390\u0396\u03A1rrow;\u61D0ightArrow;\u61D4e\xE5\u02CAng\u0100LR\u03AB\u03C4eft\u0100AR\u03B3\u03B9rrow;\u67F8ightArrow;\u67FAightArrow;\u67F9ight\u0100AT\u03D8\u03DErrow;\u61D2ee;\u62A8p\u0241\u03E9\0\0\u03EFrrow;\u61D1ownArrow;\u61D5erticalBar;\u6225n\u0300ABLRTa\u0412\u042A\u0430\u045E\u047F\u037Crrow\u0180;BU\u041D\u041E\u0422\u6193ar;\u6913pArrow;\u61F5reve;\u4311eft\u02D2\u043A\0\u0446\0\u0450ightVector;\u6950eeVector;\u695Eector\u0100;B\u0459\u045A\u61BDar;\u6956ight\u01D4\u0467\0\u0471eeVector;\u695Fector\u0100;B\u047A\u047B\u61C1ar;\u6957ee\u0100;A\u0486\u0487\u62A4rrow;\u61A7\u0100ct\u0492\u0497r;\uC000\u{1D49F}rok;\u4110\u0800NTacdfglmopqstux\u04BD\u04C0\u04C4\u04CB\u04DE\u04E2\u04E7\u04EE\u04F5\u0521\u052F\u0536\u0552\u055D\u0560\u0565G;\u414AH\u803B\xD0\u40D0cute\u803B\xC9\u40C9\u0180aiy\u04D2\u04D7\u04DCron;\u411Arc\u803B\xCA\u40CA;\u442Dot;\u4116r;\uC000\u{1D508}rave\u803B\xC8\u40C8ement;\u6208\u0100ap\u04FA\u04FEcr;\u4112ty\u0253\u0506\0\0\u0512mallSquare;\u65FBerySmallSquare;\u65AB\u0100gp\u0526\u052Aon;\u4118f;\uC000\u{1D53C}silon;\u4395u\u0100ai\u053C\u0549l\u0100;T\u0542\u0543\u6A75ilde;\u6242librium;\u61CC\u0100ci\u0557\u055Ar;\u6130m;\u6A73a;\u4397ml\u803B\xCB\u40CB\u0100ip\u056A\u056Fsts;\u6203onentialE;\u6147\u0280cfios\u0585\u0588\u058D\u05B2\u05CCy;\u4424r;\uC000\u{1D509}lled\u0253\u0597\0\0\u05A3mallSquare;\u65FCerySmallSquare;\u65AA\u0370\u05BA\0\u05BF\0\0\u05C4f;\uC000\u{1D53D}All;\u6200riertrf;\u6131c\xF2\u05CB\u0600JTabcdfgorst\u05E8\u05EC\u05EF\u05FA\u0600\u0612\u0616\u061B\u061D\u0623\u066C\u0672cy;\u4403\u803B>\u403Emma\u0100;d\u05F7\u05F8\u4393;\u43DCreve;\u411E\u0180eiy\u0607\u060C\u0610dil;\u4122rc;\u411C;\u4413ot;\u4120r;\uC000\u{1D50A};\u62D9pf;\uC000\u{1D53E}eater\u0300EFGLST\u0635\u0644\u064E\u0656\u065B\u0666qual\u0100;L\u063E\u063F\u6265ess;\u62DBullEqual;\u6267reater;\u6AA2ess;\u6277lantEqual;\u6A7Eilde;\u6273cr;\uC000\u{1D4A2};\u626B\u0400Aacfiosu\u0685\u068B\u0696\u069B\u069E\u06AA\u06BE\u06CARDcy;\u442A\u0100ct\u0690\u0694ek;\u42C7;\u405Eirc;\u4124r;\u610ClbertSpace;\u610B\u01F0\u06AF\0\u06B2f;\u610DizontalLine;\u6500\u0100ct\u06C3\u06C5\xF2\u06A9rok;\u4126mp\u0144\u06D0\u06D8ownHum\xF0\u012Fqual;\u624F\u0700EJOacdfgmnostu\u06FA\u06FE\u0703\u0707\u070E\u071A\u071E\u0721\u0728\u0744\u0778\u078B\u078F\u0795cy;\u4415lig;\u4132cy;\u4401cute\u803B\xCD\u40CD\u0100iy\u0713\u0718rc\u803B\xCE\u40CE;\u4418ot;\u4130r;\u6111rave\u803B\xCC\u40CC\u0180;ap\u0720\u072F\u073F\u0100cg\u0734\u0737r;\u412AinaryI;\u6148lie\xF3\u03DD\u01F4\u0749\0\u0762\u0100;e\u074D\u074E\u622C\u0100gr\u0753\u0758ral;\u622Bsection;\u62C2isible\u0100CT\u076C\u0772omma;\u6063imes;\u6062\u0180gpt\u077F\u0783\u0788on;\u412Ef;\uC000\u{1D540}a;\u4399cr;\u6110ilde;\u4128\u01EB\u079A\0\u079Ecy;\u4406l\u803B\xCF\u40CF\u0280cfosu\u07AC\u07B7\u07BC\u07C2\u07D0\u0100iy\u07B1\u07B5rc;\u4134;\u4419r;\uC000\u{1D50D}pf;\uC000\u{1D541}\u01E3\u07C7\0\u07CCr;\uC000\u{1D4A5}rcy;\u4408kcy;\u4404\u0380HJacfos\u07E4\u07E8\u07EC\u07F1\u07FD\u0802\u0808cy;\u4425cy;\u440Cppa;\u439A\u0100ey\u07F6\u07FBdil;\u4136;\u441Ar;\uC000\u{1D50E}pf;\uC000\u{1D542}cr;\uC000\u{1D4A6}\u0580JTaceflmost\u0825\u0829\u082C\u0850\u0863\u09B3\u09B8\u09C7\u09CD\u0A37\u0A47cy;\u4409\u803B<\u403C\u0280cmnpr\u0837\u083C\u0841\u0844\u084Dute;\u4139bda;\u439Bg;\u67EAlacetrf;\u6112r;\u619E\u0180aey\u0857\u085C\u0861ron;\u413Ddil;\u413B;\u441B\u0100fs\u0868\u0970t\u0500ACDFRTUVar\u087E\u08A9\u08B1\u08E0\u08E6\u08FC\u092F\u095B\u0390\u096A\u0100nr\u0883\u088FgleBracket;\u67E8row\u0180;BR\u0899\u089A\u089E\u6190ar;\u61E4ightArrow;\u61C6eiling;\u6308o\u01F5\u08B7\0\u08C3bleBracket;\u67E6n\u01D4\u08C8\0\u08D2eeVector;\u6961ector\u0100;B\u08DB\u08DC\u61C3ar;\u6959loor;\u630Aight\u0100AV\u08EF\u08F5rrow;\u6194ector;\u694E\u0100er\u0901\u0917e\u0180;AV\u0909\u090A\u0910\u62A3rrow;\u61A4ector;\u695Aiangle\u0180;BE\u0924\u0925\u0929\u62B2ar;\u69CFqual;\u62B4p\u0180DTV\u0937\u0942\u094CownVector;\u6951eeVector;\u6960ector\u0100;B\u0956\u0957\u61BFar;\u6958ector\u0100;B\u0965\u0966\u61BCar;\u6952ight\xE1\u039Cs\u0300EFGLST\u097E\u098B\u0995\u099D\u09A2\u09ADqualGreater;\u62DAullEqual;\u6266reater;\u6276ess;\u6AA1lantEqual;\u6A7Dilde;\u6272r;\uC000\u{1D50F}\u0100;e\u09BD\u09BE\u62D8ftarrow;\u61DAidot;\u413F\u0180npw\u09D4\u0A16\u0A1Bg\u0200LRlr\u09DE\u09F7\u0A02\u0A10eft\u0100AR\u09E6\u09ECrrow;\u67F5ightArrow;\u67F7ightArrow;\u67F6eft\u0100ar\u03B3\u0A0Aight\xE1\u03BFight\xE1\u03CAf;\uC000\u{1D543}er\u0100LR\u0A22\u0A2CeftArrow;\u6199ightArrow;\u6198\u0180cht\u0A3E\u0A40\u0A42\xF2\u084C;\u61B0rok;\u4141;\u626A\u0400acefiosu\u0A5A\u0A5D\u0A60\u0A77\u0A7C\u0A85\u0A8B\u0A8Ep;\u6905y;\u441C\u0100dl\u0A65\u0A6FiumSpace;\u605Flintrf;\u6133r;\uC000\u{1D510}nusPlus;\u6213pf;\uC000\u{1D544}c\xF2\u0A76;\u439C\u0480Jacefostu\u0AA3\u0AA7\u0AAD\u0AC0\u0B14\u0B19\u0D91\u0D97\u0D9Ecy;\u440Acute;\u4143\u0180aey\u0AB4\u0AB9\u0ABEron;\u4147dil;\u4145;\u441D\u0180gsw\u0AC7\u0AF0\u0B0Eative\u0180MTV\u0AD3\u0ADF\u0AE8ediumSpace;\u600Bhi\u0100cn\u0AE6\u0AD8\xEB\u0AD9eryThi\xEE\u0AD9ted\u0100GL\u0AF8\u0B06reaterGreate\xF2\u0673essLes\xF3\u0A48Line;\u400Ar;\uC000\u{1D511}\u0200Bnpt\u0B22\u0B28\u0B37\u0B3Areak;\u6060BreakingSpace;\u40A0f;\u6115\u0680;CDEGHLNPRSTV\u0B55\u0B56\u0B6A\u0B7C\u0BA1\u0BEB\u0C04\u0C5E\u0C84\u0CA6\u0CD8\u0D61\u0D85\u6AEC\u0100ou\u0B5B\u0B64ngruent;\u6262pCap;\u626DoubleVerticalBar;\u6226\u0180lqx\u0B83\u0B8A\u0B9Bement;\u6209ual\u0100;T\u0B92\u0B93\u6260ilde;\uC000\u2242\u0338ists;\u6204reater\u0380;EFGLST\u0BB6\u0BB7\u0BBD\u0BC9\u0BD3\u0BD8\u0BE5\u626Fqual;\u6271ullEqual;\uC000\u2267\u0338reater;\uC000\u226B\u0338ess;\u6279lantEqual;\uC000\u2A7E\u0338ilde;\u6275ump\u0144\u0BF2\u0BFDownHump;\uC000\u224E\u0338qual;\uC000\u224F\u0338e\u0100fs\u0C0A\u0C27tTriangle\u0180;BE\u0C1A\u0C1B\u0C21\u62EAar;\uC000\u29CF\u0338qual;\u62ECs\u0300;EGLST\u0C35\u0C36\u0C3C\u0C44\u0C4B\u0C58\u626Equal;\u6270reater;\u6278ess;\uC000\u226A\u0338lantEqual;\uC000\u2A7D\u0338ilde;\u6274ested\u0100GL\u0C68\u0C79reaterGreater;\uC000\u2AA2\u0338essLess;\uC000\u2AA1\u0338recedes\u0180;ES\u0C92\u0C93\u0C9B\u6280qual;\uC000\u2AAF\u0338lantEqual;\u62E0\u0100ei\u0CAB\u0CB9verseElement;\u620CghtTriangle\u0180;BE\u0CCB\u0CCC\u0CD2\u62EBar;\uC000\u29D0\u0338qual;\u62ED\u0100qu\u0CDD\u0D0CuareSu\u0100bp\u0CE8\u0CF9set\u0100;E\u0CF0\u0CF3\uC000\u228F\u0338qual;\u62E2erset\u0100;E\u0D03\u0D06\uC000\u2290\u0338qual;\u62E3\u0180bcp\u0D13\u0D24\u0D4Eset\u0100;E\u0D1B\u0D1E\uC000\u2282\u20D2qual;\u6288ceeds\u0200;EST\u0D32\u0D33\u0D3B\u0D46\u6281qual;\uC000\u2AB0\u0338lantEqual;\u62E1ilde;\uC000\u227F\u0338erset\u0100;E\u0D58\u0D5B\uC000\u2283\u20D2qual;\u6289ilde\u0200;EFT\u0D6E\u0D6F\u0D75\u0D7F\u6241qual;\u6244ullEqual;\u6247ilde;\u6249erticalBar;\u6224cr;\uC000\u{1D4A9}ilde\u803B\xD1\u40D1;\u439D\u0700Eacdfgmoprstuv\u0DBD\u0DC2\u0DC9\u0DD5\u0DDB\u0DE0\u0DE7\u0DFC\u0E02\u0E20\u0E22\u0E32\u0E3F\u0E44lig;\u4152cute\u803B\xD3\u40D3\u0100iy\u0DCE\u0DD3rc\u803B\xD4\u40D4;\u441Eblac;\u4150r;\uC000\u{1D512}rave\u803B\xD2\u40D2\u0180aei\u0DEE\u0DF2\u0DF6cr;\u414Cga;\u43A9cron;\u439Fpf;\uC000\u{1D546}enCurly\u0100DQ\u0E0E\u0E1AoubleQuote;\u601Cuote;\u6018;\u6A54\u0100cl\u0E27\u0E2Cr;\uC000\u{1D4AA}ash\u803B\xD8\u40D8i\u016C\u0E37\u0E3Cde\u803B\xD5\u40D5es;\u6A37ml\u803B\xD6\u40D6er\u0100BP\u0E4B\u0E60\u0100ar\u0E50\u0E53r;\u603Eac\u0100ek\u0E5A\u0E5C;\u63DEet;\u63B4arenthesis;\u63DC\u0480acfhilors\u0E7F\u0E87\u0E8A\u0E8F\u0E92\u0E94\u0E9D\u0EB0\u0EFCrtialD;\u6202y;\u441Fr;\uC000\u{1D513}i;\u43A6;\u43A0usMinus;\u40B1\u0100ip\u0EA2\u0EADncareplan\xE5\u069Df;\u6119\u0200;eio\u0EB9\u0EBA\u0EE0\u0EE4\u6ABBcedes\u0200;EST\u0EC8\u0EC9\u0ECF\u0EDA\u627Aqual;\u6AAFlantEqual;\u627Cilde;\u627Eme;\u6033\u0100dp\u0EE9\u0EEEuct;\u620Fortion\u0100;a\u0225\u0EF9l;\u621D\u0100ci\u0F01\u0F06r;\uC000\u{1D4AB};\u43A8\u0200Ufos\u0F11\u0F16\u0F1B\u0F1FOT\u803B"\u4022r;\uC000\u{1D514}pf;\u611Acr;\uC000\u{1D4AC}\u0600BEacefhiorsu\u0F3E\u0F43\u0F47\u0F60\u0F73\u0FA7\u0FAA\u0FAD\u1096\u10A9\u10B4\u10BEarr;\u6910G\u803B\xAE\u40AE\u0180cnr\u0F4E\u0F53\u0F56ute;\u4154g;\u67EBr\u0100;t\u0F5C\u0F5D\u61A0l;\u6916\u0180aey\u0F67\u0F6C\u0F71ron;\u4158dil;\u4156;\u4420\u0100;v\u0F78\u0F79\u611Cerse\u0100EU\u0F82\u0F99\u0100lq\u0F87\u0F8Eement;\u620Builibrium;\u61CBpEquilibrium;\u696Fr\xBB\u0F79o;\u43A1ght\u0400ACDFTUVa\u0FC1\u0FEB\u0FF3\u1022\u1028\u105B\u1087\u03D8\u0100nr\u0FC6\u0FD2gleBracket;\u67E9row\u0180;BL\u0FDC\u0FDD\u0FE1\u6192ar;\u61E5eftArrow;\u61C4eiling;\u6309o\u01F5\u0FF9\0\u1005bleBracket;\u67E7n\u01D4\u100A\0\u1014eeVector;\u695Dector\u0100;B\u101D\u101E\u61C2ar;\u6955loor;\u630B\u0100er\u102D\u1043e\u0180;AV\u1035\u1036\u103C\u62A2rrow;\u61A6ector;\u695Biangle\u0180;BE\u1050\u1051\u1055\u62B3ar;\u69D0qual;\u62B5p\u0180DTV\u1063\u106E\u1078ownVector;\u694FeeVector;\u695Cector\u0100;B\u1082\u1083\u61BEar;\u6954ector\u0100;B\u1091\u1092\u61C0ar;\u6953\u0100pu\u109B\u109Ef;\u611DndImplies;\u6970ightarrow;\u61DB\u0100ch\u10B9\u10BCr;\u611B;\u61B1leDelayed;\u69F4\u0680HOacfhimoqstu\u10E4\u10F1\u10F7\u10FD\u1119\u111E\u1151\u1156\u1161\u1167\u11B5\u11BB\u11BF\u0100Cc\u10E9\u10EEHcy;\u4429y;\u4428FTcy;\u442Ccute;\u415A\u0280;aeiy\u1108\u1109\u110E\u1113\u1117\u6ABCron;\u4160dil;\u415Erc;\u415C;\u4421r;\uC000\u{1D516}ort\u0200DLRU\u112A\u1134\u113E\u1149ownArrow\xBB\u041EeftArrow\xBB\u089AightArrow\xBB\u0FDDpArrow;\u6191gma;\u43A3allCircle;\u6218pf;\uC000\u{1D54A}\u0272\u116D\0\0\u1170t;\u621Aare\u0200;ISU\u117B\u117C\u1189\u11AF\u65A1ntersection;\u6293u\u0100bp\u118F\u119Eset\u0100;E\u1197\u1198\u628Fqual;\u6291erset\u0100;E\u11A8\u11A9\u6290qual;\u6292nion;\u6294cr;\uC000\u{1D4AE}ar;\u62C6\u0200bcmp\u11C8\u11DB\u1209\u120B\u0100;s\u11CD\u11CE\u62D0et\u0100;E\u11CD\u11D5qual;\u6286\u0100ch\u11E0\u1205eeds\u0200;EST\u11ED\u11EE\u11F4\u11FF\u627Bqual;\u6AB0lantEqual;\u627Dilde;\u627FTh\xE1\u0F8C;\u6211\u0180;es\u1212\u1213\u1223\u62D1rset\u0100;E\u121C\u121D\u6283qual;\u6287et\xBB\u1213\u0580HRSacfhiors\u123E\u1244\u1249\u1255\u125E\u1271\u1276\u129F\u12C2\u12C8\u12D1ORN\u803B\xDE\u40DEADE;\u6122\u0100Hc\u124E\u1252cy;\u440By;\u4426\u0100bu\u125A\u125C;\u4009;\u43A4\u0180aey\u1265\u126A\u126Fron;\u4164dil;\u4162;\u4422r;\uC000\u{1D517}\u0100ei\u127B\u1289\u01F2\u1280\0\u1287efore;\u6234a;\u4398\u0100cn\u128E\u1298kSpace;\uC000\u205F\u200ASpace;\u6009lde\u0200;EFT\u12AB\u12AC\u12B2\u12BC\u623Cqual;\u6243ullEqual;\u6245ilde;\u6248pf;\uC000\u{1D54B}ipleDot;\u60DB\u0100ct\u12D6\u12DBr;\uC000\u{1D4AF}rok;\u4166\u0AE1\u12F7\u130E\u131A\u1326\0\u132C\u1331\0\0\0\0\0\u1338\u133D\u1377\u1385\0\u13FF\u1404\u140A\u1410\u0100cr\u12FB\u1301ute\u803B\xDA\u40DAr\u0100;o\u1307\u1308\u619Fcir;\u6949r\u01E3\u1313\0\u1316y;\u440Eve;\u416C\u0100iy\u131E\u1323rc\u803B\xDB\u40DB;\u4423blac;\u4170r;\uC000\u{1D518}rave\u803B\xD9\u40D9acr;\u416A\u0100di\u1341\u1369er\u0100BP\u1348\u135D\u0100ar\u134D\u1350r;\u405Fac\u0100ek\u1357\u1359;\u63DFet;\u63B5arenthesis;\u63DDon\u0100;P\u1370\u1371\u62C3lus;\u628E\u0100gp\u137B\u137Fon;\u4172f;\uC000\u{1D54C}\u0400ADETadps\u1395\u13AE\u13B8\u13C4\u03E8\u13D2\u13D7\u13F3rrow\u0180;BD\u1150\u13A0\u13A4ar;\u6912ownArrow;\u61C5ownArrow;\u6195quilibrium;\u696Eee\u0100;A\u13CB\u13CC\u62A5rrow;\u61A5own\xE1\u03F3er\u0100LR\u13DE\u13E8eftArrow;\u6196ightArrow;\u6197i\u0100;l\u13F9\u13FA\u43D2on;\u43A5ing;\u416Ecr;\uC000\u{1D4B0}ilde;\u4168ml\u803B\xDC\u40DC\u0480Dbcdefosv\u1427\u142C\u1430\u1433\u143E\u1485\u148A\u1490\u1496ash;\u62ABar;\u6AEBy;\u4412ash\u0100;l\u143B\u143C\u62A9;\u6AE6\u0100er\u1443\u1445;\u62C1\u0180bty\u144C\u1450\u147Aar;\u6016\u0100;i\u144F\u1455cal\u0200BLST\u1461\u1465\u146A\u1474ar;\u6223ine;\u407Ceparator;\u6758ilde;\u6240ThinSpace;\u600Ar;\uC000\u{1D519}pf;\uC000\u{1D54D}cr;\uC000\u{1D4B1}dash;\u62AA\u0280cefos\u14A7\u14AC\u14B1\u14B6\u14BCirc;\u4174dge;\u62C0r;\uC000\u{1D51A}pf;\uC000\u{1D54E}cr;\uC000\u{1D4B2}\u0200fios\u14CB\u14D0\u14D2\u14D8r;\uC000\u{1D51B};\u439Epf;\uC000\u{1D54F}cr;\uC000\u{1D4B3}\u0480AIUacfosu\u14F1\u14F5\u14F9\u14FD\u1504\u150F\u1514\u151A\u1520cy;\u442Fcy;\u4407cy;\u442Ecute\u803B\xDD\u40DD\u0100iy\u1509\u150Drc;\u4176;\u442Br;\uC000\u{1D51C}pf;\uC000\u{1D550}cr;\uC000\u{1D4B4}ml;\u4178\u0400Hacdefos\u1535\u1539\u153F\u154B\u154F\u155D\u1560\u1564cy;\u4416cute;\u4179\u0100ay\u1544\u1549ron;\u417D;\u4417ot;\u417B\u01F2\u1554\0\u155BoWidt\xE8\u0AD9a;\u4396r;\u6128pf;\u6124cr;\uC000\u{1D4B5}\u0BE1\u1583\u158A\u1590\0\u15B0\u15B6\u15BF\0\0\0\0\u15C6\u15DB\u15EB\u165F\u166D\0\u1695\u169B\u16B2\u16B9\0\u16BEcute\u803B\xE1\u40E1reve;\u4103\u0300;Ediuy\u159C\u159D\u15A1\u15A3\u15A8\u15AD\u623E;\uC000\u223E\u0333;\u623Frc\u803B\xE2\u40E2te\u80BB\xB4\u0306;\u4430lig\u803B\xE6\u40E6\u0100;r\xB2\u15BA;\uC000\u{1D51E}rave\u803B\xE0\u40E0\u0100ep\u15CA\u15D6\u0100fp\u15CF\u15D4sym;\u6135\xE8\u15D3ha;\u43B1\u0100ap\u15DFc\u0100cl\u15E4\u15E7r;\u4101g;\u6A3F\u0264\u15F0\0\0\u160A\u0280;adsv\u15FA\u15FB\u15FF\u1601\u1607\u6227nd;\u6A55;\u6A5Clope;\u6A58;\u6A5A\u0380;elmrsz\u1618\u1619\u161B\u161E\u163F\u164F\u1659\u6220;\u69A4e\xBB\u1619sd\u0100;a\u1625\u1626\u6221\u0461\u1630\u1632\u1634\u1636\u1638\u163A\u163C\u163E;\u69A8;\u69A9;\u69AA;\u69AB;\u69AC;\u69AD;\u69AE;\u69AFt\u0100;v\u1645\u1646\u621Fb\u0100;d\u164C\u164D\u62BE;\u699D\u0100pt\u1654\u1657h;\u6222\xBB\xB9arr;\u637C\u0100gp\u1663\u1667on;\u4105f;\uC000\u{1D552}\u0380;Eaeiop\u12C1\u167B\u167D\u1682\u1684\u1687\u168A;\u6A70cir;\u6A6F;\u624Ad;\u624Bs;\u4027rox\u0100;e\u12C1\u1692\xF1\u1683ing\u803B\xE5\u40E5\u0180cty\u16A1\u16A6\u16A8r;\uC000\u{1D4B6};\u402Amp\u0100;e\u12C1\u16AF\xF1\u0288ilde\u803B\xE3\u40E3ml\u803B\xE4\u40E4\u0100ci\u16C2\u16C8onin\xF4\u0272nt;\u6A11\u0800Nabcdefiklnoprsu\u16ED\u16F1\u1730\u173C\u1743\u1748\u1778\u177D\u17E0\u17E6\u1839\u1850\u170D\u193D\u1948\u1970ot;\u6AED\u0100cr\u16F6\u171Ek\u0200ceps\u1700\u1705\u170D\u1713ong;\u624Cpsilon;\u43F6rime;\u6035im\u0100;e\u171A\u171B\u623Dq;\u62CD\u0176\u1722\u1726ee;\u62BDed\u0100;g\u172C\u172D\u6305e\xBB\u172Drk\u0100;t\u135C\u1737brk;\u63B6\u0100oy\u1701\u1741;\u4431quo;\u601E\u0280cmprt\u1753\u175B\u1761\u1764\u1768aus\u0100;e\u010A\u0109ptyv;\u69B0s\xE9\u170Cno\xF5\u0113\u0180ahw\u176F\u1771\u1773;\u43B2;\u6136een;\u626Cr;\uC000\u{1D51F}g\u0380costuvw\u178D\u179D\u17B3\u17C1\u17D5\u17DB\u17DE\u0180aiu\u1794\u1796\u179A\xF0\u0760rc;\u65EFp\xBB\u1371\u0180dpt\u17A4\u17A8\u17ADot;\u6A00lus;\u6A01imes;\u6A02\u0271\u17B9\0\0\u17BEcup;\u6A06ar;\u6605riangle\u0100du\u17CD\u17D2own;\u65BDp;\u65B3plus;\u6A04e\xE5\u1444\xE5\u14ADarow;\u690D\u0180ako\u17ED\u1826\u1835\u0100cn\u17F2\u1823k\u0180lst\u17FA\u05AB\u1802ozenge;\u69EBriangle\u0200;dlr\u1812\u1813\u1818\u181D\u65B4own;\u65BEeft;\u65C2ight;\u65B8k;\u6423\u01B1\u182B\0\u1833\u01B2\u182F\0\u1831;\u6592;\u65914;\u6593ck;\u6588\u0100eo\u183E\u184D\u0100;q\u1843\u1846\uC000=\u20E5uiv;\uC000\u2261\u20E5t;\u6310\u0200ptwx\u1859\u185E\u1867\u186Cf;\uC000\u{1D553}\u0100;t\u13CB\u1863om\xBB\u13CCtie;\u62C8\u0600DHUVbdhmptuv\u1885\u1896\u18AA\u18BB\u18D7\u18DB\u18EC\u18FF\u1905\u190A\u1910\u1921\u0200LRlr\u188E\u1890\u1892\u1894;\u6557;\u6554;\u6556;\u6553\u0280;DUdu\u18A1\u18A2\u18A4\u18A6\u18A8\u6550;\u6566;\u6569;\u6564;\u6567\u0200LRlr\u18B3\u18B5\u18B7\u18B9;\u655D;\u655A;\u655C;\u6559\u0380;HLRhlr\u18CA\u18CB\u18CD\u18CF\u18D1\u18D3\u18D5\u6551;\u656C;\u6563;\u6560;\u656B;\u6562;\u655Fox;\u69C9\u0200LRlr\u18E4\u18E6\u18E8\u18EA;\u6555;\u6552;\u6510;\u650C\u0280;DUdu\u06BD\u18F7\u18F9\u18FB\u18FD;\u6565;\u6568;\u652C;\u6534inus;\u629Flus;\u629Eimes;\u62A0\u0200LRlr\u1919\u191B\u191D\u191F;\u655B;\u6558;\u6518;\u6514\u0380;HLRhlr\u1930\u1931\u1933\u1935\u1937\u1939\u193B\u6502;\u656A;\u6561;\u655E;\u653C;\u6524;\u651C\u0100ev\u0123\u1942bar\u803B\xA6\u40A6\u0200ceio\u1951\u1956\u195A\u1960r;\uC000\u{1D4B7}mi;\u604Fm\u0100;e\u171A\u171Cl\u0180;bh\u1968\u1969\u196B\u405C;\u69C5sub;\u67C8\u016C\u1974\u197El\u0100;e\u1979\u197A\u6022t\xBB\u197Ap\u0180;Ee\u012F\u1985\u1987;\u6AAE\u0100;q\u06DC\u06DB\u0CE1\u19A7\0\u19E8\u1A11\u1A15\u1A32\0\u1A37\u1A50\0\0\u1AB4\0\0\u1AC1\0\0\u1B21\u1B2E\u1B4D\u1B52\0\u1BFD\0\u1C0C\u0180cpr\u19AD\u19B2\u19DDute;\u4107\u0300;abcds\u19BF\u19C0\u19C4\u19CA\u19D5\u19D9\u6229nd;\u6A44rcup;\u6A49\u0100au\u19CF\u19D2p;\u6A4Bp;\u6A47ot;\u6A40;\uC000\u2229\uFE00\u0100eo\u19E2\u19E5t;\u6041\xEE\u0693\u0200aeiu\u19F0\u19FB\u1A01\u1A05\u01F0\u19F5\0\u19F8s;\u6A4Don;\u410Ddil\u803B\xE7\u40E7rc;\u4109ps\u0100;s\u1A0C\u1A0D\u6A4Cm;\u6A50ot;\u410B\u0180dmn\u1A1B\u1A20\u1A26il\u80BB\xB8\u01ADptyv;\u69B2t\u8100\xA2;e\u1A2D\u1A2E\u40A2r\xE4\u01B2r;\uC000\u{1D520}\u0180cei\u1A3D\u1A40\u1A4Dy;\u4447ck\u0100;m\u1A47\u1A48\u6713ark\xBB\u1A48;\u43C7r\u0380;Ecefms\u1A5F\u1A60\u1A62\u1A6B\u1AA4\u1AAA\u1AAE\u65CB;\u69C3\u0180;el\u1A69\u1A6A\u1A6D\u42C6q;\u6257e\u0261\u1A74\0\0\u1A88rrow\u0100lr\u1A7C\u1A81eft;\u61BAight;\u61BB\u0280RSacd\u1A92\u1A94\u1A96\u1A9A\u1A9F\xBB\u0F47;\u64C8st;\u629Birc;\u629Aash;\u629Dnint;\u6A10id;\u6AEFcir;\u69C2ubs\u0100;u\u1ABB\u1ABC\u6663it\xBB\u1ABC\u02EC\u1AC7\u1AD4\u1AFA\0\u1B0Aon\u0100;e\u1ACD\u1ACE\u403A\u0100;q\xC7\xC6\u026D\u1AD9\0\0\u1AE2a\u0100;t\u1ADE\u1ADF\u402C;\u4040\u0180;fl\u1AE8\u1AE9\u1AEB\u6201\xEE\u1160e\u0100mx\u1AF1\u1AF6ent\xBB\u1AE9e\xF3\u024D\u01E7\u1AFE\0\u1B07\u0100;d\u12BB\u1B02ot;\u6A6Dn\xF4\u0246\u0180fry\u1B10\u1B14\u1B17;\uC000\u{1D554}o\xE4\u0254\u8100\xA9;s\u0155\u1B1Dr;\u6117\u0100ao\u1B25\u1B29rr;\u61B5ss;\u6717\u0100cu\u1B32\u1B37r;\uC000\u{1D4B8}\u0100bp\u1B3C\u1B44\u0100;e\u1B41\u1B42\u6ACF;\u6AD1\u0100;e\u1B49\u1B4A\u6AD0;\u6AD2dot;\u62EF\u0380delprvw\u1B60\u1B6C\u1B77\u1B82\u1BAC\u1BD4\u1BF9arr\u0100lr\u1B68\u1B6A;\u6938;\u6935\u0270\u1B72\0\0\u1B75r;\u62DEc;\u62DFarr\u0100;p\u1B7F\u1B80\u61B6;\u693D\u0300;bcdos\u1B8F\u1B90\u1B96\u1BA1\u1BA5\u1BA8\u622Arcap;\u6A48\u0100au\u1B9B\u1B9Ep;\u6A46p;\u6A4Aot;\u628Dr;\u6A45;\uC000\u222A\uFE00\u0200alrv\u1BB5\u1BBF\u1BDE\u1BE3rr\u0100;m\u1BBC\u1BBD\u61B7;\u693Cy\u0180evw\u1BC7\u1BD4\u1BD8q\u0270\u1BCE\0\0\u1BD2re\xE3\u1B73u\xE3\u1B75ee;\u62CEedge;\u62CFen\u803B\xA4\u40A4earrow\u0100lr\u1BEE\u1BF3eft\xBB\u1B80ight\xBB\u1BBDe\xE4\u1BDD\u0100ci\u1C01\u1C07onin\xF4\u01F7nt;\u6231lcty;\u632D\u0980AHabcdefhijlorstuwz\u1C38\u1C3B\u1C3F\u1C5D\u1C69\u1C75\u1C8A\u1C9E\u1CAC\u1CB7\u1CFB\u1CFF\u1D0D\u1D7B\u1D91\u1DAB\u1DBB\u1DC6\u1DCDr\xF2\u0381ar;\u6965\u0200glrs\u1C48\u1C4D\u1C52\u1C54ger;\u6020eth;\u6138\xF2\u1133h\u0100;v\u1C5A\u1C5B\u6010\xBB\u090A\u016B\u1C61\u1C67arow;\u690Fa\xE3\u0315\u0100ay\u1C6E\u1C73ron;\u410F;\u4434\u0180;ao\u0332\u1C7C\u1C84\u0100gr\u02BF\u1C81r;\u61CAtseq;\u6A77\u0180glm\u1C91\u1C94\u1C98\u803B\xB0\u40B0ta;\u43B4ptyv;\u69B1\u0100ir\u1CA3\u1CA8sht;\u697F;\uC000\u{1D521}ar\u0100lr\u1CB3\u1CB5\xBB\u08DC\xBB\u101E\u0280aegsv\u1CC2\u0378\u1CD6\u1CDC\u1CE0m\u0180;os\u0326\u1CCA\u1CD4nd\u0100;s\u0326\u1CD1uit;\u6666amma;\u43DDin;\u62F2\u0180;io\u1CE7\u1CE8\u1CF8\u40F7de\u8100\xF7;o\u1CE7\u1CF0ntimes;\u62C7n\xF8\u1CF7cy;\u4452c\u026F\u1D06\0\0\u1D0Arn;\u631Eop;\u630D\u0280lptuw\u1D18\u1D1D\u1D22\u1D49\u1D55lar;\u4024f;\uC000\u{1D555}\u0280;emps\u030B\u1D2D\u1D37\u1D3D\u1D42q\u0100;d\u0352\u1D33ot;\u6251inus;\u6238lus;\u6214quare;\u62A1blebarwedg\xE5\xFAn\u0180adh\u112E\u1D5D\u1D67ownarrow\xF3\u1C83arpoon\u0100lr\u1D72\u1D76ef\xF4\u1CB4igh\xF4\u1CB6\u0162\u1D7F\u1D85karo\xF7\u0F42\u026F\u1D8A\0\0\u1D8Ern;\u631Fop;\u630C\u0180cot\u1D98\u1DA3\u1DA6\u0100ry\u1D9D\u1DA1;\uC000\u{1D4B9};\u4455l;\u69F6rok;\u4111\u0100dr\u1DB0\u1DB4ot;\u62F1i\u0100;f\u1DBA\u1816\u65BF\u0100ah\u1DC0\u1DC3r\xF2\u0429a\xF2\u0FA6angle;\u69A6\u0100ci\u1DD2\u1DD5y;\u445Fgrarr;\u67FF\u0900Dacdefglmnopqrstux\u1E01\u1E09\u1E19\u1E38\u0578\u1E3C\u1E49\u1E61\u1E7E\u1EA5\u1EAF\u1EBD\u1EE1\u1F2A\u1F37\u1F44\u1F4E\u1F5A\u0100Do\u1E06\u1D34o\xF4\u1C89\u0100cs\u1E0E\u1E14ute\u803B\xE9\u40E9ter;\u6A6E\u0200aioy\u1E22\u1E27\u1E31\u1E36ron;\u411Br\u0100;c\u1E2D\u1E2E\u6256\u803B\xEA\u40EAlon;\u6255;\u444Dot;\u4117\u0100Dr\u1E41\u1E45ot;\u6252;\uC000\u{1D522}\u0180;rs\u1E50\u1E51\u1E57\u6A9Aave\u803B\xE8\u40E8\u0100;d\u1E5C\u1E5D\u6A96ot;\u6A98\u0200;ils\u1E6A\u1E6B\u1E72\u1E74\u6A99nters;\u63E7;\u6113\u0100;d\u1E79\u1E7A\u6A95ot;\u6A97\u0180aps\u1E85\u1E89\u1E97cr;\u4113ty\u0180;sv\u1E92\u1E93\u1E95\u6205et\xBB\u1E93p\u01001;\u1E9D\u1EA4\u0133\u1EA1\u1EA3;\u6004;\u6005\u6003\u0100gs\u1EAA\u1EAC;\u414Bp;\u6002\u0100gp\u1EB4\u1EB8on;\u4119f;\uC000\u{1D556}\u0180als\u1EC4\u1ECE\u1ED2r\u0100;s\u1ECA\u1ECB\u62D5l;\u69E3us;\u6A71i\u0180;lv\u1EDA\u1EDB\u1EDF\u43B5on\xBB\u1EDB;\u43F5\u0200csuv\u1EEA\u1EF3\u1F0B\u1F23\u0100io\u1EEF\u1E31rc\xBB\u1E2E\u0269\u1EF9\0\0\u1EFB\xED\u0548ant\u0100gl\u1F02\u1F06tr\xBB\u1E5Dess\xBB\u1E7A\u0180aei\u1F12\u1F16\u1F1Als;\u403Dst;\u625Fv\u0100;D\u0235\u1F20D;\u6A78parsl;\u69E5\u0100Da\u1F2F\u1F33ot;\u6253rr;\u6971\u0180cdi\u1F3E\u1F41\u1EF8r;\u612Fo\xF4\u0352\u0100ah\u1F49\u1F4B;\u43B7\u803B\xF0\u40F0\u0100mr\u1F53\u1F57l\u803B\xEB\u40EBo;\u60AC\u0180cip\u1F61\u1F64\u1F67l;\u4021s\xF4\u056E\u0100eo\u1F6C\u1F74ctatio\xEE\u0559nential\xE5\u0579\u09E1\u1F92\0\u1F9E\0\u1FA1\u1FA7\0\0\u1FC6\u1FCC\0\u1FD3\0\u1FE6\u1FEA\u2000\0\u2008\u205Allingdotse\xF1\u1E44y;\u4444male;\u6640\u0180ilr\u1FAD\u1FB3\u1FC1lig;\u8000\uFB03\u0269\u1FB9\0\0\u1FBDg;\u8000\uFB00ig;\u8000\uFB04;\uC000\u{1D523}lig;\u8000\uFB01lig;\uC000fj\u0180alt\u1FD9\u1FDC\u1FE1t;\u666Dig;\u8000\uFB02ns;\u65B1of;\u4192\u01F0\u1FEE\0\u1FF3f;\uC000\u{1D557}\u0100ak\u05BF\u1FF7\u0100;v\u1FFC\u1FFD\u62D4;\u6AD9artint;\u6A0D\u0100ao\u200C\u2055\u0100cs\u2011\u2052\u03B1\u201A\u2030\u2038\u2045\u2048\0\u2050\u03B2\u2022\u2025\u2027\u202A\u202C\0\u202E\u803B\xBD\u40BD;\u6153\u803B\xBC\u40BC;\u6155;\u6159;\u615B\u01B3\u2034\0\u2036;\u6154;\u6156\u02B4\u203E\u2041\0\0\u2043\u803B\xBE\u40BE;\u6157;\u615C5;\u6158\u01B6\u204C\0\u204E;\u615A;\u615D8;\u615El;\u6044wn;\u6322cr;\uC000\u{1D4BB}\u0880Eabcdefgijlnorstv\u2082\u2089\u209F\u20A5\u20B0\u20B4\u20F0\u20F5\u20FA\u20FF\u2103\u2112\u2138\u0317\u213E\u2152\u219E\u0100;l\u064D\u2087;\u6A8C\u0180cmp\u2090\u2095\u209Dute;\u41F5ma\u0100;d\u209C\u1CDA\u43B3;\u6A86reve;\u411F\u0100iy\u20AA\u20AErc;\u411D;\u4433ot;\u4121\u0200;lqs\u063E\u0642\u20BD\u20C9\u0180;qs\u063E\u064C\u20C4lan\xF4\u0665\u0200;cdl\u0665\u20D2\u20D5\u20E5c;\u6AA9ot\u0100;o\u20DC\u20DD\u6A80\u0100;l\u20E2\u20E3\u6A82;\u6A84\u0100;e\u20EA\u20ED\uC000\u22DB\uFE00s;\u6A94r;\uC000\u{1D524}\u0100;g\u0673\u061Bmel;\u6137cy;\u4453\u0200;Eaj\u065A\u210C\u210E\u2110;\u6A92;\u6AA5;\u6AA4\u0200Eaes\u211B\u211D\u2129\u2134;\u6269p\u0100;p\u2123\u2124\u6A8Arox\xBB\u2124\u0100;q\u212E\u212F\u6A88\u0100;q\u212E\u211Bim;\u62E7pf;\uC000\u{1D558}\u0100ci\u2143\u2146r;\u610Am\u0180;el\u066B\u214E\u2150;\u6A8E;\u6A90\u8300>;cdlqr\u05EE\u2160\u216A\u216E\u2173\u2179\u0100ci\u2165\u2167;\u6AA7r;\u6A7Aot;\u62D7Par;\u6995uest;\u6A7C\u0280adels\u2184\u216A\u2190\u0656\u219B\u01F0\u2189\0\u218Epro\xF8\u209Er;\u6978q\u0100lq\u063F\u2196les\xF3\u2088i\xED\u066B\u0100en\u21A3\u21ADrtneqq;\uC000\u2269\uFE00\xC5\u21AA\u0500Aabcefkosy\u21C4\u21C7\u21F1\u21F5\u21FA\u2218\u221D\u222F\u2268\u227Dr\xF2\u03A0\u0200ilmr\u21D0\u21D4\u21D7\u21DBrs\xF0\u1484f\xBB\u2024il\xF4\u06A9\u0100dr\u21E0\u21E4cy;\u444A\u0180;cw\u08F4\u21EB\u21EFir;\u6948;\u61ADar;\u610Firc;\u4125\u0180alr\u2201\u220E\u2213rts\u0100;u\u2209\u220A\u6665it\xBB\u220Alip;\u6026con;\u62B9r;\uC000\u{1D525}s\u0100ew\u2223\u2229arow;\u6925arow;\u6926\u0280amopr\u223A\u223E\u2243\u225E\u2263rr;\u61FFtht;\u623Bk\u0100lr\u2249\u2253eftarrow;\u61A9ightarrow;\u61AAf;\uC000\u{1D559}bar;\u6015\u0180clt\u226F\u2274\u2278r;\uC000\u{1D4BD}as\xE8\u21F4rok;\u4127\u0100bp\u2282\u2287ull;\u6043hen\xBB\u1C5B\u0AE1\u22A3\0\u22AA\0\u22B8\u22C5\u22CE\0\u22D5\u22F3\0\0\u22F8\u2322\u2367\u2362\u237F\0\u2386\u23AA\u23B4cute\u803B\xED\u40ED\u0180;iy\u0771\u22B0\u22B5rc\u803B\xEE\u40EE;\u4438\u0100cx\u22BC\u22BFy;\u4435cl\u803B\xA1\u40A1\u0100fr\u039F\u22C9;\uC000\u{1D526}rave\u803B\xEC\u40EC\u0200;ino\u073E\u22DD\u22E9\u22EE\u0100in\u22E2\u22E6nt;\u6A0Ct;\u622Dfin;\u69DCta;\u6129lig;\u4133\u0180aop\u22FE\u231A\u231D\u0180cgt\u2305\u2308\u2317r;\u412B\u0180elp\u071F\u230F\u2313in\xE5\u078Ear\xF4\u0720h;\u4131f;\u62B7ed;\u41B5\u0280;cfot\u04F4\u232C\u2331\u233D\u2341are;\u6105in\u0100;t\u2338\u2339\u621Eie;\u69DDdo\xF4\u2319\u0280;celp\u0757\u234C\u2350\u235B\u2361al;\u62BA\u0100gr\u2355\u2359er\xF3\u1563\xE3\u234Darhk;\u6A17rod;\u6A3C\u0200cgpt\u236F\u2372\u2376\u237By;\u4451on;\u412Ff;\uC000\u{1D55A}a;\u43B9uest\u803B\xBF\u40BF\u0100ci\u238A\u238Fr;\uC000\u{1D4BE}n\u0280;Edsv\u04F4\u239B\u239D\u23A1\u04F3;\u62F9ot;\u62F5\u0100;v\u23A6\u23A7\u62F4;\u62F3\u0100;i\u0777\u23AElde;\u4129\u01EB\u23B8\0\u23BCcy;\u4456l\u803B\xEF\u40EF\u0300cfmosu\u23CC\u23D7\u23DC\u23E1\u23E7\u23F5\u0100iy\u23D1\u23D5rc;\u4135;\u4439r;\uC000\u{1D527}ath;\u4237pf;\uC000\u{1D55B}\u01E3\u23EC\0\u23F1r;\uC000\u{1D4BF}rcy;\u4458kcy;\u4454\u0400acfghjos\u240B\u2416\u2422\u2427\u242D\u2431\u2435\u243Bppa\u0100;v\u2413\u2414\u43BA;\u43F0\u0100ey\u241B\u2420dil;\u4137;\u443Ar;\uC000\u{1D528}reen;\u4138cy;\u4445cy;\u445Cpf;\uC000\u{1D55C}cr;\uC000\u{1D4C0}\u0B80ABEHabcdefghjlmnoprstuv\u2470\u2481\u2486\u248D\u2491\u250E\u253D\u255A\u2580\u264E\u265E\u2665\u2679\u267D\u269A\u26B2\u26D8\u275D\u2768\u278B\u27C0\u2801\u2812\u0180art\u2477\u247A\u247Cr\xF2\u09C6\xF2\u0395ail;\u691Barr;\u690E\u0100;g\u0994\u248B;\u6A8Bar;\u6962\u0963\u24A5\0\u24AA\0\u24B1\0\0\0\0\0\u24B5\u24BA\0\u24C6\u24C8\u24CD\0\u24F9ute;\u413Amptyv;\u69B4ra\xEE\u084Cbda;\u43BBg\u0180;dl\u088E\u24C1\u24C3;\u6991\xE5\u088E;\u6A85uo\u803B\xAB\u40ABr\u0400;bfhlpst\u0899\u24DE\u24E6\u24E9\u24EB\u24EE\u24F1\u24F5\u0100;f\u089D\u24E3s;\u691Fs;\u691D\xEB\u2252p;\u61ABl;\u6939im;\u6973l;\u61A2\u0180;ae\u24FF\u2500\u2504\u6AABil;\u6919\u0100;s\u2509\u250A\u6AAD;\uC000\u2AAD\uFE00\u0180abr\u2515\u2519\u251Drr;\u690Crk;\u6772\u0100ak\u2522\u252Cc\u0100ek\u2528\u252A;\u407B;\u405B\u0100es\u2531\u2533;\u698Bl\u0100du\u2539\u253B;\u698F;\u698D\u0200aeuy\u2546\u254B\u2556\u2558ron;\u413E\u0100di\u2550\u2554il;\u413C\xEC\u08B0\xE2\u2529;\u443B\u0200cqrs\u2563\u2566\u256D\u257Da;\u6936uo\u0100;r\u0E19\u1746\u0100du\u2572\u2577har;\u6967shar;\u694Bh;\u61B2\u0280;fgqs\u258B\u258C\u0989\u25F3\u25FF\u6264t\u0280ahlrt\u2598\u25A4\u25B7\u25C2\u25E8rrow\u0100;t\u0899\u25A1a\xE9\u24F6arpoon\u0100du\u25AF\u25B4own\xBB\u045Ap\xBB\u0966eftarrows;\u61C7ight\u0180ahs\u25CD\u25D6\u25DErrow\u0100;s\u08F4\u08A7arpoon\xF3\u0F98quigarro\xF7\u21F0hreetimes;\u62CB\u0180;qs\u258B\u0993\u25FAlan\xF4\u09AC\u0280;cdgs\u09AC\u260A\u260D\u261D\u2628c;\u6AA8ot\u0100;o\u2614\u2615\u6A7F\u0100;r\u261A\u261B\u6A81;\u6A83\u0100;e\u2622\u2625\uC000\u22DA\uFE00s;\u6A93\u0280adegs\u2633\u2639\u263D\u2649\u264Bppro\xF8\u24C6ot;\u62D6q\u0100gq\u2643\u2645\xF4\u0989gt\xF2\u248C\xF4\u099Bi\xED\u09B2\u0180ilr\u2655\u08E1\u265Asht;\u697C;\uC000\u{1D529}\u0100;E\u099C\u2663;\u6A91\u0161\u2669\u2676r\u0100du\u25B2\u266E\u0100;l\u0965\u2673;\u696Alk;\u6584cy;\u4459\u0280;acht\u0A48\u2688\u268B\u2691\u2696r\xF2\u25C1orne\xF2\u1D08ard;\u696Bri;\u65FA\u0100io\u269F\u26A4dot;\u4140ust\u0100;a\u26AC\u26AD\u63B0che\xBB\u26AD\u0200Eaes\u26BB\u26BD\u26C9\u26D4;\u6268p\u0100;p\u26C3\u26C4\u6A89rox\xBB\u26C4\u0100;q\u26CE\u26CF\u6A87\u0100;q\u26CE\u26BBim;\u62E6\u0400abnoptwz\u26E9\u26F4\u26F7\u271A\u272F\u2741\u2747\u2750\u0100nr\u26EE\u26F1g;\u67ECr;\u61FDr\xEB\u08C1g\u0180lmr\u26FF\u270D\u2714eft\u0100ar\u09E6\u2707ight\xE1\u09F2apsto;\u67FCight\xE1\u09FDparrow\u0100lr\u2725\u2729ef\xF4\u24EDight;\u61AC\u0180afl\u2736\u2739\u273Dr;\u6985;\uC000\u{1D55D}us;\u6A2Dimes;\u6A34\u0161\u274B\u274Fst;\u6217\xE1\u134E\u0180;ef\u2757\u2758\u1800\u65CAnge\xBB\u2758ar\u0100;l\u2764\u2765\u4028t;\u6993\u0280achmt\u2773\u2776\u277C\u2785\u2787r\xF2\u08A8orne\xF2\u1D8Car\u0100;d\u0F98\u2783;\u696D;\u600Eri;\u62BF\u0300achiqt\u2798\u279D\u0A40\u27A2\u27AE\u27BBquo;\u6039r;\uC000\u{1D4C1}m\u0180;eg\u09B2\u27AA\u27AC;\u6A8D;\u6A8F\u0100bu\u252A\u27B3o\u0100;r\u0E1F\u27B9;\u601Arok;\u4142\u8400<;cdhilqr\u082B\u27D2\u2639\u27DC\u27E0\u27E5\u27EA\u27F0\u0100ci\u27D7\u27D9;\u6AA6r;\u6A79re\xE5\u25F2mes;\u62C9arr;\u6976uest;\u6A7B\u0100Pi\u27F5\u27F9ar;\u6996\u0180;ef\u2800\u092D\u181B\u65C3r\u0100du\u2807\u280Dshar;\u694Ahar;\u6966\u0100en\u2817\u2821rtneqq;\uC000\u2268\uFE00\xC5\u281E\u0700Dacdefhilnopsu\u2840\u2845\u2882\u288E\u2893\u28A0\u28A5\u28A8\u28DA\u28E2\u28E4\u0A83\u28F3\u2902Dot;\u623A\u0200clpr\u284E\u2852\u2863\u287Dr\u803B\xAF\u40AF\u0100et\u2857\u2859;\u6642\u0100;e\u285E\u285F\u6720se\xBB\u285F\u0100;s\u103B\u2868to\u0200;dlu\u103B\u2873\u2877\u287Bow\xEE\u048Cef\xF4\u090F\xF0\u13D1ker;\u65AE\u0100oy\u2887\u288Cmma;\u6A29;\u443Cash;\u6014asuredangle\xBB\u1626r;\uC000\u{1D52A}o;\u6127\u0180cdn\u28AF\u28B4\u28C9ro\u803B\xB5\u40B5\u0200;acd\u1464\u28BD\u28C0\u28C4s\xF4\u16A7ir;\u6AF0ot\u80BB\xB7\u01B5us\u0180;bd\u28D2\u1903\u28D3\u6212\u0100;u\u1D3C\u28D8;\u6A2A\u0163\u28DE\u28E1p;\u6ADB\xF2\u2212\xF0\u0A81\u0100dp\u28E9\u28EEels;\u62A7f;\uC000\u{1D55E}\u0100ct\u28F8\u28FDr;\uC000\u{1D4C2}pos\xBB\u159D\u0180;lm\u2909\u290A\u290D\u43BCtimap;\u62B8\u0C00GLRVabcdefghijlmoprstuvw\u2942\u2953\u297E\u2989\u2998\u29DA\u29E9\u2A15\u2A1A\u2A58\u2A5D\u2A83\u2A95\u2AA4\u2AA8\u2B04\u2B07\u2B44\u2B7F\u2BAE\u2C34\u2C67\u2C7C\u2CE9\u0100gt\u2947\u294B;\uC000\u22D9\u0338\u0100;v\u2950\u0BCF\uC000\u226B\u20D2\u0180elt\u295A\u2972\u2976ft\u0100ar\u2961\u2967rrow;\u61CDightarrow;\u61CE;\uC000\u22D8\u0338\u0100;v\u297B\u0C47\uC000\u226A\u20D2ightarrow;\u61CF\u0100Dd\u298E\u2993ash;\u62AFash;\u62AE\u0280bcnpt\u29A3\u29A7\u29AC\u29B1\u29CCla\xBB\u02DEute;\u4144g;\uC000\u2220\u20D2\u0280;Eiop\u0D84\u29BC\u29C0\u29C5\u29C8;\uC000\u2A70\u0338d;\uC000\u224B\u0338s;\u4149ro\xF8\u0D84ur\u0100;a\u29D3\u29D4\u666El\u0100;s\u29D3\u0B38\u01F3\u29DF\0\u29E3p\u80BB\xA0\u0B37mp\u0100;e\u0BF9\u0C00\u0280aeouy\u29F4\u29FE\u2A03\u2A10\u2A13\u01F0\u29F9\0\u29FB;\u6A43on;\u4148dil;\u4146ng\u0100;d\u0D7E\u2A0Aot;\uC000\u2A6D\u0338p;\u6A42;\u443Dash;\u6013\u0380;Aadqsx\u0B92\u2A29\u2A2D\u2A3B\u2A41\u2A45\u2A50rr;\u61D7r\u0100hr\u2A33\u2A36k;\u6924\u0100;o\u13F2\u13F0ot;\uC000\u2250\u0338ui\xF6\u0B63\u0100ei\u2A4A\u2A4Ear;\u6928\xED\u0B98ist\u0100;s\u0BA0\u0B9Fr;\uC000\u{1D52B}\u0200Eest\u0BC5\u2A66\u2A79\u2A7C\u0180;qs\u0BBC\u2A6D\u0BE1\u0180;qs\u0BBC\u0BC5\u2A74lan\xF4\u0BE2i\xED\u0BEA\u0100;r\u0BB6\u2A81\xBB\u0BB7\u0180Aap\u2A8A\u2A8D\u2A91r\xF2\u2971rr;\u61AEar;\u6AF2\u0180;sv\u0F8D\u2A9C\u0F8C\u0100;d\u2AA1\u2AA2\u62FC;\u62FAcy;\u445A\u0380AEadest\u2AB7\u2ABA\u2ABE\u2AC2\u2AC5\u2AF6\u2AF9r\xF2\u2966;\uC000\u2266\u0338rr;\u619Ar;\u6025\u0200;fqs\u0C3B\u2ACE\u2AE3\u2AEFt\u0100ar\u2AD4\u2AD9rro\xF7\u2AC1ightarro\xF7\u2A90\u0180;qs\u0C3B\u2ABA\u2AEAlan\xF4\u0C55\u0100;s\u0C55\u2AF4\xBB\u0C36i\xED\u0C5D\u0100;r\u0C35\u2AFEi\u0100;e\u0C1A\u0C25i\xE4\u0D90\u0100pt\u2B0C\u2B11f;\uC000\u{1D55F}\u8180\xAC;in\u2B19\u2B1A\u2B36\u40ACn\u0200;Edv\u0B89\u2B24\u2B28\u2B2E;\uC000\u22F9\u0338ot;\uC000\u22F5\u0338\u01E1\u0B89\u2B33\u2B35;\u62F7;\u62F6i\u0100;v\u0CB8\u2B3C\u01E1\u0CB8\u2B41\u2B43;\u62FE;\u62FD\u0180aor\u2B4B\u2B63\u2B69r\u0200;ast\u0B7B\u2B55\u2B5A\u2B5Flle\xEC\u0B7Bl;\uC000\u2AFD\u20E5;\uC000\u2202\u0338lint;\u6A14\u0180;ce\u0C92\u2B70\u2B73u\xE5\u0CA5\u0100;c\u0C98\u2B78\u0100;e\u0C92\u2B7D\xF1\u0C98\u0200Aait\u2B88\u2B8B\u2B9D\u2BA7r\xF2\u2988rr\u0180;cw\u2B94\u2B95\u2B99\u619B;\uC000\u2933\u0338;\uC000\u219D\u0338ghtarrow\xBB\u2B95ri\u0100;e\u0CCB\u0CD6\u0380chimpqu\u2BBD\u2BCD\u2BD9\u2B04\u0B78\u2BE4\u2BEF\u0200;cer\u0D32\u2BC6\u0D37\u2BC9u\xE5\u0D45;\uC000\u{1D4C3}ort\u026D\u2B05\0\0\u2BD6ar\xE1\u2B56m\u0100;e\u0D6E\u2BDF\u0100;q\u0D74\u0D73su\u0100bp\u2BEB\u2BED\xE5\u0CF8\xE5\u0D0B\u0180bcp\u2BF6\u2C11\u2C19\u0200;Ees\u2BFF\u2C00\u0D22\u2C04\u6284;\uC000\u2AC5\u0338et\u0100;e\u0D1B\u2C0Bq\u0100;q\u0D23\u2C00c\u0100;e\u0D32\u2C17\xF1\u0D38\u0200;Ees\u2C22\u2C23\u0D5F\u2C27\u6285;\uC000\u2AC6\u0338et\u0100;e\u0D58\u2C2Eq\u0100;q\u0D60\u2C23\u0200gilr\u2C3D\u2C3F\u2C45\u2C47\xEC\u0BD7lde\u803B\xF1\u40F1\xE7\u0C43iangle\u0100lr\u2C52\u2C5Ceft\u0100;e\u0C1A\u2C5A\xF1\u0C26ight\u0100;e\u0CCB\u2C65\xF1\u0CD7\u0100;m\u2C6C\u2C6D\u43BD\u0180;es\u2C74\u2C75\u2C79\u4023ro;\u6116p;\u6007\u0480DHadgilrs\u2C8F\u2C94\u2C99\u2C9E\u2CA3\u2CB0\u2CB6\u2CD3\u2CE3ash;\u62ADarr;\u6904p;\uC000\u224D\u20D2ash;\u62AC\u0100et\u2CA8\u2CAC;\uC000\u2265\u20D2;\uC000>\u20D2nfin;\u69DE\u0180Aet\u2CBD\u2CC1\u2CC5rr;\u6902;\uC000\u2264\u20D2\u0100;r\u2CCA\u2CCD\uC000<\u20D2ie;\uC000\u22B4\u20D2\u0100At\u2CD8\u2CDCrr;\u6903rie;\uC000\u22B5\u20D2im;\uC000\u223C\u20D2\u0180Aan\u2CF0\u2CF4\u2D02rr;\u61D6r\u0100hr\u2CFA\u2CFDk;\u6923\u0100;o\u13E7\u13E5ear;\u6927\u1253\u1A95\0\0\0\0\0\0\0\0\0\0\0\0\0\u2D2D\0\u2D38\u2D48\u2D60\u2D65\u2D72\u2D84\u1B07\0\0\u2D8D\u2DAB\0\u2DC8\u2DCE\0\u2DDC\u2E19\u2E2B\u2E3E\u2E43\u0100cs\u2D31\u1A97ute\u803B\xF3\u40F3\u0100iy\u2D3C\u2D45r\u0100;c\u1A9E\u2D42\u803B\xF4\u40F4;\u443E\u0280abios\u1AA0\u2D52\u2D57\u01C8\u2D5Alac;\u4151v;\u6A38old;\u69BClig;\u4153\u0100cr\u2D69\u2D6Dir;\u69BF;\uC000\u{1D52C}\u036F\u2D79\0\0\u2D7C\0\u2D82n;\u42DBave\u803B\xF2\u40F2;\u69C1\u0100bm\u2D88\u0DF4ar;\u69B5\u0200acit\u2D95\u2D98\u2DA5\u2DA8r\xF2\u1A80\u0100ir\u2D9D\u2DA0r;\u69BEoss;\u69BBn\xE5\u0E52;\u69C0\u0180aei\u2DB1\u2DB5\u2DB9cr;\u414Dga;\u43C9\u0180cdn\u2DC0\u2DC5\u01CDron;\u43BF;\u69B6pf;\uC000\u{1D560}\u0180ael\u2DD4\u2DD7\u01D2r;\u69B7rp;\u69B9\u0380;adiosv\u2DEA\u2DEB\u2DEE\u2E08\u2E0D\u2E10\u2E16\u6228r\xF2\u1A86\u0200;efm\u2DF7\u2DF8\u2E02\u2E05\u6A5Dr\u0100;o\u2DFE\u2DFF\u6134f\xBB\u2DFF\u803B\xAA\u40AA\u803B\xBA\u40BAgof;\u62B6r;\u6A56lope;\u6A57;\u6A5B\u0180clo\u2E1F\u2E21\u2E27\xF2\u2E01ash\u803B\xF8\u40F8l;\u6298i\u016C\u2E2F\u2E34de\u803B\xF5\u40F5es\u0100;a\u01DB\u2E3As;\u6A36ml\u803B\xF6\u40F6bar;\u633D\u0AE1\u2E5E\0\u2E7D\0\u2E80\u2E9D\0\u2EA2\u2EB9\0\0\u2ECB\u0E9C\0\u2F13\0\0\u2F2B\u2FBC\0\u2FC8r\u0200;ast\u0403\u2E67\u2E72\u0E85\u8100\xB6;l\u2E6D\u2E6E\u40B6le\xEC\u0403\u0269\u2E78\0\0\u2E7Bm;\u6AF3;\u6AFDy;\u443Fr\u0280cimpt\u2E8B\u2E8F\u2E93\u1865\u2E97nt;\u4025od;\u402Eil;\u6030enk;\u6031r;\uC000\u{1D52D}\u0180imo\u2EA8\u2EB0\u2EB4\u0100;v\u2EAD\u2EAE\u43C6;\u43D5ma\xF4\u0A76ne;\u660E\u0180;tv\u2EBF\u2EC0\u2EC8\u43C0chfork\xBB\u1FFD;\u43D6\u0100au\u2ECF\u2EDFn\u0100ck\u2ED5\u2EDDk\u0100;h\u21F4\u2EDB;\u610E\xF6\u21F4s\u0480;abcdemst\u2EF3\u2EF4\u1908\u2EF9\u2EFD\u2F04\u2F06\u2F0A\u2F0E\u402Bcir;\u6A23ir;\u6A22\u0100ou\u1D40\u2F02;\u6A25;\u6A72n\u80BB\xB1\u0E9Dim;\u6A26wo;\u6A27\u0180ipu\u2F19\u2F20\u2F25ntint;\u6A15f;\uC000\u{1D561}nd\u803B\xA3\u40A3\u0500;Eaceinosu\u0EC8\u2F3F\u2F41\u2F44\u2F47\u2F81\u2F89\u2F92\u2F7E\u2FB6;\u6AB3p;\u6AB7u\xE5\u0ED9\u0100;c\u0ECE\u2F4C\u0300;acens\u0EC8\u2F59\u2F5F\u2F66\u2F68\u2F7Eppro\xF8\u2F43urlye\xF1\u0ED9\xF1\u0ECE\u0180aes\u2F6F\u2F76\u2F7Approx;\u6AB9qq;\u6AB5im;\u62E8i\xED\u0EDFme\u0100;s\u2F88\u0EAE\u6032\u0180Eas\u2F78\u2F90\u2F7A\xF0\u2F75\u0180dfp\u0EEC\u2F99\u2FAF\u0180als\u2FA0\u2FA5\u2FAAlar;\u632Eine;\u6312urf;\u6313\u0100;t\u0EFB\u2FB4\xEF\u0EFBrel;\u62B0\u0100ci\u2FC0\u2FC5r;\uC000\u{1D4C5};\u43C8ncsp;\u6008\u0300fiopsu\u2FDA\u22E2\u2FDF\u2FE5\u2FEB\u2FF1r;\uC000\u{1D52E}pf;\uC000\u{1D562}rime;\u6057cr;\uC000\u{1D4C6}\u0180aeo\u2FF8\u3009\u3013t\u0100ei\u2FFE\u3005rnion\xF3\u06B0nt;\u6A16st\u0100;e\u3010\u3011\u403F\xF1\u1F19\xF4\u0F14\u0A80ABHabcdefhilmnoprstux\u3040\u3051\u3055\u3059\u30E0\u310E\u312B\u3147\u3162\u3172\u318E\u3206\u3215\u3224\u3229\u3258\u326E\u3272\u3290\u32B0\u32B7\u0180art\u3047\u304A\u304Cr\xF2\u10B3\xF2\u03DDail;\u691Car\xF2\u1C65ar;\u6964\u0380cdenqrt\u3068\u3075\u3078\u307F\u308F\u3094\u30CC\u0100eu\u306D\u3071;\uC000\u223D\u0331te;\u4155i\xE3\u116Emptyv;\u69B3g\u0200;del\u0FD1\u3089\u308B\u308D;\u6992;\u69A5\xE5\u0FD1uo\u803B\xBB\u40BBr\u0580;abcfhlpstw\u0FDC\u30AC\u30AF\u30B7\u30B9\u30BC\u30BE\u30C0\u30C3\u30C7\u30CAp;\u6975\u0100;f\u0FE0\u30B4s;\u6920;\u6933s;\u691E\xEB\u225D\xF0\u272El;\u6945im;\u6974l;\u61A3;\u619D\u0100ai\u30D1\u30D5il;\u691Ao\u0100;n\u30DB\u30DC\u6236al\xF3\u0F1E\u0180abr\u30E7\u30EA\u30EEr\xF2\u17E5rk;\u6773\u0100ak\u30F3\u30FDc\u0100ek\u30F9\u30FB;\u407D;\u405D\u0100es\u3102\u3104;\u698Cl\u0100du\u310A\u310C;\u698E;\u6990\u0200aeuy\u3117\u311C\u3127\u3129ron;\u4159\u0100di\u3121\u3125il;\u4157\xEC\u0FF2\xE2\u30FA;\u4440\u0200clqs\u3134\u3137\u313D\u3144a;\u6937dhar;\u6969uo\u0100;r\u020E\u020Dh;\u61B3\u0180acg\u314E\u315F\u0F44l\u0200;ips\u0F78\u3158\u315B\u109Cn\xE5\u10BBar\xF4\u0FA9t;\u65AD\u0180ilr\u3169\u1023\u316Esht;\u697D;\uC000\u{1D52F}\u0100ao\u3177\u3186r\u0100du\u317D\u317F\xBB\u047B\u0100;l\u1091\u3184;\u696C\u0100;v\u318B\u318C\u43C1;\u43F1\u0180gns\u3195\u31F9\u31FCht\u0300ahlrst\u31A4\u31B0\u31C2\u31D8\u31E4\u31EErrow\u0100;t\u0FDC\u31ADa\xE9\u30C8arpoon\u0100du\u31BB\u31BFow\xEE\u317Ep\xBB\u1092eft\u0100ah\u31CA\u31D0rrow\xF3\u0FEAarpoon\xF3\u0551ightarrows;\u61C9quigarro\xF7\u30CBhreetimes;\u62CCg;\u42DAingdotse\xF1\u1F32\u0180ahm\u320D\u3210\u3213r\xF2\u0FEAa\xF2\u0551;\u600Foust\u0100;a\u321E\u321F\u63B1che\xBB\u321Fmid;\u6AEE\u0200abpt\u3232\u323D\u3240\u3252\u0100nr\u3237\u323Ag;\u67EDr;\u61FEr\xEB\u1003\u0180afl\u3247\u324A\u324Er;\u6986;\uC000\u{1D563}us;\u6A2Eimes;\u6A35\u0100ap\u325D\u3267r\u0100;g\u3263\u3264\u4029t;\u6994olint;\u6A12ar\xF2\u31E3\u0200achq\u327B\u3280\u10BC\u3285quo;\u603Ar;\uC000\u{1D4C7}\u0100bu\u30FB\u328Ao\u0100;r\u0214\u0213\u0180hir\u3297\u329B\u32A0re\xE5\u31F8mes;\u62CAi\u0200;efl\u32AA\u1059\u1821\u32AB\u65B9tri;\u69CEluhar;\u6968;\u611E\u0D61\u32D5\u32DB\u32DF\u332C\u3338\u3371\0\u337A\u33A4\0\0\u33EC\u33F0\0\u3428\u3448\u345A\u34AD\u34B1\u34CA\u34F1\0\u3616\0\0\u3633cute;\u415Bqu\xEF\u27BA\u0500;Eaceinpsy\u11ED\u32F3\u32F5\u32FF\u3302\u330B\u330F\u331F\u3326\u3329;\u6AB4\u01F0\u32FA\0\u32FC;\u6AB8on;\u4161u\xE5\u11FE\u0100;d\u11F3\u3307il;\u415Frc;\u415D\u0180Eas\u3316\u3318\u331B;\u6AB6p;\u6ABAim;\u62E9olint;\u6A13i\xED\u1204;\u4441ot\u0180;be\u3334\u1D47\u3335\u62C5;\u6A66\u0380Aacmstx\u3346\u334A\u3357\u335B\u335E\u3363\u336Drr;\u61D8r\u0100hr\u3350\u3352\xEB\u2228\u0100;o\u0A36\u0A34t\u803B\xA7\u40A7i;\u403Bwar;\u6929m\u0100in\u3369\xF0nu\xF3\xF1t;\u6736r\u0100;o\u3376\u2055\uC000\u{1D530}\u0200acoy\u3382\u3386\u3391\u33A0rp;\u666F\u0100hy\u338B\u338Fcy;\u4449;\u4448rt\u026D\u3399\0\0\u339Ci\xE4\u1464ara\xEC\u2E6F\u803B\xAD\u40AD\u0100gm\u33A8\u33B4ma\u0180;fv\u33B1\u33B2\u33B2\u43C3;\u43C2\u0400;deglnpr\u12AB\u33C5\u33C9\u33CE\u33D6\u33DE\u33E1\u33E6ot;\u6A6A\u0100;q\u12B1\u12B0\u0100;E\u33D3\u33D4\u6A9E;\u6AA0\u0100;E\u33DB\u33DC\u6A9D;\u6A9Fe;\u6246lus;\u6A24arr;\u6972ar\xF2\u113D\u0200aeit\u33F8\u3408\u340F\u3417\u0100ls\u33FD\u3404lsetm\xE9\u336Ahp;\u6A33parsl;\u69E4\u0100dl\u1463\u3414e;\u6323\u0100;e\u341C\u341D\u6AAA\u0100;s\u3422\u3423\u6AAC;\uC000\u2AAC\uFE00\u0180flp\u342E\u3433\u3442tcy;\u444C\u0100;b\u3438\u3439\u402F\u0100;a\u343E\u343F\u69C4r;\u633Ff;\uC000\u{1D564}a\u0100dr\u344D\u0402es\u0100;u\u3454\u3455\u6660it\xBB\u3455\u0180csu\u3460\u3479\u349F\u0100au\u3465\u346Fp\u0100;s\u1188\u346B;\uC000\u2293\uFE00p\u0100;s\u11B4\u3475;\uC000\u2294\uFE00u\u0100bp\u347F\u348F\u0180;es\u1197\u119C\u3486et\u0100;e\u1197\u348D\xF1\u119D\u0180;es\u11A8\u11AD\u3496et\u0100;e\u11A8\u349D\xF1\u11AE\u0180;af\u117B\u34A6\u05B0r\u0165\u34AB\u05B1\xBB\u117Car\xF2\u1148\u0200cemt\u34B9\u34BE\u34C2\u34C5r;\uC000\u{1D4C8}tm\xEE\xF1i\xEC\u3415ar\xE6\u11BE\u0100ar\u34CE\u34D5r\u0100;f\u34D4\u17BF\u6606\u0100an\u34DA\u34EDight\u0100ep\u34E3\u34EApsilo\xEE\u1EE0h\xE9\u2EAFs\xBB\u2852\u0280bcmnp\u34FB\u355E\u1209\u358B\u358E\u0480;Edemnprs\u350E\u350F\u3511\u3515\u351E\u3523\u352C\u3531\u3536\u6282;\u6AC5ot;\u6ABD\u0100;d\u11DA\u351Aot;\u6AC3ult;\u6AC1\u0100Ee\u3528\u352A;\u6ACB;\u628Alus;\u6ABFarr;\u6979\u0180eiu\u353D\u3552\u3555t\u0180;en\u350E\u3545\u354Bq\u0100;q\u11DA\u350Feq\u0100;q\u352B\u3528m;\u6AC7\u0100bp\u355A\u355C;\u6AD5;\u6AD3c\u0300;acens\u11ED\u356C\u3572\u3579\u357B\u3326ppro\xF8\u32FAurlye\xF1\u11FE\xF1\u11F3\u0180aes\u3582\u3588\u331Bppro\xF8\u331Aq\xF1\u3317g;\u666A\u0680123;Edehlmnps\u35A9\u35AC\u35AF\u121C\u35B2\u35B4\u35C0\u35C9\u35D5\u35DA\u35DF\u35E8\u35ED\u803B\xB9\u40B9\u803B\xB2\u40B2\u803B\xB3\u40B3;\u6AC6\u0100os\u35B9\u35BCt;\u6ABEub;\u6AD8\u0100;d\u1222\u35C5ot;\u6AC4s\u0100ou\u35CF\u35D2l;\u67C9b;\u6AD7arr;\u697Bult;\u6AC2\u0100Ee\u35E4\u35E6;\u6ACC;\u628Blus;\u6AC0\u0180eiu\u35F4\u3609\u360Ct\u0180;en\u121C\u35FC\u3602q\u0100;q\u1222\u35B2eq\u0100;q\u35E7\u35E4m;\u6AC8\u0100bp\u3611\u3613;\u6AD4;\u6AD6\u0180Aan\u361C\u3620\u362Drr;\u61D9r\u0100hr\u3626\u3628\xEB\u222E\u0100;o\u0A2B\u0A29war;\u692Alig\u803B\xDF\u40DF\u0BE1\u3651\u365D\u3660\u12CE\u3673\u3679\0\u367E\u36C2\0\0\0\0\0\u36DB\u3703\0\u3709\u376C\0\0\0\u3787\u0272\u3656\0\0\u365Bget;\u6316;\u43C4r\xEB\u0E5F\u0180aey\u3666\u366B\u3670ron;\u4165dil;\u4163;\u4442lrec;\u6315r;\uC000\u{1D531}\u0200eiko\u3686\u369D\u36B5\u36BC\u01F2\u368B\0\u3691e\u01004f\u1284\u1281a\u0180;sv\u3698\u3699\u369B\u43B8ym;\u43D1\u0100cn\u36A2\u36B2k\u0100as\u36A8\u36AEppro\xF8\u12C1im\xBB\u12ACs\xF0\u129E\u0100as\u36BA\u36AE\xF0\u12C1rn\u803B\xFE\u40FE\u01EC\u031F\u36C6\u22E7es\u8180\xD7;bd\u36CF\u36D0\u36D8\u40D7\u0100;a\u190F\u36D5r;\u6A31;\u6A30\u0180eps\u36E1\u36E3\u3700\xE1\u2A4D\u0200;bcf\u0486\u36EC\u36F0\u36F4ot;\u6336ir;\u6AF1\u0100;o\u36F9\u36FC\uC000\u{1D565}rk;\u6ADA\xE1\u3362rime;\u6034\u0180aip\u370F\u3712\u3764d\xE5\u1248\u0380adempst\u3721\u374D\u3740\u3751\u3757\u375C\u375Fngle\u0280;dlqr\u3730\u3731\u3736\u3740\u3742\u65B5own\xBB\u1DBBeft\u0100;e\u2800\u373E\xF1\u092E;\u625Cight\u0100;e\u32AA\u374B\xF1\u105Aot;\u65ECinus;\u6A3Alus;\u6A39b;\u69CDime;\u6A3Bezium;\u63E2\u0180cht\u3772\u377D\u3781\u0100ry\u3777\u377B;\uC000\u{1D4C9};\u4446cy;\u445Brok;\u4167\u0100io\u378B\u378Ex\xF4\u1777head\u0100lr\u3797\u37A0eftarro\xF7\u084Fightarrow\xBB\u0F5D\u0900AHabcdfghlmoprstuw\u37D0\u37D3\u37D7\u37E4\u37F0\u37FC\u380E\u381C\u3823\u3834\u3851\u385D\u386B\u38A9\u38CC\u38D2\u38EA\u38F6r\xF2\u03EDar;\u6963\u0100cr\u37DC\u37E2ute\u803B\xFA\u40FA\xF2\u1150r\u01E3\u37EA\0\u37EDy;\u445Eve;\u416D\u0100iy\u37F5\u37FArc\u803B\xFB\u40FB;\u4443\u0180abh\u3803\u3806\u380Br\xF2\u13ADlac;\u4171a\xF2\u13C3\u0100ir\u3813\u3818sht;\u697E;\uC000\u{1D532}rave\u803B\xF9\u40F9\u0161\u3827\u3831r\u0100lr\u382C\u382E\xBB\u0957\xBB\u1083lk;\u6580\u0100ct\u3839\u384D\u026F\u383F\0\0\u384Arn\u0100;e\u3845\u3846\u631Cr\xBB\u3846op;\u630Fri;\u65F8\u0100al\u3856\u385Acr;\u416B\u80BB\xA8\u0349\u0100gp\u3862\u3866on;\u4173f;\uC000\u{1D566}\u0300adhlsu\u114B\u3878\u387D\u1372\u3891\u38A0own\xE1\u13B3arpoon\u0100lr\u3888\u388Cef\xF4\u382Digh\xF4\u382Fi\u0180;hl\u3899\u389A\u389C\u43C5\xBB\u13FAon\xBB\u389Aparrows;\u61C8\u0180cit\u38B0\u38C4\u38C8\u026F\u38B6\0\0\u38C1rn\u0100;e\u38BC\u38BD\u631Dr\xBB\u38BDop;\u630Eng;\u416Fri;\u65F9cr;\uC000\u{1D4CA}\u0180dir\u38D9\u38DD\u38E2ot;\u62F0lde;\u4169i\u0100;f\u3730\u38E8\xBB\u1813\u0100am\u38EF\u38F2r\xF2\u38A8l\u803B\xFC\u40FCangle;\u69A7\u0780ABDacdeflnoprsz\u391C\u391F\u3929\u392D\u39B5\u39B8\u39BD\u39DF\u39E4\u39E8\u39F3\u39F9\u39FD\u3A01\u3A20r\xF2\u03F7ar\u0100;v\u3926\u3927\u6AE8;\u6AE9as\xE8\u03E1\u0100nr\u3932\u3937grt;\u699C\u0380eknprst\u34E3\u3946\u394B\u3952\u395D\u3964\u3996app\xE1\u2415othin\xE7\u1E96\u0180hir\u34EB\u2EC8\u3959op\xF4\u2FB5\u0100;h\u13B7\u3962\xEF\u318D\u0100iu\u3969\u396Dgm\xE1\u33B3\u0100bp\u3972\u3984setneq\u0100;q\u397D\u3980\uC000\u228A\uFE00;\uC000\u2ACB\uFE00setneq\u0100;q\u398F\u3992\uC000\u228B\uFE00;\uC000\u2ACC\uFE00\u0100hr\u399B\u399Fet\xE1\u369Ciangle\u0100lr\u39AA\u39AFeft\xBB\u0925ight\xBB\u1051y;\u4432ash\xBB\u1036\u0180elr\u39C4\u39D2\u39D7\u0180;be\u2DEA\u39CB\u39CFar;\u62BBq;\u625Alip;\u62EE\u0100bt\u39DC\u1468a\xF2\u1469r;\uC000\u{1D533}tr\xE9\u39AEsu\u0100bp\u39EF\u39F1\xBB\u0D1C\xBB\u0D59pf;\uC000\u{1D567}ro\xF0\u0EFBtr\xE9\u39B4\u0100cu\u3A06\u3A0Br;\uC000\u{1D4CB}\u0100bp\u3A10\u3A18n\u0100Ee\u3980\u3A16\xBB\u397En\u0100Ee\u3992\u3A1E\xBB\u3990igzag;\u699A\u0380cefoprs\u3A36\u3A3B\u3A56\u3A5B\u3A54\u3A61\u3A6Airc;\u4175\u0100di\u3A40\u3A51\u0100bg\u3A45\u3A49ar;\u6A5Fe\u0100;q\u15FA\u3A4F;\u6259erp;\u6118r;\uC000\u{1D534}pf;\uC000\u{1D568}\u0100;e\u1479\u3A66at\xE8\u1479cr;\uC000\u{1D4CC}\u0AE3\u178E\u3A87\0\u3A8B\0\u3A90\u3A9B\0\0\u3A9D\u3AA8\u3AAB\u3AAF\0\0\u3AC3\u3ACE\0\u3AD8\u17DC\u17DFtr\xE9\u17D1r;\uC000\u{1D535}\u0100Aa\u3A94\u3A97r\xF2\u03C3r\xF2\u09F6;\u43BE\u0100Aa\u3AA1\u3AA4r\xF2\u03B8r\xF2\u09EBa\xF0\u2713is;\u62FB\u0180dpt\u17A4\u3AB5\u3ABE\u0100fl\u3ABA\u17A9;\uC000\u{1D569}im\xE5\u17B2\u0100Aa\u3AC7\u3ACAr\xF2\u03CEr\xF2\u0A01\u0100cq\u3AD2\u17B8r;\uC000\u{1D4CD}\u0100pt\u17D6\u3ADCr\xE9\u17D4\u0400acefiosu\u3AF0\u3AFD\u3B08\u3B0C\u3B11\u3B15\u3B1B\u3B21c\u0100uy\u3AF6\u3AFBte\u803B\xFD\u40FD;\u444F\u0100iy\u3B02\u3B06rc;\u4177;\u444Bn\u803B\xA5\u40A5r;\uC000\u{1D536}cy;\u4457pf;\uC000\u{1D56A}cr;\uC000\u{1D4CE}\u0100cm\u3B26\u3B29y;\u444El\u803B\xFF\u40FF\u0500acdefhiosw\u3B42\u3B48\u3B54\u3B58\u3B64\u3B69\u3B6D\u3B74\u3B7A\u3B80cute;\u417A\u0100ay\u3B4D\u3B52ron;\u417E;\u4437ot;\u417C\u0100et\u3B5D\u3B61tr\xE6\u155Fa;\u43B6r;\uC000\u{1D537}cy;\u4436grarr;\u61DDpf;\uC000\u{1D56B}cr;\uC000\u{1D4CF}\u0100jn\u3B85\u3B87;\u600Dj;\u600C'.split("").map(
295t=>t.charCodeAt(0))),zEe=new Uint16Array("\u0200aglq	��\x1B\u026D�\0\0�p;\u4026os;\u4027t;\u403Et;\u403Cuot;\u4022".split("").map(t=>t.charCodeAt(0)));var cD;const HEe=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),VEe=(cD=String.fromCodePoint)!==null&&cD!==void 0?cD:function(t){let e="";return t>65535&&(t-=65536,e+=String.fromCharCode(t>>>10&1023|55296),t=56320|t&1023),e+=String.fromCharCode(t),e};function WEe(t){var e;return t>=55296&&t<=57343||t>1114111?65533:(e=HEe.get(t))!==null&&e!==void 0?e:t}var xr;(function(t){t[t.NUM=35]="NUM",t[t.SEMI=59]="SEMI",t[t.EQUALS=61]="EQUALS",t[t.ZERO=48]="ZERO",t[t.NINE=57]="NINE",t[t.LOWER_A=97]="LOWER_A",t[t.LOWER_F=102]="LOWER_F",t[t.LOWER_X=120]="LOWER_X",t[t.LOWER_Z=122]="LOWER_Z",t[t.UPPER_A=65]="UPPER_A",t[t.UPPER_F=70]="UPPER_F",t[t.UPPER_Z=90]="UPPER_Z"})(xr||(xr={}));const GEe=32;var Uf;(function(t){t[t.VALUE_LENGTH=49152]="VALUE_LENGTH",t[t.BRANCH_LENGTH=16256]="BRANCH_LENGTH",t[t.JUMP_TABLE=127]="JUMP_TABLE"})(Uf||(Uf={}));function tR(t){return t>=xr.ZERO&&t<=xr.NINE}function jEe(t){return t>=xr.UPPER_A&&t<=xr.UPPER_F||t>=xr.LOWER_A&&t<=xr.LOWER_F}function qEe(t){return t>=xr.UPPER_A&&t<=xr.UPPER_Z||t>=xr.LOWER_A&&t<=xr.LOWER_Z||tR(t)}function XEe(t){return t===xr.EQUALS||qEe(t)}var pr;(function(t){t[t.EntityStart=0]="EntityStart",t[t.NumericStart=1]="NumericStart",t[t.NumericDecimal=2]="NumericDecimal",t[t.NumericHex=3]="NumericHex",t[t.NamedEntity=4]="NamedEntity"})(pr||(pr={}));var Df;(function(t){t[t.Legacy=0]="Legacy",t[t.Strict=1]="Strict",t[t.Attribute=2]="Attribute"})(Df||(Df={}));class YEe{constructor(e,n,i){this.decodeTree=e,this.emitCodePoint=n,this.errors=i,this.state=pr.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Df.Strict}startEntity(e){this.decodeMode=e,this.state=pr.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(e,n){switch(this.state){case pr.EntityStart:return e.charCodeAt(n)===xr.NUM?(this.state=pr.NumericStart,this.consumed+=1,this.stateNumericStart(e,n+1)):(this.state=pr.NamedEntity,this.stateNamedEntity(e,n));case pr.NumericStart:return this.stateNumericStart(e,n);case pr.NumericDecimal:return this.stateNumericDecimal(e,n);case pr.NumericHex:return this.stateNumericHex(e,n);case pr.NamedEntity:return this.stateNamedEntity(e,n)}}stateNumericStart(e,n){return n>=e.length?-1:(e.charCodeAt(n)|GEe)===xr.LOWER_X?(this.state=pr.NumericHex,this.consumed+=1,this.stateNumericHex(e,n+1)):(this.state=pr.NumericDecimal,this.stateNumericDecimal(e,n))}addToNumericResult(e,n,i,r){if(n!==i){const s=i-n;this.result=this.result*Math.pow(r,s)+parseInt(e.substr(n,s),r),this.consumed+=s}}stateNumericHex(e,n){const i=n;for(;n<e.length;){const r=e.charCodeAt(n);if(tR(r)||jEe(r))n+=1;else return this.addToNumericResult(e,i,n,16),this.emitNumericEntity(r,3)}return this.addToNumericResult(e,i,n,16),-1}stateNumericDecimal(e,n){const i=n;for(;n<e.length;){const r=e.charCodeAt(n);if(tR(r))n+=1;else return this.addToNumericResult(e,i,n,10),this.emitNumericEntity(r,2)}return this.addToNumericResult(e,i,n,10),-1}
295emitNumericEntity(e,n){var i;if(this.consumed<=n)return(i=this.errors)===null||i===void 0||i.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(e===xr.SEMI)this.consumed+=1;else if(this.decodeMode===Df.Strict)return 0;return this.emitCodePoint(WEe(this.result),this.consumed),this.errors&&(e!==xr.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(e,n){const{decodeTree:i}=this;let r=i[this.treeIndex],s=(r&Uf.VALUE_LENGTH)>>14;for(;n<e.length;n++,this.excess++){const a=e.charCodeAt(n);if(this.treeIndex=KEe(i,r,this.treeIndex+Math.max(1,s),a),this.treeIndex<0)return this.result===0||this.decodeMode===Df.Attribute&&(s===0||XEe(a))?0:this.emitNotTerminatedNamedEntity();if(r=i[this.treeIndex],s=(r&Uf.VALUE_LENGTH)>>14,s!==0){if(a===xr.SEMI)return this.emitNamedEntityData(this.treeIndex,s,this.consumed+this.excess);this.decodeMode!==Df.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var e;const{result:n,decodeTree:i}=this,r=(i[n]&Uf.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,r,this.consumed),(e=this.errors)===null||e===void 0||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,n,i){const{decodeTree:r}=this;return this.emitCodePoint(n===1?r[e]&~Uf.VALUE_LENGTH:r[e+1],i),n===3&&this.emitCodePoint(r[e+2],i),i}end(){var e;switch(this.state){case pr.NamedEntity:return this.result!==0&&(this.decodeMode!==Df.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case pr.NumericDecimal:return this.emitNumericEntity(0,2);case pr.NumericHex:return this.emitNumericEntity(0,3);case pr.NumericStart:return(e=this.errors)===null||e===void 0||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case pr.EntityStart:return 0}}}function $Z(t){let e="";const n=new YEe(t,i=>e+=VEe(i));return function(r,s){let a=0,o=0;for(;(o=r.indexOf("&",o))>=0;){e+=r.slice(a,o),n.startEntity(s);const u=n.write(r,o+1);if(u<0){a=o+n.end();break}a=o+u,o=u===0?a+1:a}const l=e+r.slice(a);return e="",l}}function KEe(t,e,n,i){const r=(e&Uf.BRANCH_LENGTH)>>7,s=e&Uf.JUMP_TABLE;if(r===0)return s!==0&&i===s?n:-1;if(s){const l=i-s;return l<0||l>=r?-1:t[n+l]-1}let a=n,o=a+r-1;for(;a<=o;){const l=a+o>>>1,u=t[l];if(u<i)a=l+1;else if(u>i)o=l-1;else return t[l+r]}return-1}const ZEe=$Z($Ee);$Z(zEe);function zZ(t,e=Df.Legacy){return ZEe(t,e)}function QEe(t){return Object.prototype.toString.call(t)}function l4(t){return QEe(t)==="[object String]"}const JEe=Object.prototype.hasOwnProperty;function ewe(t,e){return JEe.call(t,e)}function qw(t){return Array.prototype.slice.call(arguments,1).forEach(function(n){if(!!n){if(typeof n!="object")throw new TypeError(n+"must be object");Object.keys(n).forEach(function(i){t[i]=n[i]})}}),t}function HZ(t,e,n){return[].concat(t.slice(0,e),n,t.slice(e+1))}function u4(t){return!(t>=55296&&t<=57343||t>=64976&&t<=65007||(t&65535)===65535||(t&65535)===65534||t>=0&&t<=8||t===11||t>=14&&t<=31||t>=127&&t<=159||t>1114111)}function fE(t){if(t>65535){t-=65536;const e=55296+(t>>10),n=56320+(t&1023);return String.fromCharCode(e,n)}return String.fromCharCode(t)}const VZ=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,twe=/&([a-z#][a-z0-9]{1,31});/gi,nwe=new RegExp(VZ.source+"|"+twe.source,"gi"),iwe=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function rwe(t,e){if(e.charCodeAt(0)===35&&iwe.test(e)){const i=e[1].toLowerCase()==="x"?parseInt(e.slice(2),16):parseInt(e.slice(1),10);return u4(i)?fE(i):t}const n=zZ(t);return n!==t?n:t}function swe(t){return t.indexOf("\\")<0?t:t.replace(VZ,"$1")}function Sg(t){return t.indexOf("\\")<0&&t.indexOf("&")<0?t:t.replace(nwe,function(e,n,i){return n||rwe(e,i)})}const awe=/[&<>"]/,owe=/[&<>"]/g,lwe={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function uwe(t){return lwe[t]}function vd(t){return awe.test(t)?t.replace(owe,uwe):t}const cwe=/[.?*+^$[\]\\(){}|-]/g;function fwe(t){return t.replace(cwe,"\\$&")}function oi(t){switch(t){case 9:case 32:return!0}return!1}function sb(t){if(t>=8192&&t<=8202)return!0;switch(t){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}function ab(t){return o4.test(t)||BZ.test(t)}function ob(t){switch(t){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 
29561:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function Xw(t){return t=t.trim().replace(/\s+/g," "),"\u1E9E".toLowerCase()==="\u1E7E"&&(t=t.replace(/ẞ/g,"\xDF")),t.toLowerCase().toUpperCase()}const dwe={mdurl:NEe,ucmicro:UEe},hwe=Object.freeze(Object.defineProperty({__proto__:null,lib:dwe,assign:qw,isString:l4,has:ewe,unescapeMd:swe,unescapeAll:Sg,isValidEntityCode:u4,fromCodePoint:fE,escapeHtml:vd,arrayReplaceAt:HZ,isSpace:oi,isWhiteSpace:sb,isMdAsciiPunct:ob,isPunctChar:ab,escapeRE:fwe,normalizeReference:Xw},Symbol.toStringTag,{value:"Module"}));function pwe(t,e,n){let i,r,s,a;const o=t.posMax,l=t.pos;for(t.pos=e+1,i=1;t.pos<o;){if(s=t.src.charCodeAt(t.pos),s===93&&(i--,i===0)){r=!0;break}if(a=t.pos,t.md.inline.skipToken(t),s===91){if(a===t.pos-1)i++;else if(n)return t.pos=l,-1}}let u=-1;return r&&(u=t.pos),t.pos=l,u}function mwe(t,e,n){let i,r=e;const s={ok:!1,pos:0,str:""};if(t.charCodeAt(r)===60){for(r++;r<n;){if(i=t.charCodeAt(r),i===10||i===60)return s;if(i===62)return s.pos=r+1,s.str=Sg(t.slice(e+1,r)),s.ok=!0,s;if(i===92&&r+1<n){r+=2;continue}r++}return s}let a=0;for(;r<n&&(i=t.charCodeAt(r),!(i===32||i<32||i===127));){if(i===92&&r+1<n){if(t.charCodeAt(r+1)===32)break;r+=2;continue}if(i===40&&(a++,a>32))return s;if(i===41){if(a===0)break;a--}r++}return e===r||a!==0||(s.str=Sg(t.slice(e,r)),s.pos=r,s.ok=!0),s}function gwe(t,e,n,i){let r,s=e;const a={ok:!1,can_continue:!1,pos:0,str:"",marker:0};if(i)a.str=i.str,a.marker=i.marker;else{if(s>=n)return a;let o=t.charCodeAt(s);if(o!==34&&o!==39&&o!==40)return a;e++,s++,o===40&&(o=41),a.marker=o}for(;s<n;){if(r=t.charCodeAt(s),r===a.marker)return a.pos=s+1,a.str+=Sg(t.slice(e,s)),a.ok=!0,a;if(r===40&&a.marker===41)return a;r===92&&s+1<n&&s++,s++}return a.can_continue=!0,a.str+=Sg(t.slice(e,s)),a}const _we=Object.freeze(Object.defineProperty({__proto__:null,parseLinkLabel:pwe,parseLinkDestination:mwe,parseLinkTitle:gwe},Symbol.toStringTag,{value:"Module"})),Su={};Su.code_inline=function(t,e,n,i,r){const s=t[e];return"<code"+r.renderAttrs(s)+">"+vd(s.content)+"</code>"};Su.code_block=function(t,e,n,i,r){const s=t[e];return"<pre"+r.renderAttrs(s)+"><code>"+vd(t[e].content)+`</code></pre>
296`};Su.fence=function(t,e,n,i,r){const s=t[e],a=s.info?Sg(s.info).trim():"";let o="",l="";if(a){const c=a.split(/(\s+)/g);o=c[0],l=c.slice(2).join("")}let u;if(n.highlight?u=n.highlight(s.content,o,l)||vd(s.content):u=vd(s.content),u.indexOf("<pre")===0)return u+`
297`;if(a){const c=s.attrIndex("class"),f=s.attrs?s.attrs.slice():[];c<0?f.push(["class",n.langPrefix+o]):(f[c]=f[c].slice(),f[c][1]+=" "+n.langPrefix+o);const h={attrs:f};return`<pre><code${r.renderAttrs(h)}>${u}</code></pre>
298`}return`<pre><code${r.renderAttrs(s)}>${u}</code></pre>
299`};Su.image=function(t,e,n,i,r){const s=t[e];return s.attrs[s.attrIndex("alt")][1]=r.renderInlineAsText(s.children,n,i),r.renderToken(t,e,n)};Su.hardbreak=function(t,e,n){return n.xhtmlOut?`<br />
300`:`<br>
301`};Su.softbreak=function(t,e,n){return n.breaks?n.xhtmlOut?`<br />
302`:`<br>
303`:`
304`};Su.text=function(t,e){return vd(t[e].content)};Su.html_block=function(t,e){return t[e].content};Su.html_inline=function(t,e){return t[e].content};function Xg(){this.rules=qw({},Su)}Xg.prototype.renderAttrs=function(e){let n,i,r;if(!e.attrs)return"";for(r="",n=0,i=e.attrs.length;n<i;n++)r+=" "+vd(e.attrs[n][0])+'="'+vd(e.attrs[n][1])+'"';return r};Xg.prototype.renderToken=function(e,n,i){const r=e[n];let s="";if(r.hidden)return"";r.block&&r.nesting!==-1&&n&&e[n-1].hidden&&(s+=`
305`),s+=(r.nesting===-1?"</":"<")+r.tag,s+=this.renderAttrs(r),r.nesting===0&&i.xhtmlOut&&(s+=" /");let a=!1;if(r.block&&(a=!0,r.nesting===1&&n+1<e.length)){const o=e[n+1];(o.type==="inline"||o.hidden||o.nesting===-1&&o.tag===r.tag)&&(a=!1)}return s+=a?`>
306`:">",s};Xg.prototype.renderInline=function(t,e,n){let i="";const r=this.rules;for(let s=0,a=t.length;s<a;s++){const o=t[s].type;typeof r[o]<"u"?i+=r[o](t,s,e,n,this):i+=this.renderToken(t,s,e)}return i};Xg.prototype.renderInlineAsText=function(t,e,n){let i="";for(let r=0,s=t.length;r<s;r++)switch(t[r].type){case"text":i+=t[r].content;break;case"image":i+=this.renderInlineAsText(t[r].children,e,n);break;case"html_inline":case"html_block":i+=t[r].content;break;case"softbreak":case"hardbreak":i+=`
307`;break}return i};Xg.prototype.render=function(t,e,n){let i="";const r=this.rules;for(let s=0,a=t.length;s<a;s++){const o=t[s].type;o==="inline"?i+=this.renderInline(t[s].children,e,n):typeof r[o]<"u"?i+=r[o](t,s,e,n,this):i+=this.renderToken(t,s,e,n)}return i};function ca(){this.__rules__=[],this.__cache__=null}ca.prototype.__find__=function(t){for(let e=0;e<this.__rules__.length;e++)if(this.__rules__[e].name===t)return e;return-1};ca.prototype.__compile__=function(){const t=this,e=[""];t.__rules__.forEach(function(n){!n.enabled||n.alt.forEach(function(i){e.indexOf(i)<0&&e.push(i)})}),t.__cache__={},e.forEach(function(n){t.__cache__[n]=[],t.__rules__.forEach(function(i){!i.enabled||n&&i.alt.indexOf(n)<0||t.__cache__[n].push(i.fn)})})};ca.prototype.at=function(t,e,n){const i=this.__find__(t),r=n||{};if(i===-1)throw new Error("Parser rule not found: "+t);this.__rules__[i].fn=e,this.__rules__[i].alt=r.alt||[],this.__cache__=null};ca.prototype.before=function(t,e,n,i){const r=this.__find__(t),s=i||{};if(r===-1)throw new Error("Parser rule not found: "+t);this.__rules__.splice(r,0,{name:e,enabled:!0,fn:n,alt:s.alt||[]}),this.__cache__=null};ca.prototype.after=function(t,e,n,i){const r=this.__find__(t),s=i||{};if(r===-1)throw new Error("Parser rule not found: "+t);this.__rules__.splice(r+1,0,{name:e,enabled:!0,fn:n,alt:s.alt||[]}),this.__cache__=null};ca.prototype.push=function(t,e,n){const i=n||{};this.__rules__.push({name:t,enabled:!0,fn:e,alt:i.alt||[]}),this.__cache__=null};ca.prototype.enable=function(t,e){Array.isArray(t)||(t=[t]);const n=[];return t.forEach(function(i){const r=this.__find__(i);
307if(r<0){if(e)return;throw new Error("Rules manager: invalid rule name "+i)}this.__rules__[r].enabled=!0,n.push(i)},this),this.__cache__=null,n};ca.prototype.enableOnly=function(t,e){Array.isArray(t)||(t=[t]),this.__rules__.forEach(function(n){n.enabled=!1}),this.enable(t,e)};ca.prototype.disable=function(t,e){Array.isArray(t)||(t=[t]);const n=[];return t.forEach(function(i){const r=this.__find__(i);if(r<0){if(e)return;throw new Error("Rules manager: invalid rule name "+i)}this.__rules__[r].enabled=!1,n.push(i)},this),this.__cache__=null,n};ca.prototype.getRules=function(t){return this.__cache__===null&&this.__compile__(),this.__cache__[t]||[]};function _l(t,e,n){this.type=t,this.tag=e,this.attrs=null,this.map=null,this.nesting=n,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}_l.prototype.attrIndex=function(e){if(!this.attrs)return-1;const n=this.attrs;for(let i=0,r=n.length;i<r;i++)if(n[i][0]===e)return i;return-1};_l.prototype.attrPush=function(e){this.attrs?this.attrs.push(e):this.attrs=[e]};_l.prototype.attrSet=function(e,n){const i=this.attrIndex(e),r=[e,n];i<0?this.attrPush(r):this.attrs[i]=r};_l.prototype.attrGet=function(e){const n=this.attrIndex(e);let i=null;return n>=0&&(i=this.attrs[n][1]),i};_l.prototype.attrJoin=function(e,n){const i=this.attrIndex(e);i<0?this.attrPush([e,n]):this.attrs[i][1]=this.attrs[i][1]+" "+n};function WZ(t,e,n){this.src=t,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=e}WZ.prototype.Token=_l;const vwe=/\r\n?|\n/g,ywe=/\0/g;function bwe(t){let e;e=t.src.replace(vwe,`
308`),e=e.replace(ywe,"\uFFFD"),t.src=e}function xwe(t){let e;t.inlineMode?(e=new t.Token("inline","",0),e.content=t.src,e.map=[0,1],e.children=[],t.tokens.push(e)):t.md.block.parse(t.src,t.md,t.env,t.tokens)}function Swe(t){const e=t.tokens;for(let n=0,i=e.length;n<i;n++){const r=e[n];r.type==="inline"&&t.md.inline.parse(r.content,t.md,t.env,r.children)}}function Twe(t){return/^<a[>\s]/i.test(t)}function Ewe(t){return/^<\/a\s*>/i.test(t)}function wwe(t){const e=t.tokens;if(!!t.md.options.linkify)for(let n=0,i=e.length;n<i;n++){if(e[n].type!=="inline"||!t.md.linkify.pretest(e[n].content))continue;let r=e[n].children,s=0;for(let a=r.length-1;a>=0;a--){const o=r[a];if(o.type==="link_close"){for(a--;r[a].level!==o.level&&r[a].type!=="link_open";)a--;continue}if(o.type==="html_inline"&&(Twe(o.content)&&s>0&&s--,Ewe(o.content)&&s++),!(s>0)&&o.type==="text"&&t.md.linkify.test(o.content)){const l=o.content;let u=t.md.linkify.match(l);const c=[];let f=o.level,h=0;u.length>0&&u[0].index===0&&a>0&&r[a-1].type==="text_special"&&(u=u.slice(1));for(let p=0;p<u.length;p++){const m=u[p].url,y=t.md.normalizeLink(m);if(!t.md.validateLink(y))continue;let v=u[p].text;u[p].schema?u[p].schema==="mailto:"&&!/^mailto:/i.test(v)?v=t.md.normalizeLinkText("mailto:"+v).replace(/^mailto:/,""):v=t.md.normalizeLinkText(v):v=t.md.normalizeLinkText("http://"+v).replace(/^http:\/\//,"");const _=u[p].index;if(_>h){const E=new t.Token("text","",0);E.content=l.slice(h,_),E.level=f,c.push(E)}const b=new t.Token("link_open","a",1);b.attrs=[["href",y]],b.level=f++,b.markup="linkify",b.info="auto",c.push(b);const x=new t.Token("text","",0);x.content=v,x.level=f,c.push(x);const T=new t.Token("link_close","a",-1);T.level=--f,T.markup="linkify",T.info="auto",c.push(T),h=u[p].lastIndex}if(h<l.length){const p=new t.Token("text","",0);p.content=l.slice(h),p.level=f,c.push(p)}e[n].children=r=HZ(r,a,c)}}}}const GZ=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,Cwe=/\((c|tm|r)\)/i,Awe=/\((c|tm|r)\)/ig,Mwe={c:"\xA9",r:"\xAE",tm:"\u2122"};function Dwe(t,e){return Mwe[e.toLowerCase()]}function Pwe(t){let e=0;for(let n=t.length-1;n>=0;n--){const i=t[n];i.type==="text"&&!e&&(i.content=i.content.replace(Awe,Dwe)),i.type==="link_open"&&i.info==="auto"&&e--,i.type==="link_close"&&i.info==="auto"&&e++}}function Owe(t){let e=0;for(let n=t.length-1;n>=0;n--){const i=t[n];i.type==="text"&&!e&&GZ.test(i.content)&&(i.content=i.content.replace(/\+-/g,"\xB1").replace(/\.{2,}/g,"\u2026").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1\u2014").replace(/(^|\s)--(?=\s|$)/mg,"$1\u2013").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1\u2013")),i.type==="link_open"&&i.info==="auto"&&e--,i.type==="link_close"&&i.info==="auto"&&e++}}function Rwe(t){let e;if(!!t.md.options.typographer)for(e=t.tokens.length-1;e>=0;e--)t.tokens[e].type==="inline"&&(Cwe.test(t.tokens[e].content)&&Pwe(t.tokens[e].children),GZ.test(t.tokens[e].content)&&Owe(t.tokens[e].children))}const kwe=/['"]/,NU=/['"]/g,BU="\u2019";function iS(t,e,n){return t.slice(0,e)+n+t.slice(e+1)}function Iwe(t,e){let n;const i=[];for(let r=0;r<t.length;r++){const s=t[r],a=t[r].level;for(n=i.length-1;n>=0&&!(i[n].level<=a);n--);if(i.length=n+1,s.type!=="text")continue;let o=s.content,l=0,u=o.length;e:for(;l<u;){NU.lastIndex=l;const c=NU.exec(o);if(!c)break;let f=!0,h=!0;l=c.index+1;const p=c[0]==="'";let m=32;if(c.index-1>
308=0)m=o.charCodeAt(c.index-1);else for(n=r-1;n>=0&&!(t[n].type==="softbreak"||t[n].type==="hardbreak");n--)if(!!t[n].content){m=t[n].content.charCodeAt(t[n].content.length-1);break}let y=32;if(l<u)y=o.charCodeAt(l);else for(n=r+1;n<t.length&&!(t[n].type==="softbreak"||t[n].type==="hardbreak");n++)if(!!t[n].content){y=t[n].content.charCodeAt(0);break}const v=ob(m)||ab(String.fromCharCode(m)),_=ob(y)||ab(String.fromCharCode(y)),b=sb(m),x=sb(y);if(x?f=!1:_&&(b||v||(f=!1)),b?h=!1:v&&(x||_||(h=!1)),y===34&&c[0]==='"'&&m>=48&&m<=57&&(h=f=!1),f&&h&&(f=v,h=_),!f&&!h){p&&(s.content=iS(s.content,c.index,BU));continue}if(h)for(n=i.length-1;n>=0;n--){let T=i[n];if(i[n].level<a)break;if(T.single===p&&i[n].level===a){T=i[n];let E,C;p?(E=e.md.options.quotes[2],C=e.md.options.quotes[3]):(E=e.md.options.quotes[0],C=e.md.options.quotes[1]),s.content=iS(s.content,c.index,C),t[T.token].content=iS(t[T.token].content,T.pos,E),l+=C.length-1,T.token===r&&(l+=E.length-1),o=s.content,u=o.length,i.length=n;continue e}}f?i.push({token:r,pos:c.index,single:p,level:a}):h&&p&&(s.content=iS(s.content,c.index,BU))}}}function Lwe(t){if(!!t.md.options.typographer)for(let e=t.tokens.length-1;e>=0;e--)t.tokens[e].type!=="inline"||!kwe.test(t.tokens[e].content)||Iwe(t.tokens[e].children,t)}function Fwe(t){let e,n;const i=t.tokens,r=i.length;for(let s=0;s<r;s++){if(i[s].type!=="inline")continue;const a=i[s].children,o=a.length;for(e=0;e<o;e++)a[e].type==="text_special"&&(a[e].type="text");for(e=n=0;e<o;e++)a[e].type==="text"&&e+1<o&&a[e+1].type==="text"?a[e+1].content=a[e].content+a[e+1].content:(e!==n&&(a[n]=a[e]),n++);e!==n&&(a.length=n)}}const fD=[["normalize",bwe],["block",xwe],["inline",Swe],["linkify",wwe],["replacements",Rwe],["smartquotes",Lwe],["text_join",Fwe]];function c4(){this.ruler=new ca;for(let t=0;t<fD.length;t++)this.ruler.push(fD[t][0],fD[t][1])}c4.prototype.process=function(t){const e=this.ruler.getRules("");for(let n=0,i=e.length;n<i;n++)e[n](t)};c4.prototype.State=WZ;function Tu(t,e,n,i){this.src=t,this.md=e,this.env=n,this.tokens=i,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0;const r=this.src;for(let s=0,a=0,o=0,l=0,u=r.length,c=!1;a<u;a++){const f=r.charCodeAt(a);if(!c)if(oi(f)){o++,f===9?l+=4-l%4:l++;continue}else c=!0;(f===10||a===u-1)&&(f!==10&&a++,this.bMarks.push(s),this.eMarks.push(a),this.tShift.push(o),this.sCount.push(l),this.bsCount.push(0),c=!1,o=0,l=0,s=a+1)}this.bMarks.push(r.length),this.eMarks.push(r.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}Tu.prototype.push=function(t,e,n){const i=new _l(t,e,n);return i.block=!0,n<0&&this.level--,i.level=this.level,n>0&&this.level++,this.tokens.push(i),i};Tu.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]};Tu.prototype.skipEmptyLines=function(e){for(let n=this.lineMax;e<n&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e};Tu.prototype.skipSpaces=function(e){for(let n=this.src.length;e<n;e++){const i=this.src.charCodeAt(e);if(!oi(i))break}return e};Tu.prototype.skipSpacesBack=function(e,n){if(e<=n)return e;for(;e>n;)if(!oi(this.src.charCodeAt(--e)))return e+1;return e};Tu.prototype.skipChars=function(e,n){for(let i=this.src.length;e<i&&this.src.charCodeAt(e)===n;e++);return e};Tu.prototype.skipCharsBack=function(e,n,i){if(e<=i)return e;for(;e>i;)if(n!==this.src.charCodeAt(--e))return e+1;return e};Tu.prototype.getLines=function(e,n,i,r){if(e>=n)return"";const s=new Array(n-e);for(let a=0,o=e;o<n;o++,a++){let l=0;const u=this.bMarks[o];let c=u,f;for(o+1<n||r?f=this.eMarks[o]+1:f=this.eMarks[o];c<f&&l<i;){const h=this.src.charCodeAt(c);if(oi(h))h===9?l+=4-(l+this.bsCount[o])%4:l++;else if(c-u<this.tShift[o])l++;else break;c++}l>i?s[a]=new Array(l-i+1).join(" ")+this.src.slice(c,f):s[a]=this.src.slice(c,f)}return s.join("")};Tu.prototype.Token=_l;const Nwe=65536;function dD(t,e){const n=t.bMarks[e]+t.tShift[e],i=t.eMarks[e];return t.src.slice(n,i)}function UU(t){const e=[],n=t.length;let i=0,r=t.charCodeAt(i),s=!1,a=0,o="";for(;i<n;)r===124&&(s?(o+=t.substring(a,i-1),a=i):(e.push(o+t.substring(a,i)),o="",a=i+1)),s=r===92,i++,r=t.charCodeAt(i);return e.push(o+t.substring(a)),e}function Bwe(t,e,n,i){if(e+2>n)return!1;let r=e+1;if(t.sCount[r]<t.blkIndent||t.sCount[r]-t.blkIndent>=4)return!1;let s=t.bMarks[r]+t.tShift[r];if(s>=t.eMarks[r])return!1;
vendor: 4,715 bytes, lines 308-309
308const a=t.src.charCodeAt(s++);if(a!==124&&a!==45&&a!==58||s>=t.eMarks[r])return!1;const o=t.src.charCodeAt(s++);if(o!==124&&o!==45&&o!==58&&!oi(o)||a===45&&oi(o))return!1;for(;s<t.eMarks[r];){const T=t.src.charCodeAt(s);if(T!==124&&T!==45&&T!==58&&!oi(T))return!1;s++}let l=dD(t,e+1),u=l.split("|");const c=[];for(let T=0;T<u.length;T++){const E=u[T].trim();if(!E){if(T===0||T===u.length-1)continue;return!1}if(!/^:?-+:?$/.test(E))return!1;E.charCodeAt(E.length-1)===58?c.push(E.charCodeAt(0)===58?"center":"right"):E.charCodeAt(0)===58?c.push("left"):c.push("")}if(l=dD(t,e).trim(),l.indexOf("|")===-1||t.sCount[e]-t.blkIndent>=4)return!1;u=UU(l),u.length&&u[0]===""&&u.shift(),u.length&&u[u.length-1]===""&&u.pop();const f=u.length;if(f===0||f!==c.length)return!1;if(i)return!0;const h=t.parentType;t.parentType="table";const p=t.md.block.ruler.getRules("blockquote"),m=t.push("table_open","table",1),y=[e,0];m.map=y;const v=t.push("thead_open","thead",1);v.map=[e,e+1];const _=t.push("tr_open","tr",1);_.map=[e,e+1];for(let T=0;T<u.length;T++){const E=t.push("th_open","th",1);c[T]&&(E.attrs=[["style","text-align:"+c[T]]]);const C=t.push("inline","",0);C.content=u[T].trim(),C.children=[],t.push("th_close","th",-1)}t.push("tr_close","tr",-1),t.push("thead_close","thead",-1);let b,x=0;for(r=e+2;r<n&&!(t.sCount[r]<t.blkIndent);r++){let T=!1;for(let C=0,D=p.length;C<D;C++)if(p[C](t,r,n,!0)){T=!0;break}if(T||(l=dD(t,r).trim(),!l)||t.sCount[r]-t.blkIndent>=4||(u=UU(l),u.length&&u[0]===""&&u.shift(),u.length&&u[u.length-1]===""&&u.pop(),x+=f-u.length,x>Nwe))break;if(r===e+2){const C=t.push("tbody_open","tbody",1);C.map=b=[e+2,0]}const E=t.push("tr_open","tr",1);E.map=[r,r+1];for(let C=0;C<f;C++){const D=t.push("td_open","td",1);c[C]&&(D.attrs=[["style","text-align:"+c[C]]]);const R=t.push("inline","",0);R.content=u[C]?u[C].trim():"",R.children=[],t.push("td_close","td",-1)}t.push("tr_close","tr",-1)}return b&&(t.push("tbody_close","tbody",-1),b[1]=r),t.push("table_close","table",-1),y[1]=r,t.parentType=h,t.line=r,!0}function Uwe(t,e,n){if(t.sCount[e]-t.blkIndent<4)return!1;let i=e+1,r=i;for(;i<n;){if(t.isEmpty(i)){i++;continue}if(t.sCount[i]-t.blkIndent>=4){i++,r=i;continue}break}t.line=r;const s=t.push("code_block","code",0);return s.content=t.getLines(e,r,4+t.blkIndent,!1)+`
309`,s.map=[e,t.line],!0}function $we(t,e,n,i){let r=t.bMarks[e]+t.tShift[e],s=t.eMarks[e];if(t.sCount[e]-t.blkIndent>=4||r+3>s)return!1;const a=t.src.charCodeAt(r);if(a!==126&&a!==96)return!1;let o=r;r=t.skipChars(r,a);let l=r-o;if(l<3)return!1;const u=t.src.slice(o,r),c=t.src.slice(r,s);if(a===96&&c.indexOf(String.fromCharCode(a))>=0)return!1;if(i)return!0;let f=e,h=!1;for(;f++,!(f>=n||(r=o=t.bMarks[f]+t.tShift[f],s=t.eMarks[f],r<s&&t.sCount[f]<t.blkIndent));)if(t.src.charCodeAt(r)===a&&!(t.sCount[f]-t.blkIndent>=4)&&(r=t.skipChars(r,a),!(r-o<l)&&(r=t.skipSpaces(r),!(r<s)))){h=!0;break}l=t.sCount[e],t.line=f+(h?1:0);const p=t.push("fence","code",0);return p.info=c,p.content=t.getLines(e+1,f,l,!0),p.markup=u,p.map=[e,t.line],!0}function zwe(t,e,n,i){let r=t.bMarks[e]+t.tShift[e],s=t.eMarks[e];const a=t.lineMax;if(t.sCount[e]-t.blkIndent>=4||t.src.charCodeAt(r)!==62)return!1;if(i)return!0;const o=[],l=[],u=[],c=[],f=t.md.block.ruler.getRules("blockquote"),h=t.parentType;t.parentType="blockquote";let p=!1,m;for(m=e;m<n;m++){const x=t.sCount[m]<t.blkIndent;if(r=t.bMarks[m]+t.tShift[m],s=t.eMarks[m],r>=s)break;if(t.src.charCodeAt(r++)===62&&!x){let E=t.sCount[m]+1,C,D;t.src.charCodeAt(r)===32?(r++,E++,D=!1,C=!0):t.src.charCodeAt(r)===9?(C=!0,(t.bsCount[m]+E)%4===3?(r++,E++,D=!1):D=!0):C=!1;let R=E;for(o.push(t.bMarks[m]),t.bMarks[m]=r;r<s;){const A=t.src.charCodeAt(r);if(oi(A))A===9?R+=4-(R+t.bsCount[m]+(D?1:0))%4:R++;else break;r++}p=r>=s,l.push(t.bsCount[m]),t.bsCount[m]=t.sCount[m]+1+(C?1:0),u.push(t.sCount[m]),t.sCount[m]=R-E,c.push(t.tShift[m]),t.tShift[m]=r-t.bMarks[m];continue}if(p)break;let T=!1;for(let E=0,C=f.length;E<C;E++)if(f[E](t,m,n,!0)){T=!0;break}if(T){t.lineMax=m,t.blkIndent!==0&&(o.push(t.bMarks[m]),l.push(t.bsCount[m]),c.push(t.tShift[m]),u.push(t.sCount[m]),t.sCount[m]-=t.blkIndent);break}o.push(t.bMarks[m]),l.push(t.bsCount[m]),c.push(t.tShift[m]),u.push(t.sCount[m]),t.sCount[m]=-1}const y=t.blkIndent;t.blkIndent=0;const v=t.push("blockquote_open","blockquote",1);v.markup=">";const _=[e,0];v.map=_,t.md.block.tokenize(t,e,m);const b=t.push("blockquote_close","blockquote",-1);b.markup=">",t.lineMax=a,t.parentType=h,_[1]=t.line;for(let x=0;x<c.length;x++)t.bMarks[x+e]=o[x],t.tShift[x+e]=c[x],t.sCount[x+e]=u[x],t.bsCount[x+e]=l[x];return t.blkIndent=y,!0}function Hwe(t,e,n,i){const r=t.eMarks[e];if(t.sCount[e]-t.blkIndent>=4)return!1;let s=t.bMarks[e]+t.tShift[e];
309const a=t.src.charCodeAt(s++);if(a!==42&&a!==45&&a!==95)return!1;let o=1;for(;s<r;){const u=t.src.charCodeAt(s++);if(u!==a&&!oi(u))return!1;u===a&&o++}if(o<3)return!1;if(i)return!0;t.line=e+1;const l=t.push("hr","hr",0);return l.map=[e,t.line],l.markup=Array(o+1).join(String.fromCharCode(a)),!0}function $U(t,e){const n=t.eMarks[e];let i=t.bMarks[e]+t.tShift[e];const r=t.src.charCodeAt(i++);if(r!==42&&r!==45&&r!==43)return-1;if(i<n){const s=t.src.charCodeAt(i);if(!oi(s))return-1}return i}function zU(t,e){const n=t.bMarks[e]+t.tShift[e],i=t.eMarks[e];let r=n;if(r+1>=i)return-1;let s=t.src.charCodeAt(r++);if(s<48||s>57)return-1;for(;;){if(r>=i)return-1;if(s=t.src.charCodeAt(r++),s>=48&&s<=57){if(r-n>=10)return-1;continue}if(s===41||s===46)break;return-1}return r<i&&(s=t.src.charCodeAt(r),!oi(s))?-1:r}function Vwe(t,e){const n=t.level+2;for(let i=e+2,r=t.tokens.length-2;i<r;i++)t.tokens[i].level===n&&t.tokens[i].type==="paragraph_open"&&(t.tokens[i+2].hidden=!0,t.tokens[i].hidden=!0,i+=2)}function Wwe(t,e,n,i){let r,s,a,o,l=e,u=!0;if(t.sCount[l]-t.blkIndent>=4||t.listIndent>=0&&t.sCount[l]-t.listIndent>=4&&t.sCount[l]<t.blkIndent)return!1;let c=!1;i&&t.parentType==="paragraph"&&t.sCount[l]>=t.blkIndent&&(c=!0);let f,h,p;if((p=zU(t,l))>=0){if(f=!0,a=t.bMarks[l]+t.tShift[l],h=Number(t.src.slice(a,p-1)),c&&h!==1)return!1}else if((p=$U(t,l))>=0)f=!1;else return!1;if(c&&t.skipSpaces(p)>=t.eMarks[l])return!1;if(i)return!0;const m=t.src.charCodeAt(p-1),y=t.tokens.length;f?(o=t.push("ordered_list_open","ol",1),h!==1&&(o.attrs=[["start",h]])):o=t.push("bullet_list_open","ul",1);const v=[l,0];o.map=v,o.markup=String.fromCharCode(m);let _=!1;const b=t.md.block.ruler.getRules("list"),x=t.parentType;for(t.parentType="list";l<n;){s=p,r=t.eMarks[l];const T=t.sCount[l]+p-(t.bMarks[l]+t.tShift[l]);let E=T;for(;s<r;){const G=t.src.charCodeAt(s);if(G===9)E+=4-(E+t.bsCount[l])%4;else if(G===32)E++;else break;s++}const C=s;let D;C>=r?D=1:D=E-T,D>4&&(D=1);const R=T+D;o=t.push("list_item_open","li",1),o.markup=String.fromCharCode(m);const A=[l,0];o.map=A,f&&(o.info=t.src.slice(a,p-1));const k=t.tight,F=t.tShift[l],N=t.sCount[l],U=t.listIndent;if(t.listIndent=t.blkIndent,t.blkIndent=R,t.tight=!0,t.tShift[l]=C-t.bMarks[l],t.sCount[l]=E,C>=r&&t.isEmpty(l+1)?t.line=Math.min(t.line+2,n):t.md.block.tokenize(t,l,n,!0),(!t.tight||_)&&(u=!1),_=t.line-l>1&&t.isEmpty(t.line-1),t.blkIndent=t.listIndent,t.listIndent=U,t.tShift[l]=F,t.sCount[l]=N,t.tight=k,o=t.push("list_item_close","li",-1),o.markup=String.fromCharCode(m),l=t.line,A[1]=l,l>=n||t.sCount[l]<t.blkIndent||t.sCount[l]-t.blkIndent>=4)break;let $=!1;for(let G=0,Y=b.length;G<Y;G++)if(b[G](t,l,n,!0)){$=!0;break}if($)break;if(f){if(p=zU(t,l),p<0)break;a=t.bMarks[l]+t.tShift[l]}else if(p=$U(t,l),p<0)break;if(m!==t.src.charCodeAt(p-1))break}return f?o=t.push("ordered_list_close","ol",-1):o=t.push("bullet_list_close","ul",-1),o.markup=String.fromCharCode(m),v[1]=l,t.line=l,t.parentType=x,u&&Vwe(t,y),!0}function Gwe(t,e,n,i){let r=t.bMarks[e]+t.tShift[e],s=t.eMarks[e],a=e+1;if(t.sCount[e]-t.blkIndent>=4||t.src.charCodeAt(r)!==91)return!1;function o(b){const x=t.lineMax;if(b>=x||t.isEmpty(b))return null;let T=!1;if(t.sCount[b]-t.blkIndent>3&&(T=!0),t.sCount[b]<0&&(T=!0),!T){const D=t.md.block.ruler.getRules("reference"),R=t.parentType;t.parentType="reference";let A=!1;for(let k=0,F=D.length;k<F;k++)if(D[k](t,b,x,!0)){A=!0;break}if(t.parentType=R,A)return null}const E=t.bMarks[b]+t.tShift[b],C=t.eMarks[b];return t.src.slice(E,C+1)}let l=t.src.slice(r,s+1);s=l.length;let u=-1;for(r=1;r<s;r++){const b=l.charCodeAt(r);if(b===91)return!1;if(b===93){u=r;break}else if(b===10){const x=o(a);x!==null&&(l+=x,s=l.length,a++)}else if(b===92&&(r++,r<s&&l.charCodeAt(r)===10)){const x=o(a);x!==null&&(l+=x,s=l.length,a++)}}if(u<0||l.charCodeAt(u+1)!==58)return!1;for(r=u+2;r<s;r++){const b=l.charCodeAt(r);if(b===10){const x=o(a);x!==null&&(l+=x,s=l.length,a++)}else if(!oi(b))break}const c=t.md.helpers.parseLinkDestination(l,r,s);if(!c.ok)return!1;const f=t.md.normalizeLink(c.str);if(!t.md.validateLink(f))return!1;r=c.pos;const h=r,p=a,m=r;
309for(;r<s;r++){const b=l.charCodeAt(r);if(b===10){const x=o(a);x!==null&&(l+=x,s=l.length,a++)}else if(!oi(b))break}let y=t.md.helpers.parseLinkTitle(l,r,s);for(;y.can_continue;){const b=o(a);if(b===null)break;l+=b,r=s,s=l.length,a++,y=t.md.helpers.parseLinkTitle(l,r,s,y)}let v;for(r<s&&m!==r&&y.ok?(v=y.str,r=y.pos):(v="",r=h,a=p);r<s;){const b=l.charCodeAt(r);if(!oi(b))break;r++}if(r<s&&l.charCodeAt(r)!==10&&v)for(v="",r=h,a=p;r<s;){const b=l.charCodeAt(r);if(!oi(b))break;r++}if(r<s&&l.charCodeAt(r)!==10)return!1;const _=Xw(l.slice(1,u));return _?(i||(typeof t.env.references>"u"&&(t.env.references={}),typeof t.env.references[_]>"u"&&(t.env.references[_]={title:v,href:f}),t.line=a),!0):!1}const jwe=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],qwe="[a-zA-Z_:][a-zA-Z0-9:._-]*",Xwe="[^\"'=<>`\\x00-\\x20]+",Ywe="'[^']*'",Kwe='"[^"]*"',Zwe="(?:"+Xwe+"|"+Ywe+"|"+Kwe+")",Qwe="(?:\\s+"+qwe+"(?:\\s*=\\s*"+Zwe+")?)",jZ="<[A-Za-z][A-Za-z0-9\\-]*"+Qwe+"*\\s*\\/?>",qZ="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",Jwe="<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->",eCe="<[?][\\s\\S]*?[?]>",tCe="<![A-Za-z][^>]*>",nCe="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",iCe=new RegExp("^(?:"+jZ+"|"+qZ+"|"+Jwe+"|"+eCe+"|"+tCe+"|"+nCe+")"),rCe=new RegExp("^(?:"+jZ+"|"+qZ+")"),p0=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+jwe.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(rCe.source+"\\s*$"),/^$/,!1]];function sCe(t,e,n,i){let r=t.bMarks[e]+t.tShift[e],s=t.eMarks[e];if(t.sCount[e]-t.blkIndent>=4||!t.md.options.html||t.src.charCodeAt(r)!==60)return!1;let a=t.src.slice(r,s),o=0;for(;o<p0.length&&!p0[o][0].test(a);o++);if(o===p0.length)return!1;if(i)return p0[o][2];let l=e+1;if(!p0[o][1].test(a)){for(;l<n&&!(t.sCount[l]<t.blkIndent);l++)if(r=t.bMarks[l]+t.tShift[l],s=t.eMarks[l],a=t.src.slice(r,s),p0[o][1].test(a)){a.length!==0&&l++;break}}t.line=l;const u=t.push("html_block","",0);return u.map=[e,l],u.content=t.getLines(e,l,t.blkIndent,!0),!0}function aCe(t,e,n,i){let r=t.bMarks[e]+t.tShift[e],s=t.eMarks[e];if(t.sCount[e]-t.blkIndent>=4)return!1;let a=t.src.charCodeAt(r);if(a!==35||r>=s)return!1;let o=1;for(a=t.src.charCodeAt(++r);a===35&&r<s&&o<=6;)o++,a=t.src.charCodeAt(++r);if(o>6||r<s&&!oi(a))return!1;if(i)return!0;s=t.skipSpacesBack(s,r);const l=t.skipCharsBack(s,35,r);l>r&&oi(t.src.charCodeAt(l-1))&&(s=l),t.line=e+1;const u=t.push("heading_open","h"+String(o),1);u.markup="########".slice(0,o),u.map=[e,t.line];const c=t.push("inline","",0);c.content=t.src.slice(r,s).trim(),c.map=[e,t.line],c.children=[];const f=t.push("heading_close","h"+String(o),-1);return f.markup="########".slice(0,o),!0}function oCe(t,e,n){const i=t.md.block.ruler.getRules("paragraph");if(t.sCount[e]-t.blkIndent>=4)return!1;const r=t.parentType;t.parentType="paragraph";let s=0,a,o=e+1;for(;o<n&&!t.isEmpty(o);o++){if(t.sCount[o]-t.blkIndent>3)continue;if(t.sCount[o]>=t.blkIndent){let p=t.bMarks[o]+t.tShift[o];const m=t.eMarks[o];if(p<m&&(a=t.src.charCodeAt(p),(a===45||a===61)&&(p=t.skipChars(p,a),p=t.skipSpaces(p),p>=m))){s=a===61?1:2;break}}if(t.sCount[o]<0)continue;let h=!1;for(let p=0,m=i.length;p<m;p++)if(i[p](t,o,n,!0)){h=!0;break}if(h)break}if(!s)return!1;const l=t.getLines(e,o,t.blkIndent,!1).trim();t.line=o+1;const u=t.push("heading_open","h"+String(s),1);u.markup=String.fromCharCode(a),u.map=[e,t.line];const c=t.push("inline","",0);c.content=l,c.map=[e,t.line-1],c.children=[];const f=t.push("heading_close","h"+String(s),-1);return f.markup=String.fromCharCode(a),t.parentType=r,!0}function lCe(t,e,n){const i=t.md.block.ruler.getRules("paragraph"),r=t.parentType;let s=e+1;for(t.parentType="paragraph";s<n&&!t.isEmpty(s);s++){if(t.sCount[s]-t.blkIndent>3||t.sCount[s]<0)continue;let u=!1;for(let c=0,f=i.length;c<f;c++)if(i[c](t,s,n,!0)){u=!0;break}if(u)break}const a=t.getLines(e,s,t.blkIndent,!1).trim();t.line=s;const o=t.push("paragraph_open","p",1);o.map=[e,t.line];const l=t.push("inline","",0);return l.content=a,l.map=[e,t.line],l.children=[],t.push("paragraph_close","p",-1),t.parentType=r,!0}const rS=[["table",Bwe,["paragraph","reference"]],["code",Uwe],["fence",$we,["paragraph","reference","blockquote","list"]],["blockquote",zwe,["paragraph","reference","blockquote","list"]],["hr",Hwe,["paragraph","reference","blockquote","list"]],["list",Wwe,["paragraph","reference","blockquote"]],["reference",Gwe],["html_block",sCe,["paragraph","reference","blockquote"]],["heading",aCe,["paragraph","reference","blockquote"]],["lheading",oCe],["paragraph",lCe]];function Yw(){this.ruler=new ca;for(let t=0;t<rS.length;t++)this.ruler.push(rS[t][0],rS[t][1],{alt:(rS[t][2]||[]).slice()})}Yw.prototype.tokenize=function(t,e,n){const i=this.ruler.getRules(""),r=i.length,s=t.md.options.maxNesting;let a=e,o=!1;for(;a<n&&(t.line=a=t.skipEmptyLines(a),!(a>=n||t.sCount[a]<t.blkIndent));){if(t.level>=s){t.line=n;break}const l=t.line;let u=!1;for(let c=0;c<r;c++)if(u=i[c](t,a,n,!1),u){if(l>=t.line)throw new Error("block rule didn't increment state.line");break}if(!u)throw new Error("none of the block rules matched");t.tight=!o,t.isEmpty(t.line-1)&&(o=!0),a=t.line,a<n&&t.isEmpty(a)&&(o=!0,a++,t.line=a)}};Yw.prototype.parse=function(t,e,n,i){if(!t)return;const r=new this.State(t,e,n,i);this.tokenize(r,r.line,r.lineMax)};Yw.prototype.State=Tu;function Kb(t,e,n,i){this.src=t,this.env=n,this.md=e,this.tokens=i,this.tokens_meta=Array(i.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0}Kb.prototype.pushPending=function(){const t=new _l("text","",0);return t.content=this.pending,t.level=this.pendingLevel,this.tokens.push(t),this.pending="",t};Kb.prototype.push=function(t,e,n){this.pending&&this.pushPending();const i=new _l(t,e,n);let r=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),i.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],r={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(i),this.tokens_meta.push(r),i};Kb.prototype.scanDelims=function(t,e){const n=this.posMax,i=this.src.charCo
309deAt(t),r=t>0?this.src.charCodeAt(t-1):32;let s=t;for(;s<n&&this.src.charCodeAt(s)===i;)s++;const a=s-t,o=s<n?this.src.charCodeAt(s):32,l=ob(r)||ab(String.fromCharCode(r)),u=ob(o)||ab(String.fromCharCode(o)),c=sb(r),f=sb(o),h=!f&&(!u||c||l),p=!c&&(!l||f||u);return{can_open:h&&(e||!p||l),can_close:p&&(e||!h||u),length:a}};Kb.prototype.Token=_l;function uCe(t){switch(t){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}function cCe(t,e){let n=t.pos;for(;n<t.posMax&&!uCe(t.src.charCodeAt(n));)n++;return n===t.pos?!1:(e||(t.pending+=t.src.slice(t.pos,n)),t.pos=n,!0)}const fCe=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;function dCe(t,e){if(!t.md.options.linkify||t.linkLevel>0)return!1;const n=t.pos,i=t.posMax;if(n+3>i||t.src.charCodeAt(n)!==58||t.src.charCodeAt(n+1)!==47||t.src.charCodeAt(n+2)!==47)return!1;const r=t.pending.match(fCe);if(!r)return!1;const s=r[1],a=t.md.linkify.matchAtStart(t.src.slice(n-s.length));if(!a)return!1;let o=a.url;if(o.length<=s.length)return!1;let l=o.length;for(;l>0&&o.charCodeAt(l-1)===42;)l--;l!==o.length&&(o=o.slice(0,l));const u=t.md.normalizeLink(o);if(!t.md.validateLink(u))return!1;if(!e){t.pending=t.pending.slice(0,-s.length);const c=t.push("link_open","a",1);c.attrs=[["href",u]],c.markup="linkify",c.info="auto";const f=t.push("text","",0);f.content=t.md.normalizeLinkText(o);const h=t.push("link_close","a",-1);h.markup="linkify",h.info="auto"}return t.pos+=o.length-s.length,!0}function hCe(t,e){let n=t.pos;if(t.src.charCodeAt(n)!==10)return!1;const i=t.pending.length-1,r=t.posMax;if(!e)if(i>=0&&t.pending.charCodeAt(i)===32)if(i>=1&&t.pending.charCodeAt(i-1)===32){let s=i-1;for(;s>=1&&t.pending.charCodeAt(s-1)===32;)s--;t.pending=t.pending.slice(0,s),t.push("hardbreak","br",0)}else t.pending=t.pending.slice(0,-1),t.push("softbreak","br",0);else t.push("softbreak","br",0);for(n++;n<r&&oi(t.src.charCodeAt(n));)n++;
309return t.pos=n,!0}const f4=[];for(let t=0;t<256;t++)f4.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(t){f4[t.charCodeAt(0)]=1});function pCe(t,e){let n=t.pos;const i=t.posMax;if(t.src.charCodeAt(n)!==92||(n++,n>=i))return!1;let r=t.src.charCodeAt(n);if(r===10){for(e||t.push("hardbreak","br",0),n++;n<i&&(r=t.src.charCodeAt(n),!!oi(r));)n++;return t.pos=n,!0}let s=t.src[n];if(r>=55296&&r<=56319&&n+1<i){const o=t.src.charCodeAt(n+1);o>=56320&&o<=57343&&(s+=t.src[n+1],n++)}const a="\\"+s;if(!e){const o=t.push("text_special","",0);r<256&&f4[r]!==0?o.content=s:o.content=a,o.markup=a,o.info="escape"}return t.pos=n+1,!0}function mCe(t,e){let n=t.pos;if(t.src.charCodeAt(n)!==96)return!1;const r=n;n++;const s=t.posMax;for(;n<s&&t.src.charCodeAt(n)===96;)n++;const a=t.src.slice(r,n),o=a.length;if(t.backticksScanned&&(t.backticks[o]||0)<=r)return e||(t.pending+=a),t.pos+=o,!0;let l=n,u;for(;(u=t.src.indexOf("`",l))!==-1;){for(l=u+1;l<s&&t.src.charCodeAt(l)===96;)l++;const c=l-u;if(c===o){if(!e){const f=t.push("code_inline","code",0);f.markup=a,f.content=t.src.slice(n,u).replace(/\n/g," ").replace(/^ (.+) $/,"$1")}return t.pos=l,!0}t.backticks[c]=u}return t.backticksScanned=!0,e||(t.pending+=a),t.pos+=o,!0}function gCe(t,e){const n=t.pos,i=t.src.charCodeAt(n);if(e||i!==126)return!1;const r=t.scanDelims(t.pos,!0);let s=r.length;const a=String.fromCharCode(i);if(s<2)return!1;let o;s%2&&(o=t.push("text","",0),o.content=a,s--);for(let l=0;l<s;l+=2)o=t.push("text","",0),o.content=a+a,t.delimiters.push({marker:i,length:0,token:t.tokens.length-1,end:-1,open:r.can_open,close:r.can_close});return t.pos+=r.length,!0}function HU(t,e){let n;const i=[],r=e.length;for(let s=0;s<r;s++){const a=e[s];if(a.marker!==126||a.end===-1)continue;const o=e[a.end];n=t.tokens[a.token],n.type="s_open",n.tag="s",n.nesting=1,n.markup="~~",n.content="",n=t.tokens[o.token],n.type="s_close",n.tag="s",n.nesting=-1,n.markup="~~",n.content="",t.tokens[o.token-1].type==="text"&&t.tokens[o.token-1].content==="~"&&i.push(o.token-1)}for(;i.length;){const s=i.pop();let a=s+1;for(;a<t.tokens.length&&t.tokens[a].type==="s_close";)a++;a--,s!==a&&(n=t.tokens[a],t.tokens[a]=t.tokens[s],t.tokens[s]=n)}}function _Ce(t){const e=t.tokens_meta,n=t.tokens_meta.length;HU(t,t.delimiters);for(let i=0;i<n;i++)e[i]&&e[i].delimiters&&HU(t,e[i].delimiters)}const XZ={tokenize:gCe,postProcess:_Ce};function vCe(t,e){const n=t.pos,i=t.src.charCodeAt(n);if(e||i!==95&&i!==42)return!1;const r=t.scanDelims(t.pos,i===42);for(let s=0;s<r.length;s++){const a=t.push("text","",0);a.content=String.fromCharCode(i),t.delimiters.push({marker:i,length:r.length,token:t.tokens.length-1,end:-1,open:r.can_open,close:r.can_close})}return t.pos+=r.length,!0}function VU(t,e){const n=e.length;for(let i=n-1;i>=0;i--){const r=e[i];if(r.marker!==95&&r.marker!==42||r.end===-1)continue;const s=e[r.end],a=i>0&&e[i-1].end===r.end+1&&e[i-1].marker===r.marker&&e[i-1].token===r.token-1&&e[r.end+1].token===s.token+1,o=String.fromCharCode(r.marker),l=t.tokens[r.token];l.type=a?"strong_open":"em_open",l.tag=a?"strong":"em",l.nesting=1,l.markup=a?o+o:o,l.content="";const u=t.tokens[s.token];u.type=a?"strong_close":"em_close",u.tag=a?"strong":"em",u.nesting=-1,u.markup=a?o+o:o,u.content="",a&&(t.tokens[e[i-1].token].content="",t.tokens[e[r.end+1].token].content="",i--)}}function yCe(t){const e=t.tokens_meta,n=t.tokens_meta.length;VU(t,t.delimiters);for(let i=0;i<n;i++)e[i]&&e[i].delimiters&&VU(t,e[i].delimiters)}const YZ={tokenize:vCe,postProcess:yCe};function bCe(t,e){let n,i,r,s,a="",o="",l=t.pos,u=!0;if(t.src.charCodeAt(t.pos)!==91)return!1;const c=t.pos,f=t.posMax,h=t.pos+1,p=t.md.helpers.parseLinkLabel(t,t.pos,!0);if(p<0)return!1;let m=p+1;if(m<f&&t.src.charCodeAt(m)===40){for(u=!1,m++;m<f&&(n=t.src.charCodeAt(m),!(!oi(n)&&n!==10));m++);if(m>=f)return!1;if(l=m,r=t.md.helpers.parseLinkDestination(t.src,m,t.posMax),r.ok){for(a=t.md.normalizeLink(r.str),t.md.validateLink(a)?m=r.pos:a="",l=m;m<f&&(n=t.src.charCodeAt(m),!(!oi(n)&&n!==10));m++);if(r=t.md.helpers.parseLinkTitle(t.src,m,t.posMax),m<f&&l!==m&&r.ok)for(o=r.str,m=r.pos;
309m<f&&(n=t.src.charCodeAt(m),!(!oi(n)&&n!==10));m++);}(m>=f||t.src.charCodeAt(m)!==41)&&(u=!0),m++}if(u){if(typeof t.env.references>"u")return!1;if(m<f&&t.src.charCodeAt(m)===91?(l=m+1,m=t.md.helpers.parseLinkLabel(t,m),m>=0?i=t.src.slice(l,m++):m=p+1):m=p+1,i||(i=t.src.slice(h,p)),s=t.env.references[Xw(i)],!s)return t.pos=c,!1;a=s.href,o=s.title}if(!e){t.pos=h,t.posMax=p;const y=t.push("link_open","a",1),v=[["href",a]];y.attrs=v,o&&v.push(["title",o]),t.linkLevel++,t.md.inline.tokenize(t),t.linkLevel--,t.push("link_close","a",-1)}return t.pos=m,t.posMax=f,!0}function xCe(t,e){let n,i,r,s,a,o,l,u,c="";const f=t.pos,h=t.posMax;if(t.src.charCodeAt(t.pos)!==33||t.src.charCodeAt(t.pos+1)!==91)return!1;const p=t.pos+2,m=t.md.helpers.parseLinkLabel(t,t.pos+1,!1);if(m<0)return!1;if(s=m+1,s<h&&t.src.charCodeAt(s)===40){for(s++;s<h&&(n=t.src.charCodeAt(s),!(!oi(n)&&n!==10));s++);if(s>=h)return!1;for(u=s,o=t.md.helpers.parseLinkDestination(t.src,s,t.posMax),o.ok&&(c=t.md.normalizeLink(o.str),t.md.validateLink(c)?s=o.pos:c=""),u=s;s<h&&(n=t.src.charCodeAt(s),!(!oi(n)&&n!==10));s++);if(o=t.md.helpers.parseLinkTitle(t.src,s,t.posMax),s<h&&u!==s&&o.ok)for(l=o.str,s=o.pos;s<h&&(n=t.src.charCodeAt(s),!(!oi(n)&&n!==10));s++);else l="";if(s>=h||t.src.charCodeAt(s)!==41)return t.pos=f,!1;s++}else{if(typeof t.env.references>"u")return!1;if(s<h&&t.src.charCodeAt(s)===91?(u=s+1,s=t.md.helpers.parseLinkLabel(t,s),s>=0?r=t.src.slice(u,s++):s=m+1):s=m+1,r||(r=t.src.slice(p,m)),a=t.env.references[Xw(r)],!a)return t.pos=f,!1;c=a.href,l=a.title}if(!e){i=t.src.slice(p,m);const y=[];t.md.inline.parse(i,t.md,t.env,y);const v=t.push("image","img",0),_=[["src",c],["alt",""]];v.attrs=_,v.children=y,v.content=i,l&&_.push(["title",l])}return t.pos=s,t.posMax=h,!0}const SCe=/^([a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,TCe=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;function ECe(t,e){let n=t.pos;if(t.src.charCodeAt(n)!==60)return!1;const i=t.pos,r=t.posMax;for(;;){if(++n>=r)return!1;const a=t.src.charCodeAt(n);if(a===60)return!1;if(a===62)break}const s=t.src.slice(i+1,n);if(TCe.test(s)){const a=t.md.normalizeLink(s);if(!t.md.validateLink(a))return!1;if(!e){const o=t.push("link_open","a",1);o.attrs=[["href",a]],o.markup="autolink",o.info="auto";const l=t.push("text","",0);l.content=t.md.normalizeLinkText(s);const u=t.push("link_close","a",-1);u.markup="autolink",u.info="auto"}return t.pos+=s.length+2,!0}if(SCe.test(s)){const a=t.md.normalizeLink("mailto:"+s);if(!t.md.validateLink(a))return!1;if(!e){const o=t.push("link_open","a",1);o.attrs=[["href",a]],o.markup="autolink",o.info="auto";const l=t.push("text","",0);l.content=t.md.normalizeLinkText(s);const u=t.push("link_close","a",-1);u.markup="autolink",u.info="auto"}return t.pos+=s.length+2,!0}return!1}function wCe(t){return/^<a[>\s]/i.test(t)}function CCe(t){return/^<\/a\s*>/i.test(t)}function ACe(t){const e=t|32;return e>=97&&e<=122}function MCe(t,e){if(!t.md.options.html)return!1;const n=t.posMax,i=t.pos;if(t.src.charCodeAt(i)!==60||i+2>=n)return!1;const r=t.src.charCodeAt(i+1);if(r!==33&&r!==63&&r!==47&&!ACe(r))return!1;const s=t.src.slice(i).match(iCe);if(!s)return!1;if(!e){const a=t.push("html_inline","",0);a.content=s[0],wCe(a.content)&&t.linkLevel++,CCe(a.content)&&t.linkLevel--}return t.pos+=s[0].length,!0}const DCe=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,PCe=/^&([a-z][a-z0-9]{1,31});/i;function OCe(t,e){const n=t.pos,i=t.posMax;if(t.src.charCodeAt(n)!==38||n+1>=i)return!1;if(t.src.charCodeAt(n+1)===35){const s=t.src.slice(n).match(DCe);if(s){if(!e){const a=s[1][0].toLowerCase()==="x"?parseInt(s[1].slice(1),16):parseInt(s[1],10),o=t.push("text_special","",0);o.content=u4(a)?fE(a):fE(65533),o.markup=s[0],o.info="entity"}return t.pos+=s[0].length,!0}}else{const s=t.src.slice(n).match(PCe);if(s){const a=zZ(s[0]);if(a!==s[0]){if(!e){const o=t.push("text_special","",0);o.content=a,o.markup=s[0],o.info="entity"}return t.pos+=s[0].length,!0}}}return!1}function WU(t){const e={},n=t.length;if(!n)return;let i=0,r=-2;const s=[];for(let a=0;a<n;a++){const o=t[a];if(s.push(0),(t[i].marker!==o.marker||r!==o.token-1)&&(i=a),r=o.token,o.length=o.length||0,!o.close)continue;e.hasOwnProperty(o.marker)||(e[o.marker]=[-1,-1,-1,-1,-1,-1]);const l=e[o.marker][(o.open?3:0)+o.length%3];let u=i-s[i]-1,c=u;for(;u>l;u-=s[u]+1){const f=t[u];if(f.marker===o.marker&&f.open&&f.end<0){let h=!1;
309if((f.close||o.open)&&(f.length+o.length)%3===0&&(f.length%3!==0||o.length%3!==0)&&(h=!0),!h){const p=u>0&&!t[u-1].open?s[u-1]+1:0;s[a]=a-u+p,s[u]=p,o.open=!1,f.end=a,f.close=!1,c=-1,r=-2;break}}}c!==-1&&(e[o.marker][(o.open?3:0)+(o.length||0)%3]=c)}}function RCe(t){const e=t.tokens_meta,n=t.tokens_meta.length;WU(t.delimiters);for(let i=0;i<n;i++)e[i]&&e[i].delimiters&&WU(e[i].delimiters)}function kCe(t){let e,n,i=0;const r=t.tokens,s=t.tokens.length;for(e=n=0;e<s;e++)r[e].nesting<0&&i--,r[e].level=i,r[e].nesting>0&&i++,r[e].type==="text"&&e+1<s&&r[e+1].type==="text"?r[e+1].content=r[e].content+r[e+1].content:(e!==n&&(r[n]=r[e]),n++);e!==n&&(r.length=n)}const hD=[["text",cCe],["linkify",dCe],["newline",hCe],["escape",pCe],["backticks",mCe],["strikethrough",XZ.tokenize],["emphasis",YZ.tokenize],["link",bCe],["image",xCe],["autolink",ECe],["html_inline",MCe],["entity",OCe]],pD=[["balance_pairs",RCe],["strikethrough",XZ.postProcess],["emphasis",YZ.postProcess],["fragments_join",kCe]];function Zb(){this.ruler=new ca;for(let t=0;t<hD.length;t++)this.ruler.push(hD[t][0],hD[t][1]);this.ruler2=new ca;for(let t=0;t<pD.length;t++)this.ruler2.push(pD[t][0],pD[t][1])}Zb.prototype.skipToken=function(t){const e=t.pos,n=this.ruler.getRules(""),i=n.length,r=t.md.options.maxNesting,s=t.cache;if(typeof s[e]<"u"){t.pos=s[e];return}let a=!1;if(t.level<r){for(let o=0;o<i;o++)if(t.level++,a=n[o](t,!0),t.level--,a){if(e>=t.pos)throw new Error("inline rule didn't increment state.pos");break}}else t.pos=t.posMax;a||t.pos++,s[e]=t.pos};Zb.prototype.tokenize=function(t){const e=this.ruler.getRules(""),n=e.length,i=t.posMax,r
309=t.md.options.maxNesting;for(;t.pos<i;){const s=t.pos;let a=!1;if(t.level<r){for(let o=0;o<n;o++)if(a=e[o](t,!1),a){if(s>=t.pos)throw new Error("inline rule didn't increment state.pos");break}}if(a){if(t.pos>=i)break;continue}t.pending+=t.src[t.pos++]}t.pending&&t.pushPending()};Zb.prototype.parse=function(t,e,n,i){const r=new this.State(t,e,n,i);this.tokenize(r);const s=this.ruler2.getRules(""),a=s.length;for(let o=0;o<a;o++)s[o](r)};Zb.prototype.State=Kb;function ICe(t){const e={};t=t||{},e.src_Any=FZ.source,e.src_Cc=NZ.source,e.src_Z=UZ.source,e.src_P=o4.source,e.src_ZPCc=[e.src_Z,e.src_P,e.src_Cc].join("|"),e.src_ZCc=[e.src_Z,e.src_Cc].join("|");const n="[><\uFF5C]";return e.src_pseudo_letter="(?:(?!"+n+"|"+e.src_ZPCc+")"+e.src_Any+")",e.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",e.src_auth="(?:(?:(?!"+e.src_ZCc+"|[@/\\[\\]()]).)+@)?",e.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",e.src_host_terminator="(?=$|"+n+"|"+e.src_ZPCc+")(?!"+(t["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+e.src_ZPCc+"))",e.src_path="(?:[/?#](?:(?!"+e.src_ZCc+"|"+n+`|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!`+e.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+e.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+e.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+e.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+e.src_ZCc+"|[']).)+\\'|\\'(?="+e.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+e.src_ZCc+"|[.]|$)|"+(t["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+e.src_ZCc+"|$)|;(?!"+e.src_ZCc+"|$)|\\!+(?!"+e.src_ZCc+"|[!]|$)|\\?(?!"+e.src_ZCc+"|[?]|$))+|\\/)?",e.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',e.src_xn="xn--[a-z0-9\\-]{1,59}",e.src_domain_root="(?:"+e.src_xn+"|"+e.src_pseudo_letter+"{1,63})",e.src_domain="(?:"+e.src_xn+"|(?:"+e.src_pseudo_letter+")|(?:"+e.src_pseudo_letter+"(?:-|"+e.src_pseudo_letter+"){0,61}"+e.src_pseudo_letter+"))",e.src_host="(?:(?:(?:(?:"+e.src_domain+")\\.)*"+e.src_domain+"))",e.tpl_host_fuzzy="(?:"+e.src_ip4+"|(?:(?:(?:"+e.src_domain+")\\.)+(?:%TLDS%)))",e.tpl_host_no_ip_fuzzy="(?:(?:(?:"+e.src_domain+")\\.)+(?:%TLDS%))",e.
309src_host_strict=e.src_host+e.src_host_terminator,e.tpl_host_fuzzy_strict=e.tpl_host_fuzzy+e.src_host_terminator,e.src_host_port_strict=e.src_host+e.src_port+e.src_host_terminator,e.tpl_host_port_fuzzy_strict=e.tpl_host_fuzzy+e.src_port+e.src_host_terminator,e.tpl_host_port_no_ip_fuzzy_strict=e.tpl_host_no_ip_fuzzy+e.src_port+e.src_host_terminator,e.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+e.src_ZPCc+"|>|$))",e.tpl_email_fuzzy="(^|"+n+'|"|\\(|'+e.src_ZCc+")("+e.src_email_name+"@"+e.tpl_host_fuzzy_strict+")",e.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|\uFF5C]|"+e.src_ZPCc+"))((?![$+<=>^`|\uFF5C])"+e.tpl_host_port_fuzzy_strict+e.src_path+")",e.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|\uFF5C]|"+e.src_ZPCc+"))((?![$+<=>^`|\uFF5C])"+e.tpl_host_port_no_ip_fuzzy_strict+e.src_path+")",e}function nR(t){return Array.prototype.slice.call(arguments,1).forEach(function(n){!n||Object.keys(n).forEach(function(i){t[i]=n[i]})}),t}function Kw(t){return Object.prototype.toString.call(t)}function LCe(t){return Kw(t)==="[object String]"}function FCe(t){return Kw(t)==="[object Object]"}function NCe(t){return Kw(t)==="[object RegExp]"}function GU(t){return Kw(t)==="[object Function]"}function BCe(t){return t.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}const KZ={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function UCe(t){return Object.keys(t||{}).reduce(function(e,n){return e||KZ.hasOwnProperty(n)},!1)}const $Ce={"http:":{validate:function(t,e,n){const i=t.slice(e);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(i)?i.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(t,e,n){const i=t.slice(e);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(i)?e>=3&&t[e-3]===":"||e>=3&&t[e-3]==="/"?0:i.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(t,e,n){const i=t.slice(e);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(i)?i.match(n.re.mailto)[0].length:0}}},zCe="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",HCe="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|\u0440\u0444".split("|");function VCe(t){t.__index__=-1,t.__text_cache__=""}function WCe(t){return function(e,n){const i=e.slice(n);return t.test(i)?i.match(t)[0].length:0}}function jU(){return function(t,e){e.normalize(t)}}function dE(t){const e=t.re=ICe(t.__opts__),n=t.__tlds__.slice();t.onCompile(),t.__tlds_replaced__||n.push(zCe),n.push(e.src_xn),e.src_tlds=n.join("|");function i(o){return o.replace("%TLDS%",e.src_tlds)}e.email_fuzzy=RegExp(i(e.tpl_email_fuzzy),"i"),e.link_fuzzy=RegExp(i(e.tpl_link_fuzzy),"i"),e.link_no_ip_fuzzy=RegExp(i(e.tpl_link_no_ip_fuzzy),"i"),e.host_fuzzy_test=RegExp(i(e.tpl_host_fuzzy_test),"i");const r=[];t.__compiled__={};function s(o,l){throw new Error('(LinkifyIt) Invalid schema "'+o+'": '+l)}Object.keys(t.__schemas__).forEach(function(o){const l=t.__schemas__[o];if(l===null)return;const u={validate:null,link:null};if(t.__compiled__[o]=u,FCe(l)){NCe(l.validate)?u.validate=WCe(l.validate):GU(l.validate)?u.validate=l.validate:s(o,l),GU(l.normalize)?u.normalize=l.normalize:l.normalize?s(o,l):u.normalize=jU();return}if(LCe(l)){r.push(o);return}s(o,l)}),r.forEach(function(o){!t.__compiled__[t.__schemas__[o]]||(t.__compiled__[o].validate=t.__compiled__[t.__schemas__[o]].validate,t.__compiled__[o].normalize=t.__compiled__[t.__schemas__[o]].normalize)}),t.__compiled__[""]={validate:null,normalize:jU()};const a=Object.keys(t.__compiled__).filter(function(o){return o.length>0&&t.__compiled__[o]}).map(BCe).join("|");t.re.schema_test=RegExp("(^|(?!_)(?:[><\uFF5C]|"+e.src_ZPCc+"))("+a+")","i"),t.re.schema_search=RegExp("(^|(?!_)(?:[><\uFF5C]|"+e.src_ZPCc+"))("+a+")","ig"),t.re.schema_at_start=Reg
309Exp("^"+t.re.schema_search.source,"i"),t.re.pretest=RegExp("("+t.re.schema_test.source+")|("+t.re.host_fuzzy_test.source+")|@","i"),VCe(t)}function GCe(t,e){const n=t.__index__,i=t.__last_index__,r=t.__text_cache__.slice(n,i);this.schema=t.__schema__.toLowerCase(),this.index=n+e,this.lastIndex=i+e,this.raw=r,this.text=r,this.url=r}function iR(t,e){const n=new GCe(t,e);return t.__compiled__[n.schema].normalize(n,t),n}function qa(t,e){if(!(this instanceof qa))return new qa(t,e);e||UCe(t)&&(e=t,t={}),this.__opts__=nR({},KZ,e),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=nR({},$Ce,t),this.__compiled__={},this.__tlds__=HCe,this.__tlds_replaced__=!1,this.re={},dE(this)}qa.prototype.add=function(e,n){return this.__schemas__[e]=n,dE(this),this};qa.prototype.set=function(e){return this.__opts__=nR(this.__opts__,e),this};qa.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;let n,i,r,s,a,o,l,u,c;if(this.re.schema_test.test(e)){for(l=this.re.schema_search,l.lastIndex=0;(n=l.exec(e))!==null;)if(s=this.testSchemaAt(e,n[2],l.lastIndex),s){this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+s;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(u=e.search(this.re.host_fuzzy_test),u>=0&&(this.__index__<0||u<this.__index__)&&(i=e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(a=i.index+i[1].length,(this.__index__<0||a<this.__index__)&&(this.__schema__="",this.__index__=a,this.__last_index__=i.index+i[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(c=e.indexOf("@"),c>=0&&(r=e.match(this.re.email_fuzzy))!==null&&(a=r.index+r[1].length,o=r.index+r[0].length,(this.__index__<0||a<this.__index__||a===this.__index__&&o>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=a,this.__last_index__=o))),this.__index__>=0};qa.prototype.pretest=function(e){return this.re.pretest.test(e)};qa.prototype.testSchemaAt=function(e,n,i){return this.__compiled__[n.toLowerCase()]?this.__compiled__[n.toLowerCase()].validate(e,i,this):0};qa.prototype.match=function(e){const n=[];let i=0;this.__index__>=0&&this.__text_cache__===e&&(n.push(iR(this,i)),i=this.__last_index__);let r=i?e.slice(i):e;for(;this.test(r);)n.push(iR(this,i)),r=r.slice(this.__last_index__),i+=this.__last_index__;return n.length?n:null};qa.prototype.matchAtStart=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return null;const n=this.re.schema_at_start.exec(e);if(!n)return null;const i=this.testSchemaAt(e,n[2],n[0].length);return i?(this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+i,iR(this,0)):null};qa.prototype.tlds=function(e,n){return e=Array.isArray(e)?e:[e],n?(this.__tlds__=this.__tlds__.concat(e).sort().filter(function(i,r,s){return i!==s[r-1]}).reverse(),dE(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,dE(this),this)};qa.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),e.schema==="mailto:"&&!/^mailto:/i.test(e.url)&&(e.url="mailto:"+e.url)};qa.prototype.onCompile=function(){};const Nm=2147483647,Ql=36,d4=1,lb=26,jCe=38,qCe=700,ZZ=72,QZ=128,JZ="-",XCe=/^xn--/,YCe=/[^\0-\x7F]/,KCe=/[\x2E\u3002\uFF0E\uFF61]/g,ZCe={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},mD=Ql-d4,Jl=Math.floor,gD=String.fromCharCode;function Af(t){throw new RangeError(ZCe[t])}function QCe(t,e){const n=[];let i=t.length;for(;i--;)n[i]=e(t[i]);return n}function eQ(t,e){const n=t.split("@");let i="";n.length>1&&(i=n[0]+"@",t=n[1]),t=t.replace(KCe,".");const r=t.split("."),s=QCe(r,e).join(".");return i+s}function tQ(t){const e=[];let n=0;const i=t.length;for(;n<i;){const r=t.charCodeAt(n++);if(r>=55296&&r<=56319&&n<i){const s=t.charCodeAt(n++);(s&64512)==56320?e.push(((r&1023)<<10)+(s&1023)+65536):(e.push(r),n--)}else e.push(r)}return e}const JCe=t=>String.fromCodePoint(...t),eAe=function(t){return t>=48&&t<58?26+(t-48):t>=65&&t<91?t-65:t>=97&&t<123?t-97:Ql},qU=function(t,e){return t+22+75*(t<26)-((e!=0)<<5)},nQ=function(t,e,n){let i=0;for(t=n?Jl(t/qCe):t>>
3091,t+=Jl(t/e);t>mD*lb>>1;i+=Ql)t=Jl(t/mD);return Jl(i+(mD+1)*t/(t+jCe))},iQ=function(t){const e=[],n=t.length;let i=0,r=QZ,s=ZZ,a=t.lastIndexOf(JZ);a<0&&(a=0);for(let o=0;o<a;++o)t.charCodeAt(o)>=128&&Af("not-basic"),e.push(t.charCodeAt(o));for(let o=a>0?a+1:0;o<n;){const l=i;for(let c=1,f=Ql;;f+=Ql){o>=n&&Af("invalid-input");const h=eAe(t.charCodeAt(o++));h>=Ql&&Af("invalid-input"),h>Jl((Nm-i)/c)&&Af("overflow"),i+=h*c;const p=f<=s?d4:f>=s+lb?lb:f-s;if(h<p)break;const m=Ql-p;c>Jl(Nm/m)&&Af("overflow"),c*=m}const u=e.length+1;s=nQ(i-l,u,l==0),Jl(i/u)>Nm-r&&Af("overflow"),r+=Jl(i/u),i%=u,e.splice(i++,0,r)}return String.fromCodePoint(...e)},rQ=function(t){const e=[];t=tQ(t);const n=t.length;let i=QZ,r=0,s=ZZ;for(const l of t)l<128&&e.push(gD(l));const a=e.length;let o=a;for(a&&e.push(JZ);o<n;){let l=Nm;for(const c of t)c>=i&&c<l&&(l=c);const u=o+1;l-i>Jl((Nm-r)/u)&&Af("overflow"),r+=(l-i)*u,i=l;for(const c of t)if(c<i&&++r>Nm&&Af("overflow"),c===i){let f=r;for(let h=Ql;;h+=Ql){const p=h<=s?d4:h>=s+lb?lb:h-s;if(f<p)break;const m=f-p,y=Ql-p;e.push(gD(qU(p+m%y,0))),f=Jl(m/y)}e.push(gD(qU(f,0))),s=nQ(r,u,o===a),r=0,++o}++r,++i}return e.join("")},tAe=function(t){return eQ(t,function(e){return XCe.test(e)?iQ(e.slice(4).toLowerCase()):e})},nAe=function(t){return eQ(t,function(e){return YCe.test(e)?"xn--"+rQ(e):e})},sQ={version:"2.3.1",ucs2:{decode:tQ,encode:JCe},decode:iQ,encode:rQ,toASCII:nAe,toUnicode:tAe},iAe={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"\u201C\u201D\u2018\u2019",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},rAe={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"\u201C\u201D\u2018\u2019",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}},sAe={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"\u201C\u201D\u2018\u2019",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","fragments_join"]}}},aAe={default:iAe,zero:rAe,commonmark:sAe},oAe=/^(vbscript|javascript|file|data):/,lAe=/^data:image\/(gif|png|jpeg|webp);/;function uAe(t){const e=t.trim().toLowerCase();return oAe.test(e)?lAe.test(e):!0}const aQ=["http:","https:","mailto:"];function cAe(t){const e=a4(t,!0);if(e.hostname&&(!e.protocol||aQ.indexOf(e.protocol)>=0))try{e.hostname=sQ.toASCII(e.hostname)}catch(n){}return Yb(s4(e))}function fAe(t){const e=a4(t,!0);if(e.hostname&&(!e.protocol||aQ.indexOf(e.protocol)>=0))try{e.hostname=sQ.toUnicode(e.hostname)}catch(n){}return xg(s4(e),xg.defaultChars+"%")}function pl(t,e){if(!(this instanceof pl))return new pl(t,e);e||l4(t)||(e=t||{},t="default"),this.inline=new Zb,this.block=new Yw,this.core=new c4,this.renderer=new Xg,this.linkify=new qa,this.validateLink=uAe,this.normalizeLink=cAe,this.normalizeLinkText=fAe,this.utils=hwe,this.helpers=qw({},_we),this.options={},this.configure(t),e&&this.set(e)}pl.prototype.set=function(t){return qw(this.options,t),this};pl.prototype.configure=function(t){const e=this;if(l4(t)){const n=t;if(t=aAe[n],!t)throw new Error('Wrong `markdown-it` preset "'+n+'", check name')}if(!t)throw new Error("Wrong `markdown-it` preset, can't be empty");return t.options&&e.set(t.options),t.components&&Object.keys(t.components).forEach(function(n){t.components[n].rules&&e[n].ruler.enableOnly(t.components[n].rules),t.components[n].rules2&&e[n].ruler2.enableO
309nly(t.components[n].rules2)}),this};pl.prototype.enable=function(t,e){let n=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach(function(r){n=n.concat(this[r].ruler.enable(t,!0))},this),n=n.concat(this.inline.ruler2.enable(t,!0));const i=t.filter(function(r){return n.indexOf(r)<0});if(i.length&&!e)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+i);return this};pl.prototype.disable=function(t,e){let n=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach(function(r){n=n.concat(this[r].ruler.disable(t,!0))},this),n=n.concat(this.inline.ruler2.disable(t,!0));const i=t.filter(function(r){return n.indexOf(r)<0});if(i.length&&!e)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+i);return this};pl.prototype.use=function(t){const e=[this].concat(Array.prototype.slice.call(arguments,1));return t.apply(t,e),this};pl.prototype.parse=function(t,e){if(typeof t!="string")throw new Error("Input data should be a String");const n=new this.core.State(t,this,e);return this.core.process(n),n.tokens};pl.prototype.render=function(t,e){return e=e||{},this.renderer.render(this.parse(t,e),this.options,e)};pl.prototype.parseInline=function(t,e){const n=new this.core.State(t,this,e);return n.inlineMode=!0,this.core.process(n),n.tokens};pl.prototype.renderInline=function(t,e){return e=e||{},this.renderer.render(this.parseInline(t,e),this.options,e)};/**
310 * @license
311 * Copyright 2010-2023 Three.js Authors
312 * SPDX-License-Identifier: MIT
313 */const h4="155",m0={LEFT:0,MIDDLE:1,RIGHT:2,ROTATE:0,DOLLY:1,PAN:2},g0={ROTATE:0,PAN:1,DOLLY_PAN:2,DOLLY_ROTATE:3},dAe=0,XU=1,hAe=2,oQ=1,pAe=2,Qu=3,yd=0,sa=1,hc=2,td=0,Bm=1,YU=2,KU=3,ZU=4,mAe=5,q0=100,gAe=101,_Ae=102,QU=103,JU=104,vAe=200,yAe=201,bAe=202,xAe=203,lQ=204,uQ=205,SAe=206,TAe=207,EAe=208,wAe=209,CAe=210,AAe=0,MAe=1,DAe=2,rR=3,PAe=4,OAe=5,RAe=6,kAe=7,cQ=0,IAe=1,LAe=2,nd=0,FAe=1,NAe=2,BAe=3,UAe=4,$Ae=5,fQ=300,Tg=301,Eg=302,sR=303,aR=304,Zw=306,oR=1e3,sl=1001,lR=1002,Ss=1003,e9=1004,_D=1005,xo=1006,zAe=1007,ub=1008,id=1009,HAe=1010,VAe=1011,p4=1012,dQ=1013,$f=1014,zf=1015,cb=1016,hQ=1017,pQ=1018,qh=1020,WAe=1021,al=1023,GAe=1024,jAe=1025,Xh=1026,wg=1027,qAe=1028,mQ=1029,XAe=1030,gQ=1031,_Q=1033,vD=33776,yD=33777,bD=33778,xD=33779,t9=35840,n9=35841,i9=35842,r9=35843,YAe=36196,s9=37492,a9=37496,o9=37808,l9=37809,u9=37810,c9=37811,f9=37812,d9=37813,h9=37814,p9=37815,m9=37816,g9=37817,_9=37818,v9=37819,y9=37820,b9=37821,SD=36492,KAe=36283,x9=36284,S9=36285,T9=36286,vQ=3e3,Yh=3001,ZAe=3200,QAe=3201,JAe=0,eMe=1,Kh="",ln="srgb",_u="srgb-linear",yQ="display-p3",TD=7680,tMe=519,nMe=512,iMe=513,rMe=514,sMe=515,aMe=516,oMe=517,lMe=518,uMe=519,uR=35044,E9="300 es",cR=1035,_c=2e3,hE=2001;class Pp{addEventListener(e,n){this._listeners===void 0&&(this._listeners={});const i=this._listeners;i[e]===void 0&&(i[e]=[]),i[e].indexOf(n)===-1&&i[e].push(n)}hasEventListener(e,n){if(this._listeners===void 0)return!1;const i=this._listeners;return i[e]!==void 0&&i[e].indexOf(n)!==-1}removeEventListener(e,n){if(this._listeners===void 0)return;const r=this._listeners[e];if(r!==void 0){const s=r.indexOf(n);s!==-1&&r.splice(s,1)}}dispatchEvent(e){if(this._listeners===void 0)return;const i=this._listeners[e.type];if(i!==void 0){e.target=this;const r=i.slice(0);for(let s=0,a=r.length;s<a;s++)r[s].call(this,e);e.target=null}}}const Vr=["00","01","02","03","04","05","06","07","08","09","0a","0b","0c","0d","0e","0f","10","11","12","13","14","15","16","17","18","19","1a","1b","1c","1d","1e","1f","20","21","22","23","24","25","26","27","28","29","2a","2b","2c","2d","2e","2f","30","31","32","33","34","35","36","37","38","39","3a","3b","3c","3d","3e","3f","40","41","42","43","44","45","46","47","48","49","4a","4b","4c","4d","4e","4f","50","51","52","53","54","55","56","57","58","59","5a","5b","5c","5d","5e","5f","60","61","62","63","64","65","66","67","68","69","6a","6b","6c","6d","6e","6f","70","71","72","73","74","75","76","77","78","79","7a","7b","7c","7d","7e","7f","80","81","82","83","84","85","86","87","88","89","8a","8b","8c","8d","8e","8f","90","91","92","93","94","95","96","97","98","99","9a","9b","9c","9d","9e","9f","a0","a1","a2","a3","a4","a5","a6","a7","a8","a9","aa","ab","ac","ad","ae","af","b0","b1","b2","b3","b4","b5","b6","b7","b8","b9","ba","bb","bc","bd","be","bf","c0","c1","c2","c3","c4","c5","c6","c7","c8","c9","ca","cb","cc","cd","ce","cf","d0","d1","d2","d3","d4","d5","d6","d7","d8","d9","da","db","dc","dd","de","df","e0","e1","e2","e3","e4","e5","e6","e7","e8","e9","ea","eb","ec","ed","ee","ef","f0","f1","f2","f3","f4","f5","f6","f7","f8","f9","fa","fb","fc","fd","fe","ff"];let w9=1234567;const uy=Math.PI/180,fb=180/Math.PI;function Ec(){const t=Math.random()*4294967295|0,e=Math.random()*4294967295|0,n=Math.random()*4294967295|0,i=Math.random()*4294967295|0;return(Vr[t&255]+Vr[t>>8&255]+Vr[t>>16&255]+Vr[t>>24&255]+"-"+Vr[e&255]+Vr[e>>8&255]+"-"+Vr[e>>16&15|64]+Vr[e>>24&255]+"-"+Vr[n&63|128]+Vr[n>>8&255]+"-"+Vr[n>>16&255]+Vr[n>>24&255]+Vr[i&255]+Vr[i>>8&255]+Vr[i>>16&255]+Vr[i>>24&255]).toLowerCase()}function Yr(t,e,n){return Math.max(e,Math.min(n,t))}function m4(t,e){return(t%e+e)%e}function cMe(t,e,n,i,r){return i+(t-e)*(r-i)/(n-e)}function fMe(t,e,n){return t!==e?(n-t)/(e-t):0}function cy(t,e,n){return(1-n)*t+n*e}function dMe(t,e,n,i){return cy(t,e,1-Math.exp(-n*i))}function hMe(t,e=1){return e-Math.abs(m4(t,e*2)-e)}function pMe(t,e,n){return t<=e?0:t>=n?1:(t=(t-e)/(n-e),t*t*(3-2*t))}function mMe(t,e,n){return t<=e?0:t>=n?1:(t=(t-e)/(n-e),t*t*t*(t*(t*6-15)+10))}function gMe(t,e){return t+Math.floor(Math.random()*(e-t+1))}function _Me(t,e){return t+Math.random()*(e-t)}
vendor: 31,751 bytes, line 313
313function vMe(t){return t*(.5-Math.random())}function yMe(t){t!==void 0&&(w9=t);let e=w9+=1831565813;return e=Math.imul(e^e>>>15,e|1),e^=e+Math.imul(e^e>>>7,e|61),((e^e>>>14)>>>0)/4294967296}function bMe(t){return t*uy}function xMe(t){return t*fb}function fR(t){return(t&t-1)===0&&t!==0}function SMe(t){return Math.pow(2,Math.ceil(Math.log(t)/Math.LN2))}function pE(t){return Math.pow(2,Math.floor(Math.log(t)/Math.LN2))}function TMe(t,e,n,i,r){const s=Math.cos,a=Math.sin,o=s(n/2),l=a(n/2),u=s((e+i)/2),c=a((e+i)/2),f=s((e-i)/2),h=a((e-i)/2),p=s((i-e)/2),m=a((i-e)/2);switch(r){case"XYX":t.set(o*c,l*f,l*h,o*u);break;case"YZY":t.set(l*h,o*c,l*f,o*u);break;case"ZXZ":t.set(l*f,l*h,o*c,o*u);break;case"XZX":t.set(o*c,l*m,l*p,o*u);break;case"YXY":t.set(l*p,o*c,l*m,o*u);break;case"ZYZ":t.set(l*m,l*p,o*c,o*u);break;default:console.warn("THREE.MathUtils: .setQuaternionFromProperEuler() encountered an unknown order: "+r)}}function Vl(t,e){switch(e.constructor){case Float32Array:return t;case Uint32Array:return t/4294967295;case Uint16Array:return t/65535;case Uint8Array:return t/255;case Int32Array:return Math.max(t/2147483647,-1);case Int16Array:return Math.max(t/32767,-1);case Int8Array:return Math.max(t/127,-1);default:throw new Error("Invalid component type.")}}function Xn(t,e){switch(e.constructor){case Float32Array:return t;case Uint32Array:return Math.round(t*4294967295);case Uint16Array:return Math.round(t*65535);case Uint8Array:return Math.round(t*255);case Int32Array:return Math.round(t*2147483647);case Int16Array:return Math.round(t*32767);case Int8Array:return Math.round(t*127);default:throw new Error("Invalid component type.")}}const EMe={DEG2RAD:uy,RAD2DEG:fb,generateUUID:Ec,clamp:Yr,euclideanModulo:m4,mapLinear:cMe,inverseLerp:fMe,lerp:cy,damp:dMe,pingpong:hMe,smoothstep:pMe,smootherstep:mMe,randInt:gMe,randFloat:_Me,randFloatSpread:vMe,seededRandom:yMe,degToRad:bMe,radToDeg:xMe,isPowerOfTwo:fR,ceilPowerOfTwo:SMe,floorPowerOfTwo:pE,setQuaternionFromProperEuler:TMe,normalize:Xn,denormalize:Vl};class Xt{constructor(e=0,n=0){Xt.prototype.isVector2=!0,this.x=e,this.y=n}get width(){return this.x}set width(e){this.x=e}get height(){return this.y}set height(e){this.y=e}set(e,n){return this.x=e,this.y=n,this}setScalar(e){return this.x=e,this.y=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setComponent(e,n){switch(e){case 0:this.x=n;break;case 1:this.y=n;break;default:throw new Error("index is out of range: "+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;default:throw new Error("index is out of range: "+e)}}clone(){return new this.constructor(this.x,this.y)}copy(e){return this.x=e.x,this.y=e.y,this}add(e){return this.x+=e.x,this.y+=e.y,this}addScalar(e){return this.x+=e,this.y+=e,this}addVectors(e,n){return this.x=e.x+n.x,this.y=e.y+n.y,this}addScaledVector(e,n){return this.x+=e.x*n,this.y+=e.y*n,this}sub(e){return this.x-=e.x,this.y-=e.y,this}subScalar(e){return this.x-=e,this.y-=e,this}subVectors(e,n){return this.x=e.x-n.x,this.y=e.y-n.y,this}multiply(e){return this.x*=e.x,this.y*=e.y,this}multiplyScalar(e){return this.x*=e,this.y*=e,this}divide(e){return this.x/=e.x,this.y/=e.y,this}divideScalar(e){return this.multiplyScalar(1/e)}applyMatrix3(e){const n=this.x,i=this.y,r=e.elements;return this.x=r[0]*n+r[3]*i+r[6],this.y=r[1]*n+r[4]*i+r[7],this}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this}clamp(e,n){return this.x=Math.max(e.x,Math.min(n.x,this.x)),this.y=Math.max(e.y,Math.min(n.y,this.y)),this}clampScalar(e,n){return this.x=Math.max(e,Math.min(n,this.x)),this.y=Math.max(e,Math.min(n,this.y)),this}clampLength(e,n){const i=this.length();return this.divideScalar(i||1).multiplyScalar(Math.max(e,Math.min(n,i)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}roundToZero(){return this.x=this.x<0?Math.ceil(this.x):Math.floor(this.x),this.y=this.y<0?Math.ceil(this.y):Math.floor(this.y),this}negate(){return this.x=-this.x,this.y=-this.y,this}dot(e){return this.x*e.x+this.y*e.y}cross(e){return this.x*e.y-this.y*e.x}lengthSq(){return this.x*this.x+this.y*this.y}length(){return Math.sqrt(this.x*this.x+this.y*this.y)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)}normalize(){return this.divideScalar(this.length()||1)}angle(){return Math.atan2(-this.y,-this.x)+Math.PI}angleTo(e){const n=Math.sqrt(this.lengthSq()*e.lengthSq());if(n===0)return Math.PI/2;const i=this.dot(e)/n;return Math.acos(Yr(i,-1,1))}distanceTo(e){return Math.sqrt(this.distanceToSquared(e))}distanceToSquared(e){const n=this.x-e.x,i=this.y-e.y;return n*n+i*i}manhattanDistanceTo(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,n){return this.x+=(e.x-this.x)*n,this.y+=(e.y-this.y)*n,this}lerpVectors(e,n,i){return this.x=e.x+(n.x-e.x)*i,this.y=e.y+(n.y-e.y)*i,this}equals(e){return e.x===this.x&&e.y===this.y}fromArray(e,n=0){return this.x=e[n],this.y=e[n+1],this}toArray(e=[],n=0){return e[n]=this.x,e[n+1]=this.y,e}fromBufferAttribute(e,n){return this.x=e.getX(n),this.y=e.getY(n),this}rotateAround(e,n){const i=Math.cos(n),r=Math.sin(n),s=this.x-e.x,a=this.y-e.y;return this.x=s*i-a*r+e.x,this.y=s*r+a*i+e.y,this}random(){return this.x=Math.random(),this.y=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y}}class mn{constructor(e,n,i,r,s,a,o,l,u){mn.prototype.isMatrix3=!0,this.elements=[1,0,0,0,1,0,0,0,1],e!==void 0&&this.set(e,n,i,r,s,a,o,l,u)}set(e,n,i,r,s,a,o,l,u){const c=this.elements;return c[0]=e,c[1]=r,c[2]=o,c[3]=n,c[4]=s,c[5]=l,c[6]=i,c[7]=a,c[8]=u,this}identity(){return this.set(1,0,0,0,1,0,0,0,1),this}copy(e){const n=this.elements,i=e.elements;return n[0]=i[0],n[1]=i[1],n[2]=i[2],n[3]=i[3],n[4]=i[4],n[5]=i[5],n[6]=i[6],n[7]=i[7],n[8]=i[8],this}extractBasis(e,n,i){return e.setFromMatrix3Column(this,0),n.setFromMatrix3Column(this,1),i.setFromMatrix3Column(this,2),this}setFromMatrix4(e){const n=e.elements;return this.set(n[0],n[4],n[8],n[1],n[5],n[9],n[2],n[6],n[10]),this}multiply(e){return this.multiplyMatrices(this,e)}premultiply(e){return this.multiplyMatrices(e,this)}multiplyMatrices(e,n){const i=e.elements,r=n.elements,s=this.elements,a=i[0],o=i[3],l=i[6],u=i[1],c=i[4],f=i[7],h=i[2],p=i[5],m=i[8],y=r[0],v=r[3],_=r[6],b=r[1],x=r[4],T=r[7],E=r[2],C=r[5],D=r[8];return s[0]=a*y+o*b+l*E,s[3]=a*v+o*x+l*C,s[6]=a*_+o*T+l*D,s[1]=u*y+c*b+f*E,s[4]=u*v+c*x+f*C,s[7]=u*_+c*T+f*D,s[2]=h*y+p*b+m*E,s[5]=h*v+p*x+m*C,s[8]=h*_+p*T+m*D,this}multiplyScalar(e){const n=this.elements;return n[0]*=e,n[3]*=e,n[6]*=e,n[1]*=e,n[4]*=e,n[7]*=e,n[2]*=e,n[5]*=e,n[8]*=e,this}determinant(){const e=this.elements,n=e[0],i=e[1],r=e[2],s=e[3],a=e[4],o=e[5],l=e[6],u=e[7],c=e[8];return n*a*c-n*o*u-i*s*c+i*o*l+r*s*u-r*a*l}invert(){const e=this.elements,n=e[0],i=e[1],r=e[2],s=e[3],a=e[4],o=e[5],l=e[6],u=e[7],c=e[8],f=c*a-o*u,h=o*l-c*s,p=u*s-a*l,m=n*f+i*h+r*p;if(m===0)return this.set(0,0,0,0,0,0,0,0,0);const y=1/m;return e[0]=f*y,e[1]=(r*u-c*i)*y,e[2]=(o*i-r*a)*y,e[3]=h*y,e[4]=(c*n-r*l)*y,e[5]=(r*s-o*n)*y,e[6]=p*y,e[7]=(i*l-u*n)*y,e[8]=(a*n-i*s)*y,this}transpose(){let e;const n=this.elements;return e=n[1],n[1]=n[3],n[3]=e,e=n[2],n[2]=n[6],n[6]=e,e=n[5],n[5]=n[7],n[7]=e,this}getNormalMatrix(e){return this.setFromMatrix4(e).invert().transpose()}transposeIntoArray(e){const n=this.elements;return e[0]=n[0],e[1]=n[3],e[2]=n[6],e[3]=n[1],e[4]=n[4],e[5]=n[7],e[6]=n[2],e[7]=n[5],e[8]=n[8],this}setUvTransform(e,n,i,r,s,a,o){const l=Math.cos(s),u=Math.sin(s);return this.set(i*l,i*u,-i*(l*a+u*o)+a+e,-r*u,r*l,-r*(-u*a+l*o)+o+n,0,0,1),this}scale(e,n){return this.premultiply(ED.makeScale(e,n)),this}rotate(e){return this.premultiply(ED.makeRotation(-e)),this}translate(e,n){return this.premultiply(ED.makeTranslation(e,n)),this}makeTranslation(e,n){return e.isVector2?this.set(1,0,e.x,0,1,e.y,0,0,1):this.set(1,0,e,0,1,n,0,0,1),this}makeRotation(e){const n=Math.cos(e),i=Math.sin(e);return this.set(n,-i,0,i,n,0,0,0,1),this}makeScale(e,n){return this.set(e,0,0,0,n,0,0,0,1),this}equals(e){const n=this.elements,i=e.elements;for(let r=0;r<9;r++)if(n[r]!==i[r])return!1;return!0}fromArray(e,n=0){for(let i=0;i<9;i++)this.elements[i]=e[i+n];return this}toArray(e=[],n=0){const i=this.elements;return e[n]=i[0],e[n+1]=i[1],e[n+2]=i[2],e[n+3]=i[3],e[n+4]=i[4],e[n+5]=i[5],e[n+6]=i[6],e[n+7]=i[7],e[n+8]=i[8],e}clone(){return new this.constructor().fromArray(this.elements)}}const ED=new mn;function bQ(t){for(let e=t.length-1;e>=0;--e)if(t[e]>=65535)return!0;return!1}function db(t){return document.createElementNS("http://www.w3.org/1999/xhtml",t)}const C9={};function fy(t){t in C9||(C9[t]=!0,console.warn(t))}function Um(t){return t<.04045?t*.0773993808:Math.pow(t*.9478672986+.0521327014,2.4)}function wD(t){return t<.0031308?t*12.92:1.055*Math.pow(t,.41666)-.055}const wMe=new mn().fromArray([.8224621,.0331941,.0170827,.177538,.9668058,.0723974,-1e-7,1e-7,.9105199]),CMe=new mn().fromArray([1.2249401,-.0420569,-.0196376,-.2249404,1.0420571,-.0786361,1e-7,0,1.0982735]);function AMe(t){return t.convertSRGBToLinear().applyMatrix3(CMe)}function MMe(t){return t.applyMatrix3(wMe).convertLinearToSRGB()}const DMe={[_u]:t=>t,[ln]:t=>t.convertSRGBToLinear(),[yQ]:AMe},PMe={[_u]:t=>t,[ln]:t=>t.convertLinearToSRGB(),[yQ]:MMe},Go={enabled:!0,get legacyMode(){return console.warn("THREE.ColorManagement: .legacyMode=false renamed to .enabled=true in r150."),!this.enabled},set legacyMode(t){console.warn("THREE.ColorManagement: .legacyMode=false renamed to .enabled=true in r150."),this.enabled=!t},get workingColorSpace(){return _u},set workingColorSpace(t){console.warn("THREE.ColorManagement: .workingColorSpace is readonly.")},convert:function(t,e,n){if(this.enabled===!1||e===n||!e||!n)return t;const i=DMe[e],r=PMe[n];if(i===void 0||r===void 0)throw new Error(`Unsupported color space conversion, "${e}" to "${n}".`);return r(i(t))},fromWorkingColorSpace:function(t,e){return this.convert(t,this.workingColorSpace,e)},toWorkingColorSpace:function(t,e){return this.convert(t,e,this.workingColorSpace)}};let _0;class xQ{static getDataURL(e){if(/^data:/i.test(e.src)||typeof HTMLCanvasElement>"u")return e.src;let n;if(e instanceof HTMLCanvasElement)n=e;else{_0===void 0&&(_0=db("canvas")),_0.width=e.width,_0.height=e.height;const i=_0.getContext("2d");e instanceof ImageData?i.putImageData(e,0,0):i.drawImage(e,0,0,e.width,e.height),n=_0}return n.width>2048||n.height>2048?(console.warn("THREE.ImageUtils.getDataURL: Image converted to jpg for performance reasons",e),n.toDataURL("image/jpeg",.6)):n.toDataURL("image/png")}static sRGBToLinear(e){if(typeof HTMLImageElement<"u"&&e instanceof HTMLImageElement||typeof HTMLCanvasElement<"u"&&e instanceof HTMLCanvasElement||typeof ImageBitmap<"u"&&e instanceof ImageBitmap){const n=db("canvas");n.width=e.width,n.height=e.height;const i=n.getContext("2d");i.drawImage(e,0,0,e.width,e.height);const r=i.getImageData(0,0,e.width,e.height),s=r.data;for(let a=0;a<s.length;a++)s[a]=Um(s[a]/255)*255;return i.putImageData(r,0,0),n}else if(e.data){const n=e.data.slice(0);for(let i=0;i<n.length;i++)n instanceof Uint8Array||n instanceof Uint8ClampedArray?n[i]=Math.floor(Um(n[i]/255)*255):n[i]=Um(n[i]);return{data:n,width:e.width,height:e.height}}else return console.warn("THREE.ImageUtils.sRGBToLinear(): Unsupported image type. No color space conversion applied."),e}}let OMe=0;class SQ{constructor(e=null){this.isSource=!0,Object.defineProperty(this,"id",{value:OMe++}),this.uuid=Ec(),this.data=e,this.version=0}set needsUpdate(e){e===!0&&this.version++}toJSON(e){const n=e===void 0||typeof e=="string";if(!n&&e.images[this.uuid]!==void 0)return e.images[this.uuid];const i={uuid:this.uuid,url:""},r=this.data;if(r!==null){let s;if(Array.isArray(r)){s=[];for(let a=0,o=r.length;a<o;a++)r[a].isDataTexture?s.push(CD(r[a].image)):s.push(CD(r[a]))}else s=CD(r);i.url=s}return n||(e.images[this.uuid]=i),i}}function CD(t){return typeof HTMLImageElement<"u"&&t instanceof HTMLImageElement||typeof HTMLCanvasElement<"u"&&t instanceof HTMLCanvasElement||typeof ImageBitmap<"u"&&t instanceof ImageBitmap?xQ.getDataURL(t):t.data?{data:Array.from(t.data),width:t.width,height:t.height,type:t.data.constructor.name}:(console.warn("THREE.Texture: Unable to serialize Texture."),{})}let RMe=0;class aa extends Pp{constructor(e=aa.DEFAULT_IMAGE,n=aa.DEFAULT_MAPPING,i=sl,r=sl,s=xo,a=ub,o=al,l=id,u=aa.DEFAULT_ANISOTROPY,c=Kh){super(),this.isTexture=!0,Object.defineProperty(this,"id",{value:RMe++}),this.uuid=Ec(),this.name="",this.source=new SQ(e),this.mipmaps=[],this.mapping=n,this.channel=0,this.wrapS=i,this.wrapT=r,this.magFilter=s,this.minFilter=a,this.anisotropy=u,this.format=o,this.internalFormat=null,this.type=l,this.offset=new Xt(0,0),this.repeat=new Xt(1,1),this.center=new Xt(0,0),this.rotation=0,this.matrixAutoUpdate=!0,this.matrix=new mn,this.generateMipmaps=!0,this.premultiplyAlpha=!1,this.flipY=!0,this.unpackAlignment=4,typeof c=="string"?this.colorSpace=c:(fy("THREE.Texture: Property .encoding has been replaced by .colorSpace."),this.colorSpace=c===Yh?ln:Kh),this.userData={},this.version=0,this.onUpdate=null,this.isRenderTargetTexture=!1,this.needsPMREMUpdate=!1}get image(){return this.source.data}set image(e=null){this.source.data=e}updateMatrix(){this.matrix.setUvTransform(this.offset.x,this.offset.y,this.repeat.x,this.repeat.y,this.rotation,this.center.x,this.center.y)}clone(){return new this.constructor().copy(this)}copy(e){return this.name=e.name,this.source=e.source,this.mipmaps=e.mipmaps.slice(0),this.mapping=e.mapping,this.channel=e.channel,this.wrapS=e.wrapS,this.wrapT=e.wrapT,this.magFilter=e.magFilter,this.minFilter=e.minFilter,this.anisotropy=e.anisotropy,this.format=e.format,this.internalFormat=e.internalFormat,this.type=e.type,this.offset.copy(e.offset),this.repeat.copy(e.repeat),this.center.copy(e.center),this.rotation=e.rotation,this.matrixAutoUpdate=e.matrixAutoUpdate,this.matrix.copy(e.matrix),this.generateMipmaps=e.generateMipmaps,this.premultiplyAlpha=e.premultiplyAlpha,this.flipY=e.flipY,this.unpackAlignment=e.unpackAlignment,this.colorSpace=e.colorSpace,this.userData=JSON.parse(JSON.stringify(e.userData)),this.needsUpdate=!0,this}toJSON(e){const n=e===void 0||typeof e=="string";if(!n&&e.textures[this.uuid]!==void 0)return e.textures[this.uuid];const i={metadata:{version:4.6,type:"Texture",generator:"Texture.toJSON"},uuid:this.uuid,name:this.name,image:this.source.toJSON(e).uuid,mapping:this.mapping,channel:this.channel,repeat:[this.repeat.x,this.repeat.y],offset:[this.offset.x,this.offset.y],center:[this.center.x,this.center.y],rotation:this.rotation,wrap:[this.wrapS,this.wrapT],format:this.format,internalFormat:this.internalFormat,type:this.type,colorSpace:this.colorSpace,minFilter:this.minFilter,magFilter:this.magFilter,anisotropy:this.anisotropy,flipY:this.flipY,generateMipmaps:this.generateMipmaps,premultiplyAlpha:this.premultiplyAlpha,unpackAlignment:this.unpackAlignment};return Object.keys(this.userData).length>0&&(i.userData=this.userData),n||(e.textures[this.uuid]=i),i}dispose(){this.dispatchEvent({type:"dispose"})}transformUv(e){if(this.mapping!==fQ)return e;if(e.applyMatrix3(this.matrix),e.x<0||e.x>1)switch(this.wrapS){case oR:e.x=e.x-Math.floor(e.x);break;case sl:e.x=e.x<0?0:1;break;case lR:Math.abs(Math.floor(e.x)%2)===1?e.x=Math.ceil(e.x)-e.x:e.x=e.x-Math.floor(e.x);break}if(e.y<0||e.y>1)switch(this.wrapT){case oR:e.y=e.y-Math.floor(e.y);break;case sl:e.y=e.y<0?0:1;break;case lR:Math.abs(Math.floor(e.y)%2)===1?e.y=Math.ceil(e.y)-e.y:e.y=e.y-Math.floor(e.y);break}return this.flipY&&(e.y=1-e.y),e}set needsUpdate(e){e===!0&&(this.version++,this.source.needsUpdate=!0)}get encoding(){return fy("THREE.Texture: Property .encoding has been replaced by .colorSpace."),this.colorSpace===ln?Yh:vQ}set encoding(e){fy("THREE.Texture: Property .encoding has been replaced by .colorSpace."),this.colorSpace=e===Yh?ln:Kh}}aa.DEFAULT_IMAGE=null;aa.DEFAULT_MAPPING=fQ;aa.DEFAULT_ANISOTROPY=1;class Fr{constructor(e=0,n=0,i=0,r=1){Fr.prototype.isVector4=!0,this.x=e,this.y=n,this.z=i,this.w=r}get width(){return this.z}set width(e){this.z=e}get height(){return this.w}set height(e){this.w=e}set(e,n,i,r){return this.x=e,this.y=n,this.z=i,this.w=r,this}setScalar(e){return this.x=e,this.y=e,this.z=e,this.w=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setZ(e){return this.z=e,this}setW(e){return this.w=e,this}setComponent(e,n){switch(e){case 0:this.x=n;break;case 1:this.y=n;break;case 2:this.z=n;break;case 3:this.w=n;break;default:throw new Error("index is out of range: "+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;case 2:return this.z;case 3:return this.w;default:throw new Error("index is out of range: "+e)}}clone(){return new this.constructor(this.x,this.y,this.z,this.w)}copy(e){return this.x=e.x,this.y=e.y,this.z=e.z,this.w=e.w!==void 0?e.w:1,this}add(e){return this.x+=e.x,this.y+=e.y,this.z+=e.z,this.w+=e.w,this}addScalar(e){return this.x+=e,this.y+=e,this.z+=e,this.w+=e,this}addVectors(e,n){return this.x=e.x+n.x,this.y=e.y+n.y,this.z=e.z+n.z,this.w=e.w+n.w,this}addScaledVector(e,n){return this.x+=e.x*n,this.y+=e.y*n,this.z+=e.z*n,this.w+=e.w*n,this}sub(e){return this.x-=e.x,this.y-=e.y,this.z-=e.z,this.w-=e.w,this}subScalar(e){return this.x-=e,this.y-=e,this.z-=e,this.w-=e,this}subVectors(e,n){return this.x=e.x-n.x,this.y=e.y-n.y,this.z=e.z-n.z,this.w=e.w-n.w,this}multiply(e){return this.x*=e.x,this.y*=e.y,this.z*=e.z,this.w*=e.w,this}multiplyScalar(e){return this.x*=e,this.y*=e,this.z*=e,this.w*=e,this}applyMatrix4(e){const n=this.x,i=this.y,r=this.z,s=this.w,a=e.elements;return this.x=a[0]*n+a[4]*i+a[8]*r+a[12]*s,this.y=a[1]*n+a[5]*i+a[9]*r+a[13]*s,this.z=a[2]*n+a[6]*i+a[10]*r+a[14]*s,this.w=a[3]*n+a[7]*i+a[11]*r+a[15]*s,this}divideScalar(e){return this.multiplyScalar(1/e)}setAxisAngleFromQuaternion(e){this.w=2*Math.acos(e.w);const n=Math.sqrt(1-e.w*e.w);return n<1e-4?(this.x=1,this.y=0,this.z=0):(this.x=e.x/n,this.y=e.y/n,this.z=e.z/n),this}setAxisAngleFromRotationMatrix(e){let n,i,r,s;const l=e.elements,u=l[0],c=l[4],f=l[8],h=l[1],p=l[5],m=l[9],y=l[2],v=l[6],_=l[10];if(Math.abs(c-h)<.01&&Math.abs(f-y)<.01&&Math.abs(m-v)<.01){if(Math.abs(c+h)<.1&&Math.abs(f+y)<.1&&Math.abs(m+v)<.1&&Math.abs(u+p+_-3)<.1)return this.set(1,0,0,0),this;n=Math.PI;const x=(u+1)/2,T=(p+1)/2,E=(_+1)/2,C=(c+h)/4,D=(f+y)/4,R=(m+v)/4;return x>T&&x>E?x<.01?(i=0,r=.707106781,s=.707106781):(i=Math.sqrt(x),r=C/i,s=D/i):T>E?T<.01?(i=.707106781,r=0,s=.707106781):(r=Math.sqrt(T),i=C/r,s=R/r):E<.01?(i=.707106781,r=.707106781,s=0):(s=Math.sqrt(E),i=D/s,r=R/s),this.set(i,r,s,n),this}let b=Math.sqrt((v-m)*(v-m)+(f-y)*(f-y)+(h-c)*(h-c));return Math.abs(b)<.001&&(b=1),this.x=(v-m)/b,this.y=(f-y)/b,this.z=(h-c)/b,this.w=Math.acos((u+p+_-1)/2),this}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this.z=Math.min(this.z,e.z),this.w=Math.min(this.w,e.w),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this.z=Math.max(this.z,e.z),this.w=Math.max(this.w,e.w),this}clamp(e,n){return this.x=Math.max(e.x,Math.min(n.x,this.x)),this.y=Math.max(e.y,Math.min(n.y,this.y)),this.z=Math.max(e.z,Math.min(n.z,this.z)),this.w=Math.max(e.w,Math.min(n.w,this.w)),this}clampScalar(e,n){return this.x=Math.max(e,Math.min(n,this.x)),this.y=Math.max(e,Math.min(n,this.y)),this.z=Math.max(e,Math.min(n,this.z)),this.w=Math.max(e,Math.min(n,this.w)),this}clampLength(e,n){const i=this.length();return this.divideScalar(i||1).multiplyScalar(Math.max(e,Math.min(n,i)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this.w=Math.floor(this.w),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this.w=Math.ceil(this.w),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this.w=Math.round(this.w),this}roundToZero(){return this.x=this.x<0?Math.ceil(this.x):Math.floor(this.x),this.y=this.y<0?Math.ceil(this.y):Math.floor(this.y),this.z=this.z<0?Math.ceil(this.z):Math.floor(this.z),this.w=this.w<0?Math.ceil(this.w):Math.floor(this.w),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this.w=-this.w,this}dot(e){return this.x*e.x+this.y*e.y+this.z*e.z+this.w*e.w}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)+Math.abs(this.w)}normalize(){return this.divideScalar(this.length()||1)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,n){return this.x+=(e.x-this.x)*n,this.y+=(e.y-this.y)*n,this.z+=(e.z-this.z)*n,this.w+=(e.w-this.w)*n,this}lerpVectors(e,n,i){return this.x=e.x+(n.x-e.x)*i,this.y=e.y+(n.y-e.y)*i,this.z=e.z+(n.z-e.z)*i,this.w=e.w+(n.w-e.w)*i,this}equals(e){return e.x===this.x&&e.y===this.y&&e.z===this.z&&e.w===this.w}fromArray(e,n=0){return this.x=e[n],this.y=e[n+1],this.z=e[n+2],this.w=e[n+3],this}toArray(e=[],n=0){return e[n]=this.x,e[n+1]=this.y,e[n+2]=this.z,e[n+3]=this.w,e}fromBufferAttribute(e,n){return this.x=e.getX(n),this.y=e.getY(n),this.z=e.getZ(n),this.w=e.getW(n),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this.w=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z,yield this.w}}class kMe extends Pp{constructor(e=1,n=1,i={}){super(),this.isRenderTarget=!0,this.width=e,this.height=n,this.depth=1,this.scissor=new Fr(0,0,e,n),this.scissorTest=!1,this.viewport=new Fr(0,0,e,n);const r={width:e,height:n,depth:1};i.encoding!==void 0&&(fy("THREE.WebGLRenderTarget: option.encoding has been replaced by option.colorSpace."),i.colorSpace=i.encoding===Yh?ln:Kh),this.texture=new aa(r,i.mapping,i.wrapS,i.wrapT,i.magFilter,i.minFilter,i.format,i.type,i.anisotropy,i.colorSpace),this.texture.isRenderTargetTexture=!0,this.texture.flipY=!1,this.texture.generateMipmaps=i.generateMipmaps!==void 0?i.generateMipmaps:!1,this.texture.internalFormat=i.internalFormat!==void 0?i.internalFormat:null,this.texture.minFilter=i.minFilter!==void 0?i.minFilter:xo,this.depthBuffer=i.depthBuffer!==void 0?i.depthBuffer:!0,this.stencilBuffer=i.stencilBuffer!==void 0?i.stencilBuffer:!1,this.depthTexture=i.depthTexture!==void 0?i.depthTexture:null,this.samples=i.samples!==void 0?i.samples:0}setSize(e,n,i=1){(this.width!==e||this.height!==n||this.depth!==i)&&(this.width=e,this.height=n,this.depth=i,this.texture.image.width=e,this.texture.image.height=n,this.texture.image.depth=i,this.dispose()),this.viewport.set(0,0,e,n),this.scissor.set(0,0,e,n)}clone(){return new this.constructor().copy(this)}copy(e){this.width=e.width,this.height=e.height,this.depth=e.depth,this.scissor.copy(e.scissor),this.scissorTest=e.scissorTest,this.viewport.copy(e.viewport),this.texture=e.texture.clone(),this.texture.isRenderTargetTexture=!0;const n=Object.assign({},e.texture.image);return this.texture.source=new SQ(n),this.depthBuffer=e.depthBuffer,this.stencilBuffer=e.stencilBuffer,e.depthTexture!==null&&(this.depthTexture=e.depthTexture.clone()),this.samples=e.samples,this}dispose(){this.dispatchEvent({type:"dispose"})}}class hp extends kMe{constructor(e=1,n=1,i={}){super(e,n,i),this.isWebGLRenderTarget=!0}}class TQ extends aa{constructor(e=null,n=1,i=1,r=1){super(null),this.isDataArrayTexture=!0,this.image={data:e,width:n,height:i,depth:r},this.magFilter=Ss,this.minFilter=Ss,this.wrapR=sl,this.generateMipmaps=!1,this.flipY=!1,this.unpackAlignment=1}}class IMe extends aa{constructor(e=null,n=1,i=1,r=1){super(null),this.isData3DTexture=!0,this.image={data:e,width:n,height:i,depth:r},this.magFilter=Ss,this.minFilter=Ss,this.wrapR=sl,this.generateMipmaps=!1,this.flipY=!1,this.unpackAlignment=1}}class pp{constructor(e=0,n=0,i=0,r=1){this.isQuaternion=!0,this._x=e,this._y=n,this._z=i,this._w=r}static slerpFlat(e,n,i,r,s,a,o){let l=i[r+0],u=i[r+1],c=i[r+2],f=i[r+3];const h=s[a+0],p=s[a+1],m=s[a+2],y=s[a+3];if(o===0){e[n+0]=l,e[n+1]=u,e[n+2]=c,e[n+3]=f;return}if(o===1){e[n+0]=h,e[n+1]=p,e[n+2]=m,e[n+3]=y;return}if(f!==y||l!==h||u!==p||c!==m){let v=1-o;const _=l*h+u*p+c*m+f*y,b=_>=0?1:-1,x=1-_*_;if(x>Number.EPSILON){const E=Math.sqrt(x),C=Math.atan2(E,_*b);v=Math.sin(v*C)/E,o=Math.sin(o*C)/E}const T=o*b;if(l=l*v+h*T,u=u*v+p*T,c=c*v+m*T,f=f*v+y*T,v===1-o){const E=1/Math.sqrt(l*l+u*u+c*c+f*f);l*=E,u*=E,c*=E,f*=E}}e[n]=l,e[n+1]=u,e[n+2]=c,e[n+3]=f}static multiplyQuaternionsFlat(e,n,i,r,s,a){const o=i[r],l=i[r+1],u=i[r+2],c=i[r+3],f=s[a],h=s[a+1],p=s[a+2],m=s[a+3];return e[n]=o*m+c*f+l*p-u*h,e[n+1]=l*m+c*h+u*f-o*p,e[n+2]=u*m+c*p+o*h-l*f,e[n+3]=c*m-o*f-l*h-u*p,e}get x(){return this._x}set x(e){this._x=e,this._onChangeCallback()}get y(){return this._y}set y(e){this._y=e,this._onChangeCallback()}get z(){return this._z}set z(e){this._z=e,this._onChangeCallback()}get w(){return this._w}set w(e){this._w=e,this._onChangeCallback()}set(e,n,i,r){return this._x=e,this._y=n,this._z=i,this._w=r,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._w)}copy(e){return this._x=e.x,this._y=e.y,this._z=e.z,this._w=e.w,this._onChangeCallback(),this}setFromEuler(e,n){const i=e._x,r=e._y,s=e._z,a=e._order,o=Math.cos,l=Math.sin,u=o(i/2),c=o(r/2),f=o(s/2),h=l(i/2),p=l(r/2),m=l(s/2);switch(a){case"XYZ":this._x=h*c*f+u*p*m,this._y=u*p*f-h*c*m,this._z=u*c*m+h*p*f,this._w=u*c*f-h*p*m;break;case"YXZ":this._x=h*c*f+u*p*m,this._y=u*p*f-h*c*m,this._z=u*c*m-h*p*f,this._w=u*c*f+h*p*m;break;case"ZXY":this._x=h*c*f-u*p*m,this._y=u*p*f+h*c*m,this._z=u*c*m+h*p*f,this._w=u*c*f-h*p*m;break;case"ZYX":this._x=h*c*f-u*p*m,this._y=u*p*f+h*c*m,this._z=u*c*m-h*p*f,this._w=u*c*f+h*p*m;break;case"YZX":this._x=h*c*f+u*p*m,this._y=u*p*f+h*c*m,this._z=u*c*m-h*p*f,this._w=u*c*f-h*p*m;break;case"XZY":this._x=h*c*f-u*p*m,this._y=u*p*f-h*c*m,this._z=u*c*m+h*p*f,this._w=u*c*f+h*p*m;break;default:console.warn("THREE.Quaternion: .setFromEuler() encountered an unknown order: "+a)}return n!==!1&&this._onChangeCallback(),this}setFromAxisAngle(e,n){const i=n/2,r=Math.sin(i);return this._x=e.x*r,this._y=e.y*r,this._z=e.z*r,this._w=Math.cos(i),this._onChangeCallback(),this}setFromRotationMatrix(e){const n=e.elements,i=n[0],r=n[4],s=n[8],a=n[1],o=n[5],l=n[9],u=n[2],c=n[6],f=n[10],h=i+o+f;if(h>0){const p=.5/Math.sqrt(h+1);this._w=.25/p,this._x=(c-l)*p,this._y=(s-u)*p,this._z=(a-r)*p}else if(i>o&&i>f){const p=2*Math.sqrt(1+i-o-f);this._w=(c-l)/p,this._x=.25*p,this._y=(r+a)/p,this._z=(s+u)/p}else if(o>f){const p=2*Math.sqrt(1+o-i-f);this._w=(s-u)/p,this._x=(r+a)/p,this._y=.25*p,this._z=(l+c)/p}else{const p=2*Math.sqrt(1+f-i-o);this._w=(a-r)/p,this._x=(s+u)/p,this._y=(l+c)/p,this._z=.25*p}return this._onChangeCallback(),this}setFromUnitVectors(e,n){let i=e.dot(n)+1;return i<Number.EPSILON?(i=0,Math.abs(e.x)>Math.abs(e.z)?(this._x=-e.y,this._y=e.x,this._z=0,this._w=i):(this._x=0,this._y=-e.z,this._z=e.y,this._w=i)):(this._x=e.y*n.z-e.z*n.y,this._y=e.z*n.x-e.x*n.z,this._z=e.x*n.y-e.y*n.x,this._w=i),this.normalize()}angleTo(e){return 2*Math.acos(Math.abs(Yr(this.dot(e),-1,1)))}rotateTowards(e,n){const i=this.angleTo(e);if(i===0)return this;const r=Math.min(1,n/i);return this.slerp(e,r),this}identity(){return this.set(0,0,0,1)}invert(){return this.conjugate()}conjugate(){return this._x*=-1,this._y*=-1,this._z*=-1,this._onChangeCallback(),this}dot(e){return this._x*e._x+this._y*e._y+this._z*e._z+this._w*e._w}lengthSq(){return this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w}length(){return Math.sqrt(this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w)}normalize(){let e=this.length();return e===0?(this._x=0,this._y=0,this._z=0,this._w=1):(e=1/e,this._x=this._x*e,this._y=this._y*e,this._z=this._z*e,this._w=this._w*e),this._onChangeCallback(),this}multiply(e){return this.multiplyQuaternions(this,e)}premultiply(e){return this.multiplyQuaternions(e,this)}multiplyQuaternions(e,n){const i=e._x,r=e._y,s=e._z,a=e._w,o=n._x,l=n._y,u=n._z,c=n._w;return this._x=i*c+a*o+r*u-s*l,this._y=r*c+a*l+s*o-i*u,this._z=s*c+a*u+i*l-r*o,this._w=a*c-i*o-r*l-s*u,this._onChangeCallback(),this}slerp(e,n){if(n===0)return this;if(n===1)return this.copy(e);const i=this._x,r=this._y,s=this._z,a=this._w;let o=a*e._w+i*e._x+r*e._y+s*e._z;if(o<0?(this._w=-e._w,this._x=-e._x,this._y=-e._y,this._z=-e._z,o=-o):this.copy(e),o>=1)return this._w=a,this._x=i,this._y=r,this._z=s,this;const l=1-o*o;if(l<=Number.EPSILON){const p=1-n;return this._w=p*a+n*this._w,this._x=p*i+n*this._x,this._y=p*r+n*this._y,this._z=p*s+n*this._z,this.normalize(),this._onChangeCallback(),this}const u=Math.sqrt(l),c=Math.atan2(u,o),f=Math.sin((1-n)*c)/u,h=Math.sin(n*c)/u;return this._w=a*f+this._w*h,this._x=i*f+this._x*h,this._y=r*f+this._y*h,this._z=s*f+this._z*h,this._onChangeCallback(),this}slerpQuaternions(e,n,i){return this.copy(e).slerp(n,i)}random(){const e=Math.random(),n=Math.sqrt(1-e),i=Math.sqrt(e),r=2*Math.PI*Math.random(),s=2*Math.PI*Math.random();return this.set(n*Math.cos(r),i*Math.sin(s),i*Math.cos(s),n*Math.sin(r))}equals(e){return e._x===this._x&&e._y===this._y&&e._z===this._z&&e._w===this._w}fromArray(e,n=0){return this._x=e[n],this._y=e[n+1],this._z=e[n+2],this._w=e[n+3],this._onChangeCallback(),this}toArray(e=[],n=0){return e[n]=this._x,e[n+1]=this._y,e[n+2]=this._z,e[n+3]=this._w,e}fromBufferAttribute(e,n){return this._x=e.getX(n),this._y=e.getY(n),this._z=e.getZ(n),this._w=e.getW(n),this}toJSON(){return this.toArray()}_onChange(e){return this._onChangeCallback=e,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._w}}class Ie{constructor(e=0,n=0,i=0){Ie.prototype.isVector3=!0,this.x=e,this.y=n,this.z=i}set(e,n,i){return i===void 0&&(i=this.z),this.x=e,this.y=n,this.z=i,this}setScalar(e){return this.x=e,this.y=e,this.z=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setZ(e){return this.z=e,this}setComponent(e,n){switch(e){case 0:this.x=n;break;case 1:this.y=n;break;case 2:this.z=n;break;default:throw new Error("index is out of range: "+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;case 2:return this.z;default:throw new Error("index is out of range: "+e)}}clone(){return new this.constructor(this.x,this.y,this.z)}copy(e){return this.x=e.x,this.y=e.y,this.z=e.z,this}add(e){return this.x+=e.x,this.y+=e.y,this.z+=e.z,this}addScalar(e){return this.x+=e,this.y+=e,this.z+=e,this}addVectors(e,n){return this.x=e.x+n.x,this.y=e.y+n.y,this.z=e.z+n.z,this}addScaledVector(e,n){return this.x+=e.x*n,this.y+=e.y*n,this.z+=e.z*n,this}sub(e){return this.x-=e.x,this.y-=e.y,this.z-=e.z,this}subScalar(e){return this.x-=e,this.y-=e,this.z-=e,this}subVectors(e,n){return this.x=e.x-n.x,this.y=e.y-n.y,this.z=e.z-n.z,this}multiply(e){return this.x*=e.x,this.y*=e.y,this.z*=e.z,this}multiplyScalar(e){return this.x*=e,this.y*=e,this.z*=e,this}multiplyVectors(e,n){return this.x=e.x*n.x,this.y=e.y*n.y,this.z=e.z*n.z,this}applyEuler(e){return this.applyQuaternion(A9.setFromEuler(e))}applyAxisAngle(e,n){return this.applyQuaternion(A9.setFromAxisAngle(e,n))}applyMatrix3(e){const n=this.x,i=this.y,r=this.z,s=e.elements;return this.x=s[0]*n+s[3]*i+s[6]*r,this.y=s[1]*n+s[4]*i+s[7]*r,this.z=s[2]*n+s[5]*i+s[8]*r,this}applyNormalMatrix(e){return this.applyMatrix3(e).normalize()}applyMatrix4(e){const n=this.x,i=this.y,r=this.z,s=e.elements,a=1/(s[3]*n+s[7]*i+s[11]*r+s[15]);return this.x=(s[0]*n+s[4]*i+s[8]*r+s[12])*a,this.y=(s[1]*n+s[5]*i+s[9]*r+s[13])*a,this.z=(s[2]*n+s[6]*i+s[10]*r+s[14])*a,this}
vendor: 5,195 bytes, line 313
313applyQuaternion(e){const n=this.x,i=this.y,r=this.z,s=e.x,a=e.y,o=e.z,l=e.w,u=l*n+a*r-o*i,c=l*i+o*n-s*r,f=l*r+s*i-a*n,h=-s*n-a*i-o*r;return this.x=u*l+h*-s+c*-o-f*-a,this.y=c*l+h*-a+f*-s-u*-o,this.z=f*l+h*-o+u*-a-c*-s,this}project(e){return this.applyMatrix4(e.matrixWorldInverse).applyMatrix4(e.projectionMatrix)}unproject(e){return this.applyMatrix4(e.projectionMatrixInverse).applyMatrix4(e.matrixWorld)}transformDirection(e){const n=this.x,i=this.y,r=this.z,s=e.elements;return this.x=s[0]*n+s[4]*i+s[8]*r,this.y=s[1]*n+s[5]*i+s[9]*r,this.z=s[2]*n+s[6]*i+s[10]*r,this.normalize()}divide(e){return this.x/=e.x,this.y/=e.y,this.z/=e.z,this}divideScalar(e){return this.multiplyScalar(1/e)}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this.z=Math.min(this.z,e.z),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this.z=Math.max(this.z,e.z),this}clamp(e,n){return this.x=Math.max(e.x,Math.min(n.x,this.x)),this.y=Math.max(e.y,Math.min(n.y,this.y)),this.z=Math.max(e.z,Math.min(n.z,this.z)),this}clampScalar(e,n){return this.x=Math.max(e,Math.min(n,this.x)),this.y=Math.max(e,Math.min(n,this.y)),this.z=Math.max(e,Math.min(n,this.z)),this}clampLength(e,n){const i=this.length();return this.divideScalar(i||1).multiplyScalar(Math.max(e,Math.min(n,i)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this}roundToZero(){return this.x=this.x<0?Math.ceil(this.x):Math.floor(this.x),this.y=this.y<0?Math.ceil(this.y):Math.floor(this.y),this.z=this.z<0?Math.ceil(this.z):Math.floor(this.z),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this}dot(e){return this.x*e.x+this.y*e.y+this.z*e.z}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)}normalize(){return this.divideScalar(this.length()||1)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,n){return this.x+=(e.x-this.x)*n,this.y+=(e.y-this.y)*n,this.z+=(e.z-this.z)*n,this}lerpVectors(e,n,i){return this.x=e.x+(n.x-e.x)*i,this.y=e.y+(n.y-e.y)*i,this.z=e.z+(n.z-e.z)*i,this}cross(e){return this.crossVectors(this,e)}crossVectors(e,n){const i=e.x,r=e.y,s=e.z,a=n.x,o=n.y,l=n.z;return this.x=r*l-s*o,this.y=s*a-i*l,this.z=i*o-r*a,this}projectOnVector(e){const n=e.lengthSq();if(n===0)return this.set(0,0,0);const i=e.dot(this)/n;return this.copy(e).multiplyScalar(i)}projectOnPlane(e){return AD.copy(this).projectOnVector(e),this.sub(AD)}reflect(e){return this.sub(AD.copy(e).multiplyScalar(2*this.dot(e)))}angleTo(e){const n=Math.sqrt(this.lengthSq()*e.lengthSq());if(n===0)return Math.PI/2;const i=this.dot(e)/n;return Math.acos(Yr(i,-1,1))}distanceTo(e){return Math.sqrt(this.distanceToSquared(e))}distanceToSquared(e){const n=this.x-e.x,i=this.y-e.y,r=this.z-e.z;return n*n+i*i+r*r}manhattanDistanceTo(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)+Math.abs(this.z-e.z)}setFromSpherical(e){return this.setFromSphericalCoords(e.radius,e.phi,e.theta)}setFromSphericalCoords(e,n,i){const r=Math.sin(n)*e;return this.x=r*Math.sin(i),this.y=Math.cos(n)*e,this.z=r*Math.cos(i),this}setFromCylindrical(e){return this.setFromCylindricalCoords(e.radius,e.theta,e.y)}setFromCylindricalCoords(e,n,i){return this.x=e*Math.sin(n),this.y=i,this.z=e*Math.cos(n),this}setFromMatrixPosition(e){const n=e.elements;return this.x=n[12],this.y=n[13],this.z=n[14],this}setFromMatrixScale(e){const n=this.setFromMatrixColumn(e,0).length(),i=this.setFromMatrixColumn(e,1).length(),r=this.setFromMatrixColumn(e,2).length();return this.x=n,this.y=i,this.z=r,this}setFromMatrixColumn(e,n){return this.fromArray(e.elements,n*4)}setFromMatrix3Column(e,n){return this.fromArray(e.elements,n*3)}setFromEuler(e){return this.x=e._x,this.y=e._y,this.z=e._z,this}setFromColor(e){return this.x=e.r,this.y=e.g,this.z=e.b,this}equals(e){return e.x===this.x&&e.y===this.y&&e.z===this.z}fromArray(e,n=0){return this.x=e[n],this.y=e[n+1],this.z=e[n+2],this}toArray(e=[],n=0){return e[n]=this.x,e[n+1]=this.y,e[n+2]=this.z,e}fromBufferAttribute(e,n){return this.x=e.getX(n),this.y=e.getY(n),this.z=e.getZ(n),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this}randomDirection(){const e=(Math.random()-.5)*2,n=Math.random()*Math.PI*2,i=Math.sqrt(1-e**2);return this.x=i*Math.cos(n),this.y=i*Math.sin(n),this.z=e,this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z}}const AD=new Ie,A9=new pp;class Qb{constructor(e=new Ie(1/0,1/0,1/0),n=new Ie(-1/0,-1/0,-1/0)){this.isBox3=!0,this.min=e,this.max=n}set(e,n){return this.min.copy(e),this.max.copy(n),this}setFromArray(e){this.makeEmpty();for(let n=0,i=e.length;n<i;n+=3)this.expandByPoint(Gu.fromArray(e,n));return this}setFromBufferAttribute(e){this.makeEmpty();for(let n=0,i=e.count;n<i;n++)this.expandByPoint(Gu.fromBufferAttribute(e,n));return this}setFromPoints(e){this.makeEmpty();for(let n=0,i=e.length;n<i;
vendor: 60,282 bytes, line 313
313n++)this.expandByPoint(e[n]);return this}setFromCenterAndSize(e,n){const i=Gu.copy(n).multiplyScalar(.5);return this.min.copy(e).sub(i),this.max.copy(e).add(i),this}setFromObject(e,n=!1){return this.makeEmpty(),this.expandByObject(e,n)}clone(){return new this.constructor().copy(this)}copy(e){return this.min.copy(e.min),this.max.copy(e.max),this}makeEmpty(){return this.min.x=this.min.y=this.min.z=1/0,this.max.x=this.max.y=this.max.z=-1/0,this}isEmpty(){return this.max.x<this.min.x||this.max.y<this.min.y||this.max.z<this.min.z}getCenter(e){return this.isEmpty()?e.set(0,0,0):e.addVectors(this.min,this.max).multiplyScalar(.5)}getSize(e){return this.isEmpty()?e.set(0,0,0):e.subVectors(this.max,this.min)}expandByPoint(e){return this.min.min(e),this.max.max(e),this}expandByVector(e){return this.min.sub(e),this.max.add(e),this}expandByScalar(e){return this.min.addScalar(-e),this.max.addScalar(e),this}expandByObject(e,n=!1){if(e.updateWorldMatrix(!1,!1),e.boundingBox!==void 0)e.boundingBox===null&&e.computeBoundingBox(),v0.copy(e.boundingBox),v0.applyMatrix4(e.matrixWorld),this.union(v0);else{const r=e.geometry;if(r!==void 0)if(n&&r.attributes!==void 0&&r.attributes.position!==void 0){const s=r.attributes.position;for(let a=0,o=s.count;a<o;a++)Gu.fromBufferAttribute(s,a).applyMatrix4(e.matrixWorld),this.expandByPoint(Gu)}else r.boundingBox===null&&r.computeBoundingBox(),v0.copy(r.boundingBox),v0.applyMatrix4(e.matrixWorld),this.union(v0)}const i=e.children;for(let r=0,s=i.length;r<s;r++)this.expandByObject(i[r],n);return this}containsPoint(e){return!(e.x<this.min.x||e.x>this.max.x||e.y<this.min.y||e.y>this.max.y||e.z<this.min.z||e.z>this.max.z)}containsBox(e){return this.min.x<=e.min.x&&e.max.x<=this.max.x&&this.min.y<=e.min.y&&e.max.y<=this.max.y&&this.min.z<=e.min.z&&e.max.z<=this.max.z}getParameter(e,n){return n.set((e.x-this.min.x)/(this.max.x-this.min.x),(e.y-this.min.y)/(this.max.y-this.min.y),(e.z-this.min.z)/(this.max.z-this.min.z))}intersectsBox(e){return!(e.max.x<this.min.x||e.min.x>this.max.x||e.max.y<this.min.y||e.min.y>this.max.y||e.max.z<this.min.z||e.min.z>this.max.z)}intersectsSphere(e){return this.clampPoint(e.center,Gu),Gu.distanceToSquared(e.center)<=e.radius*e.radius}intersectsPlane(e){let n,i;return e.normal.x>0?(n=e.normal.x*this.min.x,i=e.normal.x*this.max.x):(n=e.normal.x*this.max.x,i=e.normal.x*this.min.x),e.normal.y>0?(n+=e.normal.y*this.min.y,i+=e.normal.y*this.max.y):(n+=e.normal.y*this.max.y,i+=e.normal.y*this.min.y),e.normal.z>0?(n+=e.normal.z*this.min.z,i+=e.normal.z*this.max.z):(n+=e.normal.z*this.max.z,i+=e.normal.z*this.min.z),n<=-e.constant&&i>=-e.constant}intersectsTriangle(e){if(this.isEmpty())return!1;this.getCenter(W_),sS.subVectors(this.max,W_),y0.subVectors(e.a,W_),b0.subVectors(e.b,W_),x0.subVectors(e.c,W_),mf.subVectors(b0,y0),gf.subVectors(x0,b0),nh.subVectors(y0,x0);let n=[0,-mf.z,mf.y,0,-gf.z,gf.y,0,-nh.z,nh.y,mf.z,0,-mf.x,gf.z,0,-gf.x,nh.z,0,-nh.x,-mf.y,mf.x,0,-gf.y,gf.x,0,-nh.y,nh.x,0];return!MD(n,y0,b0,x0,sS)||(n=[1,0,0,0,1,0,0,0,1],!MD(n,y0,b0,x0,sS))?!1:(aS.crossVectors(mf,gf),n=[aS.x,aS.y,aS.z],MD(n,y0,b0,x0,sS))}clampPoint(e,n){return n.copy(e).clamp(this.min,this.max)}distanceToPoint(e){return this.clampPoint(e,Gu).distanceTo(e)}getBoundingSphere(e){return this.isEmpty()?e.makeEmpty():(this.getCenter(e.center),e.radius=this.getSize(Gu).length()*.5),e}intersect(e){return this.min.max(e.min),this.max.min(e.max),this.isEmpty()&&this.makeEmpty(),this}union(e){return this.min.min(e.min),this.max.max(e.max),this}applyMatrix4(e){return this.isEmpty()?this:(Wu[0].set(this.min.x,this.min.y,this.min.z).applyMatrix4(e),Wu[1].set(this.min.x,this.min.y,this.max.z).applyMatrix4(e),Wu[2].set(this.min.x,this.max.y,this.min.z).applyMatrix4(e),Wu[3].set(this.min.x,this.max.y,this.max.z).applyMatrix4(e),Wu[4].set(this.max.x,this.min.y,this.min.z).applyMatrix4(e),Wu[5].set(this.max.x,this.min.y,this.max.z).applyMatrix4(e),Wu[6].set(this.max.x,this.max.y,this.min.z).applyMatrix4(e),Wu[7].set(this.max.x,this.max.y,this.max.z).applyMatrix4(e),this.setFromPoints(Wu),this)}translate(e){return this.min.add(e),this.max.add(e),this}equals(e){return e.min.equals(this.min)&&e.max.equals(this.max)}}const Wu=[new Ie,new Ie,new Ie,new Ie,new Ie,new Ie,new Ie,new Ie],Gu=new Ie,v0=new Qb,y0=new Ie,b0=new Ie,x0=new Ie,mf=new Ie,gf=new Ie,nh=new Ie,W_=new Ie,sS=new Ie,aS=new Ie,ih=new Ie;function MD(t,e,n,i,r){for(let s=0,a=t.length-3;s<=a;s+=3){ih.fromArray(t,s);const o=r.x*Math.abs(ih.x)+r.y*Math.abs(ih.y)+r.z*Math.abs(ih.z),l=e.dot(ih),u=n.dot(ih),c=i.dot(ih);if(Math.max(-Math.max(l,u,c),Math.min(l,u,c))>o)return!1}return!0}const LMe=new Qb,G_=new Ie,DD=new Ie;class g4{constructor(e=new Ie,n=-1){this.center=e,this.radius=n}set(e,n){return this.center.copy(e),this.radius=n,this}setFromPoints(e,n){const i=this.center;n!==void 0?i.copy(n):LMe.setFromPoints(e).getCenter(i);let r=0;for(let s=0,a=e.length;s<a;s++)r=Math.max(r,i.distanceToSquared(e[s]));return this.radius=Math.sqrt(r),this}copy(e){return this.center.copy(e.center),this.radius=e.radius,this}isEmpty(){return this.radius<0}makeEmpty(){return this.center.set(0,0,0),this.radius=-1,this}containsPoint(e){return e.distanceToSquared(this.center)<=this.radius*this.radius}distanceToPoint(e){return e.distanceTo(this.center)-this.radius}intersectsSphere(e){const n=this.radius+e.radius;return e.center.distanceToSquared(this.center)<=n*n}intersectsBox(e){return e.intersectsSphere(this)}intersectsPlane(e){return Math.abs(e.distanceToPoint(this.center))<=this.radius}clampPoint(e,n){const i=this.center.distanceToSquared(e);return n.copy(e),i>this.radius*this.radius&&(n.sub(this.center).normalize(),n.multiplyScalar(this.radius).add(this.center)),n}getBoundingBox(e){return this.isEmpty()?(e.makeEmpty(),e):(e.set(this.center,this.center),e.expandByScalar(this.radius),e)}applyMatrix4(e){return this.center.applyMatrix4(e),this.radius=this.radius*e.getMaxScaleOnAxis(),this}translate(e){return this.center.add(e),this}expandByPoint(e){if(this.isEmpty())return this.center.copy(e),this.radius=0,this;G_.subVectors(e,this.center);const n=G_.lengthSq();if(n>this.radius*this.radius){const i=Math.sqrt(n),r=(i-this.radius)*.5;this.center.addScaledVector(G_,r/i),this.radius+=r}return this}union(e){return e.isEmpty()?this:this.isEmpty()?(this.copy(e),this):(this.center.equals(e.center)===!0?this.radius=Math.max(this.radius,e.radius):(DD.subVectors(e.center,this.center).setLength(e.radius),this.expandByPoint(G_.copy(e.center).add(DD)),this.expandByPoint(G_.copy(e.center).sub(DD))),this)}equals(e){return e.center.equals(this.center)&&e.radius===this.radius}clone(){return new this.constructor().copy(this)}}const ju=new Ie,PD=new Ie,oS=new Ie,_f=new Ie,OD=new Ie,lS=new Ie,RD=new Ie;class _4{constructor(e=new Ie,n=new Ie(0,0,-1)){this.origin=e,this.direction=n}set(e,n){return this.origin.copy(e),this.direction.copy(n),this}copy(e){return this.origin.copy(e.origin),this.direction.copy(e.direction),this}at(e,n){return n.copy(this.origin).addScaledVector(this.direction,e)}lookAt(e){return this.direction.copy(e).sub(this.origin).normalize(),this}recast(e){return this.origin.copy(this.at(e,ju)),this}closestPointToPoint(e,n){n.subVectors(e,this.origin);const i=n.dot(this.direction);return i<0?n.copy(this.origin):n.copy(this.origin).addScaledVector(this.direction,i)}distanceToPoint(e){return Math.sqrt(this.distanceSqToPoint(e))}distanceSqToPoint(e){const n=ju.subVectors(e,this.origin).dot(this.direction);return n<0?this.origin.distanceToSquared(e):(ju.copy(this.origin).addScaledVector(this.direction,n),ju.distanceToSquared(e))}distanceSqToSegment(e,n,i,r){PD.copy(e).add(n).multiplyScalar(.5),oS.copy(n).sub(e).normalize(),_f.copy(this.origin).sub(PD);const s=e.distanceTo(n)*.5,a=-this.direction.dot(oS),o=_f.dot(this.direction),l=-_f.dot(oS),u=_f.lengthSq(),c=Math.abs(1-a*a);let f,h,p,m;if(c>0)if(f=a*l-o,h=a*o-l,m=s*c,f>=0)if(h>=-m)if(h<=m){const y=1/c;f*=y,h*=y,p=f*(f+a*h+2*o)+h*(a*f+h+2*l)+u}else h=s,f=Math.max(0,-(a*h+o)),p=-f*f+h*(h+2*l)+u;else h=-s,f=Math.max(0,-(a*h+o)),p=-f*f+h*(h+2*l)+u;else h<=-m?(f=Math.max(0,-(-a*s+o)),h=f>0?-s:Math.min(Math.max(-s,-l),s),p=-f*f+h*(h+2*l)+u):h<=m?(f=0,h=Math.min(Math.max(-s,-l),s),p=h*(h+2*l)+u):(f=Math.max(0,-(a*s+o)),h=f>0?s:Math.min(Math.max(-s,-l),s),p=-f*f+h*(h+2*l)+u);else h=a>0?-s:s,f=Math.max(0,-(a*h+o)),p=-f*f+h*(h+2*l)+u;return i&&i.copy(this.origin).addScaledVector(this.direction,f),r&&r.copy(PD).addScaledVector(oS,h),p}intersectSphere(e,n){ju.subVectors(e.center,this.origin);const i=ju.dot(this.direction),r=ju.dot(ju)-i*i,s=e.radius*e.radius;if(r>s)return null;const a=Math.sqrt(s-r),o=i-a,l=i+a;return l<0?null:o<0?this.at(l,n):this.at(o,n)}intersectsSphere(e){return this.distanceSqToPoint(e.center)<=e.radius*e.radius}distanceToPlane(e){const n=e.normal.dot(this.direction);if(n===0)return e.distanceToPoint(this.origin)===0?0:null;const i=-(this.origin.dot(e.normal)+e.constant)/n;return i>=0?i:null}intersectPlane(e,n){const i=this.distanceToPlane(e);return i===null?null:this.at(i,n)}intersectsPlane(e){const n=e.distanceToPoint(this.origin);return n===0||e.normal.dot(this.direction)*n<0}intersectBox(e,n){let i,r,s,a,o,l;const u=1/this.direction.x,c=1/this.direction.y,f=1/this.direction.z,h=this.origin;return u>=0?(i=(e.min.x-h.x)*u,r=(e.max.x-h.x)*u):(i=(e.max.x-h.x)*u,r=(e.min.x-h.x)*u),c>=0?(s=(e.min.y-h.y)*c,a=(e.max.y-h.y)*c):(s=(e.max.y-h.y)*c,a=(e.min.y-h.y)*c),i>a||s>r||((s>i||isNaN(i))&&(i=s),(a<r||isNaN(r))&&(r=a),f>=0?(o=(e.min.z-h.z)*f,l=(e.max.z-h.z)*f):(o=(e.max.z-h.z)*f,l=(e.min.z-h.z)*f),i>l||o>r)||((o>i||i!==i)&&(i=o),(l<r||r!==r)&&(r=l),r<0)?null:this.at(i>=0?i:r,n)}intersectsBox(e){return this.intersectBox(e,ju)!==null}intersectTriangle(e,n,i,r,s){OD.subVectors(n,e),lS.subVectors(i,e),RD.crossVectors(OD,lS);let a=this.direction.dot(RD),o;if(a>0){if(r)return null;o=1}else if(a<0)o=-1,a=-a;else return null;_f.subVectors(this.origin,e);const l=o*this.direction.dot(lS.crossVectors(_f,lS));if(l<0)return null;const u=o*this.direction.dot(OD.cross(_f));if(u<0||l+u>a)return null;const c=-o*_f.dot(RD);return c<0?null:this.at(c/a,s)}applyMatrix4(e){return this.origin.applyMatrix4(e),this.direction.transformDirection(e),this}equals(e){return e.origin.equals(this.origin)&&e.direction.equals(this.direction)}clone(){return new this.constructor().copy(this)}}class Er{constructor(e,n,i,r,s,a,o,l,u,c,f,h,p,m,y,v){Er.prototype.isMatrix4=!0,this.elements=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],e!==void 0&&this.set(e,n,i,r,s,a,o,l,u,c,f,h,p,m,y,v)}set(e,n,i,r,s,a,o,l,u,c,f,h,p,m,y,v){const _=this.elements;return _[0]=e,_[4]=n,_[8]=i,_[12]=r,_[1]=s,_[5]=a,_[9]=o,_[13]=l,_[2]=u,_[6]=c,_[10]=f,_[14]=h,_[3]=p,_[7]=m,_[11]=y,_[15]=v,this}identity(){return this.set(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1),this}clone(){return new Er().fromArray(this.elements)}copy(e){const n=this.elements,i=e.elements;return n[0]=i[0],n[1]=i[1],n[2]=i[2],n[3]=i[3],n[4]=i[4],n[5]=i[5],n[6]=i[6],n[7]=i[7],n[8]=i[8],n[9]=i[9],n[10]=i[10],n[11]=i[11],n[12]=i[12],n[13]=i[13],n[14]=i[14],n[15]=i[15],this}copyPosition(e){const n=this.elements,i=e.elements;return n[12]=i[12],n[13]=i[13],n[14]=i[14],this}setFromMatrix3(e){const n=e.elements;return this.set(n[0],n[3],n[6],0,n[1],n[4],n[7],0,n[2],n[5],n[8],0,0,0,0,1),this}extractBasis(e,n,i){return e.setFromMatrixColumn(this,0),n.setFromMatrixColumn(this,1),i.setFromMatrixColumn(this,2),this}makeBasis(e,n,i){return this.set(e.x,n.x,i.x,0,e.y,n.y,i.y,0,e.z,n.z,i.z,0,0,0,0,1),this}extractRotation(e){const n=this.elements,i=e.elements,r=1/S0.setFromMatrixColumn(e,0).length(),s=1/S0.setFromMatrixColumn(e,1).length(),a=1/S0.setFromMatrixColumn(e,2).length();return n[0]=i[0]*r,n[1]=i[1]*r,n[2]=i[2]*r,n[3]=0,n[4]=i[4]*s,n[5]=i[5]*s,n[6]=i[6]*s,n[7]=0,n[8]=i[8]*a,n[9]=i[9]*a,n[10]=i[10]*a,n[11]=0,n[12]=0,n[13]=0,n[14]=0,n[15]=1,this}makeRotationFromEuler(e){const n=this.elements,i=e.x,r=e.y,s=e.z,a=Math.cos(i),o=Math.sin(i),l=Math.cos(r),u=Math.sin(r),c=Math.cos(s),f=Math.sin(s);if(e.order==="XYZ"){const h=a*c,p=a*f,m=o*c,y=o*f;n[0]=l*c,n[4]=-l*f,n[8]=u,n[1]=p+m*u,n[5]=h-y*u,n[9]=-o*l,n[2]=y-h*u,n[6]=m+p*u,n[10]=a*l}else if(e.order==="YXZ"){const h=l*c,p=l*f,m=u*c,y=u*f;n[0]=h+y*o,n[4]=m*o-p,n[8]=a*u,n[1]=a*f,n[5]=a*c,n[9]=-o,n[2]=p*o-m,n[6]=y+h*o,n[10]=a*l}else if(e.order==="ZXY"){const h=l*c,p=l*f,m=u*c,y=u*f;n[0]=h-y*o,n[4]=-a*f,n[8]=m+p*o,n[1]=p+m*o,n[5]=a*c,n[9]=y-h*o,n[2]=-a*u,n[6]=o,n[10]=a*l}else if(e.order==="ZYX"){const h=a*c,p=a*f,m=o*c,y=o*f;n[0]=l*c,n[4]=m*u-p,n[8]=h*u+y,n[1]=l*f,n[5]=y*u+h,n[9]=p*u-m,n[2]=-u,n[6]=o*l,n[10]=a*l}else if(e.order==="YZX"){const h=a*l,p=a*u,m=o*l,y=o*u;n[0]=l*c,n[4]=y-h*f,n[8]=m*f+p,n[1]=f,n[5]=a*c,n[9]=-o*c,n[2]=-u*c,n[6]=p*f+m,n[10]=h-y*f}else if(e.order==="XZY"){const h=a*l,p=a*u,m=o*l,y=o*u;n[0]=l*c,n[4]=-f,n[8]=u*c,n[1]=h*f+y,n[5]=a*c,n[9]=p*f-m,n[2]=m*f-p,n[6]=o*c,n[10]=y*f+h}return n[3]=0,n[7]=0,n[11]=0,n[12]=0,n[13]=0,n[14]=0,n[15]=1,this}makeRotationFromQuaternion(e){return this.compose(FMe,e,NMe)}lookAt(e,n,i){const r=this.elements;return Sa.subVectors(e,n),Sa.lengthSq()===0&&(Sa.z=1),Sa.normalize(),vf.crossVectors(i,Sa),vf.lengthSq()===0&&(Math.abs(i.z)===1?Sa.x+=1e-4:Sa.z+=1e-4,Sa.normalize(),vf.crossVectors(i,Sa)),vf.normalize(),uS.crossVectors(Sa,vf),r[0]=vf.x,r[4]=uS.x,r[8]=Sa.x,r[1]=vf.y,r[5]=uS.y,r[9]=Sa.y,r[2]=vf.z,r[6]=uS.z,r[10]=Sa.z,this}multiply(e){return this.multiplyMatrices(this,e)}premultiply(e){return this.multiplyMatrices(e,this)}multiplyMatrices(e,n){const i=e.elements,r=n.elements,s=this.elements,a=i[0],o=i[4],l=i[8],u=i[12],c=i[1],f=i[5],h=i[9],p=i[13],m=i[2],y=i[6],v=i[10],_=i[14],b=i[3],x=i[7],T=i[11],E=i[15],C=r[0],D=r[4],R=r[8],A=r[12],k=r[1],F=r[5],N=r[9],U=r[13],$=r[2],G=r[6],Y=r[10],Q=r[14],re=r[3],he=r[7],X=r[11],ae=r[15];return s[0]=a*C+o*k+l*$+u*re,s[4]=a*D+o*F+l*G+u*he,s[8]=a*R+o*N+l*Y+u*X,s[12]=a*A+o*U+l*Q+u*ae,s[1]=c*C+f*k+h*$+p*re,s[5]=c*D+f*F+h*G+p*he,s[9]=c*R+f*N+h*Y+p*X,s[13]=c*A+f*U+h*Q+p*ae,s[2]=m*C+y*k+v*$+_*re,s[6]=m*D+y*F+v*G+_*he,s[10]=m*R+y*N+v*Y+_*X,s[14]=m*A+y*U+v*Q+_*ae,s[3]=b*C+x*k+T*$+E*re,s[7]=b*D+x*F+T*G+E*he,s[11]=b*R+x*N+T*Y+E*X,s[15]=b*A+x*U+T*Q+E*ae,this}multiplyScalar(e){const n=this.elements;return n[0]*=e,n[4]*=e,n[8]*=e,n[12]*=e,n[1]*=e,n[5]*=e,n[9]*=e,n[13]*=e,n[2]*=e,n[6]*=e,n[10]*=e,n[14]*=e,n[3]*=e,n[7]*=e,n[11]*=e,n[15]*=e,this}determinant(){const e=this.elements,n=e[0],i=e[4],r=e[8],s=e[12],a=e[1],o=e[5],l=e[9],u=e[13],c=e[2],f=e[6],h=e[10],p=e[14],m=e[3],y=e[7],v=e[11],_=e[15];return m*(+s*l*f-r*u*f-s*o*h+i*u*h+r*o*p-i*l*p)+y*(+n*l*p-n*u*h+s*a*h-r*a*p+r*u*c-s*l*c)+v*(+n*u*f-n*o*p-s*a*f+i*a*p+s*o*c-i*u*c)+_*(-r*o*c-n*l*f+n*o*h+r*a*f-i*a*h+i*l*c)}transpose(){const e=this.elements;let n;return n=e[1],e[1]=e[4],e[4]=n,n=e[2],e[2]=e[8],e[8]=n,n=e[6],e[6]=e[9],e[9]=n,n=e[3],e[3]=e[12],e[12]=n,n=e[7],e[7]=e[13],e[13]=n,n=e[11],e[11]=e[14],e[14]=n,this}setPosition(e,n,i){const r=this.elements;return e.isVector3?(r[12]=e.x,r[13]=e.y,r[14]=e.z):(r[12]=e,r[13]=n,r[14]=i),this}invert(){const e=this.elements,n=e[0],i=e[1],r=e[2],s=e[3],a=e[4],o=e[5],l=e[6],u=e[7],c=e[8],f=e[9],h=e[10],p=e[11],m=e[12],y=e[13],v=e[14],_=e[15],b=f*v*u-y*h*u+y*l*p-o*v*p-f*l*_+o*h*_,x=m*h*u-c*v*u-m*l*p+a*v*p+c*l*_-a*h*_,T=c*y*u-m*f*u+m*o*p-a*y*p-c*o*_+a*f*_,E=m*f*l-c*y*l-m*o*h+a*y*h+c*o*v-a*f*v,C=n*b+i*x+r*T+s*E;if(C===0)return this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);const D=1/C;return e[0]=b*D,e[1]=(y*h*s-f*v*s-y*r*p+i*v*p+f*r*_-i*h*_)*D,e[2]=(o*v*s-y*l*s+y*r*u-i*v*u-o*r*_+i*l*_)*D,e[3]=(f*l*s-o*h*s-f*r*u+i*h*u+o*r*p-i*l*p)*D,e[4]=x*D,e[5]=(c*v*s-m*h*s+m*r*p-n*v*p-c*r*_+n*h*_)*D,e[6]=(m*l*s-a*v*s-m*r*u+n*v*u+a*r*_-n*l*_)*D,e[7]=(a*h*s-c*l*s+c*r*u-n*h*u-a*r*p+n*l*p)*D,e[8]=T*D,e[9]=(m*f*s-c*y*s-m*i*p+n*y*p+c*i*_-n*f*_)*D,e[10]=(a*y*s-m*o*s+m*i*u-n*y*u-a*i*_+n*o*_)*D,e[11]=(c*o*s-a*f*s-c*i*u+n*f*u+a*i*p-n*o*p)*D,e[12]=E*D,e[13]=(c*y*r-m*f*r+m*i*h-n*y*h-c*i*v+n*f*v)*D,e[14]=(m*o*r-a*y*r-m*i*l+n*y*l+a*i*v-n*o*v)*D,e[15]=(a*f*r-c*o*r+c*i*l-n*f*l-a*i*h+n*o*h)*D,this}scale(e){const n=this.elements,i=e.x,r=e.y,s=e.z;return n[0]*=i,n[4]*=r,n[8]*=s,n[1]*=i,n[5]*=r,n[9]*=s,n[2]*=i,n[6]*=r,n[10]*=s,n[3]*=i,n[7]*=r,n[11]*=s,this}getMaxScaleOnAxis(){const e=this.elements,n=e[0]*e[0]+e[1]*e[1]+e[2]*e[2],i=e[4]*e[4]+e[5]*e[5]+e[6]*e[6],r=e[8]*e[8]+e[9]*e[9]+e[10]*e[10];return Math.sqrt(Math.max(n,i,r))}makeTranslation(e,n,i){return e.isVector3?this.set(1,0,0,e.x,0,1,0,e.y,0,0,1,e.z,0,0,0,1):this.set(1,0,0,e,0,1,0,n,0,0,1,i,0,0,0,1),this}makeRotationX(e){const n=Math.cos(e),i=Math.sin(e);return this.set(1,0,0,0,0,n,-i,0,0,i,n,0,0,0,0,1),this}makeRotationY(e){const n=Math.cos(e),i=Math.sin(e);return this.set(n,0,i,0,0,1,0,0,-i,0,n,0,0,0,0,1),this}makeRotationZ(e){const n=Math.cos(e),i=Math.sin(e);return this.set(n,-i,0,0,i,n,0,0,0,0,1,0,0,0,0,1),this}makeRotationAxis(e,n){const i=Math.cos(n),r=Math.sin(n),s=1-i,a=e.x,o=e.y,l=e.z,u=s*a,c=s*o;return this.set(u*a+i,u*o-r*l,u*l+r*o,0,u*o+r*l,c*o+i,c*l-r*a,0,u*l-r*o,c*l+r*a,s*l*l+i,0,0,0,0,1),this}makeScale(e,n,i){return this.set(e,0,0,0,0,n,0,0,0,0,i,0,0,0,0,1),this}makeShear(e,n,i,r,s,a){return this.set(1,i,s,0,e,1,a,0,n,r,1,0,0,0,0,1),this}compose(e,n,i){const r=this.elements,s=n._x,a=n._y,o=n._z,l=n._w,u=s+s,c=a+a,f=o+o,h=s*u,p=s*c,m=s*f,y=a*c,v=a*f,_=o*f,b=l*u,x=l*c,T=l*f,E=i.x,C=i.y,D=i.z;return r[0]=(1-(y+_))*E,r[1]=(p+T)*E,r[2]=(m-x)*E,r[3]=0,r[4]=(p-T)*C,r[5]=(1-(h+_))*C,r[6]=(v+b)*C,r[7]=0,r[8]=(m+x)*D,r[9]=(v-b)*D,r[10]=(1-(h+y))*D,r[11]=0,r[12]=e.x,r[13]=e.y,r[14]=e.z,r[15]=1,this}decompose(e,n,i){const r=this.elements;let s=S0.set(r[0],r[1],r[2]).length();const a=S0.set(r[4],r[5],r[6]).length(),o=S0.set(r[8],r[9],r[10]).length();this.determinant()<0&&(s=-s),e.x=r[12],e.y=r[13],e.z=r[14],jo.copy(this);const u=1/s,c=1/a,f=1/o;return jo.elements[0]*=u,jo.elements[1]*=u,jo.elements[2]*=u,jo.elements[4]*=c,jo.elements[5]*=c,jo.elements[6]*=c,jo.elements[8]*=f,jo.elements[9]*=f,jo.elements[10]*=f,n.setFromRotationMatrix(jo),i.x=s,i.y=a,i.z=o,this}makePerspective(e,n,i,r,s,a,o=_c){const l=this.elements,u=2*s/(n-e),c=2*s/(i-r),f=(n+e)/(n-e),h=(i+r)/(i-r);let p,m;if(o===_c)p=-(a+s)/(a-s),m=-2*a*s/(a-s);else if(o===hE)p=-a/(a-s),m=-a*s/(a-s);else throw new Error("THREE.Matrix4.makePerspective(): Invalid coordinate system: "+o);return l[0]=u,l[4]=0,l[8]=f,l[12]=0,l[1]=0,l[5]=c,l[9]=h,l[13]=0,l[2]=0,l[6]=0,l[10]=p,l[14]=m,l[3]=0,l[7]=0,l[11]=-1,l[15]=0,this}makeOrthographic(e,n,i,r,s,a,o=_c){const l=this.elements,u=1/(n-e),c=1/(i-r),f=1/(a-s),h=(n+e)*u,p=(i+r)*c;let m,y;if(o===_c)m=(a+s)*f,y=-2*f;else if(o===hE)m=s*f,y=-1*f;else throw new Error("THREE.Matrix4.makeOrthographic(): Invalid coordinate system: "+o);return l[0]=2*u,l[4]=0,l[8]=0,l[12]=-h,l[1]=0,l[5]=2*c,l[9]=0,l[13]=-p,l[2]=0,l[6]=0,l[10]=y,l[14]=-m,l[3]=0,l[7]=0,l[11]=0,l[15]=1,this}equals(e){const n=this.elements,i=e.elements;for(let r=0;r<16;r++)if(n[r]!==i[r])return!1;return!0}fromArray(e,n=0){for(let i=0;i<16;i++)this.elements[i]=e[i+n];return this}toArray(e=[],n=0){const i=this.elements;return e[n]=i[0],e[n+1]=i[1],e[n+2]=i[2],e[n+3]=i[3],e[n+4]=i[4],e[n+5]=i[5],e[n+6]=i[6],e[n+7]=i[7],e[n+8]=i[8],e[n+9]=i[9],e[n+10]=i[10],e[n+11]=i[11],e[n+12]=i[12],e[n+13]=i[13],e[n+14]=i[14],e[n+15]=i[15],e}}const S0=new Ie,jo=new Er,FMe=new Ie(0,0,0),NMe=new Ie(1,1,1),vf=new Ie,uS=new Ie,Sa=new Ie,M9=new Er,D9=new pp;class Qw{constructor(e=0,n=0,i=0,r=Qw.DEFAULT_ORDER){this.isEuler=!0,this._x=e,this._y=n,this._z=i,this._order=r}get x(){return this._x}set x(e){this._x=e,this._onChangeCallback()}get y(){return this._y}set y(e){this._y=e,this._onChangeCallback()}get z(){return this._z}set z(e){this._z=e,this._onChangeCallback()}get order(){return this._order}set order(e){this._order=e,this._onChangeCallback()}set(e,n,i,r=this._order){return this._x=e,this._y=n,this._z=i,this._order=r,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._order)}copy(e){return this._x=e._x,this._y=e._y,this._z=e._z,this._order=e._order,this._onChangeCallback(),this}setFromRotationMatrix(e,n=this._order,i=!0){const r=e.elements,s=r[0],a=r[4],o=r[8],l=r[1],u=r[5],c=r[9],f=r[2],h=r[6],p=r[10];switch(n){case"XYZ":this._y=Math.asin(Yr(o,-1,1)),Math.abs(o)<.9999999?(this._x=Math.atan2(-c,p),this._z=Math.atan2(-a,s)):(this._x=Math.atan2(h,u),this._z=0);break;case"YXZ":this._x=Math.asin(-Yr(c,-1,1)),Math.abs(c)<.9999999?(this._y=Math.atan2(o,p),this._z=Math.atan2(l,u)):(this._y=Math.atan2(-f,s),this._z=0);break;case"ZXY":this._x=Math.asin(Yr(h,-1,1)),Math.abs(h)<.9999999?(this._y=Math.atan2(-f,p),this._z=Math.atan2(-a,u)):(this._y=0,this._z=Math.atan2(l,s));break;case"ZYX":this._y=Math.asin(-Yr(f,-1,1)),Math.abs(f)<.9999999?(this._x=Math.atan2(h,p),this._z=Math.atan2(l,s)):(this._x=0,this._z=Math.atan2(-a,u));break;case"YZX":this._z=Math.asin(Yr(l,-1,1)),Math.abs(l)<.9999999?(this._x=Math.atan2(-c,u),this._y=Math.atan2(-f,s)):(this._x=0,this._y=Math.atan2(o,p));break;case"XZY":this._z=Math.asin(-Yr(a,-1,1)),Math.abs(a)<.9999999?(this._x=Math.atan2(h,u),this._y=Math.atan2(o,s)):(this._x=Math.atan2(-c,p),this._y=0);break;default:console.warn("THREE.Euler: .setFromRotationMatrix() encountered an unknown order: "+n)}return this._order=n,i===!0&&this._onChangeCallback(),this}setFromQuaternion(e,n,i){return M9.makeRotationFromQuaternion(e),this.setFromRotationMatrix(M9,n,i)}setFromVector3(e,n=this._order){return this.set(e.x,e.y,e.z,n)}reorder(e){return D9.setFromEuler(this),this.setFromQuaternion(D9,e)}equals(e){return e._x===this._x&&e._y===this._y&&e._z===this._z&&e._order===this._order}fromArray(e){return this._x=e[0],this._y=e[1],this._z=e[2],e[3]!==void 0&&(this._order=e[3]),this._onChangeCallback(),this}toArray(e=[],n=0){return e[n]=this._x,e[n+1]=this._y,e[n+2]=this._z,e[n+3]=this._order,e}_onChange(e){return this._onChangeCallback=e,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._order}}Qw.DEFAULT_ORDER="XYZ";class v4{constructor(){this.mask=1}set(e){this.mask=(1<<e|0)>>>0}enable(e){this.mask|=1<<e|0}enableAll(){this.mask=-1}toggle(e){this.mask^=1<<e|0}disable(e){this.mask&=~(1<<e|0)}disableAll(){this.mask=0}test(e){return(this.mask&e.mask)!==0}isEnabled(e){return(this.mask&(1<<e|0))!==0}}let BMe=0;const P9=new Ie,T0=new pp,qu=new Er,cS=new Ie,j_=new Ie,UMe=new Ie,$Me=new pp,O9=new Ie(1,0,0),R9=new Ie(0,1,0),k9=new Ie(0,0,1),zMe={type:"added"},I9={type:"removed"};class oa extends Pp{constructor(){super(),this.isObject3D=!0,Object.defineProperty(this,"id",{value:BMe++}),this.uuid=Ec(),this.name="",this.type="Object3D",this.parent=null,this.children=[],this.up=oa.DEFAULT_UP.clone();const e=new Ie,n=new Qw,i=new pp,r=new Ie(1,1,1);function s(){i.setFromEuler(n,!1)}function a(){n.setFromQuaternion(i,void 0,!1)}n._onChange(s),i._onChange(a),Object.defineProperties(this,{position:{configurable:!0,enumerable:!0,value:e},rotation:{configurable:!0,enumerable:!0,value:n},quaternion:{configurable:!0,enumerable:!0,value:i},scale:{configurable:!0,enumerable:!0,value:r},modelViewMatrix:{value:new Er},normalMatrix:{value:new mn}}),this.matrix=new Er,this.matrixWorld=new Er,this.matrixAutoUpdate=oa.DEFAULT_MATRIX_AUTO_UPDATE,this.matrixWorldNeedsUpdate=!1,this.matrixWorldAutoUpdate=oa.DEFAULT_MATRIX_WORLD_AUTO_UPDATE,this.layers=new v4,this.visible=!0,this.castShadow=!1,this.receiveShadow=!1,this.frustumCulled=!0,this.renderOrder=0,this.animations=[],this.userData={}}onBeforeRender(){}onAfterRender(){}applyMatrix4(e){this.matrixAutoUpdate&&this.updateMatrix(),this.matrix.premultiply(e),this.matrix.decompose(this.position,this.quaternion,this.scale)}applyQuaternion(e){return this.quaternion.premultiply(e),this}setRotationFromAxisAngle(e,n){this.quaternion.setFromAxisAngle(e,n)}setRotationFromEuler(e){this.quaternion.setFromEuler(e,!0)}setRotationFromMatrix(e){this.quaternion.setFromRotationMatrix(e)}setRotationFromQuaternion(e){this.quaternion.copy(e)}rotateOnAxis(e,n){return T0.setFromAxisAngle(e,n),this.quaternion.multiply(T0),this}rotateOnWorldAxis(e,n){return T0.setFromAxisAngle(e,n),this.quaternion.premultiply(T0),this}rotateX(e){return this.rotateOnAxis(O9,e)}rotateY(e){return this.rotateOnAxis(R9,e)}rotateZ(e){return this.rotateOnAxis(k9,e)}translateOnAxis(e,n){return P9.copy(e).applyQuaternion(this.quaternion),this.position.add(P9.multiplyScalar(n)),this}translateX(e){return this.translateOnAxis(O9,e)}translateY(e){return this.translateOnAxis(R9,e)}translateZ(e){return this.translateOnAxis(k9,e)}localToWorld(e){return this.updateWorldMatrix(!0,!1),e.applyMatrix4(this.matrixWorld)}worldToLocal(e){return this.updateWorldMatrix(!0,!1),e.applyMatrix4(qu.copy(this.matrixWorld).invert())}lookAt(e,n,i){e.isVector3?cS.copy(e):cS.set(e,n,i);const r=this.parent;this.updateWorldMatrix(!0,!1),j_.setFromMatrixPosition(this.matrixWorld),this.isCamera||this.isLight?qu.lookAt(j_,cS,this.up):qu.lookAt(cS,j_,this.up),this.quaternion.setFromRotationMatrix(qu),r&&(qu.extractRotation(r.matrixWorld),T0.setFromRotationMatrix(qu),this.quaternion.premultiply(T0.invert()))}add(e){if(arguments.length>1){for(let n=0;n<arguments.length;n++)this.add(arguments[n]);return this}return e===this?(console.error("THREE.Object3D.add: object can't be added as a child of itself.",e),this):(e&&e.isObject3D?(e.parent!==null&&e.parent.remove(e),e.parent=this,this.children.push(e),e.dispatchEvent(zMe)):console.error("THREE.Object3D.add: object not an instance of THREE.Object3D.",e),this)}remove(e){if(arguments.length>1){for(let i=0;i<arguments.length;i++)this.remove(arguments[i]);return this}const n=this.children.indexOf(e);return n!==-1&&(e.parent=null,this.children.splice(n,1),e.dispatchEvent(I9)),this}removeFromParent(){const e=this.parent;return e!==null&&e.remove(this),this}clear(){for(let e=0;e<this.children.length;e++){const n=this.children[e];n.parent=null,n.dispatchEvent(I9)}return this.children.length=0,this}attach(e){return this.updateWorldMatrix(!0,!1),qu.copy(this.matrixWorld).invert(),e.parent!==null&&(e.parent.updateWorldMatrix(!0,!1),qu.multiply(e.parent.matrixWorld)),e.applyMatrix4(qu),this.add(e),e.updateWorldMatrix(!1,!0),this}getObjectById(e){return this.getObjectByProperty("id",e)}getObjectByName(e){return this.getObjectByProperty("name",e)}getObjectByProperty(e,n){if(this[e]===n)return this;for(let i=0,r=this.children.length;i<r;i++){const a=this.children[i].getObjectByProperty(e,n);if(a!==void 0)return a}}getObjectsByProperty(e,n){let i=[];this[e]===n&&i.push(this);for(let r=0,s=this.children.length;r<s;r++){const a=this.children[r].getObjectsByProperty(e,n);a.length>0&&(i=i.concat(a))}return i}getWorldPosition(e){return this.updateWorldMatrix(!0,!1),e.setFromMatrixPosition(this.matrixWorld)}getWorldQuaternion(e){return this.updateWorldMatrix(!0,!1),this.matrixWorld.decompose(j_,e,UMe),e}getWorldScale(e){return this.updateWorldMatrix(!0,!1),this.matrixWorld.decompose(j_,$Me,e),e}getWorldDirection(e){this.updateWorldMatrix(!0,!1);const n=this.matrixWorld.elements;return e.set(n[8],n[9],n[10]).normalize()}raycast(){}traverse(e){e(this);const n=this.children;for(let i=0,r=n.length;i<r;i++)n[i].traverse(e)}traverseVisible(e){if(this.visible===!1)return;e(this);const n=this.children;for(let i=0,r=n.length;i<r;i++)n[i].traverseVisible(e)}traverseAncestors(e){const n=this.parent;n!==null&&(e(n),n.traverseAncestors(e))}updateMatrix(){this.matrix.compose(this.position,this.quaternion,this.scale),this.matrixWorldNeedsUpdate=!0}updateMatrixWorld(e){this.matrixAutoUpdate&&this.updateMatrix(),(this.matrixWorldNeedsUpdate||e)&&(this.parent===null?this.matrixWorld.copy(this.matrix):this.matrixWorld.multiplyMatrices(this.parent.matrixWorld,this.matrix),this.matrixWorldNeedsUpdate=!1,e=!0);const n=this.children;for(let i=0,r=n.length;i<r;i++){const s=n[i];(s.matrixWorldAutoUpdate===!0||e===!0)&&s.updateMatrixWorld(e)}}updateWorldMatrix(e,n){const i=this.parent;if(e===!0&&i!==null&&i.matrixWorldAutoUpdate===!0&&i.updateWorldMatrix(!0,!1),this.matrixAutoUpdate&&this.updateMatrix(),this.parent===null?this.matrixWorld.copy(this.matrix):this.matrixWorld.multiplyMatrices(this.parent.matrixWorld,this.matrix),n===!0){const r=this.children;for(let s=0,a=r.length;s<a;s++){const o=r[s];o.matrixWorldAutoUpdate===!0&&o.updateWorldMatrix(!1,!0)}}}toJSON(e){const n=e===void 0||typeof e=="string",i={};n&&(e={geometries:{},materials:{},textures:{},images:{},shapes:{},skeletons:{},animations:{},nodes:{}},i.metadata={version:4.6,type:"Object",generator:"Object3D.toJSON"});const r={};r.uuid=this.uuid,r.type=this.type,this.name!==""&&(r.name=this.name),this.castShadow===!0&&(r.castShadow=!0),this.receiveShadow===!0&&(r.receiveShadow=!0),this.visible===!1&&(r.visible=!1),this.frustumCulled===!1&&(r.frustumCulled=!1),this.renderOrder!==0&&(r.renderOrder=this.renderOrder),Object.keys(this.userData).length>0&&(r.userData=this.userData),r.layers=this.layers.mask,r.matrix=this.matrix.toArray(),r.up=this.up.toArray(),this.matrixAutoUpdate===!1&&(r.matrixAutoUpdate=!1),this.isInstancedMesh&&(r.type="InstancedMesh",r.count=this.count,r.instanceMatrix=this.instanceMatrix.toJSON(),this.instanceColor!==null&&(r.instanceColor=this.instanceColor.toJSON()));function s(o,l){return o[l.uuid]===void 0&&(o[l.uuid]=l.toJSON(e)),l.uuid}if(this.isScene)this.background&&(this.background.isColor?r.background=this.background.toJSON():this.background.isTexture&&(r.background=this.background.toJSON(e).uuid)),this.environment&&this.environment.isTexture&&this.environment.isRenderTargetTexture!==!0&&(r.environment=this.environment.toJSON(e).uuid);else if(this.isMesh||this.isLine||this.isPoints){r.geometry=s(e.geometries,this.geometry);const o=this.geometry.parameters;if(o!==void 0&&o.shapes!==void 0){const l=o.shapes;if(Array.isArray(l))for(let u=0,c=l.length;u<c;u++){const f=l[u];s(e.shapes,f)}else s(e.shapes,l)}}if(this.isSkinnedMesh&&(r.bindMode=this.bindMode,r.bindMatrix=this.bindMatrix.toArray(),this.skeleton!==void 0&&(s(e.skeletons,this.skeleton),r.skeleton=this.skeleton.uuid)),this.material!==void 0)if(Array.isArray(this.material)){const o=[];for(let l=0,u=this.material.length;l<u;l++)o.push(s(e.materials,this.material[l]));r.material=o}else r.material=s(e.materials,this.material);if(this.children.length>0){r.children=[];for(let o=0;o<this.children.length;o++)r.children.push(this.children[o].toJSON(e).object)}if(this.animations.length>0){r.animations=[];for(let o=0;o<this.animations.length;o++){const l=this.animations[o];r.animations.push(s(e.animations,l))}}if(n){const o=a(e.geometries),l=a(e.materials),u=a(e.textures),c=a(e.images),f=a(e.shapes),h=a(e.skeletons),p=a(e.animations),m=a(e.nodes);o.length>0&&(i.geometries=o),l.length>0&&(i.materials=l),u.length>0&&(i.textures=u),c.length>0&&(i.images=c),f.length>0&&(i.shapes=f),h.length>0&&(i.skeletons=h),p.length>0&&(i.animations=p),m.length>0&&(i.nodes=m)}return i.object=r,i;function a(o){const l=[];for(const u in o){const c=o[u];delete c.metadata,l.push(c)}return l}}clone(e){return new this.constructor().copy(this,e)}copy(e,n=!0){if(this.name=e.name,this.up.copy(e.up),this.position.copy(e.position),this.rotation.order=e.rotation.order,this.quaternion.copy(e.quaternion),this.scale.copy(e.scale),this.matrix.copy(e.matrix),this.matrixWorld.copy(e.matrixWorld),this.matrixAutoUpdate=e.matrixAutoUpdate,this.matrixWorldNeedsUpdate=e.matrixWorldNeedsUpdate,this.matrixWorldAutoUpdate=e.matrixWorldAutoUpdate,this.layers.mask=e.layers.mask,this.visible=e.visible,this.castShadow=e.castShadow,this.receiveShadow=e.receiveShadow,this.frustumCulled=e.frustumCulled,this.renderOrder=e.renderOrder,this.animations=e.animations.slice(),this.userData=JSON.parse(JSON.stringify(e.userData)),n===!0)for(let i=0;i<e.children.length;i++){const r=e.children[i];this.add(r.clone())}return this}}oa.DEFAULT_UP=new Ie(0,1,0);oa.DEFAULT_MATRIX_AUTO_UPDATE=!0;oa.DEFAULT_MATRIX_WORLD_AUTO_UPDATE=!0;const qo=new Ie,Xu=new Ie,kD=new Ie,Yu=new Ie,E0=new Ie,w0=new Ie,L9=new Ie,ID=new Ie,LD=new Ie,FD=new Ie;let fS=!1;class So{constructor(e=new Ie,n=new Ie,i=new Ie){this.a=e,this.b=n,this.c=i}static getNormal(e,n,i,r){r.subVectors(i,n),qo.subVectors(e,n),r.cross(qo);const s=r.lengthSq();return s>0?r.multiplyScalar(1/Math.sqrt(s)):r.set(0,0,0)}static getBarycoord(e,n,i,r,s){qo.subVectors(r,n),Xu.subVectors(i,n),kD.subVectors(e,n);const a=qo.dot(qo),o=qo.dot(Xu),l=qo.dot(kD),u=Xu.dot(Xu),c=Xu.dot(kD),f=a*u-o*o;if(f===0)return s.set(-2,-1,-1);const h=1/f,p=(u*l-o*c)*h,m=(a*c-o*l)*h;return s.set(1-p-m,m,p)}static containsPoint(e,n,i,r){return this.getBarycoord(e,n,i,r,Yu),Yu.x>=0&&Yu.y>=0&&Yu.x+Yu.y<=1}static getUV(e,n,i,r,s,a,o,l){return fS===!1&&(console.warn("THREE.Triangle.getUV() has been renamed to THREE.Triangle.getInterpolation()."),fS=!0),this.getInterpolation(e,n,i,r,s,a,o,l)}static getInterpolation(e,n,i,r,s,a,o,l){return this.getBarycoord(e,n,i,r,Yu),l.setScalar(0),l.addScaledVector(s,Yu.x),l.addScaledVector(a,Yu.y),l.addScaledVector(o,Yu.z),l}static isFrontFacing(e,n,i,r){return qo.subVectors(i,n),Xu.subVectors(e,n),qo.cross(Xu).dot(r)<0}set(e,n,i){return this.a.copy(e),this.b.copy(n),this.c.copy(i),this}setFromPointsAndIndices(e,n,i,r){return this.a.copy(e[n]),this.b.copy(e[i]),this.c.copy(e[r]),this}setFromAttributeAndIndices(e,n,i,r){return this.a.fromBufferAttribute(e,n),this.b.fromBufferAttribute(e,i),this.c.fromBufferAttribute(e,r),this}clone(){return new this.constructor().copy(this)}copy(e){return this.a.copy(e.a),this.b.copy(e.b),this.c.copy(e.c),this}getArea(){return qo.subVectors(this.c,this.b),Xu.subVectors(this.a,this.b),qo.cross(Xu).length()*.5}getMidpoint(e){return e.addVectors(this.a,this.b).add(this.c).multiplyScalar(1/3)}getNormal(e){return So.getNormal(this.a,this.b,this.c,e)}getPlane(e){return e.setFromCoplanarPoints(this.a,this.b,this.c)}getBarycoord(e,n){return So.getBarycoord(e,this.a,this.b,this.c,n)}getUV(e,n,i,r,s){return fS===!1&&(console.warn("THREE.Triangle.getUV() has been renamed to THREE.Triangle.getInterpolation()."),fS=!0),So.getInterpolation(e,this.a,this.b,this.c,n,i,r,s)}getInterpolation(e,n,i,r,s){return So.getInterpolation(e,this.a,this.b,this.c,n,i,r,s)}containsPoint(e){return So.containsPoint(e,this.a,this.b,this.c)}isFrontFacing(e){return So.isFrontFacing(this.a,this.b,this.c,e)}intersectsBox(e){return e.intersectsTriangle(this)}closestPointToPoint(e,n){const i=this.a,r=this.b,s=this.c;let a,o;E0.subVectors(r,i),w0.subVectors(s,i),ID.subVectors(e,i);const l=E0.dot(ID),u=w0.dot(ID);if(l<=0&&u<=0)return n.copy(i);LD.subVectors(e,r);const c=E0.dot(LD),f=w0.dot(LD);if(c>=0&&f<=c)return n.copy(r);const h=l*f-c*u;if(h<=0&&l>=0&&c<=0)return a=l/(l-c),n.copy(i).addScaledVector(E0,a);FD.subVectors(e,s);const p=E0.dot(FD),m=w0.dot(FD);if(m>=0&&p<=m)return n.copy(s);const y=p*u-l*m;if(y<=0&&u>=0&&m<=0)return o=u/(u-m),n.copy(i).addScaledVector(w0,o);const v=c*m-p*f;if(v<=0&&f-c>=0&&p-m>=0)return L9.subVectors(s,r),o=(f-c)/(f-c+(p-m)),n.copy(r).addScaledVector(L9,o);const _=1/(v+y+h);return a=y*_,o=h*_,n.copy(i).addScaledVector(E0,a).addScaledVector(w0,o)}equals(e){return e.a.equals(this.a)&&e.b.equals(this.b)&&e.c.equals(this.c)}}let HMe=0;class Jb extends Pp{constructor(){super(),this.isMaterial=!0,Object.defineProperty(this,"id",{value:HMe++}),this.uuid=Ec(),this.name="",this.type="Material",this.blending=Bm,this.side=yd,this.vertexColors=!1,this.opacity=1,this.transparent=!1,this.alphaHash=!1,this.blendSrc=lQ,this.blendDst=uQ,this.blendEquation=q0,this.blendSrcAlpha=null,this.blendDstAlpha=null,this.blendEquationAlpha=null,this.depthFunc=rR,this.depthTest=!0,this.depthWrite=!0,this.stencilWriteMask=255,this.stencilFunc=tMe,this.stencilRef=0,this.stencilFuncMask=255,this.stencilFail=TD,this.stencilZFail=TD,this.stencilZPass=TD,this.stencilWrite=!1,this.clippingPlanes=null,this.clipIntersection=!1,this.clipShadows=!1,this.shadowSide=null,this.colorWrite=!0,this.precision=null,this.polygonOffset=!1,this.polygonOffsetFactor=0,this.polygonOffsetUnits=0,this.dithering=!1,this.alphaToCoverage=!1,this.premultipliedAlpha=!1,this.forceSinglePass=!1,this.visible=!0,this.toneMapped=!0,this.userData={},this.version=0,this._alphaTest=0}get alphaTest(){return this._alphaTest}set alphaTest(e){this._alphaTest>0!=e>0&&this.version++,this._alphaTest=e}onBuild(){}onBeforeRender(){}onBeforeCompile(){}customProgramCacheKey(){return this.onBeforeCompile.toString()}setValues(e){if(e!==void 0)for(const n in e){const i=e[n];if(i===void 0){console.warn(`THREE.Material: parameter '${n}' has value of undefined.`);continue}const r=this[n];if(r===void 0){console.warn(`THREE.Material: '${n}' is not a property of THREE.${this.type}.`);continue}r&&r.isColor?r.set(i):r&&r.isVector3&&i&&i.isVector3?r.copy(i):this[n]=i}}toJSON(e){const n=e===void 0||typeof e=="string";n&&(e={textures:{},images:{}});const i={metadata:{version:4.6,type:"Material",generator:"Material.toJSON"}};i.uuid=this.uuid,i.type=this.type,this.name!==""&&(i.name=this.name),this.color&&this.color.isColor&&(i.color=this.color.getHex()),this.roughness!==void 0&&(i.roughness=this.roughness),this.metalness!==void 0&&(i.metalness=this.metalness),this.sheen!==void 0&&(i.sheen=this.sheen),this.sheenColor&&this.sheenColor.isColor&&(i.sheenColor=this.sheenColor.getHex()),this.sheenRoughness!==void 0&&(i.sheenRoughness=this.sheenRoughness),this.emissive&&this.emissive.isColor&&(i.emissive=this.emissive.getHex()),this.emissiveIntensity&&this.emissiveIntensity!==1&&(i.emissiveIntensity=this.emissiveIntensity),this.specular&&this.specular.isColor&&(i.specular=this.specular.getHex()),this.specularIntensity!==void 0&&(i.specularIntensity=this.specularIntensity),this.specularColor&&this.specularColor.isColor&&(i.specularColor=this.specularColor.getHex()),this.shininess!==void 0&&(i.shininess=this.shininess),this.clearcoat!==void 0&&(i.clearcoat=this.clearcoat),this.clearcoatRoughness!==void 0&&(i.clearcoatRoughness=this.clearcoatRoughness),this.clearcoatMap&&this.clearcoatMap.isTexture&&(i.clearcoatMap=this.clearcoatMap.toJSON(e).uuid),this.clearcoatRoughnessMap&&this.clearcoatRoughnessMap.isTexture&&(i.clearcoatRoughnessMap=this.clearcoatRoughnessMap.toJSON(e).uuid),this.clearcoatNormalMap&&this.clearcoatNormalMap.isTexture&&(i.clearcoatNormalMap=this.clearcoatNormalMap.toJSON(e).uuid,i.clearcoatNormalScale=this.clearcoatNormalScale.toArray()),this.iridescence!==void 0&&(i.iridescence=this.iridescence),this.iridescenceIOR!==void 0&&(i.iridescenceIOR=this.iridescenceIOR),this.iridescenceThicknessRange!==void 0&&(i.iridescenceThicknessRange=this.iridescenceThicknessRange),this.iridescenceMap&&this.iridescenceMap.isTexture&&(i.iridescenceMap=this.iridescenceMap.toJSON(e).uuid),this.iridescenceThicknessMap&&this.iridescenceThicknessMap.isTexture&&(i.iridescenceThicknessMap=this.iridescenceThicknessMap.toJSON(e).uuid),this.anisotropy!==void 0&&(i.anisotropy=this.anisotropy),this.anisotropyRotation!==void 0&&(i.anisotropyRotation=this.anisotropyRotation),this.anisotropyMap&&this.anisotropyMap.isTexture&&(i.anisotropyMap=this.anisotropyMap.toJSON(e).uuid),this.map&&this.map.isTexture&&(i.map=this.map.toJSON(e).uuid),this.matcap&&this.matcap.isTexture&&(i.matcap=this.matcap.toJSON(e).uuid),this.alphaMap&&this.alphaMap.isTexture&&(i.alphaMap=this.alphaMap.toJSON(e).uuid),this.lightMap&&this.lightMap.isTexture&&(i.lightMap=this.lightMap.toJSON(e).uuid,i.lightMapIntensity=this.lightMapIntensity),this.aoMap&&this.aoMap.isTexture&&(i.aoMap=this.aoMap.toJSON(e).uuid,i.aoMapIntensity=this.aoMapIntensity),this.bumpMap&&this.bumpMap.isTexture&&(i.bumpMap=this.bumpMap.toJSON(e).uuid,i.bumpScale=this.bumpScale),this.normalMap&&this.normalMap.isTexture&&(i.normalMap=this.normalMap.toJSON(e).uuid,i.normalMapType=this.normalMapType,i.normalScale=this.normalScale.toArray()),this.displacementMap&&this.displacementMap.isTexture&&(i.displacementMap=this.displacementMap.toJSON(e).uuid,i.displacementScale=this.displacementScale,i.displacementBias=this.displacementBias),this.roughnessMap&&this.roughnessMap.isTexture&&(i.roughnessMap=this.roughnessMap.toJSON(e).uuid),this.metalnessMap&&this.metalnessMap.isTexture&&(i.metalnessMap=this.metalnessMap.toJSON(e).uuid),this.emissiveMap&&this.emissiveMap.isTexture&&(i.emissiveMap=this.emissiveMap.toJSON(e).uuid),this.specularMap&&this.specularMap.isTexture&&(i.specularMap=this.specularMap.toJSON(e).uuid),this.specularIntensityMap&&this.specularIntensityMap.isTexture&&(i.specularIntensityMap=this.specularIntensityMap.toJSON(e).uuid),this.specularColorMap&&this.specularColorMap.isTexture&&(i.specularColorMap=this.specularColorMap.toJSON(e).uuid),this.envMap&&this.envMap.isTexture&&(i.envMap=this.envMap.toJSON(e).uuid,this.combine!==void 0&&(i.combine=this.combine)),this.envMapIntensity!==void 0&&(i.envMapIntensity=this.envMapIntensity),this.reflectivity!==void 0&&(i.reflectivity=this.reflectivity),this.refractionRatio!==void 0&&(i.refractionRatio=this.refractionRatio),this.gradientMap&&this.gradientMap.isTexture&&(i.gradientMap=this.gradientMap.toJSON(e).uuid),this.transmission!==void 0&&(i.transmission=this.transmission),this.transmissionMap&&this.transmissionMap.isTexture&&(i.transmissionMap=this.transmissionMap.toJSON(e).uuid),this.thickness!==void 0&&(i.thickness=this.thickness),this.thicknessMap&&this.thicknessMap.isTexture&&(i.thicknessMap=this.thicknessMap.toJSON(e).uuid),this.attenuationDistance!==void 0&&this.attenuationDistance!==1/0&&(i.attenuationDistance=this.attenuationDistance),this.attenuationColor!==void 0&&(i.attenuationColor=this.attenuationColor.getHex()),this.size!==void 0&&(i.size=this.size),this.shadowSide!==null&&(i.shadowSide=this.shadowSide),this.sizeAttenuation!==void 0&&(i.sizeAttenuation=this.sizeAttenuation),this.blending!==Bm&&(i.blending=this.blending),this.side!==yd&&(i.side=this.side),this.vertexColors&&(i.vertexColors=!0),this.opacity<1&&(i.opacity=this.opacity),this.transparent===!0&&(i.transparent=this.transparent),i.depthFunc=this.depthFunc,i.depthTest=this.depthTest,i.depthWrite=this.depthWrite,i.colorWrite=this.colorWrite,i.stencilWrite=this.stencilWrite,i.stencilWriteMask=this.stencilWriteMask,i.stencilFunc=this.stencilFunc,i.stencilRef=this.stencilRef,i.stencilFuncMask=this.stencilFuncMask,i.stencilFail=this.stencilFail,i.stencilZFail=this.stencilZFail,i.stencilZPass=this.stencilZPass,this.rotation!==void 0&&this.rotation!==0&&(i.rotation=this.rotation),this.polygonOffset===!0&&(i.polygonOffset=!0),this.polygonOffsetFactor!==0&&(i.polygonOffsetFactor=this.polygonOffsetFactor),this.polygonOffsetUnits!==0&&(i.polygonOffsetUnits=this.polygonOffsetUnits),this.linewidth!==void 0&&this.linewidth!==1&&(i.linewidth=this.linewidth),this.dashSize!==void 0&&(i.dashSize=this.dashSize),this.gapSize!==void 0&&(i.gapSize=this.gapSize),this.scale!==void 0&&(i.scale=this.scale),this.dithering===!0&&(i.dithering=!0),this.alphaTest>0&&(i.alphaTest=this.alphaTest),this.alphaHash===!0&&(i.alphaHash=this.alphaHash),this.alphaToCoverage===!0&&(i.alphaToCoverage=this.alphaToCoverage),this.premultipliedAlpha===!0&&(i.premultipliedAlpha=this.premultipliedAlpha),this.forceSinglePass===!0&&(i.forceSinglePass=this.forceSinglePass),this.wireframe===!0&&(i.wireframe=this.wireframe),this.wireframeLinewidth>1&&(i.wireframeLinewidth=this.wireframeLinewidth),this.wireframeLinecap!=="round"&&(i.wireframeLinecap=this.wireframeLinecap),this.wireframeLinejoin!=="round"&&(i.wireframeLinejoin=this.wireframeLinejoin),this.flatShading===!0&&(i.flatShading=this.flatShading),this.visible===!1&&(i.visible=!1),this.toneMapped===!1&&(i.toneMapped=!1),this.fog===!1&&(i.fog=!1),Object.keys(this.userData).length>0&&(i.userData=this.userData);function r(s){const a=[];for(const o in s){const l=s[o];delete l.metadata,a.push(l)}return a}if(n){const s=r(e.textures),a=r(e.images);s.length>0&&(i.textures=s),a.length>0&&(i.images=a)}return i}clone(){return new this.constructor().copy(this)}copy(e){this.name=e.name,this.blending=e.blending,this.side=e.side,this.vertexColors=e.vertexColors,this.opacity=e.opacity,this.transparent=e.transparent,this.blendSrc=e.blendSrc,this.blendDst=e.blendDst,this.blendEquation=e.blendEquation,this.blendSrcAlpha=e.blendSrcAlpha,this.blendDstAlpha=e.blendDstAlpha,this.blendEquationAlpha=e.blendEquationAlpha,this.depthFunc=e.depthFunc,this.depthTest=e.depthTest,this.depthWrite=e.depthWrite,this.stencilWriteMask=e.stencilWriteMask,this.stencilFunc=e.stencilFunc,this.stencilRef=e.stencilRef,this.stencilFuncMask=e.stencilFuncMask,this.stencilFail=e.stencilFail,this.stencilZFail=e.stencilZFail,this.stencilZPass=e.stencilZPass,this.stencilWrite=e.stencilWrite;const n=e.clippingPlanes;let i=null;if(n!==null){const r=n.length;i=new Array(r);for(let s=0;s!==r;++s)i[s]=n[s].clone()}return this.clippingPlanes=i,this.clipIntersection=e.clipIntersection,this.clipShadows=e.clipShadows,this.shadowSide=e.shadowSide,this.colorWrite=e.colorWrite,this.precision=e.precision,this.polygonOffset=e.polygonOffset,this.polygonOffsetFactor=e.polygonOffsetFactor,this.polygonOffsetUnits=e.polygonOffsetUnits,this.dithering=e.dithering,this.alphaTest=e.alphaTest,this.alphaHash=e.alphaHash,this.alphaToCoverage=e.alphaToCoverage,this.premultipliedAlpha=e.premultipliedAlpha,this.forceSinglePass=e.forceSinglePass,this.visible=e.visible,this.toneMapped=e.toneMapped,this.userData=JSON.parse(JSON.stringify(e.userData)),this}dispose(){this.dispatchEvent({type:"dispose"})}set needsUpdate(e){e===!0&&this.version++}}const EQ={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074},Xo={h:0,s:0,l:0},dS={h:0,s:0,l:0};function ND(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*6*(2/3-n):t}class ri{constructor(e,n,i){return this.isColor=!0,this.r=1,this.g=1,this.b=1,this.set(e,n,i)}set(e,n,i){if(n===void 0&&i===void 0){const r=e;r&&r.isColor?this.copy(r):typeof r=="number"?this.setHex(r):typeof r=="string"&&this.setStyle(r)}else this.setRGB(e,n,i);return this}setScalar(e){return this.r=e,this.g=e,this.b=e,this}setHex(e,n=ln){return e=Math.floor(e),this.r=(e>>16&255)/255,this.g=(e>>8&255)/255,this.b=(e&255)/255,Go.toWorkingColorSpace(this,n),this}setRGB(e,n,i,r=Go.workingColorSpace){return this.r=e,this.g=n,this.b=i,Go.toWorkingColorSpace(this,r),this}setHSL(e,n,i,r=Go.workingColorSpace){if(e=m4(e,1),n=Yr(n,0,1),i=Yr(i,0,1),n===0)this.r=this.g=this.b=i;else{const s=i<=.5?i*(1+n):i+n-i*n,a=2*i-s;this.r=ND(a,s,e+1/3),this.g=ND(a,s,e),this.b=ND(a,s,e-1/3)}return Go.toWorkingColorSpace(this,r),this}setStyle(e,n=ln){function i(s){s!==void 0&&parseFloat(s)<1&&console.warn("THREE.Color: Alpha component of "+e+" will be ignored.")}let r;if(r=/^(\w+)\(([^\)]*)\)/.exec(e)){let s;const a=r[1],o=r[2];switch(a){case"rgb":case"rgba":if(s=/^\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(o))return i(s[4]),this.setRGB(Math.min(255,parseInt(s[1],10))/255,Math.min(255,parseInt(s[2],10))/255,Math.min(255,parseInt(s[3],10))/255,n);if(s=/^\s*(\d+)\%\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(o))return i(s[4]),this.setRGB(Math.min(100,parseInt(s[1],10))/100,Math.min(100,parseInt(s[2],10))/100,Math.min(100,parseInt(s[3],10))/100,n);break;case"hsl":case"hsla":if(s=/^\s*(\d*\.?\d+)\s*,\s*(\d*\.?\d+)\%\s*,\s*(\d*\.?\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(o))return i(s[4]),this.setHSL(parseFloat(s[1])/360,parseFloat(s[2])/100,parseFloat(s[3])/100,n);break;default:console.warn("THREE.Color: Unknown color model "+e)}}else if(r=/^\#([A-Fa-f\d]+)$/.exec(e)){const s=r[1],a=s.length;if(a===3)return this.setRGB(parseInt(s.charAt(0),16)/15,parseInt(s.charAt(1),16)/15,parseInt(s.charAt(2),16)/15,n);if(a===6)return this.setHex(parseInt(s,16),n);console.warn("THREE.Color: Invalid hex color "+e)}else if(e&&e.length>0)return this.setColorName(e,n);return this}setColorName(e,n=ln){const i=EQ[e.toLowerCase()];return i!==void 0?this.setHex(i,n):console.warn("THREE.Color: Unknown color "+e),this}clone(){return new this.constructor(this.r,this.g,this.b)}copy(e){return this.r=e.r,this.g=e.g,this.b=e.b,this}copySRGBToLinear(e){return this.r=Um(e.r),this.g=Um(e.g),this.b=Um(e.b),this}copyLinearToSRGB(e){return this.r=wD(e.r),this.g=wD(e.g),this.b=wD(e.b),this}convertSRGBToLinear(){return this.copySRGBToLinear(this),this}convertLinearToSRGB(){return this.copyLinearToSRGB(this),this}getHex(e=ln){return Go.fromWorkingColorSpace(Wr.copy(this),e),Math.round(Yr(Wr.r*255,0,255))*65536+Math.round(Yr(Wr.g*255,0,255))*256+Math.round(Yr(Wr.b*255,0,255))}getHexString(e=ln){return("000000"+this.getHex(e).toString(16)).slice(-6)}getHSL(e,n=Go.workingColorSpace){Go.fromWorkingColorSpace(Wr.copy(this),n);const i=Wr.r,r=Wr.g,s=Wr.b,a=Math.max(i,r,s),o=Math.min(i,r,s);let l,u;const c=(o+a)/2;if(o===a)l=0,u=0;else{const f=a-o;switch(u=c<=.5?f/(a+o):f/(2-a-o),a){case i:l=(r-s)/f+(r<s?6:0);break;case r:l=(s-i)/f+2;break;case s:l=(i-r)/f+4;break}l/=6}return e.h=l,e.s=u,e.l=c,e}getRGB(e,n=Go.workingColorSpace){return Go.fromWorkingColorSpace(Wr.copy(this),n),e.r=Wr.r,e.g=Wr.g,e.b=Wr.b,e}getStyle(e=ln){Go.fromWorkingColorSpace(Wr.copy(this),e);const n=Wr.r,i=Wr.g,r=Wr.b;return e!==ln?`color(${e} ${n.toFixed(3)} ${i.toFixed(3)} ${r.toFixed(3)})`:`rgb(${Math.round(n*255)},${Math.round(i*255)},${Math.round(r*255)})`}offsetHSL(e,n,i){return this.getHSL(Xo),Xo.h+=e,Xo.s+=n,Xo.l+=i,this.setHSL(Xo.h,Xo.s,Xo.l),this}add(e){return this.r+=e.r,this.g+=e.g,this.b+=e.b,this}addColors(e,n){return this.r=e.r+n.r,this.g=e.g+n.g,this.b=e.b+n.b,this}addScalar(e){return this.r+=e,this.g+=e,this.b+=e,this}sub(e){return this.r=Math.max(0,this.r-e.r),this.g=Math.max(0,this.g-e.g),this.b=Math.max(0,this.b-e.b),this}multiply(e){return this.r*=e.r,this.g*=e.g,this.b*=e.b,this}multiplyScalar(e){return this.r*=e,this.g*=e,this.b*=e,this}lerp(e,n){return this.r+=(e.r-this.r)*n,this.g+=(e.g-this.g)*n,this.b+=(e.b-this.b)*n,this}lerpColors(e,n,i){return this.r=e.r+(n.r-e.r)*i,this.g=e.g+(n.g-e.g)*i,this.b=e.b+(n.b-e.b)*i,this}lerpHSL(e,n){this.getHSL(Xo),e.getHSL(dS);const i=cy(Xo.h,dS.h,n),r=cy(Xo.s,dS.s,n),s=cy(Xo.l,dS.l,n);return this.setHSL(i,r,s),this}setFromVector3(e){return this.r=e.x,this.g=e.y,this.b=e.z,this}applyMatrix3(e){const n=this.r,i=this.g,r=this.b,s=e.elements;return this.r=s[0]*n+s[3]*i+s[6]*r,this.g=s[1]*n+s[4]*i+s[7]*r,this.b=s[2]*n+s[5]*i+s[8]*r,this}equals(e){return e.r===this.r&&e.g===this.g&&e.b===this.b}fromArray(e,n=0){return this.r=e[n],this.g=e[n+1],this.b=e[n+2],this}toArray(e=[],n=0){return e[n]=this.r,e[n+1]=this.g,e[n+2]=this.b,e}fromBufferAttribute(e,n){return this.r=e.getX(n),this.g=e.getY(n),this.b=e.getZ(n),this}toJSON(){return this.getHex()}*[Symbol.iterator](){yield this.r,yield this.g,yield this.b}}const Wr=new ri;ri.NAMES=EQ;class wQ extends Jb{constructor(e){super(),this.isMeshBasicMaterial=!0,this.type="MeshBasicMaterial",this.color=new ri(16777215),this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.combine=cQ,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.specularMap=e.specularMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.combine=e.combine,this.reflectivity=e.reflectivity,this.refractionRatio=e.refractionRatio,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.fog=e.fog,this}}const Yi=new Ie,hS=new Xt;class dl{constructor(e,n,i=!1){if(Array.isArray(e))throw new TypeError("THREE.BufferAttribute: array should be a Typed Array.");this.isBufferAttribute=!0,this.name="",this.array=e,this.itemSize=n,this.count=e!==void 0?e.length/n:0,this.normalized=i,this.usage=uR,this.updateRange={offset:0,count:-1},this.gpuType=zf,this.version=0}onUploadCallback(){}set needsUpdate(e){e===!0&&this.version++}setUsage(e){return this.usage=e,this}copy(e){return this.name=e.name,this.array=new e.array.constructor(e.array),this.itemSize=e.itemSize,this.count=e.count,this.normalized=e.normalized,this.usage=e.usage,this.gpuType=e.gpuType,this}copyAt(e,n,i){e*=this.itemSize,i*=n.itemSize;for(let r=0,s=this.itemSize;r<s;r++)this.array[e+r]=n.array[i+r];return this}copyArray(e){return this.array.set(e),this}applyMatrix3(e){if(this.itemSize===2)for(let n=0,i=this.count;n<i;n++)hS.fromBufferAttribute(this,n),hS.applyMatrix3(e),this.setXY(n,hS.x,hS.y);else if(this.itemSize===3)for(let n=0,i=this.count;n<i;n++)Yi.fromBufferAttribute(this,n),Yi.applyMatrix3(e),this.setXYZ(n,Yi.x,Yi.y,Yi.z);return this}applyMatrix4(e){for(let n=0,i=this.count;n<i;n++)Yi.fromBufferAttribute(this,n),Yi.applyMatrix4(e),this.setXYZ(n,Yi.x,Yi.y,Yi.z);return this}applyNormalMatrix(e){for(let n=0,i=this.count;n<i;n++)Yi.fromBufferAttribute(this,n),Yi.applyNormalMatrix(e),this.setXYZ(n,Yi.x,Yi.y,Yi.z);return this}transformDirection(e){for(let n=0,i=this.count;n<i;n++)Yi.fromBufferAttribute(this,n),Yi.transformDirection(e),this.setXYZ(n,Yi.x,Yi.y,Yi.z);return this}set(e,n=0){return this.array.set(e,n),this}getComponent(e,n){let i=this.array[e*this.itemSize+n];return this.normalized&&(i=Vl(i,this.array)),i}setComponent(e,n,i){return this.normalized&&(i=Xn(i,this.array)),this.array[e*this.itemSize+n]=i,this}getX(e){let n=this.array[e*this.itemSize];return this.normalized&&(n=Vl(n,this.array)),n}setX(e,n){return this.normalized&&(n=Xn(n,this.array)),this.array[e*this.itemSize]=n,this}getY(e){let n=this.array[e*this.itemSize+1];return this.normalized&&(n=Vl(n,this.array)),n}setY(e,n){return this.normalized&&(n=Xn(n,this.array)),this.array[e*this.itemSize+1]=n,this}getZ(e){let n=this.array[e*this.itemSize+2];return this.normalized&&(n=Vl(n,this.array)),n}setZ(e,n){return this.normalized&&(n=Xn(n,this.array)),this.array[e*this.itemSize+2]=n,this}getW(e){let n=this.array[e*this.itemSize+3];return this.normalized&&(n=Vl(n,this.array)),n}setW(e,n){return this.normalized&&(n=Xn(n,this.array)),this.array[e*this.itemSize+3]=n,this}setXY(e,n,i){return e*=this.itemSize,this.normalized&&(n=Xn(n,this.array),i=Xn(i,this.array)),this.array[e+0]=n,this.array[e+1]=i,this}setXYZ(e,n,i,r){return e*=this.itemSize,this.normalized&&(n=Xn(n,this.array),i=Xn(i,this.array),r=Xn(r,this.array)),this.array[e+0]=n,this.array[e+1]=i,this.array[e+2]=r,this}setXYZW(e,n,i,r,s){return e*=this.itemSize,this.normalized&&(n=Xn(n,this.array),i=Xn(i,this.array),r=Xn(r,this.array),s=Xn(s,this.array)),this.array[e+0]=n,this.array[e+1]=i,this.array[e+2]=r,this.array[e+3]=s,this}onUpload(e){return this.onUploadCallback=e,this}clone(){return new this.constructor(this.array,this.itemSize).copy(this)}toJSON(){const e={itemSize:this.itemSize,type:this.array.constructor.name,array:Array.from(this.array),normalized:this.normalized};return this.name!==""&&(e.name=this.name),this.usage!==uR&&(e.usage=this.usage),(this.updateRange.offset!==0||this.updateRange.count!==-1)&&(e.updateRange=this.updateRange),e}}class CQ extends dl{constructor(e,n,i){super(new Uint16Array(e),n,i)}}class AQ extends dl{constructor(e,n,i){super(new Uint32Array(e),n,i)}}class lu extends dl{constructor(e,n,i){super(new Float32Array(e),n,i)}}let VMe=0;const po=new Er,BD=new oa,C0=new Ie,Ta=new Qb,q_=new Qb,hr=new Ie;class Bc extends Pp{constructor(){super(),this.isBufferGeometry=!0,Object.defineProperty(this,"id",{value:VMe++}),this.uuid=Ec(),this.name="",this.type="BufferGeometry",this.index=null,this.attributes={},this.morphAttributes={},this.morphTargetsRelative=!1,this.groups=[],this.boundingBox=null,this.boundingSphere=null,this.drawRange={start:0,count:1/0},this.userData={}}getIndex(){return this.index}setIndex(e){return Array.isArray(e)?this.index=new(bQ(e)?AQ:CQ)(e,1):this.index=e,this}getAttribute(e){return this.attributes[e]}setAttribute(e,n){return this.attributes[e]=n,this}deleteAttribute(e){return delete this.attributes[e],this}hasAttribute(e){return this.attributes[e]!==void 0}addGroup(e,n,i=0){this.groups.push({start:e,count:n,materialIndex:i})}clearGroups(){this.groups=[]}setDrawRange(e,n){this.drawRange.start=e,this.drawRange.count=n}applyMatrix4(e){const n=this.attributes.position;n!==void 0&&(n.applyMatrix4(e),n.needsUpdate=!0);const i=this.attributes.normal;if(i!==void 0){const s=new mn().getNormalMatrix(e);i.applyNormalMatrix(s),i.needsUpdate=!0}const r=this.attributes.tangent;return r!==void 0&&(r.transformDirection(e),r.needsUpdate=!0),this.boundingBox!==null&&this.computeBoundingBox(),this.boundingSphere!==null&&this.computeBoundingSphere(),this}applyQuaternion(e){return po.makeRotationFromQuaternion(e),this.applyMatrix4(po),this}rotateX(e){return po.makeRotationX(e),this.applyMatrix4(po),this}rotateY(e){return po.makeRotationY(e),this.applyMatrix4(po),this}rotateZ(e){return po.makeRotationZ(e),this.applyMatrix4(po),this}translate(e,n,i){return po.makeTranslation(e,n,i),this.applyMatrix4(po),this}scale(e,n,i){return po.makeScale(e,n,i),this.applyMatrix4(po),this}lookAt(e){return BD.lookAt(e),BD.updateMatrix(),this.applyMatrix4(BD.matrix),this}center(){return this.computeBoundingBox(),this.boundingBox.getCenter(C0).negate(),this.translate(C0.x,C0.y,C0.z),this}setFromPoints(e){const n=[];for(let i=0,r=e.length;i<r;i++){const s=e[i];n.push(s.x,s.y,s.z||0)}return this.setAttribute("position",new lu(n,3)),this}computeBoundingBox(){this.boundingBox===null&&(this.boundingBox=new Qb);const e=this.attributes.position,n=this.morphAttributes.position;if(e&&e.isGLBufferAttribute){console.error('THREE.BufferGeometry.computeBoundingBox(): GLBufferAttribute requires a manual bounding box. Alternatively set "mesh.frustumCulled" to "fal
313se".',this),this.boundingBox.set(new Ie(-1/0,-1/0,-1/0),new Ie(1/0,1/0,1/0));return}if(e!==void 0){if(this.boundingBox.setFromBufferAttribute(e),n)for(let i=0,r=n.length;i<r;i++){const s=n[i];Ta.setFromBufferAttribute(s),this.morphTargetsRelative?(hr.addVectors(this.boundingBox.min,Ta.min),this.boundingBox.expandByPoint(hr),hr.addVectors(this.boundingBox.max,Ta.max),this.boundingBox.expandByPoint(hr)):(this.boundingBox.expandByPoint(Ta.min),this.boundingBox.expandByPoint(Ta.max))}}else this.boundingBox.makeEmpty();(isNaN(this.boundingBox.min.x)||isNaN(this.boundingBox.min.y)||isNaN(this.boundingBox.min.z))&&console.error('THREE.BufferGeometry.computeBoundingBox(): Computed min/max have NaN values. The "position" attribute is likely to have NaN values.',this)}computeBoundingSphere(){this.boundingSphere===null&&(this.boundingSphere=new g4);const e=this.attributes.position,n=this.morphAttributes.position;if(e&&e.isGLBufferAttribute){console.error('THREE.BufferGeometry.computeBoundingSphere(): GLBufferAttribute requires a manual bounding sphere. Alternatively set "mesh.frustumCulled" to "fal
313se".',this),this.boundingSphere.set(new Ie,1/0);return}if(e){const i=this.boundingSphere.center;if(Ta.setFromBufferAttribute(e),n)for(let s=0,a=n.length;s<a;s++){const o=n[s];q_.setFromBufferAttribute(o),this.morphTargetsRelative?(hr.addVectors(Ta.min,q_.min),Ta.expandByPoint(hr),hr.addVectors(Ta.max,q_.max),Ta.expandByPoint(hr)):(Ta.expandByPoint(q_.min),Ta.expandByPoint(q_.max))}Ta.getCenter(i);let r=0;for(let s=0,a=e.count;s<a;s++)hr.fromBufferAttribute(e,s),r=Math.max(r,i.distanceToSquared(hr));if(n)for(let s=0,a=n.length;s<a;s++){const o=n[s],l=this.morphTargetsRelative;for(let u=0,c=o.count;u<c;u++)hr.fromBufferAttribute(o,u),l&&(C0.fromBufferAttribute(e,u),hr.add(C0)),r=Math.max(r,i.distanceToSquared(hr))}this.boundingSphere.radius=Math.sqrt(r),isNaN(this.boundingSphere.radius)&&console.error('THREE.BufferGeometry.computeBoundingSphere(): Computed radius is NaN. The "position" attribute is likely to have NaN values.',this)}}computeTangents(){const e=this.index,n=this.attributes;if(e===null||n.position===void 0||n.normal===void 0||n.uv===void 0){console.error("THREE.BufferGeometry: .computeTangents() failed. Missing required attributes (index, position, normal or uv)");return}const i=e.array,r=n.position.array,s=n.normal.array,a=n.uv.array,o=r.length/3;this.hasAttribute("tangent")===!1&&this.setAttribute("tangent",new dl(new Float32Array(4*o),4));const l=this.getAttribute("tangent").array,u=[],c=[];for(let k=0;k<o;k++)u[k]=new Ie,c[k]=new Ie;const f=new Ie,h=new Ie,p=new Ie,m=new Xt,y=new Xt,v=new Xt,_=ne
vendor: 31,431 bytes, lines 313-463
313w Ie,b=new Ie;function x(k,F,N){f.fromArray(r,k*3),h.fromArray(r,F*3),p.fromArray(r,N*3),m.fromArray(a,k*2),y.fromArray(a,F*2),v.fromArray(a,N*2),h.sub(f),p.sub(f),y.sub(m),v.sub(m);const U=1/(y.x*v.y-v.x*y.y);!isFinite(U)||(_.copy(h).multiplyScalar(v.y).addScaledVector(p,-y.y).multiplyScalar(U),b.copy(p).multiplyScalar(y.x).addScaledVector(h,-v.x).multiplyScalar(U),u[k].add(_),u[F].add(_),u[N].add(_),c[k].add(b),c[F].add(b),c[N].add(b))}let T=this.groups;T.length===0&&(T=[{start:0,count:i.length}]);for(let k=0,F=T.length;k<F;++k){const N=T[k],U=N.start,$=N.count;for(let G=U,Y=U+$;G<Y;G+=3)x(i[G+0],i[G+1],i[G+2])}const E=new Ie,C=new Ie,D=new Ie,R=new Ie;function A(k){D.fromArray(s,k*3),R.copy(D);const F=u[k];E.copy(F),E.sub(D.multiplyScalar(D.dot(F))).normalize(),C.crossVectors(R,F);const U=C.dot(c[k])<0?-1:1;l[k*4]=E.x,l[k*4+1]=E.y,l[k*4+2]=E.z,l[k*4+3]=U}for(let k=0,F=T.length;k<F;++k){const N=T[k],U=N.start,$=N.count;for(let G=U,Y=U+$;G<Y;G+=3)A(i[G+0]),A(i[G+1]),A(i[G+2])}}computeVertexNormals(){const e=this.index,n=this.getAttribute("position");if(n!==void 0){let i=this.getAttribute("normal");if(i===void 0)i=new dl(new Float32Array(n.count*3),3),this.setAttribute("normal",i);else for(let h=0,p=i.count;h<p;h++)i.setXYZ(h,0,0,0);const r=new Ie,s=new Ie,a=new Ie,o=new Ie,l=new Ie,u=new Ie,c=new Ie,f=new Ie;if(e)for(let h=0,p=e.count;h<p;h+=3){const m=e.getX(h+0),y=e.getX(h+1),v=e.getX(h+2);r.fromBufferAttribute(n,m),s.fromBufferAttribute(n,y),a.fromBufferAttribute(n,v),c.subVectors(a,s),f.subVectors(r,s),c.cross(f),o.fromBufferAttribute(i,m),l.fromBufferAttribute(i,y),u.fromBufferAttribute(i,v),o.add(c),l.add(c),u.add(c),i.setXYZ(m,o.x,o.y,o.z),i.setXYZ(y,l.x,l.y,l.z),i.setXYZ(v,u.x,u.y,u.z)}else for(let h=0,p=n.count;h<p;h+=3)r.fromBufferAttribute(n,h+0),s.fromBufferAttribute(n,h+1),a.fromBufferAttribute(n,h+2),c.subVectors(a,s),f.subVectors(r,s),c.cross(f),i.setXYZ(h+0,c.x,c.y,c.z),i.setXYZ(h+1,c.x,c.y,c.z),i.setXYZ(h+2,c.x,c.y,c.z);this.normalizeNormals(),i.needsUpdate=!0}}normalizeNormals(){const e=this.attributes.normal;for(let n=0,i=e.count;n<i;n++)hr.fromBufferAttribute(e,n),hr.normalize(),e.setXYZ(n,hr.x,hr.y,hr.z)}toNonIndexed(){function e(o,l){const u=o.array,c=o.itemSize,f=o.normalized,h=new u.constructor(l.length*c);let p=0,m=0;for(let y=0,v=l.length;y<v;y++){o.isInterleavedBufferAttribute?p=l[y]*o.data.stride+o.offset:p=l[y]*c;for(let _=0;_<c;_++)h[m++]=u[p++]}return new dl(h,c,f)}if(this.index===null)return console.warn("THREE.BufferGeometry.toNonIndexed(): BufferGeometry is already non-indexed."),this;const n=new Bc,i=this.index.array,r=this.attributes;for(const o in r){const l=r[o],u=e(l,i);n.setAttribute(o,u)}const s=this.morphAttributes;for(const o in s){const l=[],u=s[o];for(let c=0,f=u.length;c<f;c++){const h=u[c],p=e(h,i);l.push(p)}n.morphAttributes[o]=l}n.morphTargetsRelative=this.morphTargetsRelative;const a=this.groups;for(let o=0,l=a.length;o<l;o++){const u=a[o];n.addGroup(u.start,u.count,u.materialIndex)}return n}toJSON(){const e={metadata:{version:4.6,type:"BufferGeometry",generator:"BufferGeometry.toJSON"}};if(e.uuid=this.uuid,e.type=this.type,this.name!==""&&(e.name=this.name),Object.keys(this.userData).length>0&&(e.userData=this.userData),this.parameters!==void 0){const l=this.parameters;for(const u in l)l[u]!==void 0&&(e[u]=l[u]);return e}e.data={attributes:{}};const n=this.index;n!==null&&(e.data.index={type:n.array.constructor.name,array:Array.prototype.slice.call(n.array)});const i=this.attributes;for(const l in i){const u=i[l];e.data.attributes[l]=u.toJSON(e.data)}const r={};let s=!1;for(const l in this.morphAttributes){const u=this.morphAttributes[l],c=[];for(let f=0,h=u.length;f<h;f++){const p=u[f];c.push(p.toJSON(e.data))}c.length>0&&(r[l]=c,s=!0)}s&&(e.data.morphAttributes=r,e.data.morphTargetsRelative=this.morphTargetsRelative);const a=this.groups;a.length>0&&(e.data.groups=JSON.parse(JSON.stringify(a)));const o=this.boundingSphere;return o!==null&&(e.data.boundingSphere={center:o.center.toArray(),radius:o.radius}),e}clone(){return new this.constructor().copy(this)}copy(e){this.index=null,this.attributes={},this.morphAttributes={},this.groups=[],this.boundingBox=null,this.boundingSphere=null;const n={};this.name=e.name;const i=e.index;i!==null&&this.setIndex(i.clone(n));const r=e.attributes;for(const u in r){const c=r[u];this.setAttribute(u,c.clone(n))}const s=e.morphAttributes;for(const u in s){const c=[],f=s[u];for(let h=0,p=f.length;h<p;h++)c.push(f[h].clone(n));this.morphAttributes[u]=c}this.morphTargetsRelative=e.morphTargetsRelative;const a=e.groups;for(let u=0,c=a.length;u<c;u++){const f=a[u];this.addGroup(f.start,f.count,f.materialIndex)}const o=e.boundingBox;o!==null&&(this.boundingBox=o.clone());const l=e.boundingSphere;return l!==null&&(this.boundingSphere=l.clone()),this.drawRange.start=e.drawRange.start,this.drawRange.count=e.drawRange.count,this.userData=e.userData,this}dispose(){this.dispatchEvent({type:"dispose"})}}const F9=new Er,rh=new _4,pS=new g4,N9=new Ie,A0=new Ie,M0=new Ie,D0=new Ie,UD=new Ie,mS=new Ie,gS=new Xt,_S=new Xt,vS=new Xt,B9=new Ie,U9=new Ie,$9=new Ie,yS=new Ie,bS=new Ie;class Hf extends oa{constructor(e=new Bc,n=new wQ){super(),this.isMesh=!0,this.type="Mesh",this.geometry=e,this.material=n,this.updateMorphTargets()}copy(e,n){return super.copy(e,n),e.morphTargetInfluences!==void 0&&(this.morphTargetInfluences=e.morphTargetInfluences.slice()),e.morphTargetDictionary!==void 0&&(this.morphTargetDictionary=Object.assign({},e.morphTargetDictionary)),this.material=e.material,this.geometry=e.geometry,this}updateMorphTargets(){const n=this.geometry.morphAttributes,i=Object.keys(n);if(i.length>0){const r=n[i[0]];if(r!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let s=0,a=r.length;s<a;s++){const o=r[s].name||String(s);this.morphTargetInfluences.push(0),this.morphTargetDictionary[o]=s}}}}getVertexPosition(e,n){const i=this.geometry,r=i.attributes.position,s=i.morphAttributes.position,a=i.morphTargetsRelative;n.fromBufferAttribute(r,e);const o=this.morphTargetInfluences;if(s&&o){mS.set(0,0,0);for(let l=0,u=s.length;l<u;l++){const c=o[l],f=s[l];c!==0&&(UD.fromBufferAttribute(f,e),a?mS.addScaledVector(UD,c):mS.addScaledVector(UD.sub(n),c))}n.add(mS)}return n}raycast(e,n){const i=this.geometry,r=this.material,s=this.matrixWorld;r!==void 0&&(i.boundingSphere===null&&i.computeBoundingSphere(),pS.copy(i.boundingSphere),pS.applyMatrix4(s),rh.copy(e.ray).recast(e.near),!(pS.containsPoint(rh.origin)===!1&&(rh.intersectSphere(pS,N9)===null||rh.origin.distanceToSquared(N9)>(e.far-e.near)**2))&&(F9.copy(s).invert(),rh.copy(e.ray).applyMatrix4(F9),!(i.boundingBox!==null&&rh.intersectsBox(i.boundingBox)===!1)&&this._computeIntersections(e,n,rh)))}_computeIntersections(e,n,i){let r;const s=this.geometry,a=this.material,o=s.index,l=s.attributes.position,u=s.attributes.uv,c=s.attributes.uv1,f=s.attributes.normal,h=s.groups,p=s.drawRange;if(o!==null)if(Array.isArray(a))for(let m=0,y=h.length;m<y;m++){const v=h[m],_=a[v.materialIndex],b=Math.max(v.start,p.start),x=Math.min(o.count,Math.min(v.start+v.count,p.start+p.count));for(let T=b,E=x;T<E;T+=3){const C=o.getX(T),D=o.getX(T+1),R=o.getX(T+2);r=xS(this,_,e,i,u,c,f,C,D,R),r&&(r.faceIndex=Math.floor(T/3),r.face.materialIndex=v.materialIndex,n.push(r))}}else{const m=Math.max(0,p.start),y=Math.min(o.count,p.start+p.count);for(let v=m,_=y;v<_;v+=3){const b=o.getX(v),x=o.getX(v+1),T=o.getX(v+2);r=xS(this,a,e,i,u,c,f,b,x,T),r&&(r.faceIndex=Math.floor(v/3),n.push(r))}}else if(l!==void 0)if(Array.isArray(a))for(let m=0,y=h.length;m<y;m++){const v=h[m],_=a[v.materialIndex],b=Math.max(v.start,p.start),x=Math.min(l.count,Math.min(v.start+v.count,p.start+p.count));for(let T=b,E=x;T<E;T+=3){const C=T,D=T+1,R=T+2;r=xS(this,_,e,i,u,c,f,C,D,R),r&&(r.faceIndex=Math.floor(T/3),r.face.materialIndex=v.materialIndex,n.push(r))}}else{const m=Math.max(0,p.start),y=Math.min(l.count,p.start+p.count);for(let v=m,_=y;v<_;v+=3){const b=v,x=v+1,T=v+2;r=xS(this,a,e,i,u,c,f,b,x,T),r&&(r.faceIndex=Math.floor(v/3),n.push(r))}}}}function WMe(t,e,n,i,r,s,a,o){let l;if(e.side===sa?l=i.intersectTriangle(a,s,r,!0,o):l=i.intersectTriangle(r,s,a,e.side===yd,o),l===null)return null;bS.copy(o),bS.applyMatrix4(t.matrixWorld);const u=n.ray.origin.distanceTo(bS);return u<n.near||u>n.far?null:{distance:u,point:bS.clone(),object:t}}function xS(t,e,n,i,r,s,a,o,l,u){t.getVertexPosition(o,A0),t.getVertexPosition(l,M0),t.getVertexPosition(u,D0);const c=WMe(t,e,n,i,A0,M0,D0,yS);if(c){r&&(gS.fromBufferAttribute(r,o),_S.fromBufferAttribute(r,l),vS.fromBufferAttribute(r,u),c.uv=So.getInterpolation(yS,A0,M0,D0,gS,_S,vS,new Xt)),s&&(gS.fromBufferAttribute(s,o),_S.fromBufferAttribute(s,l),vS.fromBufferAttribute(s,u),c.uv1=So.getInterpolation(yS,A0,M0,D0,gS,_S,vS,new Xt),c.uv2=c.uv1),a&&(B9.fromBufferAttribute(a,o),U9.fromBufferAttribute(a,l),$9.fromBufferAttribute(a,u),c.normal=So.getInterpolation(yS,A0,M0,D0,B9,U9,$9,new Ie),c.normal.dot(i.direction)>0&&c.normal.multiplyScalar(-1));const f={a:o,b:l,c:u,normal:new Ie,materialIndex:0};So.getNormal(A0,M0,D0,f.normal),c.face=f}return c}class e1 extends Bc{constructor(e=1,n=1,i=1,r=1,s=1,a=1){super(),this.type="BoxGeometry",this.parameters={width:e,height:n,depth:i,widthSegments:r,heightSegments:s,depthSegments:a};const o=this;r=Math.floor(r),s=Math.floor(s),a=Math.floor(a);const l=[],u=[],c=[],f=[];let h=0,p=0;m("z","y","x",-1,-1,i,n,e,a,s,0),m("z","y","x",1,-1,i,n,-e,a,s,1),m("x","z","y",1,1,e,i,n,r,a,2),m("x","z","y",1,-1,e,i,-n,r,a,3),m("x","y","z",1,-1,e,n,i,r,s,4),m("x","y","z",-1,-1,e,n,-i,r,s,5),this.setIndex(l),this.setAttribute("position",new lu(u,3)),this.setAttribute("normal",new lu(c,3)),this.setAttribute("uv",new lu(f,2));function m(y,v,_,b,x,T,E,C,D,R,A){const k=T/D,F=E/R,N=T/2,U=E/2,$=C/2,G=D+1,Y=R+1;let Q=0,re=0;const he=new Ie;for(let X=0;X<Y;X++){const ae=X*F-U;for(let de=0;de<G;de++){const Re=de*k-N;he[y]=Re*b,he[v]=ae*x,he[_]=$,u.push(he.x,he.y,he.z),he[y]=0,he[v]=0,he[_]=C>0?1:-1,c.push(he.x,he.y,he.z),f.push(de/D),f.push(1-X/R),Q+=1}}for(let X=0;X<R;X++)for(let ae=0;ae<D;ae++){const de=h+ae+G*X,Re=h+ae+G*(X+1),_e=h+(ae+1)+G*(X+1),xe=h+(ae+1)+G*X;l.push(de,Re,xe),l.push(Re,_e,xe),re+=6}o.addGroup(p,re,A),p+=re,h+=Q}}copy(e){return super.copy(e),this.parameters=Object.assign({},e.parameters),this}static fromJSON(e){return new e1(e.width,e.height,e.depth,e.widthSegments,e.heightSegments,e.depthSegments)}}function Cg(t){const e={};for(const n in t){e[n]={};for(const i in t[n]){const r=t[n][i];r&&(r.isColor||r.isMatrix3||r.isMatrix4||r.isVector2||r.isVector3||r.isVector4||r.isTexture||r.isQuaternion)?r.isRenderTargetTexture?(console.warn("UniformsUtils: Textures of render targets cannot be cloned via cloneUniforms() or mergeUniforms()."),e[n][i]=null):e[n][i]=r.clone():Array.isArray(r)?e[n][i]=r.slice():e[n][i]=r}}return e}function _s(t){const e={};for(let n=0;n<t.length;n++){const i=Cg(t[n]);for(const r in i)e[r]=i[r]}return e}function GMe(t){const e=[];for(let n=0;n<t.length;n++)e.push(t[n].clone());return e}function MQ(t){return t.getRenderTarget()===null?t.outputColorSpace:_u}const jMe={clone:Cg,merge:_s};var qMe=`void main() {
314	gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );
315}`,XMe=`void main() {
316	gl_FragColor = vec4( 1.0, 0.0, 0.0, 1.0 );
317}`;class mp extends Jb{constructor(e){super(),this.isShaderMaterial=!0,this.type="ShaderMaterial",this.defines={},this.uniforms={},this.uniformsGroups=[],this.vertexShader=qMe,this.fragmentShader=XMe,this.linewidth=1,this.wireframe=!1,this.wireframeLinewidth=1,this.fog=!1,this.lights=!1,this.clipping=!1,this.forceSinglePass=!0,this.extensions={derivatives:!1,fragDepth:!1,drawBuffers:!1,shaderTextureLOD:!1},this.defaultAttributeValues={color:[1,1,1],uv:[0,0],uv1:[0,0]},this.index0AttributeName=void 0,this.uniformsNeedUpdate=!1,this.glslVersion=null,e!==void 0&&this.setValues(e)}copy(e){return super.copy(e),this.fragmentShader=e.fragmentShader,this.vertexShader=e.vertexShader,this.uniforms=Cg(e.uniforms),this.uniformsGroups=GMe(e.uniformsGroups),this.defines=Object.assign({},e.defines),this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.fog=e.fog,this.lights=e.lights,this.clipping=e.clipping,this.extensions=Object.assign({},e.extensions),this.glslVersion=e.glslVersion,this}toJSON(e){const n=super.toJSON(e);n.glslVersion=this.glslVersion,n.uniforms={};for(const r in this.uniforms){const a=this.uniforms[r].value;a&&a.isTexture?n.uniforms[r]={type:"t",value:a.toJSON(e).uuid}:a&&a.isColor?n.uniforms[r]={type:"c",value:a.getHex()}:a&&a.isVector2?n.uniforms[r]={type:"v2",value:a.toArray()}:a&&a.isVector3?n.uniforms[r]={type:"v3",value:a.toArray()}:a&&a.isVector4?n.uniforms[r]={type:"v4",value:a.toArray()}:a&&a.isMatrix3?n.uniforms[r]={type:"m3",value:a.toArray()}:a&&a.isMatrix4?n.uniforms[r]={type:"m4",value:a.toArray()}:n.uniforms[r]={value:a}}Object.keys(this.defines).length>0&&(n.defines=this.defines),n.vertexShader=this.vertexShader,n.fragmentShader=this.fragmentShader,n.lights=this.lights,n.clipping=this.clipping;const i={};for(const r in this.extensions)this.extensions[r]===!0&&(i[r]=!0);return Object.keys(i).length>0&&(n.extensions=i),n}}class DQ extends oa{constructor(){super(),this.isCamera=!0,this.type="Camera",this.matrixWorldInverse=new Er,this.projectionMatrix=new Er,this.projectionMatrixInverse=new Er,this.coordinateSystem=_c}copy(e,n){return super.copy(e,n),this.matrixWorldInverse.copy(e.matrixWorldInverse),this.projectionMatrix.copy(e.projectionMatrix),this.projectionMatrixInverse.copy(e.projectionMatrixInverse),this.coordinateSystem=e.coordinateSystem,this}getWorldDirection(e){this.updateWorldMatrix(!0,!1);const n=this.matrixWorld.elements;return e.set(-n[8],-n[9],-n[10]).normalize()}updateMatrixWorld(e){super.updateMatrixWorld(e),this.matrixWorldInverse.copy(this.matrixWorld).invert()}updateWorldMatrix(e,n){super.updateWorldMatrix(e,n),this.matrixWorldInverse.copy(this.matrixWorld).invert()}clone(){return new this.constructor().copy(this)}}class Jo extends DQ{constructor(e=50,n=1,i=.1,r=2e3){super(),this.isPerspectiveCamera=!0,this.type="PerspectiveCamera",this.fov=e,this.zoom=1,this.near=i,this.far=r,this.focus=10,this.aspect=n,this.view=null,this.filmGauge=35,this.filmOffset=0,this.updateProjectionMatrix()}copy(e,n){return super.copy(e,n),this.fov=e.fov,this.zoom=e.zoom,this.near=e.near,this.far=e.far,this.focus=e.focus,this.aspect=e.aspect,this.view=e.view===null?null:Object.assign({},e.view),this.filmGauge=e.filmGauge,this.filmOffset=e.filmOffset,this}setFocalLength(e){const n=.5*this.getFilmHeight()/e;this.fov=fb*2*Math.atan(n),this.updateProjectionMatrix()}getFocalLength(){const e=Math.tan(uy*.5*this.fov);return .5*this.getFilmHeight()/e}getEffectiveFOV(){return fb*2*Math.atan(Math.tan(uy*.5*this.fov)/this.zoom)}getFilmWidth(){return this.filmGauge*Math.min(this.aspect,1)}getFilmHeight(){return this.filmGauge/Math.max(this.aspect,1)}setViewOffset(e,n,i,r,s,a){this.aspect=e/n,this.view===null&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=e,this.view.fullHeight=n,this.view.offsetX=i,this.view.offsetY=r,this.view.width=s,this.view.height=a,this.updateProjectionMatrix()}clearViewOffset(){this.view!==null&&(this.view.enabled=!1),this.updateProjectionMatrix()}updateProjectionMatrix(){const e=this.near;let n=e*Math.tan(uy*.5*this.fov)/this.zoom,i=2*n,r=this.aspect*i,s=-.5*r;const a=this.view;if(this.view!==null&&this.view.enabled){const l=a.fullWidth,u=a.fullHeight;s+=a.offsetX*r/l,n-=a.offsetY*i/u,r*=a.width/l,i*=a.height/u}const o=this.filmOffset;o!==0&&(s+=e*o/this.getFilmWidth()),this.projectionMatrix.makePerspective(s,s+r,n,n-i,e,this.far,this.coordinateSystem),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}toJSON(e){const n=super.toJSON(e);return n.object.fov=this.fov,n.object.zoom=this.zoom,n.object.near=this.near,n.object.far=this.far,n.object.focus=this.focus,n.object.aspect=this.aspect,this.view!==null&&(n.object.view=Object.assign({},this.view)),n.object.filmGauge=this.filmGauge,n.object.filmOffset=this.filmOffset,n}}const P0=-90,O0=1;class YMe extends oa{constructor(e,n,i){super(),this.type="CubeCamera",this.renderTarget=i,this.coordinateSystem=null;const r=new Jo(P0,O0,e,n);r.layers=this.layers,this.add(r);const s=new Jo(P0,O0,e,n);s.layers=this.layers,this.add(s);const a=new Jo(P0,O0,e,n);a.layers=this.layers,this.add(a);const o=new Jo(P0,O0,e,n);o.layers=this.layers,this.add(o);const l=new Jo(P0,O0,e,n);l.layers=this.layers,this.add(l);const u=new Jo(P0,O0,e,n);u.layers=this.layers,this.add(u)}updateCoordinateSystem(){const e=this.coordinateSystem,n=this.children.concat(),[i,r,s,a,o,l]=n;for(const u of n)this.remove(u);if(e===_c)i.up.set(0,1,0),i.lookAt(1,0,0),r.up.set(0,1,0),r.lookAt(-1,0,0),s.up.set(0,0,-1),s.lookAt(0,1,0),a.up.set(0,0,1),a.lookAt(0,-1,0),o.up.set(0,1,0),o.lookAt(0,0,1),l.up.set(0,1,0),l.lookAt(0,0,-1);else if(e===hE)i.up.set(0,-1,0),i.lookAt(-1,0,0),r.up.set(0,-1,0),r.lookAt(1,0,0),s.up.set(0,0,1),s.lookAt(0,1,0),a.up.set(0,0,-1),a.lookAt(0,-1,0),o.up.set(0,-1,0),o.lookAt(0,0,1),l.up.set(0,-1,0),l.lookAt(0,0,-1);else throw new Error("THREE.CubeCamera.updateCoordinateSystem(): Invalid coordinate system: "+e);for(const u of n)this.add(u),u.updateMatrixWorld()}update(e,n){this.parent===null&&this.updateMatrixWorld();const i=this.renderTarget;this.coordinateSystem!==e.coordinateSystem&&(this.coordinateSystem=e.coordinateSystem,this.updateCoordinateSystem());const[r,s,a,o,l,u]=this.children,c=e.getRenderTarget(),f=e.xr.enabled;e.xr.enabled=!1;const h=i.texture.generateMipmaps;i.texture.generateMipmaps=!1,e.setRenderTarget(i,0),e.render(n,r),e.setRenderTarget(i,1),e.render(n,s),e.setRenderTarget(i,2),e.render(n,a),e.setRenderTarget(i,3),e.render(n,o),e.setRenderTarget(i,4),e.render(n,l),i.texture.generateMipmaps=h,e.setRenderTarget(i,5),e.render(n,u),e.setRenderTarget(c),e.xr.enabled=f,i.texture.needsPMREMUpdate=!0}}class PQ extends aa{constructor(e,n,i,r,s,a,o,l,u,c){e=e!==void 0?e:[],n=n!==void 0?n:Tg,super(e,n,i,r,s,a,o,l,u,c),this.isCubeTexture=!0,this.flipY=!1}get images(){return this.image}set images(e){this.image=e}}class KMe extends hp{constructor(e=1,n={}){super(e,e,n),this.isWebGLCubeRenderTarget=!0;const i={width:e,height:e,depth:1},r=[i,i,i,i,i,i];n.encoding!==void 0&&(fy("THREE.WebGLCubeRenderTarget: option.encoding has been replaced by option.colorSpace."),n.colorSpace=n.encoding===Yh?ln:Kh),this.texture=new PQ(r,n.mapping,n.wrapS,n.wrapT,n.magFilter,n.minFilter,n.format,n.type,n.anisotropy,n.colorSpace),this.texture.isRenderTargetTexture=!0,this.texture.generateMipmaps=n.generateMipmaps!==void 0?n.generateMipmaps:!1,this.texture.minFilter=n.minFilter!==void 0?n.minFilter:xo}fromEquirectangularTexture(e,n){this.texture.type=n.type,this.texture.colorSpace=n.colorSpace,this.texture.generateMipmaps=n.generateMipmaps,this.texture.minFilter=n.minFilter,this.texture.magFilter=n.magFilter;const i={uniforms:{tEquirect:{value:null}},vertexShader:`
318
319				varying vec3 vWorldDirection;
320
321				vec3 transformDirection( in vec3 dir, in mat4 matrix ) {
322
323					return normalize( ( matrix * vec4( dir, 0.0 ) ).xyz );
324
325				}
326
327				void main() {
328
329					vWorldDirection = transformDirection( position, modelMatrix );
330
331					#include <begin_vertex>
332					#include <project_vertex>
333
334				}
335			`,fragmentShader:`
336
337				uniform sampler2D tEquirect;
338
339				varying vec3 vWorldDirection;
340
341				#include <common>
342
343				void main() {
344
345					vec3 direction = normalize( vWorldDirection );
346
347					vec2 sampleUV = equirectUv( direction );
348
349					gl_FragColor = texture2D( tEquirect, sampleUV );
350
351				}
352			`},r=new e1(5,5,5),s=new mp({name:"CubemapFromEquirect",uniforms:Cg(i.uniforms),vertexShader:i.vertexShader,fragmentShader:i.fragmentShader,side:sa,blending:td});s.uniforms.tEquirect.value=n;const a=new Hf(r,s),o=n.minFilter;return n.minFilter===ub&&(n.minFilter=xo),new YMe(1,10,this).update(e,a),n.minFilter=o,a.geometry.dispose(),a.material.dispose(),this}clear(e,n,i,r){const s=e.getRenderTarget();for(let a=0;a<6;a++)e.setRenderTarget(this,a),e.clear(n,i,r);e.setRenderTarget(s)}}const $D=new Ie,ZMe=new Ie,QMe=new mn;class Mf{constructor(e=new Ie(1,0,0),n=0){this.isPlane=!0,this.normal=e,this.constant=n}set(e,n){return this.normal.copy(e),this.constant=n,this}setComponents(e,n,i,r){return this.normal.set(e,n,i),this.constant=r,this}setFromNormalAndCoplanarPoint(e,n){return this.normal.copy(e),this.constant=-n.dot(this.normal),this}setFromCoplanarPoints(e,n,i){const r=$D.subVectors(i,n).cross(ZMe.subVectors(e,n)).normalize();return this.setFromNormalAndCoplanarPoint(r,e),this}copy(e){return this.normal.copy(e.normal),this.constant=e.constant,this}normalize(){const e=1/this.normal.length();return this.normal.multiplyScalar(e),this.constant*=e,this}negate(){return this.constant*=-1,this.normal.negate(),this}distanceToPoint(e){return this.normal.dot(e)+this.constant}distanceToSphere(e){return this.distanceToPoint(e.center)-e.radius}projectPoint(e,n){return n.copy(e).addScaledVector(this.normal,-this.distanceToPoint(e))}intersectLine(e,n){const i=e.delta($D),r=this.normal.dot(i);if(r===0)return this.distanceToPoint(e.start)===0?n.copy(e.start):null;const s=-(e.start.dot(this.normal)+this.constant)/r;return s<0||s>1?null:n.copy(e.start).addScaledVector(i,s)}intersectsLine(e){const n=this.distanceToPoint(e.start),i=this.distanceToPoint(e.end);return n<0&&i>0||i<0&&n>0}intersectsBox(e){return e.intersectsPlane(this)}intersectsSphere(e){return e.intersectsPlane(this)}coplanarPoint(e){return e.copy(this.normal).multiplyScalar(-this.constant)}applyMatrix4(e,n){const i=n||QMe.getNormalMatrix(e),r=this.coplanarPoint($D).applyMatrix4(e),s=this.normal.applyMatrix3(i).normalize();return this.constant=-r.dot(s),this}translate(e){return this.constant-=e.dot(this.normal),this}equals(e){return e.normal.equals(this.normal)&&e.constant===this.constant}clone(){return new this.constructor().copy(this)}}const sh=new g4,SS=new Ie;class OQ{constructor(e=new Mf,n=new Mf,i=new Mf,r=new Mf,s=new Mf,a=new Mf){this.planes=[e,n,i,r,s,a]}set(e,n,i,r,s,a){const o=this.planes;return o[0].copy(e),o[1].copy(n),o[2].copy(i),o[3].copy(r),o[4].copy(s),o[5].copy(a),this}copy(e){const n=this.planes;for(let i=0;i<6;i++)n[i].copy(e.planes[i]);return this}setFromProjectionMatrix(e,n=_c){const i=this.planes,r=e.elements,s=r[0],a=r[1],o=r[2],l=r[3],u=r[4],c=r[5],f=r[6],h=r[7],p=r[8],m=r[9],y=r[10],v=r[11],_=r[12],b=r[13],x=r[14],T=r[15];if(i[0].setComponents(l-s,h-u,v-p,T-_).normalize(),i[1].setComponents(l+s,h+u,v+p,T+_).normalize(),i[2].setComponents(l+a,h+c,v+m,T+b).normalize(),i[3].setComponents(l-a,h-c,v-m,T-b).normalize(),i[4].setComponents(l-o,h-f,v-y,T-x).normalize(),n===_c)i[5].setComponents(l+o,h+f,v+y,T+x).normalize();else if(n===hE)i[5].setComponents(o,f,y,x).normalize();else throw new Error("THREE.Frustum.setFromProjectionMatrix(): Invalid coordinate system: "+n);return this}intersectsObject(e){if(e.boundingSphere!==void 0)e.boundingSphere===null&&e.computeBoundingSphere(),sh.copy(e.boundingSphere).applyMatrix4(e.matrixWorld);else{const n=e.geometry;n.boundingSphere===null&&n.computeBoundingSphere(),sh.copy(n.boundingSphere).applyMatrix4(e.matrixWorld)}return this.intersectsSphere(sh)}intersectsSprite(e){return sh.center.set(0,0,0),sh.radius=.7071067811865476,sh.applyMatrix4(e.matrixWorld),this.intersectsSphere(sh)}intersectsSphere(e){const n=this.planes,i=e.center,r=-e.radius;for(let s=0;s<6;s++)if(n[s].distanceToPoint(i)<r)return!1;return!0}intersectsBox(e){const n=this.planes;for(let i=0;i<6;i++){const r=n[i];if(SS.x=r.normal.x>0?e.max.x:e.min.x,SS.y=r.normal.y>0?e.max.y:e.min.y,SS.z=r.normal.z>0?e.max.z:e.min.z,r.distanceToPoint(SS)<0)return!1}return!0}containsPoint(e){const n=this.planes;for(let i=0;i<6;i++)if(n[i].distanceToPoint(e)<0)return!1;return!0}clone(){return new this.constructor().copy(this)}}function RQ(){let t=null,e=!1,n=null,i=null;function r(s,a){n(s,a),i=t.requestAnimationFrame(r)}return{start:function(){e!==!0&&n!==null&&(i=t.requestAnimationFrame(r),e=!0)},stop:function(){t.cancelAnimationFrame(i),e=!1},setAnimationLoop:function(s){n=s},setContext:function(s){t=s}}}function JMe(t,e){const n=e.isWebGL2,i=new WeakMap;function r(u,c){const f=u.array,h=u.usage,p=t.createBuffer();t.bindBuffer(c,p),t.bufferData(c,f,h),u.onUploadCallback();let m;if(f instanceof Float32Array)m=t.FLOAT;else if(f instanceof Uint16Array)if(u.isFloat16BufferAttribute)if(n)m=t.HALF_FLOAT;else throw new Error("THREE.WebGLAttributes: Usage of Float16BufferAttribute requires WebGL2.");else m=t.UNSIGNED_SHORT;else if(f instanceof Int16Array)m=t.SHORT;else if(f instanceof Uint32Array)m=t.UNSIGNED_INT;else if(f instanceof Int32Array)m=t.INT;else if(f instanceof Int8Array)m=t.BYTE;else if(f instanceof Uint8Array)m=t.UNSIGNED_BYTE;else if(f instanceof Uint8ClampedArray)m=t.UNSIGNED_BYTE;else throw new Error("THREE.WebGLAttributes: Unsupported buffer data format: "+f);return{buffer:p,type:m,bytesPerElement:f.BYTES_PER_ELEMENT,version:u.version}}function s(u,c,f){const h=c.array,p=c.updateRange;t.bindBuffer(f,u),p.count===-1?t.bufferSubData(f,0,h):(n?t.bufferSubData(f,p.offset*h.BYTES_PER_ELEMENT,h,p.offset,p.count):t.bufferSubData(f,p.offset*h.BYTES_PER_ELEMENT,h.subarray(p.offset,p.offset+p.count)),p.count=-1),c.onUploadCallback()}function a(u){return u.isInterleavedBufferAttribute&&(u=u.data),i.get(u)}function o(u){u.isInterleavedBufferAttribute&&(u=u.data);const c=i.get(u);c&&(t.deleteBuffer(c.buffer),i.delete(u))}function l(u,c){if(u.isGLBufferAttribute){const h=i.get(u);(!h||h.version<u.version)&&i.set(u,{buffer:u.buffer,type:u.type,bytesPerElement:u.elementSize,version:u.version});return}u.isInterleavedBufferAttribute&&(u=u.data);const f=i.get(u);f===void 0?i.set(u,r(u,c)):f.version<u.version&&(s(f.buffer,u,c),f.version=u.version)}return{get:a,remove:o,update:l}}class y4 extends Bc{constructor(e=1,n=1,i=1,r=1){super(),this.type="PlaneGeometry",this.parameters={width:e,height:n,widthSegments:i,heightSegments:r};const s=e/2,a=n/2,o=Math.floor(i),l=Math.floor(r),u=o+1,c=l+1,f=e/o,h=n/l,p=[],m=[],y=[],v=[];for(let _=0;_<c;_++){const b=_*h-a;for(let x=0;x<u;x++){const T=x*f-s;m.push(T,-b,0),y.push(0,0,1),v.push(x/o),v.push(1-_/l)}}for(let _=0;_<l;_++)for(let b=0;b<o;b++){const x=b+u*_,T=b+u*(_+1),E=b+1+u*(_+1),C=b+1+u*_;p.push(x,T,C),p.push(T,E,C)}this.setIndex(p),this.setAttribute("position",new lu(m,3)),this.setAttribute("normal",new lu(y,3)),this.setAttribute("uv",new lu(v,2))}copy(e){return super.copy(e),this.parameters=Object.assign({},e.parameters),this}static fromJSON(e){return new y4(e.width,e.height,e.widthSegments,e.heightSegments)}}var eDe=`#ifdef USE_ALPHAHASH
353	if ( diffuseColor.a < getAlphaHashThreshold( vPosition ) ) discard;
354#endif`,tDe=`#ifdef USE_ALPHAHASH
355	const float ALPHA_HASH_SCALE = 0.05;
356	float hash2D( vec2 value ) {
357		return fract( 1.0e4 * sin( 17.0 * value.x + 0.1 * value.y ) * ( 0.1 + abs( sin( 13.0 * value.y + value.x ) ) ) );
358	}
359	float hash3D( vec3 value ) {
360		return hash2D( vec2( hash2D( value.xy ), value.z ) );
361	}
362	float getAlphaHashThreshold( vec3 position ) {
363		float maxDeriv = max(
364			length( dFdx( position.xyz ) ),
365			length( dFdy( position.xyz ) )
366		);
367		float pixScale = 1.0 / ( ALPHA_HASH_SCALE * maxDeriv );
368		vec2 pixScales = vec2(
369			exp2( floor( log2( pixScale ) ) ),
370			exp2( ceil( log2( pixScale ) ) )
371		);
372		vec2 alpha = vec2(
373			hash3D( floor( pixScales.x * position.xyz ) ),
374			hash3D( floor( pixScales.y * position.xyz ) )
375		);
376		float lerpFactor = fract( log2( pixScale ) );
377		float x = ( 1.0 - lerpFactor ) * alpha.x + lerpFactor * alpha.y;
378		float a = min( lerpFactor, 1.0 - lerpFactor );
379		vec3 cases = vec3(
380			x * x / ( 2.0 * a * ( 1.0 - a ) ),
381			( x - 0.5 * a ) / ( 1.0 - a ),
382			1.0 - ( ( 1.0 - x ) * ( 1.0 - x ) / ( 2.0 * a * ( 1.0 - a ) ) )
383		);
384		float threshold = ( x < ( 1.0 - a ) )
385			? ( ( x < a ) ? cases.x : cases.y )
386			: cases.z;
387		return clamp( threshold , 1.0e-6, 1.0 );
388	}
389#endif`,nDe=`#ifdef USE_ALPHAMAP
390	diffuseColor.a *= texture2D( alphaMap, vAlphaMapUv ).g;
391#endif`,iDe=`#ifdef USE_ALPHAMAP
392	uniform sampler2D alphaMap;
393#endif`,rDe=`#ifdef USE_ALPHATEST
394	if ( diffuseColor.a < alphaTest ) discard;
395#endif`,sDe=`#ifdef USE_ALPHATEST
396	uniform float alphaTest;
397#endif`,aDe=`#ifdef USE_AOMAP
398	float ambientOcclusion = ( texture2D( aoMap, vAoMapUv ).r - 1.0 ) * aoMapIntensity + 1.0;
399	reflectedLight.indirectDiffuse *= ambientOcclusion;
400	#if defined( USE_ENVMAP ) && defined( STANDARD )
401		float dotNV = saturate( dot( geometry.normal, geometry.viewDir ) );
402		reflectedLight.indirectSpecular *= computeSpecularOcclusion( dotNV, ambientOcclusion, material.roughness );
403	#endif
404#endif`,oDe=`#ifdef USE_AOMAP
405	uniform sampler2D aoMap;
406	uniform float aoMapIntensity;
407#endif`,lDe=`vec3 transformed = vec3( position );
408#ifdef USE_ALPHAHASH
409	vPosition = vec3( position );
410#endif`,uDe=`vec3 objectNormal = vec3( normal );
411#ifdef USE_TANGENT
412	vec3 objectTangent = vec3( tangent.xyz );
413#endif`,cDe=`float G_BlinnPhong_Implicit( ) {
414	return 0.25;
415}
416float D_BlinnPhong( const in float shininess, const in float dotNH ) {
417	return RECIPROCAL_PI * ( shininess * 0.5 + 1.0 ) * pow( dotNH, shininess );
418}
419vec3 BRDF_BlinnPhong( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in vec3 specularColor, const in float shininess ) {
420	vec3 halfDir = normalize( lightDir + viewDir );
421	float dotNH = saturate( dot( normal, halfDir ) );
422	float dotVH = saturate( dot( viewDir, halfDir ) );
423	vec3 F = F_Schlick( specularColor, 1.0, dotVH );
424	float G = G_BlinnPhong_Implicit( );
425	float D = D_BlinnPhong( shininess, dotNH );
426	return F * ( G * D );
427} // validated`,fDe=`#ifdef USE_IRIDESCENCE
428	const mat3 XYZ_TO_REC709 = mat3(
429		 3.2404542, -0.9692660,  0.0556434,
430		-1.5371385,  1.8760108, -0.2040259,
431		-0.4985314,  0.0415560,  1.0572252
432	);
433	vec3 Fresnel0ToIor( vec3 fresnel0 ) {
434		vec3 sqrtF0 = sqrt( fresnel0 );
435		return ( vec3( 1.0 ) + sqrtF0 ) / ( vec3( 1.0 ) - sqrtF0 );
436	}
437	vec3 IorToFresnel0( vec3 transmittedIor, float incidentIor ) {
438		return pow2( ( transmittedIor - vec3( incidentIor ) ) / ( transmittedIor + vec3( incidentIor ) ) );
439	}
440	float IorToFresnel0( float transmittedIor, float incidentIor ) {
441		return pow2( ( transmittedIor - incidentIor ) / ( transmittedIor + incidentIor ));
442	}
443	vec3 evalSensitivity( float OPD, vec3 shift ) {
444		float phase = 2.0 * PI * OPD * 1.0e-9;
445		vec3 val = vec3( 5.4856e-13, 4.4201e-13, 5.2481e-13 );
446		vec3 pos = vec3( 1.6810e+06, 1.7953e+06, 2.2084e+06 );
447		vec3 var = vec3( 4.3278e+09, 9.3046e+09, 6.6121e+09 );
448		vec3 xyz = val * sqrt( 2.0 * PI * var ) * cos( pos * phase + shift ) * exp( - pow2( phase ) * var );
449		xyz.x += 9.7470e-14 * sqrt( 2.0 * PI * 4.5282e+09 ) * cos( 2.2399e+06 * phase + shift[ 0 ] ) * exp( - 4.5282e+09 * pow2( phase ) );
450		xyz /= 1.0685e-7;
451		vec3 rgb = XYZ_TO_REC709 * xyz;
452		return rgb;
453	}
454	vec3 evalIridescence( float outsideIOR, float eta2, float cosTheta1, float thinFilmThickness, vec3 baseF0 ) {
455		vec3 I;
456		float iridescenceIOR = mix( outsideIOR, eta2, smoothstep( 0.0, 0.03, thinFilmThickness ) );
457		float sinTheta2Sq = pow2( outsideIOR / iridescenceIOR ) * ( 1.0 - pow2( cosTheta1 ) );
458		float cosTheta2Sq = 1.0 - sinTheta2Sq;
459		if ( cosTheta2Sq < 0.0 ) {
460			return vec3( 1.0 );
461		}
462		float cosTheta2 = sqrt( cosTheta2Sq );
463		float R0 = IorToFresnel0( iridescenceIOR, outsideIOR );
464		float R12 = F_Schlick( R0, 1.0, cosTheta1 );
465		float T121 = 1.0 - R12;
466		float phi12 = 0.0;
467		if ( iridescenceIOR < outsideIOR ) phi12 = PI;
468		float phi21 = PI - phi12;
469		vec3 baseIOR = Fresnel0ToIor( clamp( baseF0, 0.0, 0.9999 ) );		vec3 R1 = IorToFresnel0( baseIOR, iridescenceIOR );
470		vec3 R23 = F_Schlick( R1, 1.0, cosTheta2 );
471		vec3 phi23 = vec3( 0.0 );
472		if ( baseIOR[ 0 ] < iridescenceIOR ) phi23[ 0 ] = PI;
473		if ( baseIOR[ 1 ] < iridescenceIOR ) phi23[ 1 ] = PI;
474		if ( baseIOR[ 2 ] < iridescenceIOR ) phi23[ 2 ] = PI;
475		float OPD = 2.0 * iridescenceIOR * thinFilmThickness * cosTheta2;
476		vec3 phi = vec3( phi21 ) + phi23;
477		vec3 R123 = clamp( R12 * R23, 1e-5, 0.9999 );
478		vec3 r123 = sqrt( R123 );
479		vec3 Rs = pow2( T121 ) * R23 / ( vec3( 1.0 ) - R123 );
480		vec3 C0 = R12 + Rs;
481		I = C0;
482		vec3 Cm = Rs - T121;
483		for ( int m = 1; m <= 2; ++ m ) {
484			Cm *= r123;
485			vec3 Sm = 2.0 * evalSensitivity( float( m ) * OPD, float( m ) * phi );
486			I += Cm * Sm;
487		}
488		return max( I, vec3( 0.0 ) );
489	}
490#endif`,dDe=`#ifdef USE_BUMPMAP
491	uniform sampler2D bumpMap;
492	uniform float bumpScale;
493	vec2 dHdxy_fwd() {
494		vec2 dSTdx = dFdx( vBumpMapUv );
495		vec2 dSTdy = dFdy( vBumpMapUv );
496		float Hll = bumpScale * texture2D( bumpMap, vBumpMapUv ).x;
497		float dBx = bumpScale * texture2D( bumpMap, vBumpMapUv + dSTdx ).x - Hll;
498		float dBy = bumpScale * texture2D( bumpMap, vBumpMapUv + dSTdy ).x - Hll;
499		return vec2( dBx, dBy );
500	}
501	vec3 perturbNormalArb( vec3 surf_pos, vec3 surf_norm, vec2 dHdxy, float faceDirection ) {
502		vec3 vSigmaX = dFdx( surf_pos.xyz );
503		vec3 vSigmaY = dFdy( surf_pos.xyz );
504		vec3 vN = surf_norm;
505		vec3 R1 = cross( vSigmaY, vN );
506		vec3 R2 = cross( vN, vSigmaX );
507		float fDet = dot( vSigmaX, R1 ) * faceDirection;
508		vec3 vGrad = sign( fDet ) * ( dHdxy.x * R1 + dHdxy.y * R2 );
509		return normalize( abs( fDet ) * surf_norm - vGrad );
510	}
511#endif`,hDe=`#if NUM_CLIPPING_PLANES > 0
512	vec4 plane;
513	#pragma unroll_loop_start
514	for ( int i = 0; i < UNION_CLIPPING_PLANES; i ++ ) {
515		plane = clippingPlanes[ i ];
516		if ( dot( vClipPosition, plane.xyz ) > plane.w ) discard;
517	}
518	#pragma unroll_loop_end
519	#if UNION_CLIPPING_PLANES < NUM_CLIPPING_PLANES
520		bool clipped = true;
521		#pragma unroll_loop_start
522		for ( int i = UNION_CLIPPING_PLANES; i < NUM_CLIPPING_PLANES; i ++ ) {
523			plane = clippingPlanes[ i ];
524			clipped = ( dot( vClipPosition, plane.xyz ) > plane.w ) && clipped;
525		}
526		#pragma unroll_loop_end
527		if ( clipped ) discard;
528	#endif
529#endif`,pDe=`#if NUM_CLIPPING_PLANES > 0
530	varying vec3 vClipPosition;
531	uniform vec4 clippingPlanes[ NUM_CLIPPING_PLANES ];
532#endif`,mDe=`#if NUM_CLIPPING_PLANES > 0
533	varying vec3 vClipPosition;
534#endif`,gDe=`#if NUM_CLIPPING_PLANES > 0
535	vClipPosition = - mvPosition.xyz;
536#endif`,_De=`#if defined( USE_COLOR_ALPHA )
537	diffuseColor *= vColor;
538#elif defined( USE_COLOR )
539	diffuseColor.rgb *= vColor;
540#endif`,vDe=`#if defined( USE_COLOR_ALPHA )
541	varying vec4 vColor;
542#elif defined( USE_COLOR )
543	varying vec3 vColor;
544#endif`,yDe=`#if defined( USE_COLOR_ALPHA )
545	varying vec4 vColor;
546#elif defined( USE_COLOR ) || defined( USE_INSTANCING_COLOR )
547	varying vec3 vColor;
548#endif`,bDe=`#if defined( USE_COLOR_ALPHA )
549	vColor = vec4( 1.0 );
550#elif defined( USE_COLOR ) || defined( USE_INSTANCING_COLOR )
551	vColor = vec3( 1.0 );
552#endif
553#ifdef USE_COLOR
554	vColor *= color;
555#endif
556#ifdef USE_INSTANCING_COLOR
557	vColor.xyz *= instanceColor.xyz;
558#endif`,xDe=`#define PI 3.141592653589793
559#define PI2 6.283185307179586
560#define PI_HALF 1.5707963267948966
561#define RECIPROCAL_PI 0.3183098861837907
562#define RECIPROCAL_PI2 0.15915494309189535
563#define EPSILON 1e-6
564#ifndef saturate
565#define saturate( a ) clamp( a, 0.0, 1.0 )
566#endif
567#define whiteComplement( a ) ( 1.0 - saturate( a ) )
568float pow2( const in float x ) { return x*x; }
569vec3 pow2( const in vec3 x ) { return x*x; }
570float pow3( const in float x ) { return x*x*x; }
571float pow4( const in float x ) { float x2 = x*x; return x2*x2; }
572float max3( const in vec3 v ) { return max( max( v.x, v.y ), v.z ); }
573float average( const in vec3 v ) { return dot( v, vec3( 0.3333333 ) ); }
574highp float rand( const in vec2 uv ) {
575	const highp float a = 12.9898, b = 78.233, c = 43758.5453;
576	highp float dt = dot( uv.xy, vec2( a,b ) ), sn = mod( dt, PI );
577	return fract( sin( sn ) * c );
578}
579#ifdef HIGH_PRECISION
580	float precisionSafeLength( vec3 v ) { return length( v ); }
581#else
582	float precisionSafeLength( vec3 v ) {
583		float maxComponent = max3( abs( v ) );
584		return length( v / maxComponent ) * maxComponent;
585	}
586#endif
587struct IncidentLight {
588	vec3 color;
589	vec3 direction;
590	bool visible;
591};
592struct ReflectedLight {
593	vec3 directDiffuse;
594	vec3 directSpecular;
595	vec3 indirectDiffuse;
596	vec3 indirectSpecular;
597};
598struct GeometricContext {
599	vec3 position;
600	vec3 normal;
601	vec3 viewDir;
602#ifdef USE_CLEARCOAT
603	vec3 clearcoatNormal;
604#endif
605};
606#ifdef USE_ALPHAHASH
607	varying vec3 vPosition;
608#endif
609vec3 transformDirection( in vec3 dir, in mat4 matrix ) {
610	return normalize( ( matrix * vec4( dir, 0.0 ) ).xyz );
611}
612vec3 inverseTransformDirection( in vec3 dir, in mat4 matrix ) {
613	return normalize( ( vec4( dir, 0.0 ) * matrix ).xyz );
614}
615mat3 transposeMat3( const in mat3 m ) {
616	mat3 tmp;
617	tmp[ 0 ] = vec3( m[ 0 ].x, m[ 1 ].x, m[ 2 ].x );
618	tmp[ 1 ] = vec3( m[ 0 ].y, m[ 1 ].y, m[ 2 ].y );
619	tmp[ 2 ] = vec3( m[ 0 ].z, m[ 1 ].z, m[ 2 ].z );
620	return tmp;
621}
622float luminance( const in vec3 rgb ) {
623	const vec3 weights = vec3( 0.2126729, 0.7151522, 0.0721750 );
624	return dot( weights, rgb );
625}
626bool isPerspectiveMatrix( mat4 m ) {
627	return m[ 2 ][ 3 ] == - 1.0;
628}
629vec2 equirectUv( in vec3 dir ) {
630	float u = atan( dir.z, dir.x ) * RECIPROCAL_PI2 + 0.5;
631	float v = asin( clamp( dir.y, - 1.0, 1.0 ) ) * RECIPROCAL_PI + 0.5;
632	return vec2( u, v );
633}
634vec3 BRDF_Lambert( const in vec3 diffuseColor ) {
635	return RECIPROCAL_PI * diffuseColor;
636}
637vec3 F_Schlick( const in vec3 f0, const in float f90, const in float dotVH ) {
638	float fresnel = exp2( ( - 5.55473 * dotVH - 6.98316 ) * dotVH );
639	return f0 * ( 1.0 - fresnel ) + ( f90 * fresnel );
640}
641float F_Schlick( const in float f0, const in float f90, const in float dotVH ) {
642	float fresnel = exp2( ( - 5.55473 * dotVH - 6.98316 ) * dotVH );
643	return f0 * ( 1.0 - fresnel ) + ( f90 * fresnel );
644} // validated`,SDe=`#ifdef ENVMAP_TYPE_CUBE_UV
645	#define cubeUV_minMipLevel 4.0
646	#define cubeUV_minTileSize 16.0
647	float getFace( vec3 direction ) {
648		vec3 absDirection = abs( direction );
649		float face = - 1.0;
650		if ( absDirection.x > absDirection.z ) {
651			if ( absDirection.x > absDirection.y )
652				face = direction.x > 0.0 ? 0.0 : 3.0;
653			else
654				face = direction.y > 0.0 ? 1.0 : 4.0;
655		} else {
656			if ( absDirection.z > absDirection.y )
657				face = direction.z > 0.0 ? 2.0 : 5.0;
658			else
659				face = direction.y > 0.0 ? 1.0 : 4.0;
660		}
661		return face;
662	}
663	vec2 getUV( vec3 direction, float face ) {
664		vec2 uv;
665		if ( face == 0.0 ) {
666			uv = vec2( direction.z, direction.y ) / abs( direction.x );
667		} else if ( face == 1.0 ) {
668			uv = vec2( - direction.x, - direction.z ) / abs( direction.y );
669		} else if ( face == 2.0 ) {
670			uv = vec2( - direction.x, direction.y ) / abs( direction.z );
671		} else if ( face == 3.0 ) {
672			uv = vec2( - direction.z, direction.y ) / abs( direction.x );
673		} else if ( face == 4.0 ) {
674			uv = vec2( - direction.x, direction.z ) / abs( direction.y );
675		} else {
676			uv = vec2( direction.x, direction.y ) / abs( direction.z );
677		}
678		return 0.5 * ( uv + 1.0 );
679	}
680	vec3 bilinearCubeUV( sampler2D envMap, vec3 direction, float mipInt ) {
681		float face = getFace( direction );
682		float filterInt = max( cubeUV_minMipLevel - mipInt, 0.0 );
683		mipInt = max( mipInt, cubeUV_minMipLevel );
684		float faceSize = exp2( mipInt );
685		highp vec2 uv = getUV( direction, face ) * ( faceSize - 2.0 ) + 1.0;
686		if ( face > 2.0 ) {
687			uv.y += faceSize;
688			face -= 3.0;
689		}
690		uv.x += face * faceSize;
691		uv.x += filterInt * 3.0 * cubeUV_minTileSize;
692		uv.y += 4.0 * ( exp2( CUBEUV_MAX_MIP ) - faceSize );
693		uv.x *= CUBEUV_TEXEL_WIDTH;
694		uv.y *= CUBEUV_TEXEL_HEIGHT;
695		#ifdef texture2DGradEXT
696			return texture2DGradEXT( envMap, uv, vec2( 0.0 ), vec2( 0.0 ) ).rgb;
697		#else
698			return texture2D( envMap, uv ).rgb;
699		#endif
700	}
701	#define cubeUV_r0 1.0
702	#define cubeUV_v0 0.339
703	#define cubeUV_m0 - 2.0
704	#define cubeUV_r1 0.8
705	#define cubeUV_v1 0.276
706	#define cubeUV_m1 - 1.0
707	#define cubeUV_r4 0.4
708	#define cubeUV_v4 0.046
709	#define cubeUV_m4 2.0
710	#define cubeUV_r5 0.305
711	#define cubeUV_v5 0.016
712	#define cubeUV_m5 3.0
713	#define cubeUV_r6 0.21
714	#define cubeUV_v6 0.0038
715	#define cubeUV_m6 4.0
716	float roughnessToMip( float roughness ) {
717		float mip = 0.0;
718		if ( roughness >= cubeUV_r1 ) {
719			mip = ( cubeUV_r0 - roughness ) * ( cubeUV_m1 - cubeUV_m0 ) / ( cubeUV_r0 - cubeUV_r1 ) + cubeUV_m0;
720		} else if ( roughness >= cubeUV_r4 ) {
721			mip = ( cubeUV_r1 - roughness ) * ( cubeUV_m4 - cubeUV_m1 ) / ( cubeUV_r1 - cubeUV_r4 ) + cubeUV_m1;
722		} else if ( roughness >= cubeUV_r5 ) {
723			mip = ( cubeUV_r4 - roughness ) * ( cubeUV_m5 - cubeUV_m4 ) / ( cubeUV_r4 - cubeUV_r5 ) + cubeUV_m4;
724		} else if ( roughness >= cubeUV_r6 ) {
725			mip = ( cubeUV_r5 - roughness ) * ( cubeUV_m6 - cubeUV_m5 ) / ( cubeUV_r5 - cubeUV_r6 ) + cubeUV_m5;
726		} else {
727			mip = - 2.0 * log2( 1.16 * roughness );		}
728		return mip;
729	}
730	vec4 textureCubeUV( sampler2D envMap, vec3 sampleDir, float roughness ) {
731		float mip = clamp( roughnessToMip( roughness ), cubeUV_m0, CUBEUV_MAX_MIP );
732		float mipF = fract( mip );
733		float mipInt = floor( mip );
734		vec3 color0 = bilinearCubeUV( envMap, sampleDir, mipInt );
735		if ( mipF == 0.0 ) {
736			return vec4( color0, 1.0 );
737		} else {
738			vec3 color1 = bilinearCubeUV( envMap, sampleDir, mipInt + 1.0 );
739			return vec4( mix( color0, color1, mipF ), 1.0 );
740		}
741	}
742#endif`,TDe=`vec3 transformedNormal = objectNormal;
743#ifdef USE_INSTANCING
744	mat3 m = mat3( instanceMatrix );
745	transformedNormal /= vec3( dot( m[ 0 ], m[ 0 ] ), dot( m[ 1 ], m[ 1 ] ), dot( m[ 2 ], m[ 2 ] ) );
746	transformedNormal = m * transformedNormal;
747#endif
748transformedNormal = normalMatrix * transformedNormal;
749#ifdef FLIP_SIDED
750	transformedNormal = - transformedNormal;
751#endif
752#ifdef USE_TANGENT
753	vec3 transformedTangent = ( modelViewMatrix * vec4( objectTangent, 0.0 ) ).xyz;
754	#ifdef FLIP_SIDED
755		transformedTangent = - transformedTangent;
756	#endif
757#endif`,EDe=`#ifdef USE_DISPLACEMENTMAP
758	uniform sampler2D displacementMap;
759	uniform float displacementScale;
760	uniform float displacementBias;
761#endif`,wDe=`#ifdef USE_DISPLACEMENTMAP
762	transformed += normalize( objectNormal ) * ( texture2D( displacementMap, vDisplacementMapUv ).x * displacementScale + dis
762placementBias );
763#endif`,CDe=`#ifdef USE_EMISSIVEMAP
764	vec4 emissiveColor = texture2D( emissiveMap, vEmissiveMapUv );
765	totalEmissiveRadiance *= emissiveColor.rgb;
766#endif`,ADe=`#ifdef USE_EMISSIVEMAP
767	uniform sampler2D emissiveMap;
768#endif`,MDe="gl_FragColor = linearToOutputTexel( gl_FragColor );",DDe=`vec4 LinearToLinear( in vec4 value ) {
769	return value;
770}
771vec4 LinearTosRGB( in vec4 value ) {
772	return vec4( mix( pow( value.rgb, vec3( 0.41666 ) ) * 1.055 - vec3( 0.055 ), value.rgb * 12.92, vec3( lessThanEqual( value.rgb, vec3( 0.0031308 ) ) ) ), value.a );
773}`,PDe=`#ifdef USE_ENVMAP
774	#ifdef ENV_WORLDPOS
775		vec3 cameraToFrag;
776		if ( isOrthographic ) {
777			cameraToFrag = normalize( vec3( - viewMatrix[ 0 ][ 2 ], - viewMatrix[ 1 ][ 2 ], - viewMatrix[ 2 ][ 2 ] ) );
778		} else {
779			cameraToFrag = normalize( vWorldPosition - cameraPosition );
780		}
781		vec3 worldNormal = inverseTransformDirection( normal, viewMatrix );
782		#ifdef ENVMAP_MODE_REFLECTION
783			vec3 reflectVec = reflect( cameraToFrag, worldNormal );
784		#else
785			vec3 reflectVec = refract( cameraToFrag, worldNormal, refractionRatio );
786		#endif
787	#else
788		vec3 reflectVec = vReflect;
789	#endif
790	#ifdef ENVMAP_TYPE_CUBE
791		vec4 envColor = textureCube( envMap, vec3( flipEnvMap * reflectVec.x, reflectVec.yz ) );
792	#else
793		vec4 envColor = vec4( 0.0 );
794	#endif
795	#ifdef ENVMAP_BLENDING_MULTIPLY
796		outgoingLight = mix( outgoingLight, outgoingLight * envColor.xyz, specularStrength * reflectivity );
797	#elif defined( ENVMAP_BLENDING_MIX )
798		outgoingLight = mix( outgoingLight, envColor.xyz, specularStrength * reflectivity );
799	#elif defined( ENVMAP_BLENDING_ADD )
800		outgoingLight += envColor.xyz * specularStrength * reflectivity;
801	#endif
802#endif`,ODe=`#ifdef USE_ENVMAP
803	uniform float envMapIntensity;
804	uniform float flipEnvMap;
805	#ifdef ENVMAP_TYPE_CUBE
806		uniform samplerCube envMap;
807	#else
808		uniform sampler2D envMap;
809	#endif
810	
811#endif`,RDe=`#ifdef USE_ENVMAP
812	uniform float reflectivity;
813	#if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG ) || defined( LAMBERT )
814		#define ENV_WORLDPOS
815	#endif
816	#ifdef ENV_WORLDPOS
817		varying vec3 vWorldPosition;
818		uniform float refractionRatio;
819	#else
820		varying vec3 vReflect;
821	#endif
822#endif`,kDe=`#ifdef USE_ENVMAP
823	#if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG ) || defined( LAMBERT )
824		#define ENV_WORLDPOS
825	#endif
826	#ifdef ENV_WORLDPOS
827		
828		varying vec3 vWorldPosition;
829	#else
830		varying vec3 vReflect;
831		uniform float refractionRatio;
832	#endif
833#endif`,IDe=`#ifdef USE_ENVMAP
834	#ifdef ENV_WORLDPOS
835		vWorldPosition = worldPosition.xyz;
836	#else
837		vec3 cameraToVertex;
838		if ( isOrthographic ) {
839			cameraToVertex = normalize( vec3( - viewMatrix[ 0 ][ 2 ], - viewMatrix[ 1 ][ 2 ], - viewMatrix[ 2 ][ 2 ] ) );
840		} else {
841			cameraToVertex = normalize( worldPosition.xyz - cameraPosition );
842		}
843		vec3 worldNormal = inverseTransformDirection( transformedNormal, viewMatrix );
844		#ifdef ENVMAP_MODE_REFLECTION
845			vReflect = reflect( cameraToVertex, worldNormal );
846		#else
847			vReflect = refract( cameraToVertex, worldNormal, refractionRatio );
848		#endif
849	#endif
850#endif`,LDe=`#ifdef USE_FOG
851	vFogDepth = - mvPosition.z;
852#endif`,FDe=`#ifdef USE_FOG
853	varying float vFogDepth;
854#endif`,NDe=`#ifdef USE_FOG
855	#ifdef FOG_EXP2
856		float fogFactor = 1.0 - exp( - fogDensity * fogDensity * vFogDepth * vFogDepth );
857	#else
858		float fogFactor = smoothstep( fogNear, fogFar, vFogDepth );
859	#endif
860	gl_FragColor.rgb = mix( gl_FragColor.rgb, fogColor, fogFactor );
861#endif`,BDe=`#ifdef USE_FOG
862	uniform vec3 fogColor;
863	varying float vFogDepth;
864	#ifdef FOG_EXP2
865		uniform float fogDensity;
866	#else
867		uniform float fogNear;
868		uniform float fogFar;
869	#endif
870#endif`,UDe=`#ifdef USE_GRADIENTMAP
871	uniform sampler2D gradientMap;
872#endif
873vec3 getGradientIrradiance( vec3 normal, vec3 lightDirection ) {
874	float dotNL = dot( normal, lightDirection );
875	vec2 coord = vec2( dotNL * 0.5 + 0.5, 0.0 );
876	#ifdef USE_GRADIENTMAP
877		return vec3( texture2D( gradientMap, coord ).r );
878	#else
879		vec2 fw = fwidth( coord ) * 0.5;
880		return mix( vec3( 0.7 ), vec3( 1.0 ), smoothstep( 0.7 - fw.x, 0.7 + fw.x, coord.x ) );
881	#endif
882}`,$De=`#ifdef USE_LIGHTMAP
883	vec4 lightMapTexel = texture2D( lightMap, vLightMapUv );
884	vec3 lightMapIrradiance = lightMapTexel.rgb * lightMapIntensity;
885	reflectedLight.indirectDiffuse += lightMapIrradiance;
886#endif`,zDe=`#ifdef USE_LIGHTMAP
887	uniform sampler2D lightMap;
888	uniform float lightMapIntensity;
889#endif`,HDe=`LambertMaterial material;
890material.diffuseColor = diffuseColor.rgb;
891material.specularStrength = specularStrength;`,VDe=`varying vec3 vViewPosition;
892struct LambertMaterial {
893	vec3 diffuseColor;
894	float specularStrength;
895};
896void RE_Direct_Lambert( const in IncidentLight directLight, const in GeometricContext geometry, const in LambertMaterial material, inout ReflectedLight reflectedLight ) {
897	float dotNL = saturate( dot( geometry.normal, directLight.direction ) );
898	vec3 irradiance = dotNL * directLight.color;
899	reflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );
900}
901void RE_IndirectDiffuse_Lambert( const in vec3 irradiance, const in GeometricContext geometry, const in LambertMaterial material, inout ReflectedLight reflectedLight ) {
902	reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );
903}
904#define RE_Direct				RE_Direct_Lambert
905#define RE_IndirectDiffuse		RE_IndirectDiffuse_Lambert`,WDe=`uniform bool receiveShadow;
906uniform vec3 ambientLightColor;
907uniform vec3 lightProbe[ 9 ];
908vec3 shGetIrradianceAt( in vec3 normal, in vec3 shCoefficients[ 9 ] ) {
909	float x = normal.x, y = normal.y, z = normal.z;
910	vec3 result = shCoefficients[ 0 ] * 0.886227;
911	result += shCoefficients[ 1 ] * 2.0 * 0.511664 * y;
912	result += shCoefficients[ 2 ] * 2.0 * 0.511664 * z;
913	result += shCoefficients[ 3 ] * 2.0 * 0.511664 * x;
914	result += shCoefficients[ 4 ] * 2.0 * 0.429043 * x * y;
915	result += shCoefficients[ 5 ] * 2.0 * 0.429043 * y * z;
916	result += shCoefficients[ 6 ] * ( 0.743125 * z * z - 0.247708 );
917	result += shCoefficients[ 7 ] * 2.0 * 0.429043 * x * z;
918	result += shCoefficients[ 8 ] * 0.429043 * ( x * x - y * y );
919	return result;
920}
921vec3 getLightProbeIrradiance( const in vec3 lightProbe[ 9 ], const in vec3 normal ) {
922	vec3 worldNormal = inverseTransformDirection( normal, viewMatrix );
923	vec3 irradiance = shGetIrradianceAt( worldNormal, lightProbe );
924	return irradiance;
925}
926vec3 getAmbientLightIrradiance( const in vec3 ambientLightColor ) {
927	vec3 irradiance = ambientLightColor;
928	return irradiance;
929}
930float getDistanceAttenuation( const in float lightDistance, const in float cutoffDistance, const in float decayExponent ) {
931	#if defined ( LEGACY_LIGHTS )
932		if ( cutoffDistance > 0.0 && decayExponent > 0.0 ) {
933			return pow( saturate( - lightDistance / cutoffDistance + 1.0 ), decayExponent );
934		}
935		return 1.0;
936	#else
937		float distanceFalloff = 1.0 / max( pow( lightDistance, decayExponent ), 0.01 );
938		if ( cutoffDistance > 0.0 ) {
939			distanceFalloff *= pow2( saturate( 1.0 - pow4( lightDistance / cutoffDistance ) ) );
940		}
941		return distanceFalloff;
942	#endif
943}
944float getSpotAttenuation( const in float coneCosine, const in float penumbraCosine, const in float angleCosine ) {
945	return smoothstep( coneCosine, penumbraCosine, angleCosine );
946}
947#if NUM_DIR_LIGHTS > 0
948	struct DirectionalLight {
949		vec3 direction;
950		vec3 color;
951	};
952	uniform DirectionalLight directionalLights[ NUM_DIR_LIGHTS ];
953	void getDirectionalLightInfo( const in DirectionalLight directionalLight, const in GeometricContext geometry, out IncidentLight light ) {
954		light.color = directionalLight.color;
955		light.direction = directionalLight.direction;
956		light.visible = true;
957	}
958#endif
959#if NUM_POINT_LIGHTS > 0
960	struct PointLight {
961		vec3 position;
962		vec3 color;
963		float distance;
964		float decay;
965	};
966	uniform PointLight pointLights[ NUM_POINT_LIGHTS ];
967	void getPointLightInfo( const in PointLight pointLight, const in GeometricContext geometry, out IncidentLight light ) {
968		vec3 lVector = pointLight.position - geometry.position;
969		light.direction = normalize( lVector );
970		float lightDistance = length( lVector );
971		light.color = pointLight.color;
972		light.color *= getDistanceAttenuation( lightDistance, pointLight.distance, pointLight.decay );
973		light.visible = ( light.color != vec3( 0.0 ) );
974	}
975#endif
976#if NUM_SPOT_LIGHTS > 0
977	struct SpotLight {
978		vec3 position;
979		vec3 direction;
980		vec3 color;
981		float distance;
982		float decay;
983		float coneCos;
984		float penumbraCos;
985	};
986	uniform SpotLight spotLights[ NUM_SPOT_LIGHTS ];
987	void getSpotLightInfo( const in SpotLight spotLight, const in GeometricContext geometry, out IncidentLight light ) {
988		vec3 lVector = spotLight.position - geometry.position;
989		light.direction = normalize( lVector );
990		float angleCos = dot( light.direction, spotLight.direction );
991		float spotAttenuation = getSpotAttenuation( spotLight.coneCos, spotLight.penumbraCos, angleCos );
992		if ( spotAttenuation > 0.0 ) {
993			float lightDistance = length( lVector );
994			light.color = spotLight.color * spotAttenuation;
995			light.color *= getDistanceAttenuation( lightDistance, spotLight.distance, spotLight.decay );
996			light.visible = ( light.color != vec3( 0.0 ) );
997		} else {
998			light.color = vec3( 0.0 );
999			light.visible = false;
1000		}
1001	}
1002#endif
1003#if NUM_RECT_AREA_LIGHTS > 0
1004	struct RectAreaLight {
1005		vec3 color;
1006		vec3 position;
1007		vec3 halfWidth;
1008		vec3 halfHeight;
1009	};
1010	uniform sampler2D ltc_1;	uniform sampler2D ltc_2;
1011	uniform RectAreaLight rectAreaLights[ NUM_RECT_AREA_LIGHTS ];
1012#endif
1013#if NUM_HEMI_LIGHTS > 0
1014	struct HemisphereLight {
1015		vec3 direction;
1016		vec3 skyColor;
1017		vec3 groundColor;
1018	};
1019	uniform HemisphereLight hemisphereLights[ NUM_HEMI_LIGHTS ];
1020	vec3 getHemisphereLightIrradiance( const in HemisphereLight hemiLight, const in vec3 normal ) {
1021		float dotNL = dot( normal, hemiLight.direction );
1022		float hemiDiffuseWeight = 0.5 * dotNL + 0.5;
1023		vec3 irradiance = mix( hemiLight.groundColor, hemiLight.skyColor, hemiDiffuseWeight );
1024		return irradiance;
1025	}
1026#endif`,GDe=`#ifdef USE_ENVMAP
1027	vec3 getIBLIrradiance( const in vec3 normal ) {
1028		#ifdef ENVMAP_TYPE_CUBE_UV
1029			vec3 worldNormal = inverseTransformDirection( normal, viewMatrix );
1030			vec4 envMapColor = textureCubeUV( envMap, worldNormal, 1.0 );
1031			return PI * envMapColor.rgb * envMapIntensity;
1032		#else
1033			return vec3( 0.0 );
1034		#endif
1035	}
1036	vec3 getIBLRadiance( const in vec3 viewDir, const in vec3 normal, const in float roughness ) {
1037		#ifdef ENVMAP_TYPE_CUBE_UV
1038			vec3 reflectVec = reflect( - viewDir, normal );
1039			reflectVec = normalize( mix( reflectVec, normal, roughness * roughness) );
1040			reflectVec = inverseTransformDirection( reflectVec, viewMatrix );
1041			vec4 envMapColor = textureCubeUV( envMap, reflectVec, roughness );
1042			return envMapColor.rgb * envMapIntensity;
1043		#else
1044			return vec3( 0.0 );
1045		#endif
1046	}
1047	#ifdef USE_ANISOTROPY
1048		vec3 getIBLAnisotropyRadiance( const in vec3 viewDir, const in vec3 normal, const in float roughness, const in vec3 bitangent, const in float anisotropy ) {
1049			#ifdef ENVMAP_TYPE_CUBE_UV
1050				vec3 bentNormal = cross( bitangent, viewDir );
1051				bentNormal = normalize( cross( bentNormal, bitangent ) );
1052				bentNormal = normalize( mix( bentNormal, normal, pow2( pow2( 1.0 - anisotropy * ( 1.0 - roughness ) ) ) ) );
1053				return getIBLRadiance( viewDir, bentNormal, roughness );
1054			#else
1055				return vec3( 0.0 );
1056			#endif
1057		}
1058	#endif
1059#endif`,jDe=`ToonMaterial material;
1060material.diffuseColor = diffuseColor.rgb;`,qDe=`varying vec3 vViewPosition;
1061struct ToonMaterial {
1062	vec3 diffuseColor;
1063};
1064void RE_Direct_Toon( const in IncidentLight directLight, const in GeometricContext geometry, const in ToonMaterial material, inout ReflectedLight reflectedLight ) {
1065	vec3 irradiance = getGradientIrradiance( geometry.normal, directLight.direction ) * directLight.color;
1066	reflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );
1067}
1068void RE_IndirectDiffuse_Toon( const in vec3 irradiance, const in GeometricContext geometry, const in ToonMaterial material, inout ReflectedLight reflectedLight ) {
1069	reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );
1070}
1071#define RE_Direct				RE_Direct_Toon
1072#define RE_IndirectDiffuse		RE_IndirectDiffuse_Toon`,XDe=`BlinnPhongMaterial material;
1073material.diffuseColor = diffuseColor.rgb;
1074material.specularColor = specular;
1075material.specularShininess = shininess;
1076material.specularStrength = specularStrength;`,YDe=`varying vec3 vViewPosition;
1077struct BlinnPhongMaterial {
1078	vec3 diffuseColor;
1079	vec3 specularColor;
1080	float specularShininess;
1081	float specularStrength;
1082};
1083void RE_Direct_BlinnPhong( const in IncidentLight directLight, const in GeometricContext geometry, const in BlinnPhongMaterial material, inout ReflectedLight reflectedLight ) {
1084	float dotNL = saturate( dot( geometry.normal, directLight.direction ) );
1085	vec3 irradiance = dotNL * directLight.color;
1086	reflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );
1087	reflectedLight.directSpecular += irradiance * BRDF_BlinnPhong( directLight.direction, geometry.viewDir, geometry.normal, material.specularColor, material.specularShininess ) * material.specularStrength;
1088}
1089void RE_IndirectDiffuse_BlinnPhong( const in vec3 irradiance, const in GeometricContext geometry, const in BlinnPhongMaterial material, inout ReflectedLight reflectedLight ) {
1090	reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );
1091}
1092#define RE_Direct				RE_Direct_BlinnPhong
1093#define RE_IndirectDiffuse		RE_IndirectDiffuse_BlinnPhong`,KDe=`PhysicalMaterial material;
1094material.diffuseColor = diffuseColor.rgb * ( 1.0 - metalnessFactor );
1095vec3 dxy = max( abs( dFdx( geometryNormal ) ), abs( dFdy( geometryNormal ) ) );
1096float geometryRoughness = max( max( dxy.x, dxy.y ), dxy.z );
1097material.roughness = max( roughnessFactor, 0.0525 );material.roughness += geometryRoughness;
1098material.roughness = min( material.roughness, 1.0 );
1099#ifdef IOR
1100	material.ior = ior;
1101	#ifdef USE_SPECULAR
1102		float specularIntensityFactor = specularIntensity;
1103		vec3 specularColorFactor = specularColor;
1104		#ifdef USE_SPECULAR_COLORMAP
1105			specularColorFactor *= texture2D( specularColorMap, vSpecularColorMapUv ).rgb;
1106		#endif
1107		#ifdef USE_SPECULAR_INTENSITYMAP
1108			specularIntensityFactor *= texture2D( specularIntensityMap, vSpecularIntensityMapUv ).a;
1109		#endif
1110		material.specularF90 = mix( specularIntensityFactor, 1.0, metalnessFactor );
1111	#else
1112		float specularIntensityFactor = 1.0;
1113		vec3 specularColorFactor = vec3( 1.0 );
1114		material.specularF90 = 1.0;
1115	#endif
1116	material.specularColor = mix( min( pow2( ( material.ior - 1.0 ) / ( material.ior + 1.0 ) ) * specularColorFactor, vec3( 1.0 ) ) * specularIntensityFactor, diffuseColor.rgb, metalnessFactor );
1117#else
1118	material.specularColor = mix( vec3( 0.04 ), diffuseColor.rgb, metalnessFactor );
1119	material.specularF90 = 1.0;
1120#endif
1121#ifdef USE_CLEARCOAT
1122	material.clearcoat = clearcoat;
1123	material.clearcoatRoughness = clearcoatRoughness;
1124	material.clearcoatF0 = vec3( 0.04 );
1125	material.clearcoatF90 = 1.0;
1126	#ifdef USE_CLEARCOATMAP
1127		material.clearcoat *= texture2D( clearcoatMap, vClearcoatMapUv ).x;
1128	#endif
1129	#ifdef USE_CLEARCOAT_ROUGHNESSMAP
1130		material.clearcoatRoughness *= texture2D( clearcoatRoughnessMap, vClearcoatRoughnessMapUv ).y;
1131	#endif
1132	material.clearcoat = saturate( material.clearcoat );	material.clearcoatRoughness = max( material.clearcoatRoughness, 0.0525 );
1133	material.clearcoatRoughness += geometryRoughness;
1134	material.clearcoatRoughness = min( material.clearcoatRoughness, 1.0 );
1135#endif
1136#ifdef USE_IRIDESCENCE
1137	material.iridescence = iridescence;
1138	material.iridescenceIOR = iridescenceIOR;
1139	#ifdef USE_IRIDESCENCEMAP
1140		material.iridescence *= texture2D( iridescenceMap, vIridescenceMapUv ).r;
1141	#endif
1142	#ifdef USE_IRIDESCENCE_THICKNESSMAP
1143		material.iridescenceThickness = (iridescenceThicknessMaximum - iridescenceThicknessMinimum) * texture2D( iridescenceThicknessMap, vIridescenceThicknessMapUv ).g + iridescenceThicknessMinimum;
1144	#else
1145		material.iridescenceThickness = iridescenceThicknessMaximum;
1146	#endif
1147#endif
1148#ifdef USE_SHEEN
1149	material.sheenColor = sheenColor;
1150	#ifdef USE_SHEEN_COLORMAP
1151		material.sheenColor *= texture2D( sheenColorMap, vSheenColorMapUv ).rgb;
1152	#endif
1153	material.sheenRoughness = clamp( sheenRoughness, 0.07, 1.0 );
1154	#ifdef USE_SHEEN_ROUGHNESSMAP
1155		material.sheenRoughness *= texture2D( sheenRoughnessMap, vSheenRoughnessMapUv ).a;
1156	#endif
1157#endif
1158#ifdef USE_ANISOTROPY
1159	#ifdef USE_ANISOTROPYMAP
1160		mat2 anisotropyMat = mat2( anisotropyVector.x, anisotropyVector.y, - anisotropyVector.y, anisotropyVector.x );
1161		vec3 anisotropyPolar = texture2D( anisotropyMap, vAnisotropyMapUv ).rgb;
1162		vec2 anisotropyV = anisotropyMat * normalize( 2.0 * anisotropyPolar.rg - vec2( 1.0 ) ) * anisotropyPolar.b;
1163	#else
1164		vec2 anisotropyV = anisotropyVector;
1165	#endif
1166	material.anisotropy = length( anisotropyV );
1167	anisotropyV /= material.anisotropy;
1168	material.anisotropy = saturate( material.anisotropy );
1169	material.alphaT = mix( pow2( material.roughness ), 1.0, pow2( material.anisotropy ) );
1170	material.anisotropyT = tbn[ 0 ] * anisotropyV.x - tbn[ 1 ] * anisotropyV.y;
1171	material.anisotropyB = tbn[ 1 ] * anisotropyV.x + tbn[ 0 ] * anisotropyV.y;
1172#endif`,ZDe=`struct PhysicalMaterial {
1173	vec3 diffuseColor;
1174	float roughness;
1175	vec3 specularColor;
1176	float specularF90;
1177	#ifdef USE_CLEARCOAT
1178		float clearcoat;
1179		float clearcoatRoughness;
1180		vec3 clearcoatF0;
1181		float clearcoatF90;
1182	#endif
1183	#ifdef USE_IRIDESCENCE
1184		float iridescence;
1185		float iridescenceIOR;
1186		float iridescenceThickness;
1187		vec3 iridescenceFresnel;
1188		vec3 iridescenceF0;
1189	#endif
1190	#ifdef USE_SHEEN
1191		vec3 sheenColor;
1192		float sheenRoughness;
1193	#endif
1194	#ifdef IOR
1195		float ior;
1196	#endif
1197	#ifdef USE_TRANSMISSION
1198		float transmission;
1199		float transmissionAlpha;
1200		float thickness;
1201		float attenuationDistance;
1202		vec3 attenuationColor;
1203	#endif
1204	#ifdef USE_ANISOTROPY
1205		float anisotropy;
1206		float alphaT;
1207		vec3 anisotropyT;
1208		vec3 anisotropyB;
1209	#endif
1210};
1211vec3 clearcoatSpecular = vec3( 0.0 );
1212vec3 sheenSpecular = vec3( 
vendor: 8,856 bytes, lines 1212-1400
12120.0 );
1213vec3 Schlick_to_F0( const in vec3 f, const in float f90, const in float dotVH ) {
1214    float x = clamp( 1.0 - dotVH, 0.0, 1.0 );
1215    float x2 = x * x;
1216    float x5 = clamp( x * x2 * x2, 0.0, 0.9999 );
1217    return ( f - vec3( f90 ) * x5 ) / ( 1.0 - x5 );
1218}
1219float V_GGX_SmithCorrelated( const in float alpha, const in float dotNL, const in float dotNV ) {
1220	float a2 = pow2( alpha );
1221	float gv = dotNL * sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNV ) );
1222	float gl = dotNV * sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNL ) );
1223	return 0.5 / max( gv + gl, EPSILON );
1224}
1225float D_GGX( const in float alpha, const in float dotNH ) {
1226	float a2 = pow2( alpha );
1227	float denom = pow2( dotNH ) * ( a2 - 1.0 ) + 1.0;
1228	return RECIPROCAL_PI * a2 / pow2( denom );
1229}
1230#ifdef USE_ANISOTROPY
1231	float V_GGX_SmithCorrelated_Anisotropic( const in float alphaT, const in float alphaB, const in float dotTV, const in float dotBV, const in float dotTL, const in float dotBL, const in float dotNV, const in float dotNL ) {
1232		float gv = dotNL * length( vec3( alphaT * dotTV, alphaB * dotBV, dotNV ) );
1233		float gl = dotNV * length( vec3( alphaT * dotTL, alphaB * dotBL, dotNL ) );
1234		float v = 0.5 / ( gv + gl );
1235		return saturate(v);
1236	}
1237	float D_GGX_Anisotropic( const in float alphaT, const in float alphaB, const in float dotNH, const in float dotTH, const in float dotBH ) {
1238		float a2 = alphaT * alphaB;
1239		highp vec3 v = vec3( alphaB * dotTH, alphaT * dotBH, a2 * dotNH );
1240		highp float v2 = dot( v, v );
1241		float w2 = a2 / v2;
1242		return RECIPROCAL_PI * a2 * pow2 ( w2 );
1243	}
1244#endif
1245#ifdef USE_CLEARCOAT
1246	vec3 BRDF_GGX_Clearcoat( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in PhysicalMaterial material) {
1247		vec3 f0 = material.clearcoatF0;
1248		float f90 = material.clearcoatF90;
1249		float roughness = material.clearcoatRoughness;
1250		float alpha = pow2( roughness );
1251		vec3 halfDir = normalize( lightDir + viewDir );
1252		float dotNL = saturate( dot( normal, lightDir ) );
1253		float dotNV = saturate( dot( normal, viewDir ) );
1254		float dotNH = saturate( dot( normal, halfDir ) );
1255		float dotVH = saturate( dot( viewDir, halfDir ) );
1256		vec3 F = F_Schlick( f0, f90, dotVH );
1257		float V = V_GGX_SmithCorrelated( alpha, dotNL, dotNV );
1258		float D = D_GGX( alpha, dotNH );
1259		return F * ( V * D );
1260	}
1261#endif
1262vec3 BRDF_GGX( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in PhysicalMaterial material ) {
1263	vec3 f0 = material.specularColor;
1264	float f90 = material.specularF90;
1265	float roughness = material.roughness;
1266	float alpha = pow2( roughness );
1267	vec3 halfDir = normalize( lightDir + viewDir );
1268	float dotNL = saturate( dot( normal, lightDir ) );
1269	float dotNV = saturate( dot( normal, viewDir ) );
1270	float dotNH = saturate( dot( normal, halfDir ) );
1271	float dotVH = saturate( dot( viewDir, halfDir ) );
1272	vec3 F = F_Schlick( f0, f90, dotVH );
1273	#ifdef USE_IRIDESCENCE
1274		F = mix( F, material.iridescenceFresnel, material.iridescence );
1275	#endif
1276	#ifdef USE_ANISOTROPY
1277		float dotTL = dot( material.anisotropyT, lightDir );
1278		float dotTV = dot( material.anisotropyT, viewDir );
1279		float dotTH = dot( material.anisotropyT, halfDir );
1280		float dotBL = dot( material.anisotropyB, lightDir );
1281		float dotBV = dot( material.anisotropyB, viewDir );
1282		float dotBH = dot( material.anisotropyB, halfDir );
1283		float V = V_GGX_SmithCorrelated_Anisotropic( material.alphaT, alpha, dotTV, dotBV, dotTL, dotBL, dotNV, dotNL );
1284		float D = D_GGX_Anisotropic( material.alphaT, alpha, dotNH, dotTH, dotBH );
1285	#else
1286		float V = V_GGX_SmithCorrelated( alpha, dotNL, dotNV );
1287		float D = D_GGX( alpha, dotNH );
1288	#endif
1289	return F * ( V * D );
1290}
1291vec2 LTC_Uv( const in vec3 N, const in vec3 V, const in float roughness ) {
1292	const float LUT_SIZE = 64.0;
1293	const float LUT_SCALE = ( LUT_SIZE - 1.0 ) / LUT_SIZE;
1294	const float LUT_BIAS = 0.5 / LUT_SIZE;
1295	float dotNV = saturate( dot( N, V ) );
1296	vec2 uv = vec2( roughness, sqrt( 1.0 - dotNV ) );
1297	uv = uv * LUT_SCALE + LUT_BIAS;
1298	return uv;
1299}
1300float LTC_ClippedSphereFormFactor( const in vec3 f ) {
1301	float l = length( f );
1302	return max( ( l * l + f.z ) / ( l + 1.0 ), 0.0 );
1303}
1304vec3 LTC_EdgeVectorFormFactor( const in vec3 v1, const in vec3 v2 ) {
1305	float x = dot( v1, v2 );
1306	float y = abs( x );
1307	float a = 0.8543985 + ( 0.4965155 + 0.0145206 * y ) * y;
1308	float b = 3.4175940 + ( 4.1616724 + y ) * y;
1309	float v = a / b;
1310	float theta_sintheta = ( x > 0.0 ) ? v : 0.5 * inversesqrt( max( 1.0 - x * x, 1e-7 ) ) - v;
1311	return cross( v1, v2 ) * theta_sintheta;
1312}
1313vec3 LTC_Evaluate( const in vec3 N, const in vec3 V, const in vec3 P, const in mat3 mInv, const in vec3 rectCoords[ 4 ] ) {
1314	vec3 v1 = rectCoords[ 1 ] - rectCoords[ 0 ];
1315	vec3 v2 = rectCoords[ 3 ] - rectCoords[ 0 ];
1316	vec3 lightNormal = cross( v1, v2 );
1317	if( dot( lightNormal, P - rectCoords[ 0 ] ) < 0.0 ) return vec3( 0.0 );
1318	vec3 T1, T2;
1319	T1 = normalize( V - N * dot( V, N ) );
1320	T2 = - cross( N, T1 );
1321	mat3 mat = mInv * transposeMat3( mat3( T1, T2, N ) );
1322	vec3 coords[ 4 ];
1323	coords[ 0 ] = mat * ( rectCoords[ 0 ] - P );
1324	coords[ 1 ] = mat * ( rectCoords[ 1 ] - P );
1325	coords[ 2 ] = mat * ( rectCoords[ 2 ] - P );
1326	coords[ 3 ] = mat * ( rectCoords[ 3 ] - P );
1327	coords[ 0 ] = normalize( coords[ 0 ] );
1328	coords[ 1 ] = normalize( coords[ 1 ] );
1329	coords[ 2 ] = normalize( coords[ 2 ] );
1330	coords[ 3 ] = normalize( coords[ 3 ] );
1331	vec3 vectorFormFactor = vec3( 0.0 );
1332	vectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 0 ], coords[ 1 ] );
1333	vectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 1 ], coords[ 2 ] );
1334	vectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 2 ], coords[ 3 ] );
1335	vectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 3 ], coords[ 0 ] );
1336	float result = LTC_ClippedSphereFormFactor( vectorFormFactor );
1337	return vec3( result );
1338}
1339#if defined( USE_SHEEN )
1340float D_Charlie( float roughness, float dotNH ) {
1341	float alpha = pow2( roughness );
1342	float invAlpha = 1.0 / alpha;
1343	float cos2h = dotNH * dotNH;
1344	float sin2h = max( 1.0 - cos2h, 0.0078125 );
1345	return ( 2.0 + invAlpha ) * pow( sin2h, invAlpha * 0.5 ) / ( 2.0 * PI );
1346}
1347float V_Neubelt( float dotNV, float dotNL ) {
1348	return saturate( 1.0 / ( 4.0 * ( dotNL + dotNV - dotNL * dotNV ) ) );
1349}
1350vec3 BRDF_Sheen( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, vec3 sheenColor, const in float sheenRoughness ) {
1351	vec3 halfDir = normalize( lightDir + viewDir );
1352	float dotNL = saturate( dot( normal, lightDir ) );
1353	float dotNV = saturate( dot( normal, viewDir ) );
1354	float dotNH = saturate( dot( normal, halfDir ) );
1355	float D = D_Charlie( sheenRoughness, dotNH );
1356	float V = V_Neubelt( dotNV, dotNL );
1357	return sheenColor * ( D * V );
1358}
1359#endif
1360float IBLSheenBRDF( const in vec3 normal, const in vec3 viewDir, const in float roughness ) {
1361	float dotNV = saturate( dot( normal, viewDir ) );
1362	float r2 = roughness * roughness;
1363	float a = roughness < 0.25 ? -339.2 * r2 + 161.4 * roughness - 25.9 : -8.48 * r2 + 14.3 * roughness - 9.95;
1364	float b = roughness < 0.25 ? 44.0 * r2 - 23.7 * roughness + 3.26 : 1.97 * r2 - 3.27 * roughness + 0.72;
1365	float DG = exp( a * dotNV + b ) + ( roughness < 0.25 ? 0.0 : 0.1 * ( roughness - 0.25 ) );
1366	return saturate( DG * RECIPROCAL_PI );
1367}
1368vec2 DFGApprox( const in vec3 normal, const in vec3 viewDir, const in float roughness ) {
1369	float dotNV = saturate( dot( normal, viewDir ) );
1370	const vec4 c0 = vec4( - 1, - 0.0275, - 0.572, 0.022 );
1371	const vec4 c1 = vec4( 1, 0.0425, 1.04, - 0.04 );
1372	vec4 r = roughness * c0 + c1;
1373	float a004 = min( r.x * r.x, exp2( - 9.28 * dotNV ) ) * r.x + r.y;
1374	vec2 fab = vec2( - 1.04, 1.04 ) * a004 + r.zw;
1375	return fab;
1376}
1377vec3 EnvironmentBRDF( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float roughness ) {
1378	vec2 fab = DFGApprox( normal, viewDir, roughness );
1379	return specularColor * fab.x + specularF90 * fab.y;
1380}
1381#ifdef USE_IRIDESCENCE
1382void computeMultiscatteringIridescence( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float iridescence, const in vec3 iridescenceF0, const in float roughness, inout vec3 singleScatter, inout vec3 multiScatter ) {
1383#else
1384void computeMultiscattering( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float roughness, inout vec3 singleScatter, inout vec3 multiScatter ) {
1385#endif
1386	vec2 fab = DFGApprox( normal, viewDir, roughness );
1387	#ifdef USE_IRIDESCENCE
1388		vec3 Fr = mix( specularColor, iridescenceF0, iridescence );
1389	#else
1390		vec3 Fr = specularColor;
1391	#endif
1392	vec3 FssEss = Fr * fab.x + specularF90 * fab.y;
1393	float Ess = fab.x + fab.y;
1394	float Ems = 1.0 - Ess;
1395	vec3 Favg = Fr + ( 1.0 - Fr ) * 0.047619;	vec3 Fms = FssEss * Favg / ( 1.0 - Ems * Favg );
1396	singleScatter += FssEss;
1397	multiScatter += Fms * Ems;
1398}
1399#if NUM_RECT_AREA_LIGHTS > 0
1400	void RE_Direct_RectArea_Physical( const in RectAreaLight rectAreaLight, const in 
1400GeometricContext geometry, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {
1401		vec3 normal = geometry.normal;
1402		vec3 viewDir = geometry.viewDir;
1403		vec3 position = geometry.position;
1404		vec3 lightPos = rectAreaLight.position;
1405		vec3 halfWidth = rectAreaLight.halfWidth;
1406		vec3 halfHeight = rectAreaLight.halfHeight;
1407		vec3 lightColor = rectAreaLight.color;
1408		float roughness = material.roughness;
1409		vec3 rectCoords[ 4 ];
1410		rectCoords[ 0 ] = lightPos + halfWidth - halfHeight;		rectCoords[ 1 ] = lightPos - halfWidth - halfHeight;
1411		rectCoords[ 2 ] = lightPos - halfWidth + halfHeight;
1412		rectCoords[ 3 ] = lightPos + halfWidth + halfHeight;
1413		vec2 uv = LTC_Uv( normal, viewDir, roughness );
1414		vec4 t1 = texture2D( ltc_1, uv );
1415		vec4 t2 = texture2D( ltc_2, uv );
1416		mat3 mInv = mat3(
1417			vec3( t1.x, 0, t1.y ),
1418			vec3(    0, 1,    0 ),
1419			vec3( t1.z, 0, t1.w )
1420		);
1421		vec3 fresnel = ( material.specularColor * t2.x + ( vec3( 1.0 ) - material.specularColor ) * t2.y );
1422		reflectedLight.directSpecular += lightColor * fresnel * LTC_Evaluate( normal, viewDir, position, mInv, rectCoords );
1423		reflectedLight.directDiffuse += lightColor * material.diffuseColor * LTC_Evaluate( normal, viewDir, position, mat3( 1.0 ), rectCoords );
1424	}
1425#endif
1426void RE_Direct_Physical( const in IncidentLight directLight, const in GeometricContext geometry, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {
1427	float dotNL = saturate( dot( geometry.normal, directLight.direction ) );
1428	vec3 irradiance = dotNL * directLight.color;
1429	#ifdef USE_CLEARCOAT
1430		float dotNLcc = saturate( dot( geometry.clearcoatNormal, directLight.direction ) );
1431		vec3 ccIrradiance = dotNLcc * directLight.color;
1432		clearcoatSpecular += ccIrradiance * BRDF_GGX_Clearcoat( directLight.direction, geometry.viewDir, geometry.clearcoatNormal, material );
1433	#endif
1434	#ifdef USE_SHEEN
1435		sheenSpecular += irradiance * BRDF_Sheen( directLight.direction, geometry.viewDir, geometry.normal, material.sheenColor, material.sheenRoughness );
1436	#endif
1437	reflectedLight.directSpecular += irradiance * BRDF_GGX( directLight.direction, geometry.viewDir, geometry.normal, material );
1438	reflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );
1439}
1440void RE_IndirectDiffuse_Physical( const in vec3 irradiance, const in GeometricContext geometry, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {
1441	reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );
1442}
1443void RE_IndirectSpecular_Physical( const in vec3 radiance, const in vec3 irradiance, const in vec3 clearcoatRadiance, const in GeometricContext geometry, const in PhysicalMaterial material, inout ReflectedLight reflectedLight) {
1444	#ifdef USE_CLEARCOAT
1445		clearcoatSpecular += clearcoatRadiance * EnvironmentBRDF( geometry.clearcoatNormal, geometry.viewDir, material.clearcoatF0, material.clearcoatF90, material.clearcoatRoughness );
1446	#endif
1447	#ifdef USE_SHEEN
1448		sheenSpecular += irradiance * material.sheenColor * IBLSheenBRDF( geometry.normal, geometry.viewDir, material.sheenRoughness );
1449	#endif
1450	vec3 singleScattering = vec3( 0.0 );
1451	vec3 multiScattering = vec3( 0.0 );
1452	vec3 cosineWeightedIrradiance = irradiance * RECIPROCAL_PI;
1453	#ifdef USE_IRIDESCENCE
1454		computeMultiscatteringIridescence( geometry.normal, geometry.viewDir, material.specularColor, material.specularF90, material.iridescence, material.iridescenceFresnel, material.roughness, singleScattering, multiScattering );
1455	#else
1456		computeMultiscattering( geometry.normal, geometry.viewDir, material.specularColor, material.specularF90, material.roughness, singleScattering, multiScattering );
1457	#endif
1458	vec3 totalScattering = singleScattering + multiScattering;
1459	vec3 diffuse = material.diffuseColor * ( 1.0 - max( max( totalScattering.r, totalScattering.g ), totalScattering.b ) );
1460	reflectedLight.indirectSpecular += radiance * singleScattering;
1461	reflectedLight.indirectSpecular += multiScattering * cosineWeightedIrradiance;
1462	reflectedLight.indirectDiffuse += diffuse * cosineWeightedIrradiance;
1463}
1464#define RE_Direct				RE_Direct_Physical
1465#define RE_Direct_RectArea		RE_Direct_RectArea_Physical
1466#define RE_IndirectDiffuse		RE_IndirectDiffuse_Physical
1467#define RE_IndirectSpecular		RE_IndirectSpecular_Physical
1468float computeSpecularOcclusion( const in float dotNV, const in float ambientOcclusion, const in float roughness ) {
1469	return saturate( pow( dotNV + ambientOcclusion, exp2( - 16.0 * roughness - 1.0 ) ) - 1.0 + ambientOcclusion );
1470}`,QDe=`
1471GeometricContext geometry;
1472geometry.position = - vViewPosition;
1473geometry.normal = normal;
1474geometry.viewDir = ( isOrthographic ) ? vec3( 0, 0, 1 ) : normalize( vViewPosition );
1475#ifdef USE_CLEARCOAT
1476	geometry.clearcoatNormal = clearcoatNormal;
1477#endif
1478#ifdef USE_IRIDESCENCE
1479	float dotNVi = saturate( dot( normal, geometry.viewDir ) );
1480	if ( material.iridescenceThickness == 0.0 ) {
1481		material.iridescence = 0.0;
1482	} else {
1483		material.iridescence = saturate( material.iridescence );
1484	}
1485	if ( material.iridescence > 0.0 ) {
1486		material.iridescenceFresnel = evalIridescence( 1.0, material.iridescenceIOR, dotNVi, material.iridescenceThickness, material.specularColor );
1487		material.iridescenceF0 = Schlick_to_F0( material.iridescenceFresnel, 1.0, dotNVi );
1488	}
1489#endif
1490IncidentLight directLight;
1491#if ( NUM_POINT_LIGHTS > 0 ) && defined( RE_Direct )
1492	PointLight pointLight;
1493	#if defined( USE_SHADOWMAP ) && NUM_POINT_LIGHT_SHADOWS > 0
1494	PointLightShadow pointLightShadow;
1495	#endif
1496	#pragma unroll_loop_start
1497	for ( int i = 0; i < NUM_POINT_LIGHTS; i ++ ) {
1498		pointLight = pointLights[ i ];
1499		getPointLightInfo( pointLight, geometry, directLight );
1500		#if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_POINT_LIGHT_SHADOWS )
1501		pointLightShadow = pointLightShadows[ i ];
1502		directLight.color *= ( directLight.visible && receiveShadow ) ? getPointShadow( pointShadowMap[ i ], pointLightShadow.shadowMapSize, pointLightShadow.shadowBias, pointLightShadow.shadowRadius, vPointShadowCoord[ i ], pointLightShadow.shadowCameraNear, pointLightShadow.shadowCameraFar ) : 1.0;
1503		#endif
1504		RE_Direct( directLight, geometry, material, reflectedLight );
1505	}
1506	#pragma unroll_loop_end
1507#endif
1508#if ( NUM_SPOT_LIGHTS > 0 ) && defined( RE_Direct )
1509	SpotLight spotLight;
1510	vec4 spotColor;
1511	vec3 spotLightCoord;
1512	bool inSpotLightMap;
1513	#if defined( USE_SHADOWMAP ) && NUM_SPOT_LIGHT_SHADOWS > 0
1514	SpotLightShadow spotLightShadow;
1515	#endif
1516	#pragma unroll_loop_start
1517	for ( int i = 0; i < NUM_SPOT_LIGHTS; i ++ ) {
1518		spotLight = spotLights[ i ];
1519		getSpotLightInfo( spotLight, geometry, directLight );
1520		#if ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS_WITH_MAPS )
1521		#define SPOT_LIGHT_MAP_INDEX UNROLLED_LOOP_INDEX
1522		#elif ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS )
1523		#define SPOT_LIGHT_MAP_INDEX NUM_SPOT_LIGHT_MAPS
1524		#else
1525		#define SPOT_LIGHT_MAP_INDEX ( UNROLLED_LOOP_INDEX - NUM_SPOT_LIGHT_SHADOWS + NUM_SPOT_LIGHT_SHADOWS_WITH_MAPS )
1526		#endif
1527		#if ( SPOT_LIGHT_MAP_INDEX < NUM_SPOT_LIGHT_MAPS )
1528			spotLightCoord = vSpotLightCoord[ i ].xyz / vSpotLightCoord[ i ].w;
1529			inSpotLightMap = all( lessThan( abs( spotLightCoord * 2. - 1. ), vec3( 1.0 ) ) );
1530			spotColor = texture2D( spotLightMap[ SPOT_LIGHT_MAP_INDEX ], spotLightCoord.xy );
1531			directLight.color = inSpotLightMap ? directLight.color * spotColor.rgb : directLight.color;
1532		#endif
1533		#undef SPOT_LIGHT_MAP_INDEX
1534		#if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS )
1535		spotLightShadow = spotLightShadows[ i ];
1536		directLight.color *= ( directLight.visible && receiveShadow ) ? getShadow( spotShadowMap[ i ], spotLightShadow.shadowMapSize, spotLightShadow.shadowBias, spotLightShadow.shadowRadius, vSpotLightCoord[ i ] ) : 1.0;
1537		#endif
1538		RE_Direct( directLight, geometry, material, reflectedLight );
1539	}
1540	#pragma unroll_loop_end
1541#endif
1542#if ( NUM_DIR_LIGHTS > 0 ) && defined( RE_Direct )
1543	DirectionalLight directionalLight;
1544	#if defined( USE_SHADOWMAP ) && NUM_DIR_LIGHT_SHADOWS > 0
1545	DirectionalLightShadow directionalLightShadow;
1546	#endif
1547	#pragma unroll_loop_start
1548	for ( int i = 0; i < NUM_DIR_LIGHTS; i ++ ) {
1549		directionalLight = directionalLights[ i ];
1550		getDirectionalLightInfo( directionalLight, geometry, directLight );
1551		#if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_DIR_LIGHT_SHADOWS )
1552		directionalLightShadow = directionalLightShadows[ i ];
1553		directLight.color *= ( directLight.visible && receiveShadow ) ? getShadow( directionalShadowMap[ i ], directionalLightShadow.shadowMapSize, directionalLightShadow.shadowBias, directionalLightShadow.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0;
1554		#endif
1555		RE_Direct( directLight, geometry, material, reflectedLight );
1556	}
1557	#pragma unroll_loop_end
1558#endif
1559#if ( NUM_RECT_AREA_LIGHTS > 0 ) && defined( RE_Direct_RectArea )
1560	RectAreaLight rectAreaLight;
1561	#pragma unroll_loop_start
1562	for ( int i = 0; i < NUM_RECT_AREA_LIGHTS; i ++ ) {
1563		rectAreaLight = rectAreaLights[ i ];
1564		RE_Direct_RectArea( rectAreaLight, geometry, material, reflectedLight );
1565	}
1566	#pragma unroll_loop_end
1567#endif
1568#if defined( RE_IndirectDiffuse )
1569	vec3 iblIrradiance = vec3( 0.0 );
1570	vec3 irradiance = getAmbientLightIrradiance( ambientLightColor );
1571	irradiance += getLightProbeIrradiance( lightProbe, geometry.normal );
1572	#if ( NUM_HEMI_LIGHTS > 0 )
1573		#pragma unroll_loop_start
1574		for ( int i = 0; i < NUM_HEMI_LIGHTS; i ++ ) {
1575			irradiance += getHemisphereLightIrradiance( hemisphereLights[ i ], geometry.normal );
1576		}
1577		#pragma unroll_loop_end
1578	#endif
1579#endif
1580#if defined( RE_IndirectSpecular )
1581	vec3 radiance = vec3( 0.0 );
1582	vec3 clearcoatRadiance = vec3( 0.0 );
1583#endif`,JDe=`#if defined( RE_IndirectDiffuse )
1584	#ifdef USE_LIGHTMAP
1585		vec4 lightMapTexel = texture2D( lightMap, vLightMapUv );
1586		vec3 lightMapIrradiance = lightMapTexel.rgb * lightMapIntensity;
1587		irradiance += lightMapIrradiance;
1588	#endif
1589	#if defined( USE_ENVMAP ) && defined( STANDARD ) && defined( ENVMAP_TYPE_CUBE_UV )
1590		iblIrradiance += getIBLIrradiance( geometry.normal );
1591	#endif
1592#endif
1593#if defined( USE_ENVMAP ) && defined( RE_IndirectSpecular )
1594	#ifdef USE_ANISOTROPY
1595		radiance += getIBLAnisotropyRadiance( geometry.viewDir, geometry.normal, material.roughness, material.anisotropyB, material.anisotropy );
1596	#else
1597		radiance += getIBLRadiance( geometry.viewDir, geometry.normal, material.roughness );
1598	#endif
1599	#ifdef USE_CLEARCOAT
1600		clearcoatRadiance += getIBLRadiance( geometry.viewDir, geometry.clearcoatNormal, material.clearcoatRoughness );
1601	#endif
1602#endif`,e3e=`#if defined( RE_IndirectDiffuse )
1603	RE_IndirectDiffuse( irradiance, geometry, material, reflectedLight );
1604#endif
1605#if defined( RE_IndirectSpecular )
1606	RE_IndirectSpecular( radiance, iblIrradiance, clearcoatRadiance, geometry, material, reflectedLight );
1607#endif`,t3e=`#if defined( USE_LOGDEPTHBUF ) && defined( USE_LOGDEPTHBUF_EXT )
1608	gl_FragDepthEXT = vIsPerspective == 0.0 ? gl_FragCoord.z : log2( vFragDepth ) * logDepthBufFC * 0.5;
1609#endif`,n3e=`#if defined( USE_LOGDEPTHBUF ) && defined( USE_LOGDEPTHBUF_EXT )
1610	uniform float logDepthBufFC;
1611	varying float vFragDepth;
1612	varying float vIsPerspective;
1613#endif`,i3e=`#ifdef USE_LOGDEPTHBUF
1614	#ifdef USE_LOGDEPTHBUF_EXT
1615		varying float vFragDepth;
1616		varying float vIsPerspective;
1617	#else
1618		uniform float logDepthBufFC;
1619	#endif
1620#endif`,r3e=`#ifdef USE_LOGDEPTHBUF
1621	#ifdef USE_LOGDEPTHBUF_EXT
1622		vFragDepth = 1.0 + gl_Position.w;
1623		vIsPerspective = float( isPerspectiveMatrix( projectionMatrix ) );
1624	#else
1625		if ( isPerspectiveMatrix( projectionMatrix ) ) {
1626			gl_Position.z = log2( max( EPSILON, gl_Position.w + 1.0 ) ) * logDepthBufFC - 1.0;
1627			gl_Position.z *= gl_Position.w;
1628		}
1629	#endif
1630#endif`,s3e=`#ifdef USE_MAP
1631	diffuseColor *= texture2D( map, vMapUv );
1632#endif`,a3e=`#ifdef USE_MAP
1633	uniform sampler2D map;
1634#endif`,o3e=`#if defined( USE_MAP ) || defined( USE_ALPHAMAP )
1635	#if defined( USE_POINTS_UV )
1636		vec2 uv = vUv;
1637	#else
1638		vec2 uv = ( uvTransform * vec3( gl_PointCoord.x, 1.0 - gl_PointCoord.y, 1 ) ).xy;
1639	#endif
1640#endif
1641#ifdef USE_MAP
1642	diffuseColor *= texture2D( map, uv );
1643#endif
1644#ifdef USE_ALPHAMAP
1645	diffuseColor.a *= texture2D( alphaMap, uv ).g;
1646#endif`,l3e=`#if defined( USE_POINTS_UV )
1647	varying vec2 vUv;
1648#else
1649	#if defined( USE_MAP ) || defined( USE_ALPHAMAP )
1650		uniform mat3 uvTransform;
1651	#endif
1652#endif
1653#ifdef USE_MAP
1654	uniform sampler2D map;
1655#endif
1656#ifdef USE_ALPHAMAP
1657	uniform sampler2D alphaMap;
1658#endif`,u3e=`float metalnessFactor = metalness;
1659#ifdef USE_METALNESSMAP
1660	vec4 texelMetalness = texture2D( metalnessMap, vMetalnessMapUv );
1661	metalnessFactor *= texelMetalness.b;
1662#endif`,c3e=`#ifdef USE_METALNESSMAP
1663	uniform sampler2D metalnessMap;
1664#endif`,f3e=`#if defined( USE_MORPHCOLORS ) && defined( MORPHTARGETS_TEXTURE )
1665	vColor *= morphTargetBaseInfluence;
1666	for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) {
1667		#if defined( USE_COLOR_ALPHA )
1668			if ( morphTargetInfluences[ i ] != 0.0 ) vColor += getMorph( gl_VertexID, i, 2 ) * morphTargetInfluences[ i ];
1669		#elif defined( USE_COLOR )
1670			if ( morphTargetInfluences[ i ] != 0.0 ) vColor += getMorph( gl_VertexID, i, 2 ).rgb * morphTargetInfluences[ i ];
1671		#endif
1672	}
1673#endif`,d3e=`#ifdef USE_MORPHNORMALS
1674	objectNormal *= morphTargetBaseInfluence;
1675	#ifdef MORPHTARGETS_TEXTURE
1676		for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) {
1677			if ( morphTargetInfluences[ i ] != 0.0 ) objectNormal += getMorph( gl_VertexID, i, 1 ).xyz * morphTargetInfluences[ i ];
1678		}
1679	#else
1680		objectNormal += morphNormal0 * morphTargetInfluences[ 0 ];
1681		objectNormal += morphNormal1 * morphTargetInfluences[ 1 ];
1682		objectNormal += morphNormal2 * morphTargetInfluences[ 2 ];
1683		objectNormal += morphNormal3 * morphTargetInfluences[ 3 ];
1684	#endif
1685#endif`,h3e=`#ifdef USE_MORPHTARGETS
1686	uniform float morphTargetBaseInfluence;
1687	#ifdef MORPHTARGETS_TEXTURE
1688		uniform float morphTargetInfluences[ MORPHTARGETS_COUNT ];
1689		uniform sampler2DArray morphTargetsTexture;
1690		uniform ivec2 morphTargetsTextureSize;
1691		vec4 getMorph( const in int vertexIndex, const in int morphTargetIndex, const in int offset ) {
1692			int texelIndex = vertexIndex * MORPHTARGETS_TEXTURE_STRIDE + offset;
1693			int y = texelIndex / morphTargetsTextureSize.x;
1694			int x = texelIndex - y * morphTargetsTextureSize.x;
1695			ivec3 morphUV = ivec3( x, y, morphTargetIndex );
1696			return texelFetch( morphTargetsTexture, morphUV, 0 );
1697		}
1698	#else
1699		#ifndef USE_MORPHNORMALS
1700			uniform float morphTargetInfluences[ 8 ];
1701		#else
1702			uniform float morphTargetInfluences[ 4 ];
1703		#endif
1704	#endif
1705#endif`,p3e=`#ifdef USE_MORPHTARGETS
1706	transformed *= morphTargetBaseInfluence;
1707	#ifdef MORPHTARGETS_TEXTURE
1708		for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) {
1709			if ( morphTargetInfluences[ i ] != 0.0 ) transformed += getMorph( gl_VertexID, i, 0 ).xyz * morphTargetInfluences[ i ];
1710		}
1711	#else
1712		transformed += morphTarget0 * morphTargetInfluences[ 0 ];
1713		transformed += morphTarget1 * morphTargetInfluences[ 1 ];
1714		transformed += morphTarget2 * morphTargetInfluences[ 2 ];
1715		transformed += morphTarget3 * morphTargetInfluences[ 3 ];
1716		#ifndef USE_MORPHNORMALS
1717			transformed += morphTarget4 * morphTargetInfluences[ 4 ];
1718			transformed += morphTarget5 * morphTargetInfluences[ 5 ];
1719			transformed += morphTarget6 * morphTargetInfluences[ 6 ];
1720			transformed += morphTarget7 * morphTargetInfluences[ 7 ];
1721		#endif
1722	#endif
1723#endif`,m3e=`float faceDirection = gl_FrontFacing ? 1.0 : - 1.0;
1724#ifdef FLAT_SHADED
1725	vec3 fdx = dFdx( vViewPosition );
1726	vec3 fdy = dFdy( vViewPosition );
1727	vec3 normal = normalize( cross( fdx, fdy ) );
1728#else
1729	vec3 normal = normalize( vNormal );
1730	#ifdef DOUBLE_SIDED
1731		normal *= faceDirection;
1732	#endif
1733#endif
1734#if defined( USE_NORMALMAP_TANGENTSPACE ) || defined( USE_CLEARCOAT_NORMALMAP ) || defined( USE_ANISOTROPY )
1735	#ifdef USE_TANGENT
1736		mat3 tbn = mat3( normalize( vTangent ), normalize( vBitangent ), normal );
1737	#else
1738		mat3 tbn = getTangentFrame( - vViewPosition, normal,
1739		#if defined( USE_NORMALMAP )
1740			vNormalMapUv
1741		#elif defined( USE_CLEARCOAT_NORMALMAP )
1742			vClearcoatNormalMapUv
1743		#else
1744			vUv
1745		#endif
1746		);
1747	#endif
1748	#if defined( DOUBLE_SIDED ) && ! defined( FLAT_SHADED )
1749		tbn[0] *= faceDirection;
1750		tbn[1] *= faceDirection;
1751	#endif
1752#endif
1753#ifdef USE_CLEARCOAT_NORMALMAP
1754	#ifdef USE_TANGENT
1755		mat3 tbn2 = mat3( normalize( vTangent ), normalize( vBitangent ), normal );
1756	#else
1757		mat3 tbn2 = getTangentFrame( - vViewPosition, normal, vClearcoatNormalMapUv );
1758	#endif
1759	#if defined( DOUBLE_SIDED ) && ! defined( FLAT_SHADED )
1760		tbn2[0] *= faceDirection;
1761		tbn2[1] *= faceDirection;
1762	#endif
1763#endif
1764vec3 geometryNormal = normal;`,g3e=`#ifdef USE_NORMALMAP_OBJECTSPACE
1765	normal = texture2D( normalMap, vNormalMapUv ).xyz * 2.0 - 1.0;
1766	#ifdef FLIP_SIDED
1767		normal = - normal;
1768	#endif
1769	#ifdef DOUBLE_SIDED
1770		normal = normal * faceDirection;
1771	#endif
1772	normal = normalize( normalMatrix * normal );
1773#elif defined( USE_NORMALMAP_TANGENTSPACE )
1774	vec3 mapN = texture2D( normalMap, vNormalMapUv ).xyz * 2.0 - 1.0;
1775	mapN.xy *= normalScale;
1776	normal = normalize( tbn * mapN );
1777#elif defined( USE_BUMPMAP )
1778	normal = perturbNormalArb( - vViewPosition, normal, dHdxy_fwd(), faceDirection );
1779#endif`,_3e=`#ifndef FLAT_SHADED
1780	varying vec3 vNormal;
1781	#ifdef USE_TANGENT
1782		varying vec3 vTangent;
1783		varying vec3 vBitangent;
1784	#endif
1785#endif`,v3e=`#ifndef FLAT_SHADED
1786	varying vec3 vNormal;
1787	#ifdef USE_TANGENT
1788		varying vec3 vTangent;
1789		varying vec3 vBitangent;
1790	#endif
1791#endif`,y3e=`#ifndef FLAT_SHADED
1792	vNormal = normalize( transformedNormal );
1793	#ifdef USE_TANGENT
1794		vTangent = normalize( transformedTangent );
1795		vBitangent = normalize( cross( vNormal, vTangent ) * tangent.w );
1796	#endif
1797#endif`,b3e=`#ifdef USE_NORMALMAP
1798	uniform sampler2D normalMap;
1799	uniform vec2 normalScale;
1800#endif
1801#ifdef USE_NORMALMAP_OBJECTSPACE
1802	uniform mat3 normalMatrix;
1803#endif
1804#if ! defined ( USE_TANGENT ) && ( defined ( USE_NORMALMAP_TANGENTSPACE ) || defined ( USE_CLEARCOAT_NORMALMAP ) || defined( USE_ANISOTROPY ) )
1805	mat3 getTangentFrame( vec3 eye_pos, vec3 surf_norm, vec2 uv ) {
1806		vec3 q0 = dFdx( eye_pos.xyz );
1807		vec3 q1 = dFdy( eye_pos.xyz );
1808		vec2 st0 = dFdx( uv.st );
1809		vec2 st1 = dFdy( uv.st );
1810		vec3 N = surf_norm;
1811		vec3 q1perp = cross( q1, N );
1812		vec3 q0perp = cross( N, q0 );
1813		vec3 T = q1perp * st0.x + q0perp * st1.x;
1814		vec3 B = q1perp * st0.y + q0perp * st1.y;
1815		float det = max( dot( T, T ), dot( B, B ) );
1816		float scale = ( det == 0.0 ) ? 0.0 : inversesqrt( det );
1817		return mat3( T * scale, B * scale, N );
1818	}
1819#endif`,x3e=`#ifdef USE_CLEARCOAT
1820	vec3 clearcoatNormal = geometryNormal;
1821#endif`,S3e=`#ifdef USE_CLEARCOAT_NORMALMAP
1822	vec3 clearcoatMapN = texture2D( clearcoatNormalMap, vClearcoatNormalMapUv ).xyz * 2.0 - 1.0;
1823	clearcoatMapN.xy *= clearcoatNormalScale;
1824	clearcoatNormal = normalize( tbn2 * clearcoatMapN );
1825#endif`,T3e=`#ifdef USE_CLEARCOATMAP
1826	uniform sampler2D clearcoatMap;
1827#endif
1828#ifdef USE_CLEARCOAT_NORMALMAP
1829	uniform sampler2D clearcoatNormalMap;
1830	uniform vec2 clearcoatNormalScale;
1831#endif
1832#ifdef USE_CLEARCOAT_ROUGHNESSMAP
1833	uniform sampler2D clearcoatRoughnessMap;
1834#endif`,E3e=`#ifdef USE_IRIDESCENCEMAP
1835	uniform sampler2D iridescenceMap;
1836#endif
1837#ifdef USE_IRIDESCENCE_THICKNESSMAP
1838	uniform sampler2D iridescenceThicknessMap;
1839#endif`,w3e=`#ifdef OPAQUE
1840diffuseColor.a = 1.0;
1841#endif
1842#ifdef USE_TRANSMISSION
1843diffuseColor.a *= material.transmissionAlpha;
1844#endif
1845gl_FragColor = vec4( outgoingLight, diffuseColor.a );`,C3e=`vec3 packNormalToRGB( const in vec3 normal ) {
1846	return normalize( normal ) * 0.5 + 0.5;
1847}
1848vec3 unpackRGBToNormal( const in vec3 rgb ) {
1849	return 2.0 * rgb.xyz - 1.0;
1850}
1851const float PackUpscale = 256. / 255.;const float UnpackDownscale = 255. / 256.;
1852const vec3 PackFactors = vec3( 256. * 256. * 256., 256. * 256., 256. );
1853const vec4 UnpackFactors = UnpackDownscale / vec4( PackFactors, 1. );
1854const float ShiftRight8 = 1. / 256.;
1855vec4 packDepthToRGBA( const in float v ) {
1856	vec4 r = vec4( fract( v * PackFactors ), v );
1857	r.yzw -= r.xyz * ShiftRight8;	return r * PackUpscale;
1858}
1859float unpackRGBAToDepth( const in vec4 v ) {
1860	return dot( v, UnpackFactors );
1861}
1862vec2 packDepthToRG( in highp float v ) {
1863	return packDepthToRGBA( v ).yx;
1864}
1865float unpackRGToDepth( const in highp vec2 v ) {
1866	return unpackRGBAToDepth( vec4( v.xy, 0.0, 0.0 ) );
1867}
1868vec4 pack2HalfToRGBA( vec2 v ) {
1869	vec4 r = vec4( v.x, fract( v.x * 255.0 ), v.y, fract( v.y * 255.0 ) );
1870	return vec4( r.x - r.y / 255.0, r.y, r.z - r.w / 255.0, r.w );
1871}
1872vec2 unpackRGBATo2Half( vec4 v ) {
1873	return vec2( v.x + ( v.y / 255.0 ), v.z + ( v.w / 255.0 ) );
1874}
1875float viewZToOrthographicDepth( const in float viewZ, const in float near, const in float far ) {
1876	return ( viewZ + near ) / ( near - far );
1877}
1878float orthographicDepthToViewZ( const in float depth, const in float near, const in float far ) {
1879	return depth * ( near - far ) - near;
1880}
1881float viewZToPerspectiveDepth( const in float viewZ, const in float near, const in float far ) {
1882	return ( ( near + viewZ ) * far ) / ( ( far - near ) * viewZ );
1883}
1884float perspectiveDepthToViewZ( const in float depth, const in float near, const in float far ) {
1885	return ( near * far ) / ( ( far - near ) * depth - far );
1886}`,A3e=`#ifdef PREMULTIPLIED_ALPHA
1887	gl_FragColor.rgb *= gl_FragColor.a;
1888#endif`,M3e=`vec4 mvPosition = vec4( transformed, 1.0 );
1889#ifdef USE_INSTANCING
1890	mvPosition = instanceMatrix * mvPosition;
1891#endif
1892mvPosition = modelViewMatrix * mvPosition;
1893gl_Position = projectionMatrix * mvPosition;`,D3e=`#ifdef DITHERING
1894	gl_FragColor.rgb = dithering( gl_FragColor.rgb );
1895#endif`,P3e=`#ifdef DITHERING
1896	vec3 dithering( vec3 color ) {
1897		float grid_position = rand( gl_FragCoord.xy );
1898		vec3 dither_shift_RGB = vec3( 0.25 / 255.0, -0.25 / 255.0, 0.25 / 255.0 );
1899		dither_shift_RGB = mix( 2.0 * dither_shift_RGB, -2.0 * dither_shift_RGB, grid_position );
1900		return color + dither_shift_RGB;
1901	}
1902#endif`,O3e=`float roughnessFactor = roughness;
1903#ifdef USE_ROUGHNESSMAP
1904	vec4 texelRoughness = texture2D( roughnessMap, vRoughnessMapUv );
1905	roughnessFactor *= texelRoughness.g;
1906#endif`,R3e=`#ifdef USE_ROUGHNESSMAP
1907	uniform sampler2D roughnessMap;
1908#endif`,k3e=`#if NUM_SPOT_LIGHT_COORDS > 0
1909	varying vec4 vSpotLightCoord[ NUM_SPOT_LIGHT_COORDS ];
1910#endif
1911#if NUM_SPOT_LIGHT_MAPS > 0
1912	uniform sampler2D spotLightMap[ NUM_SPOT_LIGHT_MAPS ];
1913#endif
1914#ifdef USE_SHADOWMAP
1915	#if NUM_DIR_LIGHT_SHADOWS > 0
1916		uniform sampler2D directionalShadowMap[ NUM_DIR_LIGHT_SHADOWS ];
1917		varying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHT_SHADOWS ];
1918		struct DirectionalLightShadow {
1919			float shadowBias;
1920			float shadowNormalBias;
1921			float shadowRadius;
1922			vec2 shadowMapSize;
1923		};
1924		uniform DirectionalLightShadow directionalLightShadows[ NUM_DIR_LIGHT_SHADOWS ];
1925	#endif
1926	#if NUM_SPOT_LIGHT_SHADOWS > 0
1927		uniform sampler2D spotShadowMap[ NUM_SPOT_LIGHT_SHADOWS ];
1928		struct SpotLightShadow {
1929			float shadowBias;
1930			float shadowNormalBias;
1931			float shadowRadius;
1932			vec2 shadowMapSize;
1933		};
1934		uniform SpotLightShadow spotLightShadows[ NUM_SPOT_LIGHT_SHADOWS ];
1935	#endif
1936	#if NUM_POINT_LIGHT_SHADOWS > 0
1937		uniform sampler2D pointShadowMap[ NUM_POINT_LIGHT_SHADOWS ];
1938		varying vec4 vPointShadowCoord[ NUM_POINT_LIGHT_SHADOWS ];
1939		struct PointLightShadow {
1940			float shadowBias;
1941			float shadowNormalBias;
1942			float shadowRadius;
1943			vec2 shadowMapSize;
1944			float shadowCameraNear;
1945			float shadowCameraFar;
1946		};
1947		uniform PointLightShadow pointLightShadows[ NUM_POINT_LIGHT_SHADOWS ];
1948	#endif
1949	float texture2DCompare( sampler2D depths, vec2 uv, float compare ) {
1950		return step( compare, unpackRGBAToDepth( texture2D( depths, uv ) ) );
1951	}
1952	vec2 texture2DDistribution( sampler2D shadow, vec2 uv ) {
1953		return unpackRGBATo2Half( texture2D( shadow, uv ) );
1954	}
1955	float VSMShadow (sampler2D shadow, vec2 uv, float compare ){
1956		float occlusion = 1.0;
1957		vec2 distribution = texture2DDistribution( shadow, uv );
1958		float hard_shadow = step( compare , distribution.x );
1959		if (hard_shadow != 1.0 ) {
1960			float distance = compare - distribution.x ;
1961			float variance = max( 0.00000, distribution.y * distribution.y );
1962			float softness_probability = variance / (variance + distance * distance );			softness_probability = clamp( ( softness_probability - 0.3 ) / ( 0.95 - 0.3 ), 0.0, 1.0 );			occlusion = clamp( max( hard_shadow, softness_probability ), 0.0, 1.0 );
1963		}
1964		return occlusion;
1965	}
1966	float getShadow( sampler2D shadowMap, vec2 shadowMapSize, float shadowBias, float shadowRadius, vec4 shadowCoord ) {
1967		float shadow = 1.0;
1968		shadowCoord.xyz /= shadowCoord.w;
1969		shadowCoord.z += shadowBias;
1970		bool inFrustum = shadowCoord.x >= 0.0 && shadowCoord.x <= 1.0 && shadowCoord.y >= 0.0 && shadowCoord.y <= 1.0;
1971		bool frustumTest = inFrustum && shadowCoord.z <= 1.0;
1972		if ( frustumTest ) {
1973		#if defined( SHADOWMAP_TYPE_PCF )
1974			vec2 texelSize = vec2( 1.0 ) / shadowMapSize;
1975			float dx0 = - texelSize.x * shadowRadius;
1976			float dy0 = - texelSize.y * shadowRadius;
1977			float dx1 = + texelSize.x * shadowRadius;
1978			float dy1 = + texelSize.y * shadowRadius;
1979			float dx2 = dx0 / 2.0;
1980			float dy2 = dy0 / 2.0;
1981			float dx3 = dx1 / 2.0;
1982			float dy3 = dy1 / 2.0;
1983			shadow = (
1984				texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, dy0 ), shadowCoord.z ) +
1985				texture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy0 ), shadowCoord.z ) +
1986				texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, dy0 ), shadowCoord.z ) +
1987				texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, dy2 ), shadowCoord.z ) +
1988				texture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy2 ), shadowCoord.z ) +
1989				texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, dy2 ), shadowCoord.z ) +
1990				texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, 0.0 ), shadowCoord.z ) +
1991				texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, 0.0 ), shadowCoord.z ) +
1992				texture2DCompare( shadowMap, shadowCoord.xy, shadowCoord.z ) +
1993				texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, 0.0 ), shadowCoord.z ) +
1994				texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, 0.0 ), shadowCoord.z ) +
1995				texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, dy3 ), shadowCoord.z ) +
1996				texture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy3 ), shadowCoord.z ) +
1997				texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, dy3 ), shadowCoord.z ) +
1998				texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, dy1 ), shadowCoord.z ) +
1999				texture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy1 ), shadowCoord.z ) +
2000				texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, dy1 ), shadowCoord.z )
2001			) * ( 1.0 / 17.0 );
2002		#elif defined( SHADOWMAP_TYPE_PCF_SOFT )
2003			vec2 texelSize = vec2( 1.0 ) / shadowMapSize;
2004			float dx = texelSize.x;
2005			float dy = texelSize.y;
2006			vec2 uv = shadowCoord.xy;
2007			vec2 f = fract( uv * shadowMapSize + 0.5 );
2008			uv -= f * texelSize;
2009			shadow = (
2010				texture2DCompare( shadowMap, uv, shadowCoord.z ) +
2011				texture2DCompare( shadowMap, uv + vec2( dx, 0.0 ), shadowCoord.z ) +
2012				texture2DCompare( shadowMap, uv + vec2( 0.0, dy ), shadowCoord.z ) +
2013				texture2DCompare( shadowMap, uv + texelSize, shadowCoord.z ) +
2014				mix( texture2DCompare( shadowMap, uv + vec2( -dx, 0.0 ), shadowCoord.z ),
2015					 texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, 0.0 ), shadowCoord.z ),
2016					 f.x ) +
2017				mix( texture2DCompare( shadowMap, uv + vec2( -dx, dy ), shadowCoord.z ),
2018					 texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, dy ), shadowCoord.z ),
2019					 f.x ) +
2020				mix( texture2DCompare( shadowMap, uv + vec2( 0.0, -dy ), shadowCoord.z ),
2021					 texture2DCompare( shadowMap, uv + vec2( 0.0, 2.0 * dy ), shadowCoord.z ),
2022					 f.y ) +
2023				mix( texture2DCompare( shadowMap, uv + vec2( dx, -dy ), shadowCoord.z ),
2024					 texture2DCompare( shadowMap, uv + vec2( dx, 2.0 * dy ), shadowCoord.z ),
2025					 f.y ) +
2026				mix( mix( texture2DCompare( shadowMap, uv + vec2( -dx, -dy ), shadowCoord.z ),
2027						  texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, -dy ), shadowCoord.z ),
2028						  f.x ),
2029					 mix( texture2DCompare( shadowMap, uv + vec2( -dx, 2.0 * dy ), shadowCoord.z ),
2030						  texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, 2.0 * dy ), shadowCoord.z ),
2031						  f.x ),
2032					 f.y )
2033			) * ( 1.0 / 9.0 );
2034		#elif defined( SHADOWMAP_TYPE_VSM )
2035			shadow = VSMShadow( shadowMap, shadowCoord.xy, shadowCoord.z );
2036		#else
2037			shadow = texture2DCompare( shadowMap, shadowCoord.xy, shadowCoord.z );
2038		#endif
2039		}
2040		return shadow;
2041	}
2042	vec2 cubeToUV( vec3 v, float texelSizeY ) {
2043		vec3 absV = abs( v );
2044		float scaleToCube = 1.0 / max( absV.x, max( absV.y, absV.z ) );
2045		absV *= scaleToCube;
2046		v *= scaleToCube * ( 1.0 - 2.0 * texelSizeY );
2047		vec2 planar = v.xy;
2048		float almostATexel = 1.5 * texelSizeY;
2049		float almostOne = 1.0 - almostATexel;
2050		if ( absV.z >= almostOne ) {
2051			if ( v.z > 0.0 )
2052				planar.x = 4.0 - v.x;
2053		} else if ( absV.x >= almostOne ) {
2054			float signX = sign( v.x );
2055			planar.x = v.z * signX + 2.0 * signX;
2056		} else if ( absV.y >= almostOne ) {
2057			float signY = sign( v.y );
2058			planar.x = v.x + 2.0 * signY + 2.0;
2059			planar.y = v.z * signY - 2.0;
2060		}
2061		return vec2( 0.125, 0.25 ) * planar + vec2( 0.375, 0.75 );
2062	}
2063	float getPointShadow( sampler2D shadowMap, vec2 shadowMapSize, float shadowBias, float shadowRadius, vec4 shadowCoord, float shadowCameraNear, float shadowCameraFar ) {
2064		vec2 texelSize = vec2( 1.0 ) / ( shadowMapSize * vec2( 4.0, 2.0 ) );
2065		vec3 lightToPosition = shadowCoord.xyz;
2066		float dp = ( length( lightToPosition ) - shadowCameraNear ) / ( shadowCameraFar - shadowCameraNear );		dp += shadowBias;
2067		vec3 bd3D = normalize( lightToPosition );
2068		#if defined( SHADOWMAP_TYPE_PCF ) || defined( SHADOWMAP_TYPE_PCF_SOFT ) || defined( SHADOWMAP_TYPE_VSM )
2069			vec2 offset = vec2( - 1, 1 ) * shadowRadius * texelSize.y;
2070			return (
2071				texture2DCompare( shadowMap, cubeToUV( bd3D + offset.xyy, texelSize.y ), dp ) +
2072				texture2DCompare( shadowMap, cubeToUV( bd3D + offset.yyy, texelSize.y ), dp ) +
2073				texture2DCompare( shadowMap, cubeToUV( bd3D + offset.xyx, texelSize.y ), dp ) +
2074				texture2DCompare( shadowMap, cubeToUV( bd3D + offset.yyx, texelSize.y ), dp ) +
2075				texture2DCompare( shadowMap, cubeToUV( bd3D, texelSize.y ), dp ) +
2076				texture2DCompare( shadowMap, cubeToUV( bd3D + offset.xxy, texelSize.y ), dp ) +
2077				texture2DCompare( shadowMap, cubeToUV( bd3D + offset.yxy, texelSize.y ), dp ) +
2078				texture2DCompare( shadowMap, cubeToUV( bd3D + offset.xxx, texelSize.y ), dp ) +
2079				texture2DCompare( shadowMap, cubeToUV( bd3D + offset.yxx, texelSize.y ), dp )
2080			) * ( 1.0 / 9.0 );
2081		#else
2082			return texture2DCompare( shadowMap, cubeToUV( bd3D, texelSize.y ), dp );
2083		#endif
2084	}
2085#endif`,I3e=`#if NUM_SPOT_LIGHT_COORDS > 0
2086	uniform mat4 spotLightMatrix[ NUM_SPOT_LIGHT_COORDS ];
2087	varying vec4 vSpotLightCoord[ NUM_SPOT_LIGHT_COORDS ];
2088#endif
2089#ifdef USE_SHADOWMAP
2090	#if NUM_DIR_LIGHT_SHADOWS > 0
2091		uniform mat4 directionalShadowMatrix[ NUM_DIR_LIGHT_SHADOWS ];
2092		varying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHT_SHADOWS ];
2093		struct DirectionalLightShadow {
2094			float shadowBias;
2095			float shadowNormalBias;
2096			float shadowRadius;
2097			vec2 shadowMapSize;
2098		};
2099		uniform DirectionalLightShadow directionalLightShadows[ NUM_DIR_LIGHT_SHADOWS ];
2100	#endif
2101	#if NUM_SPOT_LIGHT_SHADOWS > 0
2102		struct SpotLightShadow {
2103			float shadowBias;
2104			float shadowNormalBias;
2105			float shadowRadius;
2106			vec2 shadowMapSize;
2107		};
2108		uniform SpotLightShadow spotLightShadows[ NUM_SPOT_LIGHT_SHADOWS ];
2109	#endif
2110	#if NUM_POINT_LIGHT_SHADOWS > 0
2111		uniform mat4 pointShadowMatrix[ NUM_POINT_LIGHT_SHADOWS ];
2112		varying vec4 vPointShadowCoord[ NUM_POINT_LIGHT_SHADOWS ];
2113		struct PointLightShadow {
2114			float shadowBias;
2115			float shadowNormalBias;
2116			float shadowRadius;
2117			vec2 shadowMapSize;
2118			float shadowCameraNear;
2119			float shadowCameraFar;
2120		};
2121		uniform PointLightShadow pointLightShadows[ NUM_POINT_LIGHT_SHADOWS ];
2122	#endif
2123#endif`,L3e=`#if ( defined( USE_SHADOWMAP ) && ( NUM_DIR_LIGHT_SHADOWS > 0 || NUM_POINT_LIGHT_SHADOWS > 0 ) ) || ( NUM_SPOT_LIGHT_COORDS > 0 )
2124	vec3 shadowWorldNormal = inverseTransformDirection( transformedNormal, viewMatrix );
2125	vec4 shadowWorldPosition;
2126#endif
2127#if defined( USE_SHADOWMAP )
2128	#if NUM_DIR_LIGHT_SHADOWS > 0
2129		#pragma unroll_loop_start
2130		for ( int i = 0; i < NUM_DIR_LIGHT_SHADOWS; i ++ ) {
2131			shadowWorldPosition = worldPosition + vec4( shadowWorldNormal * directionalLightShadows[ i ].shadowNormalBias, 0 );
2132			vDirectionalShadowCoord[ i ] = directionalShadowMatrix[ i ] * shadowWorldPosition;
2133		}
2134		#pragma unroll_loop_end
2135	#endif
2136	#if NUM_POINT_LIGHT_SHADOWS > 0
2137		#pragma unroll_loop_start
2138		for ( int i = 0; i < NUM_POINT_LIGHT_SHADOWS; i ++ ) {
2139			shadowWorldPosition = worldPosition + vec4( shadowWorldNormal * pointLightShadows[ i ].shadowNormalBias, 0 );
2140			vPointShadowCoord[ i ] = pointShadowMatrix[ i ] * shadowWorldPosition;
2141		}
2142		#pragma unroll_loop_end
2143	#endif
2144#endif
2145#if NUM_SPOT_LIGHT_COORDS > 0
2146	#pragma unroll_loop_start
2147	for ( int i = 0; i < NUM_SPOT_LIGHT_COORDS; i ++ ) {
2148		shadowWorldPosition = worldPosition;
2149		#if ( defined( USE_SHADOWMAP ) && UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS )
2150			shadowWorldPosition.xyz += shadowWorldNormal * spotLightShadows[ i ].shadowNormalBias;
2151		#endif
2152		vSpotLightCoord[ i ] = spotLightMatrix[ i ] * shadowWorldPosition;
2153	}
2154	#pragma unroll_loop_end
2155#endif`,F3e=`float getShadowMask() {
2156	float shadow = 1.0;
2157	#ifdef USE_SHADOWMAP
2158	#if NUM_DIR_LIGHT_SHADOWS > 0
2159	DirectionalLightShadow directionalLight;
2160	#pragma unroll_loop_start
2161	for ( int i = 0; i < NUM_DIR_LIGHT_SHADOWS; i ++ ) {
2162		directionalLight = directionalLightShadows[ i ];
2163		shadow *= receiveShadow ? getShadow( directionalShadowMap[ i ], directionalLight.shadowMapSize, directionalLight.shadowBias, directionalLight.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0;
2164	}
2165	#pragma unroll_loop_end
2166	#endif
2167	#if NUM_SPOT_LIGHT_SHADOWS > 0
2168	SpotLightShadow spotLight;
2169	#pragma unroll_loop_start
2170	for ( int i = 0; i < NUM_SPOT_LIGHT_SHADOWS; i ++ ) {
2171		spotLight = spotLightShadows[ i ];
2172		shadow *= receiveShadow ? getShadow( spotShadowMap[ i ], spotLight.shadowMapSize, spotLight.shadowBias, spotLight.shadowRadius, vSpotLightCoord[ i ] ) : 1.0;
2173	}
2174	#pragma unroll_loop_end
2175	#endif
2176	#if NUM_POINT_LIGHT_SHADOWS > 0
2177	PointLightShadow pointLight;
2178	#pragma unroll_loop_start
2179	for ( int i = 0; i < NUM_POINT_LIGHT_SHADOWS; i ++ ) {
2180		pointLight = pointLightShadows[ i ];
2181		shadow *= receiveShadow ? getPointShadow( pointShadowMap[ i ], pointLight.shadowMapSize, pointLight.shadowBias, pointLight.shadowRadius, vPointShadowCoord[ i ], pointLight.shadowCameraNear, pointLight.shadowCameraFar ) : 1.0;
2182	}
2183	#pragma unroll_loop_end
2184	#endif
2185	#endif
2186	return shadow;
2187}`,N3e=`#ifdef USE_SKINNING
2188	mat4 boneMatX = getBoneMatrix( skinIndex.x );
2189	mat4 boneMatY = getBoneMatrix( skinIndex.y );
2190	mat4 boneMatZ = getBoneMatrix( skinIndex.z );
2191	mat4 boneMatW = getBoneMatrix( skinIndex.w );
2192#endif`,B3e=`#ifdef USE_SKINNING
2193	uniform mat4 bindMatrix;
2194	uniform mat4 bindMatrixInverse;
2195	uniform highp sampler2D boneTexture;
2196	uniform int boneTextureSize;
2197	mat4 getBoneMatrix( const in float i ) {
2198		float j = i * 4.0;
2199		float x = mod( j, float( boneTextureSize ) );
2200		float y = floor( j / float( boneTextureSize ) );
2201		float dx = 1.0 / float( boneTextureSize );
2202		float dy = 1.0 / float( boneTextureSize );
2203		y = dy * ( y + 0.5 );
2204		vec4 v1 = texture2D( boneTexture, vec2( dx * ( x + 0.5 ), y ) );
2205		vec4 v2 = texture2D( boneTexture, vec2( dx * ( x + 1.5 ), y ) );
2206		vec4 v3 = texture2D( boneTexture, vec2( dx * ( x + 2.5 ), y ) );
2207		vec4 v4 = texture2D( boneTexture, vec2( dx * ( x + 3.5 ), y ) );
2208		mat4 bone = mat4( v1, v2, v3, v4 );
2209		return bone;
2210	}
2211#endif`,U3e=`#ifdef USE_SKINNING
2212	vec4 skinVertex = bindMatrix * vec4( transformed, 1.0 );
2213	vec4 skinned = vec4( 0.0 );
2214	skinned += boneMatX * skinVertex * skinWeight.x;
2215	skinned += boneMatY * skinVertex * skinWeight.y;
2216	skinned += boneMatZ * skinVertex * skinWeight.z;
2217	skinned += boneMatW * skinVertex * skinWeight.w;
2218	transformed = ( bindMatrixInverse * skinned ).xyz;
2219#endif`,$3e=`#ifdef USE_SKINNING
2220	mat4 skinMatrix = mat4( 0.0 );
2221	skinMatrix += skinWeight.x * boneMatX;
2222	skinMatrix += skinWeight.y * boneMatY;
2223	skinMatrix += skinWeight.z * boneMatZ;
2224	skinMatrix += skinWeight.w * boneMatW;
2225	skinMatrix = bindMatrixInverse * skinMatrix * bindMatrix;
2226	objectNormal = vec4( skinMatrix * vec4( objectNormal, 0.0 ) ).xyz;
2227	#ifdef USE_TANGENT
2228		objectTangent = vec4( skinMatrix * vec4( objectTangent, 0.0 ) ).xyz;
2229	#endif
2230#endif`,z3e=`float specularStrength;
2231#ifdef USE_SPECULARMAP
2232	vec4 texelSpecular = texture2D( specularMap, vSpecularMapUv );
2233	specularStrength = texelSpecular.r;
2234#else
2235	specularStrength = 1.0;
2236#endif`,H3e=`#ifdef USE_SPECULARMAP
2237	uniform sampler2D specularMap;
2238#endif`,V3e=`#if defined( TONE_MAPPING )
2239	gl_FragColor.rgb = toneMapping( gl_FragColor.rgb );
2240#endif`,W3e=`#ifndef saturate
2241#define saturate( a ) clamp( a, 0.0, 1.0 )
2242#endif
2243uniform float toneMappingExposure;
2244vec3 LinearToneMapping( vec3 color ) {
2245	return saturate( toneMappingExposure * color );
2246}
2247vec3 ReinhardToneMapping( vec3 color ) {
2248	color *= toneMappingExposure;
2249	return saturate( color / ( vec3( 1.0 ) + color ) );
2250}
2251vec3 OptimizedCineonToneMapping( vec3 color ) {
2252	color *= toneMappingExposure;
2253	color = max( vec3( 0.0 ), color - 0.004 );
2254	return pow( ( color * ( 6.2 * color + 0.5 ) ) / ( color * ( 6.2 * color + 1.7 ) + 0.06 ), vec3( 2.2 ) );
2255}
2256vec3 RRTAndODTFit( vec3 v ) {
2257	vec3 a = v * ( v + 0.0245786 ) - 0.000090537;
2258	vec3 b = v * ( 0.983729 * v + 0.4329510 ) + 0.238081;
2259	return a / b;
2260}
2261vec3 ACESFilmicToneMapping( vec3 color ) {
2262	const mat3 ACESInputMat = mat3(
2263		vec3( 0.59719, 0.07600, 0.02840 ),		vec3( 0.35458, 0.90834, 0.13383 ),
2264		vec3( 0.04823, 0.01566, 0.83777 )
2265	);
2266	const mat3 ACESOutputMat = mat3(
2267		vec3(  1.60475, -0.10208, -0.00327 ),		vec3( -0.53108,  1.10813, -0.07276 ),
2268		vec3( -0.07367, -0.00605,  1.07602 )
2269	);
2270	color *= toneMappingExposure / 0.6;
2271	color = ACESInputMat * color;
2272	color = RRTAndODTFit( color );
2273	color = ACESOutputMat * color;
2274	return saturate( color );
2275}
2276vec3 CustomToneMapping( vec3 color ) { return color; }`,G3e=`#ifdef USE_TRANSMISSION
2277	material.transmission = transmission;
2278	material.transmissionAlpha = 1.0;
2279	material.thickness = thickness;
2280	material.attenuationDistance = attenuationDistance;
2281	material.attenuationColor = attenuationColor;
2282	#ifdef USE_TRANSMISSIONMAP
2283		material.transmission *= texture2D( transmissionMap, vTransmissionMapUv ).r;
2284	#endif
2285	#ifdef USE_THICKNESSMAP
2286		material.thickness *= texture2D( thicknessMap, vThicknessMapUv ).g;
2287	#endif
2288	vec3 pos = vWorldPosition;
2289	vec3 v = normalize( cameraPosition - pos );
2290	vec3 n = inverseTransformDirection( normal, viewMatrix );
2291	vec4 transmitted = getIBLVolumeRefraction(
2292		n, v, material.roughness, material.diffuseColor, material.specularColor, material.specularF90,
2293		pos, modelMatrix, viewMatrix, projectionMatrix, material.ior, material.thickness,
2294		material.attenuationColor, material.attenuationDistance );
2295	material.transmissionAlpha = mix( material.transmissionAlpha, transmitted.a, material.transmission );
2296	totalDiffuse = mix( totalDiffuse, transmitted.rgb, material.transmission );
2297#endif`,j3e=`#ifdef USE_TRANSMISSION
2298	uniform float transmission;
2299	uniform float thickness;
2300	uniform float attenuationDistance;
2301	uniform vec3 attenuationColor;
2302	#ifdef USE_TRANSMISSIONMAP
2303		uniform sampler2D transmissionMap;
2304	#endif
2305	#ifdef USE_THICKNESSMAP
2306		uniform sampler2D thicknessMap;
2307	#endif
2308	uniform vec2 transmissionSamplerSize;
2309	uniform sampler2D transmissionSamplerMap;
2310	uniform mat4 modelMatrix;
2311	uniform mat4 projectionMatrix;
2312	varying vec3 vWorldPosition;
2313	float w0( float a ) {
2314		return ( 1.0 / 6.0 ) * ( a * ( a * ( - a + 3.0 ) - 3.0 ) + 1.0 );
2315	}
2316	float w1( float a ) {
2317		return ( 1.0 / 6.0 ) * ( a *  a * ( 3.0 * a - 6.0 ) + 4.0 );
2318	}
2319	float w2( float a ){
2320		return ( 1.0 / 6.0 ) * ( a * ( a * ( - 3.0 * a + 3.0 ) + 3.0 ) + 1.0 );
2321	}
2322	float w3( float a ) {
2323		return ( 1.0 / 6.0 ) * ( a * a * a );
2324	}
2325	float g0( float a ) {
2326		return w0( a ) + w1( a );
2327	}
2328	float g1( float a ) {
2329		return w2( a ) + w3( a );
2330	}
2331	float h0( float a ) {
2332		return - 1.0 + w1( a ) / ( w0( a ) + w1( a ) );
2333	}
2334	float h1( float a ) {
2335		return 1.0 + w3( a ) / ( w2( a ) + w3( a ) );
2336	}
2337	vec4 bicubic( sampler2D tex, vec2 uv, vec4 texelSize, float lod ) {
2338		uv = uv * texelSize.zw + 0.5;
2339		vec2 iuv = floor( uv );
2340		vec2 fuv = fract( uv );
2341		float g0x = g0( fuv.x );
2342		float g1x = g1( fuv.x );
2343		float h0x = h0( fuv.x );
2344		float h1x = h1( fuv.x );
2345		float h0y = h0( fuv.y );
2346		float h1y = h1( fuv.y );
2347		vec2 p0 = ( vec2( iuv.x + h0x, iuv.y + h0y ) - 0.5 ) * texelSize.xy;
2348		vec2 p1 = ( vec2( iuv.x + h1x, iuv.y + h0y ) - 0.5 ) * texelSize.xy;
2349		vec2 p2 = ( vec2( iuv.x + h0x, iuv.y + h1y ) - 0.5 ) * texelSize.xy;
2350		vec2 p3 = ( vec2( iuv.x + h1x, iuv.y + h1y ) - 0.5 ) * texelSize.xy;
2351		return g0( fuv.y ) * ( g0x * textureLod( tex, p0, lod ) + g1x * textureLod( tex, p1, lod ) ) +
2352			g1( fuv.y ) * ( g0x * textureLod( tex, p2, lod ) + g1x * textureLod( tex, p3, lod ) );
2353	}
2354	vec4 textureBicubic( sampler2D sampler, vec2 uv, float lod ) {
2355		vec2 fLodSize = vec2( textureSize( sampler, int( lod ) ) );
2356		vec2 cLodSize = vec2( textureSize( sampler, int( lod + 1.0 ) ) );
2357		vec2 fLodSizeInv = 1.0 / fLodSize;
2358		vec2 cLodSizeInv = 1.0 / cLodSize;
2359		vec4 fSample = bicubic( sampler, uv, vec4( fLodSizeInv, fLodSize ), floor( lod ) );
2360		vec4 cSample = bicubic( sampler, uv, vec4( cLodSizeInv, cLodSize ), ceil( lod ) );
2361		return mix( fSample, cSample, fract( lod ) );
2362	}
2363	vec3 getVolumeTransmissionRay( const in vec3 n, const in vec3 v, const in float thickness, const in float ior, const in mat4 modelMatrix ) {
2364		vec3 refractionVector = refract( - v, normalize( n ), 1.0 / ior );
2365		vec3 modelScale;
2366		modelScale.x = length( vec3( modelMatrix[ 0 ].xyz ) );
2367		modelScale.y = length( vec3( modelMatrix[ 1 ].xyz ) );
2368		modelScale.z = length( vec3( modelMatrix[ 2 ].xyz ) );
2369		return normalize( refractionVector ) * thickness * modelScale;
2370	}
2371	float applyIorToRoughness( const in float roughness, const in float ior ) {
2372		return roughness * clamp( ior * 2.0 - 2.0, 0.0, 1.0 );
2373	}
2374	vec4 getTransmissionSample( const in vec2 fragCoord, const in float roughness, const in float ior ) {
2375		float lod = log2( transmissionSamplerSize.x ) * applyIorToRoughness( roughness, ior );
2376		return textureBicubic( transmissionSamplerMap, fragCoord.xy, lod );
2377	}
2378	vec3 volumeAttenuation( const in float transmissionDistance, const in vec3 attenuationColor, const in float attenuationDistance ) {
2379		if ( isinf( attenuationDistance ) ) {
2380			return vec3( 1.0 );
2381		} else {
2382			vec3 attenuationCoefficient = -log( attenuationColor ) / attenuationDistance;
2383			vec3 transmittance = exp( - attenuationCoefficient * transmissionDistance );			return transmittance;
2384		}
2385	}
2386	vec4 getIBLVolumeRefraction( const in vec3 n, const in vec3 v, const in float roughness, const in vec3 diffuseColor,
2387		const in vec3 specularColor, const in float specularF90, const in vec3 position, const in mat4 modelMatrix,
2388		const in mat4 viewMatrix, const in mat4 projMatrix, const in float ior, const in float thickness,
2389		const in vec3 attenuationColor, const in float attenuationDistance ) {
2390		vec3 transmissionRay = getVolumeTransmissionRay( n, v, thickness, ior, modelMatrix );
2391		vec3 refractedRayExit = position + transmissionRay;
2392		vec4 ndcPos = projMatrix * viewMatrix * vec4( refractedRayExit, 1.0 );
2393		vec2 refractionCoords = ndcPos.xy / ndcPos.w;
2394		refractionCoords += 1.0;
2395		refractionCoords /= 2.0;
2396		vec4 transmittedLight = getTransmissionSample( refractionCoords, roughness, ior );
2397		vec3 transmittance = diffuseColor * volumeAttenuation( length( transmissionRay ), attenuationColor, attenuationDistance );
2398		vec3 attenuatedColor = transmittance * transmittedLight.rgb;
2399		vec3 F = EnvironmentBRDF( n, v, specularColor, specularF90, roughness );
2400		float transmittanceFactor = ( transmittance.r + transmittance.g + transmittance.b ) / 3.0;
2401		return vec4( ( 1.0 - F ) * attenuatedColor, 1.0 - ( 1.0 - transmittedLight.a ) * transmittanceFactor );
2402	}
2403#endif`,q3e=`#if defined( USE_UV ) || defined( USE_ANISOTROPY )
2404	varying vec2 vUv;
2405#endif
2406#ifdef USE_MAP
2407	varying vec2 vMapUv;
2408#endif
2409#ifdef USE_ALPHAMAP
2410	varying vec2 vAlphaMapUv;
2411#endif
2412#ifdef USE_LIGHTMAP
2413	varying vec2 vLightMapUv;
2414#endif
2415#ifdef USE_AOMAP
2416	varying vec2 vAoMapUv;
2417#endif
2418#ifdef USE_BUMPMAP
2419	varying vec2 vBumpMapUv;
2420#endif
2421#ifdef USE_NORMALMAP
2422	varying vec2 vNormalMapUv;
2423#endif
2424#ifdef USE_EMISSIVEMAP
2425	varying vec2 vEmissiveMapUv;
2426#endif
2427#ifdef USE_METALNESSMAP
2428	varying vec2 vMetalnessMapUv;
2429#endif
2430#ifdef USE_ROUGHNESSMAP
2431	varying vec2 vRoughnessMapUv;
2432#endif
2433#ifdef USE_ANISOTROPYMAP
2434	varying vec2 vAnisotropyMapUv;
2435#endif
2436#ifdef USE_CLEARCOATMAP
2437	varying vec2 vClearcoatMapUv;
2438#endif
2439#ifdef USE_CLEARCOAT_NORMALMAP
2440	varying vec2 vClearcoatNormalMapUv;
2441#endif
2442#ifdef USE_CLEARCOAT_ROUGHNESSMAP
2443	varying vec2 vClearcoatRoughnessMapUv;
2444#endif
2445#ifdef USE_IRIDESCENCEMAP
2446	varying vec2 vIridescenceMapUv;
2447#endif
2448#ifdef USE_IRIDESCENCE_THICKNESSMAP
2449	varying vec2 vIridescenceThicknessMapUv;
2450#endif
2451#ifdef USE_SHEEN_COLORMAP
2452	varying vec2 vSheenColorMapUv;
2453#endif
2454#ifdef USE_SHEEN_ROUGHNESSMAP
2455	varying vec2 vSheenRoughnessMapUv;
2456#endif
2457#ifdef USE_SPECULARMAP
2458	varying vec2 vSpecularMapUv;
2459#endif
2460#ifdef USE_SPECULAR_COLORMAP
2461	varying vec2 vSpecularColorMapUv;
2462#endif
2463#ifdef USE_SPECULAR_INTENSITYMAP
2464	varying vec2 vSpecularIntensityMapUv;
2465#endif
2466#ifdef USE_TRANSMISSIONMAP
2467	uniform mat3 transmissionMapTransform;
2468	varying vec2 vTransmissionMapUv;
2469#endif
2470#ifdef USE_THICKNESSMAP
2471	uniform mat3 thicknessMapTransform;
2472	varying vec2 vThicknessMapUv;
2473#endif`,X3e=`#if defined( USE_UV ) || defined( USE_ANISOTROPY )
2474	varying vec2 vUv;
2475#endif
2476#ifdef USE_MAP
2477	uniform mat3 mapTransform;
2478	varying vec2 vMapUv;
2479#endif
2480#ifdef USE_ALPHAMAP
2481	uniform mat3 alphaMapTransform;
2482	varying vec2 vAlphaMapUv;
2483#endif
2484#ifdef USE_LIGHTMAP
2485	uniform mat3 lightMapTransform;
2486	varying vec2 vLightMapUv;
2487#endif
2488#ifdef USE_AOMAP
2489	uniform mat3 aoMapTransform;
2490	varying vec2 vAoMapUv;
2491#endif
2492#ifdef USE_BUMPMAP
2493	uniform mat3 bumpMapTransform;
2494	varying vec2 vBumpMapUv;
2495#endif
2496#ifdef USE_NORMALMAP
2497	uniform mat3 normalMapTransform;
2498	varying vec2 vNormalMapUv;
2499#endif
2500#ifdef USE_DISPLACEMENTMAP
2501	uniform mat3 displacementMapTransform;
2502	varying vec2 vDisplacementMapUv;
2503#endif
2504#ifdef USE_EMISSIVEMAP
2505	uniform mat3 emissiveMapTransform;
2506	varying vec2 vEmissiveMapUv;
2507#endif
2508#ifdef USE_METALNESSMAP
2509	uniform mat3 metalnessMapTransform;
2510	varying vec2 vMetalnessMapUv;
2511#endif
2512#ifdef USE_ROUGHNESSMAP
2513	uniform mat3 roughnessMapTransform;
2514	varying vec2 vRoughnessMapUv;
2515#endif
2516#ifdef USE_ANISOTROPYMAP
2517	uniform mat3 anisotropyMapTransform;
2518	varying vec2 vAnisotropyMapUv;
2519#endif
2520#ifdef USE_CLEARCOATMAP
2521	uniform mat3 clearcoatMapTransform;
2522	varying vec2 vClearcoatMapUv;
2523#endif
2524#ifdef USE_CLEARCOAT_NORMALMAP
2525	uniform mat3 clearcoatNormalMapTransform;
2526	varying vec2 vClearcoatNormalMapUv;
2527#endif
2528#ifdef USE_CLEARCOAT_ROUGHNESSMAP
2529	uniform mat3 clearcoatRoughnessMapTransform;
2530	varying vec2 vClearcoatRoughnessMapUv;
2531#endif
2532#ifdef USE_SHEEN_COLORMAP
2533	uniform mat3 sheenColorMapTransform;
2534	varying vec2 vSheenColorMapUv;
2535#endif
2536#ifdef USE_SHEEN_ROUGHNESSMAP
2537	uniform mat3 sheenRoughnessMapTransform;
2538	varying vec2 vSheenRoughnessMapUv;
2539#endif
2540#ifdef USE_IRIDESCENCEMAP
2541	uniform mat3 iridescenceMapTransform;
2542	varying vec2 vIridescenceMapUv;
2543#endif
2544#ifdef USE_IRIDESCENCE_THICKNESSMAP
2545	uniform mat3 iridescenceThicknessMapTransform;
2546	varying vec2 vIridescenceThicknessMapUv;
2547#endif
2548#ifdef USE_SPECULARMAP
2549	uniform mat3 specularMapTransform;
2550	varying vec2 vSpecularMapUv;
2551#endif
2552#ifdef USE_SPECULAR_COLORMAP
2553	uniform mat3 specularColorMapTransform;
2554	varying vec2 vSpecularColorMapUv;
2555#endif
2556#ifdef USE_SPECULAR_INTENSITYMAP
2557	uniform mat3 specularIntensityMapTransform;
2558	varying vec2 vSpecularIntensityMapUv;
2559#endif
2560#ifdef USE_TRANSMISSIONMAP
2561	uniform mat3 transmissionMapTransform;
2562	varying vec2 vTransmissionMapUv;
2563#endif
2564#ifdef USE_THICKNESSMAP
2565	uniform mat3 thicknessMapTransform;
2566	varying vec2 vThicknessMapUv;
2567#endif`,Y3e=`#if defined( USE_UV ) || defined( USE_ANISOTROPY )
2568	vUv = vec3( uv, 1 ).xy;
2569#endif
2570#ifdef USE_MAP
2571	vMapUv = ( mapTransform * vec3( MAP_UV, 1 ) ).xy;
2572#endif
2573#ifdef USE_ALPHAMAP
2574	vAlphaMapUv = ( alphaMapTransform * vec3( ALPHAMAP_UV, 1 ) ).xy;
2575#endif
2576#ifdef USE_LIGHTMAP
2577	vLightMapUv = ( lightMapTransform * vec3( LIGHTMAP_UV, 1 ) ).xy;
2578#endif
2579#ifdef USE_AOMAP
2580	vAoMapUv = ( aoMapTransform * vec3( AOMAP_UV, 1 ) ).xy;
2581#endif
2582#ifdef USE_BUMPMAP
2583	vBumpMapUv = ( bumpMapTransform * vec3( BUMPMAP_UV, 1 ) ).xy;
2584#endif
2585#ifdef USE_NORMALMAP
2586	vNormalMapUv = ( normalMapTransform * vec3( NORMALMAP_UV, 1 ) ).xy;
2587#endif
2588#ifdef USE_DISPLACEMENTMAP
2589	vDisplacementMapUv = ( displacementMapTransform * vec3( DISPLACEMENTMAP_UV, 1 ) ).xy;
2590#endif
2591#ifdef USE_EMISSIVEMAP
2592	vEmissiveMapUv = ( emissiveMapTransform * vec3( EMISSIVEMAP_UV, 1 ) ).xy;
2593#endif
2594#ifdef USE_METALNESSMAP
2595	vMetalnessMapUv = ( metalnessMapTransform * vec3( METALNESSMAP_UV, 1 ) ).xy;
2596#endif
2597#ifdef USE_ROUGHNESSMAP
2598	vRoughnessMapUv = ( roughnessMapTransform * vec3( ROUGHNESSMAP_UV, 1 ) ).xy;
2599#endif
2600#ifdef USE_ANISOTROPYMAP
2601	vAnisotropyMapUv = ( anisotropyMapTransform * vec3( ANISOTROPYMAP_UV, 1 ) ).xy;
2602#endif
2603#ifdef USE_CLEARCOATMAP
2604	vClearcoatMapUv = ( clearcoatMapTransform * vec3( CLEARCOATMAP_UV, 1 ) ).xy;
2605#endif
2606#ifdef USE_CLEARCOAT_NORMALMAP
2607	vClearcoatNormalMapUv = ( clearcoatNormalMapTransform * vec3( CLEARCOAT_NORMALMAP_UV, 1 ) ).xy;
2608#endif
2609#ifdef USE_CLEARCOAT_ROUGHNESSMAP
2610	vClearcoatRoughnessMapUv = ( clearcoatRoughnessMapTransform * vec3( CLEARCOAT_ROUGHNESSMAP_UV, 1 ) ).xy;
2611#endif
2612#ifdef USE_IRIDESCENCEMAP
2613	vIridescenceMapUv = ( iridescenceMapTransform * vec3( IRIDESCENCEMAP_UV, 1 ) ).xy;
2614#endif
2615#ifdef USE_IRIDESCENCE_THICKNESSMAP
2616	vIridescenceThicknessMapUv = ( iridescenceThicknessMapTransform * vec3( IRIDESCENCE_THICKNESSMAP_UV, 1 ) ).xy;
2617#endif
2618#ifdef USE_SHEEN_COLORMAP
2619	vSheenColorMapUv = ( sheenColorMapTransform * vec3( SHEEN_COLORMAP_UV, 1 ) ).xy;
2620#endif
2621#ifdef USE_SHEEN_ROUGHNESSMAP
2622	vSheenRoughnessMapUv = ( sheenRoughnessMapTransform * vec3( SHEEN_ROUGHNESSMAP_UV, 1 ) ).xy;
2623#endif
2624#ifdef USE_SPECULARMAP
2625	vSpecularMapUv = ( specularMapTransform * vec3( SPECULARMAP_UV, 1 ) ).xy;
2626#endif
2627#ifdef USE_SPECULAR_COLORMAP
2628	vSpecularColorMapUv = ( specularColorMapTransform * vec3( SPECULAR_COLORMAP_UV, 1 ) ).xy;
2629#endif
2630#ifdef USE_SPECULAR_INTENSITYMAP
2631	vSpecularIntensityMapUv = ( specularIntensityMapTransform * vec3( SPECULAR_INTENSITYMAP_UV, 1 ) ).xy;
2632#endif
2633#ifdef USE_TRANSMISSIONMAP
2634	vTransmissionMapUv = ( transmissionMapTransform * vec3( TRANSMISSIONMAP_UV, 1 ) ).xy;
2635#endif
2636#ifdef USE_THICKNESSMAP
2637	vThicknessMapUv = ( thicknessMapTransform * vec3( THICKNESSMAP_UV, 1 ) ).xy;
2638#endif`,K3e=`#if defined( USE_ENVMAP ) || defined( DISTANCE ) || defined ( USE_SHADOWMAP ) || defined ( USE_TRANSMISSION ) || NUM_SPOT_LIGHT_COORDS > 0
2639	vec4 worldPosition = vec4( transformed, 1.0 );
2640	#ifdef USE_INSTANCING
2641		worldPosition = instanceMatrix * worldPosition;
2642	#endif
2643	worldPosition = modelMatrix * worldPosition;
2644#endif`;const Z3e=`varying vec2 vUv;
2645uniform mat3 uvTransform;
2646void main() {
2647	vUv = ( uvTransform * vec3( uv, 1 ) ).xy;
2648	gl_Position = vec4( position.xy, 1.0, 1.0 );
2649}`,Q3e=`uniform sampler2D t2D;
2650uniform float backgroundIntensity;
2651varying vec2 vUv;
2652void main() {
2653	vec4 texColor = texture2D( t2D, vUv );
2654	texColor.rgb *= backgroundIntensity;
2655	gl_FragColor = texColor;
2656	#include <tonemapping_fragment>
2657	#include <colorspace_fragment>
2658}`,J3e=`varying vec3 vWorldDirection;
2659#include <common>
2660void main() {
2661	vWorldDirection = transformDirection( position, modelMatrix );
2662	#include <begin_vertex>
2663	#include <project_vertex>
2664	gl_Position.z = gl_Position.w;
2665}`,ePe=`#ifdef ENVMAP_TYPE_CUBE
2666	uniform samplerCube envMap;
2667#elif defined( ENVMAP_TYPE_CUBE_UV )
2668	uniform sampler2D envMap;
2669#endif
2670uniform float flipEnvMap;
2671uniform float backgroundBlurriness;
2672uniform float backgroundIntensity;
2673varying vec3 vWorldDirection;
2674#include <cube_uv_reflection_fragment>
2675void main() {
2676	#ifdef ENVMAP_TYPE_CUBE
2677		vec4 texColor = textureCube( envMap, vec3( flipEnvMap * vWorldDirection.x, vWorldDirection.yz ) );
2678	#elif defined( ENVMAP_TYPE_CUBE_UV )
2679		vec4 texColor = textureCubeUV( envMap, vWorldDirection, backgroundBlurriness );
2680	#else
2681		vec4 texColor = vec4( 0.0, 0.0, 0.0, 1.0 );
2682	#endif
2683	texColor.rgb *= backgroundIntensity;
2684	gl_FragColor = texColor;
2685	#include <tonemapping_fragment>
2686	#include <colorspace_fragment>
2687}`,tPe=`varying vec3 vWorldDirection;
2688#include <common>
2689void main() {
2690	vWorldDirection = transformDirection( position, modelMatrix );
2691	#include <begin_vertex>
2692	#include <project_vertex>
2693	gl_Position.z = gl_Position.w;
2694}`,nPe=`uniform samplerCube tCube;
2695uniform float tFlip;
2696uniform float opacity;
2697varying vec3 vWorldDirection;
2698void main() {
2699	vec4 texColor = textureCube( tCube, vec3( tFlip * vWorldDirection.x, vWorldDirection.yz ) );
2700	gl_FragColor = texColor;
2701	gl_FragColor.a *= opacity;
2702	#include <tonemapping_fragment>
2703	#include <colorspace_fragment>
2704}`,iPe=`#include <common>
2705#include <uv_pars_vertex>
2706#include <displacementmap_pars_vertex>
2707#include <morphtarget_pars_vertex>
2708#include <skinning_pars_vertex>
2709#include <logdepthbuf_pars_vertex>
2710#include <clipping_planes_pars_vertex>
2711varying vec2 vHighPrecisionZW;
2712void main() {
2713	#include <uv_vertex>
2714	#include <skinbase_vertex>
2715	#ifdef USE_DISPLACEMENTMAP
2716		#include <beginnormal_vertex>
2717		#include <morphnormal_vertex>
2718		#include <skinnormal_vertex>
2719	#endif
2720	#include <begin_vertex>
2721	#include <morphtarget_vertex>
2722	#include <skinning_vertex>
2723	#include <displacementmap_vertex>
2724	#include <project_vertex>
2725	#include <logdepthbuf_vertex>
2726	#include <clipping_planes_vertex>
2727	vHighPrecisionZW = gl_Position.zw;
2728}`,rPe=`#if DEPTH_PACKING == 3200
2729	uniform float opacity;
2730#endif
2731#include <common>
2732#include <packing>
2733#include <uv_pars_fragment>
2734#include <map_pars_fragment>
2735#include <alphamap_pars_fragment>
2736#include <alphatest_pars_fragment>
2737#include <alphahash_pars_fragment>
2738#include <logdepthbuf_pars_fragment>
2739#include <clipping_planes_pars_fragment>
2740varying vec2 vHighPrecisionZW;
2741void main() {
2742	#include <clipping_planes_fragment>
2743	vec4 diffuseColor = vec4( 1.0 );
2744	#if DEPTH_PACKING == 3200
2745		diffuseColor.a = opacity;
2746	#endif
2747	#include <map_fragment>
2748	#include <alphamap_fragment>
2749	#include <alphatest_fragment>
2750	#include <alphahash_fragment>
2751	#include <logdepthbuf_fragment>
2752	float fragCoordZ = 0.5 * vHighPrecisionZW[0] / vHighPrecisionZW[1] + 0.5;
2753	#if DEPTH_PACKING == 3200
2754		gl_FragColor = vec4( vec3( 1.0 - fragCoordZ ), opacity );
2755	#elif DEPTH_PACKING == 3201
2756		gl_FragColor = packDepthToRGBA( fragCoordZ );
2757	#endif
2758}`,sPe=`#define DISTANCE
2759varying vec3 vWorldPosition;
2760#include <common>
2761#include <uv_pars_vertex>
2762#include <displacementmap_pars_vertex>
2763#include <morphtarget_pars_vertex>
2764#include <skinning_pars_vertex>
2765#include <clipping_planes_pars_vertex>
2766void main() {
2767	#include <uv_vertex>
2768	#include <skinbase_vertex>
2769	#ifdef USE_DISPLACEMENTMAP
2770		#include <beginnormal_vertex>
2771		#include <morphnormal_vertex>
2772		#include <skinnormal_vertex>
2773	#endif
2774	#include <begin_vertex>
2775	#include <morphtarget_vertex>
2776	#include <skinning_vertex>
2777	#include <displacementmap_vertex>
2778	#include <project_vertex>
2779	#include <worldpos_vertex>
2780	#include <clipping_planes_vertex>
2781	vWorldPosition = worldPosition.xyz;
2782}`,aPe=`#define DISTANCE
2783uniform vec3 referencePosition;
2784uniform float nearDistance;
2785uniform float farDistance;
2786varying vec3 vWorldPosition;
2787#include <common>
2788#include <packing>
2789#include <uv_pars_fragment>
2790#include <map_pars_fragment>
2791#include <alphamap_pars_fragment>
2792#include <alphatest_pars_fragment>
2793#include <alphahash_pars_fragment>
2794#include <clipping_planes_pars_fragment>
2795void main () {
2796	#include <clipping_planes_fragment>
2797	vec4 diffuseColor = vec4( 1.0 );
2798	#include <map_fragment>
2799	#include <alphamap_fragment>
2800	#include <alphatest_fragment>
2801	#include <alphahash_fragment>
2802	float dist = length( vWorldPosition - referencePosition );
2803	dist = ( dist - nearDistance ) / ( farDistance - nearDistance );
2804	dist = saturate( dist );
2805	gl_FragColor = packDepthToRGBA( dist );
2806}`,oPe=`varying vec3 vWorldDirection;
2807#include <common>
2808void main() {
2809	vWorldDirection = transformDirection( position, modelMatrix );
2810	#include <begin_vertex>
2811	#include <project_vertex>
2812}`,lPe=`uniform sampler2D tEquirect;
2813varying vec3 vWorldDirection;
2814#include <common>
2815void main() {
2816	vec3 direction = normalize( vWorldDirection );
2817	vec2 sampleUV = equirectUv( direction );
2818	gl_FragColor = texture2D( tEquirect, sampleUV );
2819	#include <tonemapping_fragment>
2820	#include <colorspace_fragment>
2821}`,uPe=`uniform float scale;
2822attribute float lineDistance;
2823varying float vLineDistance;
2824#include <common>
2825#include <uv_pars_vertex>
2826#include <color_pars_vertex>
2827#include <fog_pars_vertex>
2828#include <morphtarget_pars_vertex>
2829#include <logdepthbuf_pars_vertex>
2830#include <clipping_planes_pars_vertex>
2831void main() {
2832	vLineDistance = scale * lineDistance;
2833	#include <uv_vertex>
2834	#include <color_vertex>
2835	#include <morphcolor_vertex>
2836	#include <begin_vertex>
2837	#include <morphtarget_vertex>
2838	#include <project_vertex>
2839	#include <logdepthbuf_vertex>
2840	#include <clipping_planes_vertex>
2841	#include <fog_vertex>
2842}`,cPe=`uniform vec3 diffuse;
2843uniform float opacity;
2844uniform float dashSize;
2845uniform float totalSize;
2846varying float vLineDistance;
2847#include <common>
2848#include <color_pars_fragment>
2849#include <uv_pars_fragment>
2850#include <map_pars_fragment>
2851#include <fog_pars_fragment>
2852#include <logdepthbuf_pars_fragment>
2853#include <clipping_planes_pars_fragment>
2854void main() {
2855	#include <clipping_planes_fragment>
2856	if ( mod( vLineDistance, totalSize ) > dashSize ) {
2857		discard;
2858	}
2859	vec3 outgoingLight = vec3( 0.0 );
2860	vec4 diffuseColor = vec4( diffuse, opacity );
2861	#include <logdepthbuf_fragment>
2862	#include <map_fragment>
2863	#include <color_fragment>
2864	outgoingLight = diffuseColor.rgb;
2865	#include <opaque_fragment>
2866	#include <tonemapping_fragment>
2867	#include <colorspace_fragment>
2868	#include <fog_fragment>
2869	#include <premultiplied_alpha_fragment>
2870}`,fPe=`#include <common>
2871#include <uv_pars_vertex>
2872#include <envmap_pars_vertex>
2873#include <color_pars_vertex>
2874#include <fog_pars_vertex>
2875#include <morphtarget_pars_vertex>
2876#include <skinning_pars_vertex>
2877#include <logdepthbuf_pars_vertex>
2878#include <clipping_planes_pars_vertex>
2879void main() {
2880	#include <uv_vertex>
2881	#include <color_vertex>
2882	#include <morphcolor_vertex>
2883	#if defined ( USE_ENVMAP ) || defined ( USE_SKINNING )
2884		#include <beginnormal_vertex>
2885		#include <morphnormal_vertex>
2886		#include <skinbase_vertex>
2887		#include <skinnormal_vertex>
2888		#include <defaultnormal_vertex>
2889	#endif
2890	#include <begin_vertex>
2891	#include <morphtarget_vertex>
2892	#include <skinning_vertex>
2893	#include <project_vertex>
2894	#include <logdepthbuf_vertex>
2895	#include <clipping_planes_vertex>
2896	#include <worldpos_vertex>
2897	#include <envmap_vertex>
2898	#include <fog_vertex>
2899}`,dPe=`uniform vec3 diffuse;
2900uniform float opacity;
2901#ifndef FLAT_SHADED
2902	varying vec3 vNormal;
2903#endif
2904#include <common>
2905#include <dithering_pars_fragment>
2906#include <color_pars_fragment>
2907#include <uv_pars_fragment>
2908#include <map_pars_fragment>
2909#include <alphamap_pars_fragment>
2910#include <alphatest_pars_fragment>
2911#include <alphahash_pars_fragment>
2912#include <aomap_pars_fragment>
2913#include <lightmap_pars_fragment>
2914#include <envmap_common_pars_fragment>
2915#include <envmap_pars_fragment>
2916#include <fog_pars_fragment>
2917#include <specularmap_pars_fragment>
2918#include <logdepthbuf_pars_fragment>
2919#include <clipping_planes_pars_fragment>
2920void main() {
2921	#include <clipping_planes_fragment>
2922	vec4 diffuseColor = vec4( diffuse, opacity );
2923	#include <logdepthbuf_fragment>
2924	#include <map_fragment>
2925	#include <color_fragment>
2926	#include <alphamap_fragment>
2927	#include <alphatest_fragment>
2928	#include <alphahash_fragment>
2929	#include <specularmap_fragment>
2930	ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );
2931	#ifdef USE_LIGHTMAP
2932		vec4 lightMapTexel = texture2D( lightMap, vLightMapUv );
2933		reflectedLight.indirectDiffuse += lightMapTexel.rgb * lightMapIntensity * RECIPROCAL_PI;
2934	#else
2935		reflectedLight.indirectDiffuse += vec3( 1.0 );
2936	#endif
2937	#include <aomap_fragment>
2938	reflectedLight.indirectDiffuse *= diffuseColor.rgb;
2939	vec3 outgoingLight = reflectedLight.indirectDiffuse;
2940	#include <envmap_fragment>
2941	#include <opaque_fragment>
2942	#include <tonemapping_fragment>
2943	#include <colorspace_fragment>
2944	#include <fog_fragment>
2945	#include <premultiplied_alpha_fragment>
2946	#include <dithering_fragment>
2947}`,hPe=`#define LAMBERT
2948varying vec3 vViewPosition;
2949#include <common>
2950#include <uv_pars_vertex>
2951#include <displacementmap_pars_vertex>
2952#include <envmap_pars_vertex>
2953#include <color_pars_vertex>
2954#include <fog_pars_vertex>
2955#include <normal_pars_vertex>
2956#include <morphtarget_pars_vertex>
2957#include <skinning_pars_vertex>
2958#include <shadowmap_pars_vertex>
2959#include <logdepthbuf_pars_vertex>
2960#include <clipping_planes_pars_vertex>
2961void main() {
2962	#include <uv_vertex>
2963	#include <color_vertex>
2964	#include <morphcolor_vertex>
2965	#include <beginnormal_vertex>
2966	#include <morphnormal_vertex>
2967	#include <skinbase_vertex>
2968	#include <skinnormal_vertex>
2969	#include <defaultnormal_vertex>
2970	#include <normal_vertex>
2971	#include <begin_vertex>
2972	#include <morphtarget_vertex>
2973	#include <skinning_vertex>
2974	#include <displacementmap_vertex>
2975	#include <project_vertex>
2976	#include <logdepthbuf_vertex>
2977	#include <clipping_planes_vertex>
2978	vViewPosition = - mvPosition.xyz;
2979	#include <worldpos_vertex>
2980	#include <envmap_vertex>
2981	#include <shadowmap_vertex>
2982	#include <fog_vertex>
2983}`,pPe=`#define LAMBERT
2984uniform vec3 diffuse;
2985uniform vec3 emissive;
2986uniform float opacity;
2987#include <common>
2988#include <packing>
2989#include <dithering_pars_fragment>
2990#include <color_pars_fragment>
2991#include <uv_pars_fragment>
2992#include <map_pars_fragment>
2993#include <alphamap_pars_fragment>
2994#include <alphatest_pars_fragment>
2995#include <alphahash_pars_fragment>
2996#include <aomap_pars_fragment>
2997#include <lightmap_pars_fragment>
2998#include <emissivemap_pars_fragment>
2999#include <envmap_common_pars_fragment>
3000#include <envmap_pars_fragment>
3001#include <fog_pars_fragment>
3002#include <bsdfs>
3003#include <lights_pars_begin>
3004#include <normal_pars_fragment>
3005#include <lights_lambert_pars_fragment>
3006#include <shadowmap_pars_fragment>
3007#include <bumpmap_pars_fragment>
3008#include <normalmap_pars_fragment>
3009#include <specularmap_pars_fragment>
3010#include <logdepthbuf_pars_fragment>
3011#include <clipping_planes_pars_fragment>
3012void main() {
3013	#include <clipping_planes_fragment>
3014	vec4 diffuseColor = vec4( diffuse, opacity );
3015	ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );
3016	vec3 totalEmissiveRadiance = emissive;
3017	#include <logdepthbuf_fragment>
3018	#include <map_fragment>
3019	#include <color_fragment>
3020	#include <alphamap_fragment>
3021	#include <alphatest_fragment>
3022	#include <alphahash_fragment>
3023	#include <specularmap_fragment>
3024	#include <normal_fragment_begin>
3025	#include <normal_fragment_maps>
3026	#include <emissivemap_fragment>
3027	#include <lights_lambert_fragment>
3028	#include <lights_fragment_begin>
3029	#include <lights_fragment_maps>
3030	#include <lights_fragment_end>
3031	#include <aomap_fragment>
3032	vec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + totalEmissiveRadiance;
3033	#include <envmap_fragment>
3034	#include <opaque_fragment>
3035	#include <tonemapping_fragment>
3036	#include <colorspace_fragment>
3037	#include <fog_fragment>
3038	#include <premultiplied_alpha_fragment>
3039	#include <dithering_fragment>
3040}`,mPe=`#define MATCAP
3041varying vec3 vViewPosition;
3042#include <common>
3043#include <uv_pars_vertex>
3044#include <color_pars_vertex>
3045#include <displacementmap_pars_vertex>
3046#include <fog_pars_vertex>
3047#include <normal_pars_vertex>
3048#include <morphtarget_pars_vertex>
3049#include <skinning_pars_vertex>
3050#include <logdepthbuf_pars_vertex>
3051#include <clipping_planes_pars_vertex>
3052void main() {
3053	#include <uv_vertex>
3054	#include <color_vertex>
3055	#include <morphcolor_vertex>
3056	#include <beginnormal_vertex>
3057	#include <morphnormal_vertex>
3058	#include <skinbase_vertex>
3059	#include <skinnormal_vertex>
3060	#include <defaultnormal_vertex>
3061	#include <normal_vertex>
3062	#include <begin_vertex>
3063	#include <morphtarget_vertex>
3064	#include <skinning_vertex>
3065	#include <displacementmap_vertex>
3066	#include <project_vertex>
3067	#include <logdepthbuf_vertex>
3068	#include <clipping_planes_vertex>
3069	#include <fog_vertex>
3070	vViewPosition = - mvPosition.xyz;
3071}`,gPe=`#define MATCAP
3072uniform vec3 diffuse;
3073uniform float opacity;
3074uniform sampler2D matcap;
3075varying vec3 vViewPosition;
3076#include <common>
3077#include <dithering_pars_fragment>
3078#include <color_pars_fragment>
3079#include <uv_pars_fragment>
3080#include <map_pars_fragment>
3081#include <alphamap_pars_fragment>
3082#include <alphatest_pars_fragment>
3083#include <alphahash_pars_fragment>
3084#include <fog_pars_fragment>
3085#include <normal_pars_fragment>
3086#include <bumpmap_pars_fragment>
3087#include <normalmap_pars_fragment>
3088#include <logdepthbuf_pars_fragment>
3089#include <clipping_planes_pars_fragment>
3090void main() {
3091	#include <clipping_planes_fragment>
3092	vec4 diffuseColor = vec4( diffuse, opacity );
3093	#include <logdepthbuf_fragment>
3094	#include <map_fragment>
3095	#include <color_fragment>
3096	#include <alphamap_fragment>
3097	#include <alphatest_fragment>
3098	#include <alphahash_fragment>
3099	#include <normal_fragment_begin>
3100	#include <normal_fragment_maps>
3101	vec3 viewDir = normalize( vViewPosition );
3102	vec3 x = normalize( vec3( viewDir.z, 0.0, - viewDir.x ) );
3103	vec3 y = cross( viewDir, x );
3104	vec2 uv = vec2( dot( x, normal ), dot( y, normal ) ) * 0.495 + 0.5;
3105	#ifdef USE_MATCAP
3106		vec4 matcapColor = texture2D( matcap, uv );
3107	#else
3108		vec4 matcapColor = vec4( vec3( mix( 0.2, 0.8, uv.y ) ), 1.0 );
3109	#endif
3110	vec3 outgoingLight = diffuseColor.rgb * matcapColor.rgb;
3111	#include <opaque_fragment>
3112	#include <tonemapping_fragment>
3113	#include <colorspace_fragment>
3114	#include <fog_fragment>
3115	#include <premultiplied_alpha_fragment>
3116	#include <dithering_fragment>
3117}`,_Pe=`#define NORMAL
3118#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE )
3119	varying vec3 vViewPosition;
3120#endif
3121#include <common>
3122#include <uv_pars_vertex>
3123#include <displacementmap_pars_vertex>
3124#include <normal_pars_vertex>
3125#include <morphtarget_pars_vertex>
3126#include <skinning_pars_vertex>
3127#include <logdepthbuf_pars_vertex>
3128#include <clipping_planes_pars_vertex>
3129void main() {
3130	#include <uv_vertex>
3131	#include <beginnormal_vertex>
3132	#include <morphnormal_vertex>
3133	#include <skinbase_vertex>
3134	#include <skinnormal_vertex>
3135	#include <defaultnormal_vertex>
3136	#include <normal_vertex>
3137	#include <begin_vertex>
3138	#include <morphtarget_vertex>
3139	#include <skinning_vertex>
3140	#include <displacementmap_vertex>
3141	#include <project_vertex>
3142	#include <logdepthbuf_vertex>
3143	#include <clipping_planes_vertex>
3144#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE )
3145	vViewPosition = - mvPosition.xyz;
3146#endif
3147}`,vPe=`#define NORMAL
3148uniform float opacity;
3149#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE )
3150	varying vec3 vViewPosition;
3151#endif
3152#include <packing>
3153#include <uv_pars_fragment>
3154#include <normal_pars_fragment>
3155#include <bumpmap_pars_fragment>
3156#include <normalmap_pars_fragment>
3157#include <logdepthbuf_pars_fragment>
3158#include <clipping_planes_pars_fragment>
3159void main() {
3160	#include <clipping_planes_fragment>
3161	#include <logdepthbuf_fragment>
3162	#include <normal_fragment_begin>
3163	#include <normal_fragment_maps>
3164	gl_FragColor = vec4( packNormalToRGB( normal ), opacity );
3165	#ifdef OPAQUE
3166		gl_FragColor.a = 1.0;
3167	#endif
3168}`,yPe=`#define PHONG
3169varying vec3 vViewPosition;
3170#include <common>
3171#include <uv_pars_vertex>
3172#include <displacementmap_pars_vertex>
3173#include <envmap_pars_vertex>
3174#include <color_pars_vertex>
3175#include <fog_pars_vertex>
3176#include <normal_pars_vertex>
3177#include <morphtarget_pars_vertex>
3178#include <skinning_pars_vertex>
3179#include <shadowmap_pars_vertex>
3180#include <logdepthbuf_pars_vertex>
3181#include <clipping_planes_pars_vertex>
3182void main() {
3183	#include <uv_vertex>
3184	#include <color_vertex>
3185	#include <morphcolor_vertex>
3186	#include <beginnormal_vertex>
3187	#include <morphnormal_vertex>
3188	#include <skinbase_vertex>
3189	#include <skinnormal_vertex>
3190	#include <defaultnormal_vertex>
3191	#include <normal_vertex>
3192	#include <begin_vertex>
3193	#include <morphtarget_vertex>
3194	#include <skinning_vertex>
3195	#include <displacementmap_vertex>
3196	#include <project_vertex>
3197	#include <logdepthbuf_vertex>
3198	#include <clipping_planes_vertex>
3199	vViewPosition = - mvPosition.xyz;
3200	#include <worldpos_vertex>
3201	#include <envmap_vertex>
3202	#include <shadowmap_vertex>
3203	#include <fog_vertex>
3204}`,bPe=`#define PHONG
3205uniform vec3 diffuse;
3206uniform vec3 emissive;
3207uniform vec3 specular;
3208uniform float shininess;
3209uniform float opacity;
3210#include <common>
3211#include <packing>
3212#include <dithering_pars_fragment>
3213#include <color_pars_fragment>
3214#include <uv_pars_fragment>
3215#include <map_pars_fragment>
3216#include <alphamap_pars_fragment>
3217#include <alphatest_pars_fragment>
3218#include <alphahash_pars_fragment>
3219#include <aomap_pars_fragment>
3220#include <lightmap_pars_fragment>
3221#include <emissivemap_pars_fragment>
3222#include <envmap_common_pars_fragment>
3223#include <envmap_pars_fragment>
3224#include <fog_pars_fragment>
3225#include <bsdfs>
3226#include <lights_pars_begin>
3227#include <normal_pars_fragment>
3228#include <lights_phong_pars_fragment>
3229#include <shadowmap_pars_fragment>
3230#include <bumpmap_pars_fragment>
3231#include <normalmap_pars_fragment>
3232#include <specularmap_pars_fragment>
3233#include <logdepthbuf_pars_fragment>
3234#include <clipping_planes_pars_fragment>
3235void main() {
3236	#include <clipping_planes_fragment>
3237	vec4 diffuseColor = vec4( diffuse, opacity );
3238	ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );
3239	vec3 totalEmissiveRadiance = emissive;
3240	#include <logdepthbuf_fragment>
3241	#include <map_fragment>
3242	#include <color_fragment>
3243	#include <alphamap_fragment>
3244	#include <alphatest_fragment>
3245	#include <alphahash_fragment>
3246	#include <specularmap_fragment>
3247	#include <normal_fragment_begin>
3248	#include <normal_fragment_maps>
3249	#include <emissivemap_fragment>
3250	#include <lights_phong_fragment>
3251	#include <lights_fragment_begin>
3252	#include <lights_fragment_maps>
3253	#include <lights_fragment_end>
3254	#include <aomap_fragment>
3255	vec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + reflectedLight.directSpecular + reflectedLight.indirectSpecular + totalEmissiveRadiance;
3256	#include <envmap_fragment>
3257	#include <opaque_fragment>
3258	#include <tonemapping_fragment>
3259	#include <colorspace_fragment>
3260	#include <fog_fragment>
3261	#include <premultiplied_alpha_fragment>
3262	#include <dithering_fragment>
3263}`,xPe=`#define STANDARD
3264varying vec3 vViewPosition;
3265#ifdef USE_TRANSMISSION
3266	varying vec3 vWorldPosition;
3267#endif
3268#include <common>
3269#include <uv_pars_vertex>
3270#include <displacementmap_pars_vertex>
3271#include <color_pars_vertex>
3272#include <fog_pars_vertex>
3273#include <normal_pars_vertex>
3274#include <morphtarget_pars_vertex>
3275#include <skinning_pars_vertex>
3276#include <shadowmap_pars_vertex>
3277#include <logdepthbuf_pars_vertex>
3278#include <clipping_planes_pars_vertex>
3279void main() {
3280	#include <uv_vertex>
3281	#include <color_vertex>
3282	#include <morphcolor_vertex>
3283	#include <beginnormal_vertex>
3284	#include <morphnormal_vertex>
3285	#include <skinbase_vertex>
3286	#include <skinnormal_vertex>
3287	#include <defaultnormal_vertex>
3288	#include <normal_vertex>
3289	#include <begin_vertex>
3290	#include <morphtarget_vertex>
3291	#include <skinning_vertex>
3292	#include <displacementmap_vertex>
3293	#include <project_vertex>
3294	#include <logdepthbuf_vertex>
3295	#include <clipping_planes_vertex>
3296	vViewPosition = - mvPosition.xyz;
3297	#include <worldpos_vertex>
3298	#include <shadowmap_vertex>
3299	#include <fog_vertex>
3300#ifdef USE_TRANSMISSION
3301	vWorldPosition = worldPosition.xyz;
3302#endif
3303}`,SPe=`#define STANDARD
3304#ifdef PHYSICAL
3305	#define IOR
3306	#define USE_SPECULAR
3307#endif
3308uniform vec3 diffuse;
3309uniform vec3 emissive;
3310uniform float roughness;
3311uniform float metalness;
3312uniform float opacity;
3313#ifdef IOR
3314	uniform float ior;
3315#endif
3316#ifdef USE_SPECULAR
3317	uniform float specularIntensity;
3318	uniform vec3 specularColor;
3319	#ifdef USE_SPECULAR_COLORMAP
3320		uniform sampler2D specularColorMap;
3321	#endif
3322	#ifdef USE_SPECULAR_INTENSITYMAP
3323		uniform sampler2D specularIntensityMap;
3324	#endif
3325#endif
3326#ifdef USE_CLEARCOAT
3327	uniform float clearcoat;
3328	uniform float clearcoatRoughness;
3329#endif
3330#ifdef USE_IRIDESCENCE
3331	uniform float iridescence;
3332	uniform float iridescenceIOR;
3333	uniform float iridescenceThicknessMinimum;
3334	uniform float iridescenceThicknessMaximum;
3335#endif
3336#ifdef USE_SHEEN
3337	uniform vec3 sheenColor;
3338	uniform float sheenRoughness;
3339	#ifdef USE_SHEEN_COLORMAP
3340		uniform sampler2D sheenColorMap;
3341	#endif
3342	#ifdef USE_SHEEN_ROUGHNESSMAP
3343		uniform sampler2D sheenRoughnessMap;
3344	#endif
3345#endif
3346#ifdef USE_ANISOTROPY
3347	uniform vec2 anisotropyVector;
3348	#ifdef USE_ANISOTROPYMAP
3349		uniform sampler2D anisotropyMap;
3350	#endif
3351#endif
3352varying vec3 vViewPosition;
3353#include <common>
3354#include <packing>
3355#include <dithering_pars_fragment>
3356#include <color_pars_fragment>
3357#include <uv_pars_fragment>
3358#include <map_pars_fragment>
3359#include <alphamap_pars_fragment>
3360#include <alphatest_pars_fragment>
3361#include <alphahash_pars_fragment>
3362#include <aomap_pars_fragment>
3363#include <lightmap_pars_fragment>
3364#include <emissivemap_pars_fragment>
3365#include <iridescence_fragment>
3366#include <cube_uv_reflection_fragment>
3367#include <envmap_common_pars_fragment>
3368#include <envmap_physical_pars_fragment>
3369#include <fog_pars_fragment>
3370#include <lights_pars_begin>
3371#include <normal_pars_fragment>
3372#include <lights_physical_pars_fragment>
3373#include <transmission_pars_fragment>
3374#include <shadowmap_pars_fragment>
3375#include <bumpmap_pars_fragment>
3376#include <normalmap_pars_fragment>
3377#include <clearcoat_pars_fragment>
3378#include <iridescence_pars_fragment>
3379#include <roughnessmap_pars_fragment>
3380#include <metalnessmap_pars_fragment>
3381#include <logdepthbuf_pars_fragment>
3382#include <clipping_planes_pars_fragment>
3383void main() {
3384	#include <clipping_planes_fragment>
3385	vec4 diffuseColor = vec4( diffuse, opacity );
3386	ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );
3387	vec3 totalEmissiveRadiance = emissive;
3388	#include <logdepthbuf_fragment>
3389	#include <map_fragment>
3390	#include <color_fragment>
3391	#include <alphamap_fragment>
3392	#include <alphatest_fragment>
3393	#include <alphahash_fragment>
3394	#include <roughnessmap_fragment>
3395	#include <metalnessmap_fragment>
3396	#include <normal_fragment_begin>
3397	#include <normal_fragment_maps>
3398	#include <clearcoat_normal_fragment_begin>
3399	#include <clearcoat_normal_fragment_maps>
3400	#include <emissivemap_fragment>
3401	#include <lights_physical_fragment>
3402	#include <lights_fragment_begin>
3403	#include <lights_fragment_maps>
3404	#include <lights_fragment_end>
3405	#include <aomap_fragment>
3406	vec3 totalDiffuse = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse;
3407	vec3 totalSpecular = reflectedLight.directSpecular + reflectedLight.indirectSpecular;
3408	#include <transmission_fragment>
3409	vec3 outgoingLight = totalDiffuse + totalSpecular + totalEmissiveRadiance;
3410	#ifdef USE_SHEEN
3411		float sheenEnergyComp = 1.0 - 0.157 * max3( material.sheenColor );
3412		outgoingLight = outgoingLight * sheenEnergyComp + sheenSpecular;
3413	#endif
3414	#ifdef USE_CLEARCOAT
3415		float dotNVcc = saturate( dot( geometry.clearcoatNormal, geometry.viewDir ) );
3416		vec3 Fcc = F_Schlick( material.clearcoatF0, material.clearcoatF90, dotNVcc );
3417		outgoingLight = outgoingLight * ( 1.0 - material.clearcoat * Fcc ) + clearcoatSpecular * material.clearcoat;
3418	#endif
3419	#include <opaque_fragment>
3420	#include <tonemapping_fragment>
3421	#include <colorspace_fragment>
3422	#include <fog_fragment>
3423	#include <premultiplied_alpha_fragment>
3424	#include <dithering_fragment>
3425}`,TPe=`#define TOON
3426varying vec3 vViewPosition;
3427#include <common>
3428#include <uv_pars_vertex>
3429#include <displacementmap_pars_vertex>
3430#include <color_pars_vertex>
3431#include <fog_pars_vertex>
3432#include <normal_pars_vertex>
3433#include <morphtarget_pars_vertex>
3434#include <skinning_pars_vertex>
3435#include <shadowmap_pars_vertex>
3436#include <logdepthbuf_pars_vertex>
3437#include <clipping_planes_pars_vertex>
3438void main() {
3439	#include <uv_vertex>
3440	#include <color_vertex>
3441	#include <morphcolor_vertex>
3442	#include <beginnormal_vertex>
3443	#include <morphnormal_vertex>
3444	#include <skinbase_vertex>
3445	#include <skinnormal_vertex>
3446	#include <defaultnormal_vertex>
3447	#include <normal_vertex>
3448	#include <begin_vertex>
3449	#include <morphtarget_vertex>
3450	#include <skinning_vertex>
3451	#include <displacementmap_vertex>
3452	#include <project_vertex>
3453	#include <logdepthbuf_vertex>
3454	#include <clipping_planes_vertex>
3455	vViewPosition = - mvPosition.xyz;
3456	#include <worldpos_vertex>
3457	#include <shadowmap_vertex>
3458	#include <fog_vertex>
3459}`,EPe=`#define TOON
3460uniform vec3 diffuse;
3461uniform vec3 emissive;
3462uniform float opacity;
3463#include <common>
3464#include <packing>
3465#include <dithering_pars_fragment>
3466#include <color_pars_fragment>
3467#include <uv_pars_fragment>
3468#include <map_pars_fragment>
3469#include <alphamap_pars_fragment>
3470#include <alphatest_pars_fragment>
3471#include <alphahash_pars_fragment>
3472#include <aomap_pars_fragment>
3473#include <lightmap_pars_fragment>
3474#include <emissivemap_pars_fragment>
3475#include <gradientmap_pars_fragment>
3476#include <fog_pars_fragment>
3477#include <bsdfs>
3478#include <lights_pars_begin>
3479#include <normal_pars_fragment>
3480#include <lights_toon_pars_fragment>
3481#include <shadowmap_pars_fragment>
3482#include <bumpmap_pars_fragment>
3483#include <normalmap_pars_fragment>
3484#include <logdepthbuf_pars_fragment>
3485#include <clipping_planes_pars_fragment>
3486void main() {
3487	#include <clipping_planes_fragment>
3488	vec4 diffuseColor = vec4( diffuse, opacity );
3489	ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );
3490	vec3 totalEmissiveRadiance = emissive;
3491	#include <logdepthbuf_fragment>
3492	#include <map_fragment>
3493	#include <color_fragment>
3494	#include <alphamap_fragment>
3495	#include <alphatest_fragment>
3496	#include <alphahash_fragment>
3497	#include <normal_fragment_begin>
3498	#include <normal_fragment_maps>
3499	#include <emissivemap_fragment>
3500	#include <lights_toon_fragment>
3501	#include <lights_fragment_begin>
3502	#include <lights_fragment_maps>
3503	#include <lights_fragment_end>
3504	#include <aomap_fragment>
3505	vec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + totalEmissiveRadiance;
3506	#include <opaque_fragment>
3507	#include <tonemapping_fragment>
3508	#include <colorspace_fragment>
3509	#include <fog_fragment>
3510	#include <premultiplied_alpha_fragment>
3511	#include <dithering_fragment>
3512}`,wPe=`uniform float size;
3513uniform float scale;
3514#include <common>
3515#include <color_pars_vertex>
3516#include <fog_pars_vertex>
3517#include <morphtarget_pars_vertex>
3518#include <logdepthbuf_pars_vertex>
3519#include <clipping_planes_pars_vertex>
3520#ifdef USE_POINTS_UV
3521	varying vec2 vUv;
3522	uniform mat3 uvTransform;
3523#endif
3524void main() {
3525	#ifdef USE_POINTS_UV
3526		vUv = ( uvTransform * vec3( uv, 1 ) ).xy;
3527	#endif
3528	#include <color_vertex>
3529	#include <morphcolor_vertex>
3530	#include <begin_vertex>
3531	#include <morphtarget_vertex>
3532	#include <project_vertex>
3533	gl_PointSize = size;
3534	#ifdef USE_SIZEATTENUATION
3535		bool isPerspective = isPerspectiveMatrix( projectionMatrix );
3536		if ( isPerspective ) gl_PointSize *= ( scale / - mvPosition.z );
3537	#endif
3538	#include <logdepthbuf_vertex>
3539	#include <clipping_planes_vertex>
3540	#include <worldpos_vertex>
3541	#include <fog_vertex>
3542}`,CPe=`uniform vec3 diffuse;
3543uniform float opacity;
3544#include <common>
3545#include <color_pars_fragment>
3546#include <map_particle_pars_fragment>
3547#include <alphatest_pars_fragment>
3548#include <alphahash_pars_fragment>
3549#include <fog_pars_fragment>
3550#include <logdepthbuf_pars_fragment>
3551#include <clipping_planes_pars_fragment>
3552void main() {
3553	#include <clipping_planes_fragment>
3554	vec3 outgoingLight = vec3( 0.0 );
3555	vec4 diffuseColor = vec4( diffuse, opacity );
3556	#include <logdepthbuf_fragment>
3557	#include <map_particle_fragment>
3558	#include <color_fragment>
3559	#include <alphatest_fragment>
3560	#include <alphahash_fragment>
3561	outgoingLight = diffuseColor.rgb;
3562	#include <opaque_fragment>
3563	#include <tonemapping_fragment>
3564	#include <colorspace_fragment>
3565	#include <fog_fragment>
3566	#include <premultiplied_alpha_fragment>
3567}`,APe=`#include <common>
3568#include <fog_pars_vertex>
3569#include <morphtarget_pars_vertex>
3570#include <skinning_pars_vertex>
3571#include <logdepthbuf_pars_vertex>
3572#include <shadowmap_pars_vertex>
3573void main() {
3574	#include <beginnormal_vertex>
3575	#include <morphnormal_vertex>
3576	#include <skinbase_vertex>
3577	#include <skinnormal_vertex>
3578	#include <defaultnormal_vertex>
3579	#include <begin_vertex>
3580	#include <morphtarget_vertex>
3581	#include <skinning_vertex>
3582	#include <project_vertex>
3583	#include <logdepthbuf_vertex>
3584	#include <worldpos_vertex>
3585	#include <shadowmap_vertex>
3586	#include <fog_vertex>
3587}`,MPe=`uniform vec3 color;
3588uniform float opacity;
3589#include <common>
3590#include <packing>
3591#include <fog_pars_fragment>
3592#include <bsdfs>
3593#include <lights_pars_begin>
3594#include <logdepthbuf_pars_fragment>
3595#include <shadowmap_pars_fragment>
3596#include <shadowmask_pars_fragment>
3597void main() {
3598	#include <logdepthbuf_fragment>
3599	gl_FragColor = vec4( color, opacity * ( 1.0 - getShadowMask() ) );
3600	#include <tonemapping_fragment>
3601	#include <colorspace_fragment>
3602	#include <fog_fragment>
3603}`,DPe=`uniform float rotation;
3604uniform vec2 center;
3605#include <common>
3606#include <uv_pars_vertex>
3607#include <fog_pars_vertex>
3608#include <logdepthbuf_pars_vertex>
3609#include <clipping_planes_pars_vertex>
3610void main() {
3611	#include <uv_vertex>
3612	vec4 mvPosition = modelViewMatrix * vec4( 0.0, 0.0, 0.0, 1.0 );
3613	vec2 scale;
3614	scale.x = length( vec3( modelMatrix[ 0 ].x, modelMatrix[ 0 ].y, modelMatrix[ 0 ].z ) );
3615	scale.y = length( vec3( modelMatrix[ 1 ].x, modelMatrix[ 1 ].y, modelMatrix[ 1 ].z ) );
3616	#ifndef USE_SIZEATTENUATION
3617		bool isPerspective = isPerspectiveMatrix( projectionMatrix );
3618		if ( isPerspective ) scale *= - mvPosition.z;
3619	#endif
3620	vec2 alignedPosition = ( position.xy - ( center - vec2( 0.5 ) ) ) * scale;
3621	vec2 rotatedPosition;
3622	rotatedPosition.x = cos( rotation ) * alignedPosition.x - sin( rotation ) * alignedPosition.y;
3623	rotatedPosition.y = sin( rotation ) * alignedPosition.x + cos( rotation ) * alignedPosition.y;
3624	mvPosition.xy += rotatedPosition;
3625	gl_Position = projectionMatrix * mvPosition;
3626	#include <logdepthbuf_vertex>
3627	#include <clipping_planes_vertex>
3628	#include <fog_vertex>
3629}`,PPe=`uniform vec3 diffuse;
3630uniform float opacity;
3631#include <common>
3632#include <uv_pars_fragment>
3633#include <map_pars_fragment>
3634#include <alphamap_pars_fragment>
3635#include <alphatest_pars_fragment>
3636#include <alphahash_pars_fragment>
3637#include <fog_pars_fragment>
3638#include <logdepthbuf_pars_fragment>
3639#include <clipping_planes_pars_fragment>
3640void main() {
3641	#include <clipping_planes_fragment>
3642	vec3 outgoingLight = vec3( 0.0 );
3643	vec4 diffuseColor = vec4( diffuse, opacity );
3644	#include <logdepthbuf_fragment>
3645	#include <map_fragment>
3646	#include <alphamap_fragment>
3647	#include <alphatest_fragment>
3648	#include <alphahash_fragment>
3649	outgoingLight = diffuseColor.rgb;
3650	#include <opaque_fragment>
3651	#include <tonemapping_fragment>
3652	#include <colorspace_fragment>
3653	#include <fog_fragment>
3654}`,on={alphahash_fragment:eDe,alphahash_pars_fragment:tDe,alphamap_fragment:nDe,alphamap_pars_fragment:iDe,alphatest_fragment:rDe,alphatest_pars_fragment:sDe,aomap_fragment:aDe,aomap_pars_fragment:oDe,begin_vertex:lDe,beginnormal_vertex:uDe,bsdfs:cDe,iridescence_fragment:fDe,bumpmap_pars_fragment:dDe,clipping_planes_fragment:hDe,clipping_planes_pars_fragment:pDe,clipping_planes_pars_vertex:mDe,clipping_planes_vertex:gDe,color_fragment:_De,color_pars_fragment:vDe,color_pars_vertex:yDe,color_vertex:bDe,common:xDe,cube_uv_reflection_fragment:SDe,defaultnormal_vertex:TDe,displacementmap_pars_vertex:EDe,displacementmap_vertex:wDe,emissivemap_fragment:CDe,emissivemap_pars_fragment:ADe,colorspace_fragment:MDe,colorspace_pars_fragment:DDe,envmap_fragment:PDe,envmap_common_pars_fragment:ODe,envmap_pars_fragment:RDe,envmap_pars_vertex:kDe,envmap_physical_pars_fragment:GDe,envmap_vertex:I
vendor: 6,525 bytes, line 3654
3654De,fog_vertex:LDe,fog_pars_vertex:FDe,fog_fragment:NDe,fog_pars_fragment:BDe,gradientmap_pars_fragment:UDe,lightmap_fragment:$De,lightmap_pars_fragment:zDe,lights_lambert_fragment:HDe,lights_lambert_pars_fragment:VDe,lights_pars_begin:WDe,lights_toon_fragment:jDe,lights_toon_pars_fragment:qDe,lights_phong_fragment:XDe,lights_phong_pars_fragment:YDe,lights_physical_fragment:KDe,lights_physical_pars_fragment:ZDe,lights_fragment_begin:QDe,lights_fragment_maps:JDe,lights_fragment_end:e3e,logdepthbuf_fragment:t3e,logdepthbuf_pars_fragment:n3e,logdepthbuf_pars_vertex:i3e,logdepthbuf_vertex:r3e,map_fragment:s3e,map_pars_fragment:a3e,map_particle_fragment:o3e,map_particle_pars_fragment:l3e,metalnessmap_fragment:u3e,metalnessmap_pars_fragment:c3e,morphcolor_vertex:f3e,morphnormal_vertex:d3e,morphtarget_pars_vertex:h3e,morphtarget_vertex:p3e,normal_fragment_begin:m3e,normal_fragment_maps:g3e,normal_pars_fragment:_3e,normal_pars_vertex:v3e,normal_vertex:y3e,normalmap_pars_fragment:b3e,clearcoat_normal_fragment_begin:x3e,clearcoat_normal_fragment_maps:S3e,clearcoat_pars_fragment:T3e,iridescence_pars_fragment:E3e,opaque_fragment:w3e,packing:C3e,premultiplied_alpha_fragment:A3e,project_vertex:M3e,dithering_fragment:D3e,dithering_pars_fragment:P3e,roughnessmap_fragment:O3e,roughnessmap_pars_fragment:R3e,shadowmap_pars_fragment:k3e,shadowmap_pars_vertex:I3e,shadowmap_vertex:L3e,shadowmask_pars_fragment:F3e,skinbase_vertex:N3e,skinning_pars_vertex:B3e,skinning_vertex:U3e,skinnormal_vertex:$3e,specularmap_fragment:z3e,specularmap_pars_fragment:H3e,tonemapping_fragment:V3e,tonemapping_pars_fragment:W3e,transmission_fragment:G3e,transmission_pars_fragment:j3e,uv_pars_fragment:q3e,uv_pars_vertex:X3e,uv_vertex:Y3e,worldpos_vertex:K3e,background_vert:Z3e,background_frag:Q3e,backgroundCube_vert:J3e,backgroundCube_frag:ePe,cube_vert:tPe,cube_frag:nPe,depth_vert:iPe,depth_frag:rPe,distanceRGBA_vert:sPe,distanceRGBA_frag:aPe,equirect_vert:oPe,equirect_frag:lPe,linedashed_vert:uPe,linedashed_frag:cPe,meshbasic_vert:fPe,meshbasic_frag:dPe,meshlambert_vert:hPe,meshlambert_frag:pPe,meshmatcap_vert:mPe,meshmatcap_frag:gPe,meshnormal_vert:_Pe,meshnormal_frag:vPe,meshphong_vert:yPe,meshphong_frag:bPe,meshphysical_vert:xPe,meshphysical_frag:SPe,meshtoon_vert:TPe,meshtoon_frag:EPe,points_vert:wPe,points_frag:CPe,shadow_vert:APe,shadow_frag:MPe,sprite_vert:DPe,sprite_frag:PPe},pt={common:{diffuse:{value:new ri(16777215)},opacity:{value:1},map:{value:null},mapTransform:{value:new mn},alphaMap:{value:null},alphaMapTransform:{value:new mn},alphaTest:{value:0}},specularmap:{specularMap:{value:null},specularMapTransform:{value:new mn}},envmap:{envMap:{value:null},flipEnvMap:{value:-1},reflectivity:{value:1},ior:{value:1.5},refractionRatio:{value:.98}},aomap:{aoMap:{value:null},aoMapIntensity:{value:1},aoMapTransform:{value:new mn}},lightmap:{lightMap:{value:null},lightMapIntensity:{value:1},lightMapTransform:{value:new mn}},bumpmap:{bumpMap:{value:null},bumpMapTransform:{value:new mn},bumpScale:{value:1}},normalmap:{normalMap:{value:null},normalMapTransform:{value:new mn},normalScale:{value:new Xt(1,1)}},displacementmap:{displacementMap:{value:null},displacementMapTransform:{value:new mn},displacementScale:{value:1},displacementBias:{value:0}},emissivemap:{emissiveMap:{value:null},emissiveMapTransform:{value:new mn}},metalnessmap:{metalnessMap:{value:null},metalnessMapTransform:{value:new mn}},roughnessmap:{roughnessMap:{value:null},roughnessMapTransform:{value:new mn}},gradientmap:{gradientMap:{value:null}},fog:{fogDensity:{value:25e-5},fogNear:{value:1},fogFar:{value:2e3},fogColor:{value:new ri(16777215)}},lights:{ambientLightColor:{value:[]},lightProbe:{value:[]},directionalLights:{value:[],properties:{direction:{},color:{}}},directionalLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},directionalShadowMap:{value:[]},directionalShadowMatrix:{value:[]},spotLights:{value:[],properties:{color:{},position:{},direction:{},distance:{},coneCos:{},penumbraCos:{},decay:{}}},spotLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},spotLightMap:{value:[]},spotShadowMap:{value:[]},spotLightMatrix:{value:[]},pointLights:{value:[],properties:{color:{},position:{},decay:{},distance:{}}},pointLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{},shadowCameraNear:{},shadowCameraFar:{}}},pointShadowMap:{value:[]},pointShadowMatrix:{value:[]},hemisphereLights:{value:[],properties:{direction:{},skyColor:{},groundColor:{}}},rectAreaLights:{value:[],properties:{color:{},position:{},width:{},height:{}}},ltc_1:{value:null},ltc_2:{value:null}},points:{diffuse:{value:new ri(16777215)},opacity:{value:1},size:{value:1},scale:{value:1},map:{value:null},alphaMap:{value:null},alphaMapTransform:{value:new mn},alphaTest:{value:0},uvTransform:{value:new mn}},sprite:{diffuse:{value:new ri(16777215)},opacity:{value:1},center:{value:new Xt(.5,.5)},rotation:{value:0},map:{value:null},mapTransform:{value:new mn},alphaMap:{value:null},alphaMapTransform:{value:new mn},alphaTest:{value:0}}},$l={basic:{uniforms:_s([pt.common,pt.specularmap,pt.envmap,pt.aomap,pt.lightmap,pt.fog]),vertexShader:on.meshbasic_vert,fragmentShader:on.meshbasic_frag},lambert:{uniforms:_s([pt.common,pt.specularmap,pt.envmap,pt.aomap,pt.lightmap,pt.emissivemap,pt.bumpmap,pt.normalmap,pt.displacementmap,pt.fog,pt.lights,{emissive:{value:new ri(0)}}]),vertexShader:on.meshlambert_vert,fragmentShader:on.meshlambert_frag},phong:{uniforms:_s([pt.common,pt.specularmap,pt.envmap,pt.aomap,pt.lightmap,pt.emissivemap,pt.bumpmap,pt.normalmap,pt.displacementmap,pt.fog,pt.lights,{emissive:{value:new ri(0)},specular:{value:new ri(1118481)},shininess:{value:30}}]),vertexShader:on.meshphong_vert,fragmentShader:on.meshphong_frag},standard:{uniforms:_s([pt.common,pt.envmap,pt.aomap,pt.lightmap,pt.emissivemap,pt.bumpmap,pt.normalmap,pt.displacementmap,pt.roughnessmap,pt.metalnessmap,pt.fog,pt.lights,{emissive:{value:new ri(0)},roughness:{value:1},metalness:{value:0},envMapIntensity:{value:1}}]),vertexShader:on.meshphysical_vert,fragmentShader:on.meshphysical_frag},toon:{uniforms:_s([pt.common,pt.aomap,pt.lightmap,pt.emissivemap,pt.bumpmap,pt.normalmap,pt.displacementmap,pt.gradientmap,pt.fog,pt.lights,{emissive:{value:new ri(0)}}]),vertexShader:on.meshtoon_vert,fragmentShader:on.meshtoon_frag},matcap:{uniforms:_s([pt.common,pt.bumpmap,pt.normalmap,pt.displacementmap,pt.fog,{matc
vendor: 2,836 bytes, line 3654
3654ap:{value:null}}]),vertexShader:on.meshmatcap_vert,fragmentShader:on.meshmatcap_frag},points:{uniforms:_s([pt.points,pt.fog]),vertexShader:on.points_vert,fragmentShader:on.points_frag},dashed:{uniforms:_s([pt.common,pt.fog,{scale:{value:1},dashSize:{value:1},totalSize:{value:2}}]),vertexShader:on.linedashed_vert,fragmentShader:on.linedashed_frag},depth:{uniforms:_s([pt.common,pt.displacementmap]),vertexShader:on.depth_vert,fragmentShader:on.depth_frag},normal:{uniforms:_s([pt.common,pt.bumpmap,pt.normalmap,pt.displacementmap,{opacity:{value:1}}]),vertexShader:on.meshnormal_vert,fragmentShader:on.meshnormal_frag},sprite:{uniforms:_s([pt.sprite,pt.fog]),vertexShader:on.sprite_vert,fragmentShader:on.sprite_frag},background:{uniforms:{uvTransform:{value:new mn},t2D:{value:null},backgroundIntensity:{value:1}},vertexShader:on.background_vert,fragmentShader:on.background_frag},backgroundCube:{uniforms:{envMap:{value:null},flipEnvMap:{value:-1},backgroundBlurriness:{value:0},backgroundIntensity:{value:1}},vertexShader:on.backgroundCube_vert,fragmentShader:on.backgroundCube_frag},cube:{uniforms:{tCube:{value:null},tFlip:{value:-1},opacity:{value:1}},vertexShader:on.cube_vert,fragmentShader:on.cube_frag},equirect:{uniforms:{tEquirect:{value:null}},vertexShader:on.equirect_vert,fragmentShader:on.equirect_frag},distanceRGBA:{uniforms:_s([pt.common,pt.displacementmap,{referencePosition:{value:new Ie},nearDistance:{value:1},farDistance:{value:1e3}}]),vertexShader:on.distanceRGBA_vert,fragmentShader:on.distanceRGBA_frag},shadow:{uniforms:_s([pt.lights,pt.fog,{color:{value:new ri(0)},opacity:{value:1}}]),vertexShader:on.shadow_vert,fragmentShader:on.shadow_frag}};$l.physical={uniforms:_s([$l.standard.uniforms,{clearcoat:{value:0},clearcoatMap:{value:null},clearcoatMapTransform:{value:new mn},clearcoatNormalMap:{value:null},clearcoatNormalMapTransform:{value:new mn},clearcoatNormalScale:{value:new Xt(1,1)},clearcoatRoughness:{value:0},clearcoatRoughnessMap:{value:null},clearcoatRoughnessMapTransform:{value:new mn},iridescence:{value:0},iridescenceMap:{value:null},iridescenceMapTransform:{value:new mn},iridescenceIOR:{value:1.3},iridescenceThicknessMinimum:{value:100},iridescenceThicknessMaximum:{value:400},iridescenceThicknessMap:{value:null},iridescenceThicknessMapTransform:{value:new mn},sheen:{value:0},sheenColor:{value:new ri(0)},sheenColorMap:{value:null},sheenColorMapTransform:{value:new mn},sheenRoughness:{value:1},sheenRoughnessMap:{value:null},sheenRoughnessMapTransform:{value:new mn},transmission:{value:0},transmissionMap:{value:null},transmissionMapTransform:{value:new mn},transmissionSamplerSize:{value:new Xt},transmissionSamplerMap:{value:null},thickness:{value:0},thicknessMap:{value:null},thicknessMapTransform:{value:new mn},attenuationDistance:{value:0},attenuationColor:{value:new ri(0)}
vendor: 12,292 bytes, line 3654
3654,specularColor:{value:new ri(1,1,1)},specularColorMap:{value:null},specularColorMapTransform:{value:new mn},specularIntensity:{value:1},specularIntensityMap:{value:null},specularIntensityMapTransform:{value:new mn},anisotropyVector:{value:new Xt},anisotropyMap:{value:null},anisotropyMapTransform:{value:new mn}}]),vertexShader:on.meshphysical_vert,fragmentShader:on.meshphysical_frag};const TS={r:0,b:0,g:0};function OPe(t,e,n,i,r,s,a){const o=new ri(0);let l=s===!0?0:1,u,c,f=null,h=0,p=null;function m(v,_){let b=!1,x=_.isScene===!0?_.background:null;switch(x&&x.isTexture&&(x=(_.backgroundBlurriness>0?n:e).get(x)),x===null?y(o,l):x&&x.isColor&&(y(x,1),b=!0),t.xr.getEnvironmentBlendMode()){case"opaque":b=!0;break;case"additive":i.buffers.color.setClear(0,0,0,1,a),b=!0;break;case"alpha-blend":i.buffers.color.setClear(0,0,0,0,a),b=!0;break}(t.autoClear||b)&&t.clear(t.autoClearColor,t.autoClearDepth,t.autoClearStencil),x&&(x.isCubeTexture||x.mapping===Zw)?(c===void 0&&(c=new Hf(new e1(1,1,1),new mp({name:"BackgroundCubeMaterial",uniforms:Cg($l.backgroundCube.uniforms),vertexShader:$l.backgroundCube.vertexShader,fragmentShader:$l.backgroundCube.fragmentShader,side:sa,depthTest:!1,depthWrite:!1,fog:!1})),c.geometry.deleteAttribute("normal"),c.geometry.deleteAttribute("uv"),c.onBeforeRender=function(C,D,R){this.matrixWorld.copyPosition(R.matrixWorld)},Object.defineProperty(c.material,"envMap",{get:function(){return this.uniforms.envMap.value}}),r.update(c)),c.material.uniforms.envMap.value=x,c.material.uniforms.flipEnvMap.value=x.isCubeTexture&&x.isRenderTargetTexture===!1?-1:1,c.material.uniforms.backgroundBlurriness.value=_.backgroundBlurriness,c.material.uniforms.backgroundIntensity.value=_.backgroundIntensity,c.material.toneMapped=x.colorSpace!==ln,(f!==x||h!==x.version||p!==t.toneMapping)&&(c.material.needsUpdate=!0,f=x,h=x.version,p=t.toneMapping),c.layers.enableAll(),v.unshift(c,c.geometry,c.material,0,0,null)):x&&x.isTexture&&(u===void 0&&(u=new Hf(new y4(2,2),new mp({name:"BackgroundMaterial",uniforms:Cg($l.background.uniforms),vertexShader:$l.background.vertexShader,fragmentShader:$l.background.fragmentShader,side:yd,depthTest:!1,depthWrite:!1,fog:!1})),u.geometry.deleteAttribute("normal"),Object.defineProperty(u.material,"map",{get:function(){return this.uniforms.t2D.value}}),r.update(u)),u.material.uniforms.t2D.value=x,u.material.uniforms.backgroundIntensity.value=_.backgroundIntensity,u.material.toneMapped=x.colorSpace!==ln,x.matrixAutoUpdate===!0&&x.updateMatrix(),u.material.uniforms.uvTransform.value.copy(x.matrix),(f!==x||h!==x.version||p!==t.toneMapping)&&(u.material.needsUpdate=!0,f=x,h=x.version,p=t.toneMapping),u.layers.enableAll(),v.unshift(u,u.geometry,u.material,0,0,null))}function y(v,_){v.getRGB(TS,MQ(t)),i.buffers.color.setClear(TS.r,TS.g,TS.b,_,a)}return{getClearColor:function(){return o},setClearColor:function(v,_=1){o.set(v),l=_,y(o,l)},getClearAlpha:function(){return l},setClearAlpha:function(v){l=v,y(o,l)},render:m}}function RPe(t,e,n,i){const r=t.getParameter(t.MAX_VERTEX_ATTRIBS),s=i.isWebGL2?null:e.get("OES_vertex_array_object"),a=i.isWebGL2||s!==null,o={},l=v(null);let u=l,c=!1;function f($,G,Y,Q,re){let he=!1;if(a){const X=y(Q,Y,G);u!==X&&(u=X,p(u.object)),he=_($,Q,Y,re),he&&b($,Q,Y,re)}else{const X=G.wireframe===!0;(u.geometry!==Q.id||u.program!==Y.id||u.wireframe!==X)&&(u.geometry=Q.id,u.program=Y.id,u.wireframe=X,he=!0)}re!==null&&n.update(re,t.ELEMENT_ARRAY_BUFFER),(he||c)&&(c=!1,R($,G,Y,Q),re!==null&&t.bindBuffer(t.ELEMENT_ARRAY_BUFFER,n.get(re).buffer))}function h(){return i.isWebGL2?t.createVertexArray():s.createVertexArrayOES()}function p($){return i.isWebGL2?t.bindVertexArray($):s.bindVertexArrayOES($)}function m($){return i.isWebGL2?t.deleteVertexArray($):s.deleteVertexArrayOES($)}function y($,G,Y){const Q=Y.wireframe===!0;let re=o[$.id];re===void 0&&(re={},o[$.id]=re);let he=re[G.id];he===void 0&&(he={},re[G.id]=he);let X=he[Q];return X===void 0&&(X=v(h()),he[Q]=X),X}function v($){const G=[],Y=[],Q=[];for(let re=0;re<r;re++)G[re]=0,Y[re]=0,Q[re]=0;return{geometry:null,program:null,wireframe:!1,newAttributes:G,enabledAttributes:Y,attributeDivisors:Q,object:$,attributes:{},index:null}}function _($,G,Y,Q){const re=u.attributes,he=G.attributes;let X=0;const ae=Y.getAttributes();for(const de in ae)if(ae[de].location>=0){const _e=re[de];let xe=he[de];if(xe===void 0&&(de==="instanceMatrix"&&$.instanceMatrix&&(xe=$.instanceMatrix),de==="instanceColor"&&$.instanceColor&&(xe=$.instanceColor)),_e===void 0||_e.attribute!==xe||xe&&_e.data!==xe.data)return!0;X++}return u.attributesNum!==X||u.index!==Q}function b($,G,Y,Q){const re={},he=G.attributes;let X=0;const ae=Y.getAttributes();for(const de in ae)if(ae[de].location>=0){let _e=he[de];_e===void 0&&(de==="instanceMatrix"&&$.instanceMatrix&&(_e=$.instanceMatrix),de==="instanceColor"&&$.instanceColor&&(_e=$.instanceColor));const xe={};xe.attribute=_e,_e&&_e.data&&(xe.data=_e.data),re[de]=xe,X++}u.attributes=re,u.attributesNum=X,u.index=Q}function x(){const $=u.newAttributes;for(let G=0,Y=$.length;G<Y;G++)$[G]=0}function T($){E($,0)}function E($,G){const Y=u.newAttributes,Q=u.enabledAttributes,re=u.attributeDivisors;Y[$]=1,Q[$]===0&&(t.enableVertexAttribArray($),Q[$]=1),re[$]!==G&&((i.isWebGL2?t:e.get("ANGLE_instanced_arrays"))[i.isWebGL2?"vertexAttribDivisor":"vertexAttribDivisorANGLE"]($,G),re[$]=G)}function C(){const $=u.newAttributes,G=u.enabledAttributes;for(let Y=0,Q=G.length;Y<Q;Y++)G[Y]!==$[Y]&&(t.disableVertexAttribArray(Y),G[Y]=0)}function D($,G,Y,Q,re,he,X){X===!0?t.vertexAttribIPointer($,G,Y,re,he):t.vertexAttribPointer($,G,Y,Q,re,he)}function R($,G,Y,Q){if(i.isWebGL2===!1&&($.isInstancedMesh||Q.isInstancedBufferGeometry)&&e.get("ANGLE_instanced_arrays")===null)return;x();const re=Q.attributes,he=Y.getAttributes(),X=G.defaultAttributeValues;for(const ae in he){const de=he[ae];if(de.location>=0){let Re=re[ae];if(Re===void 0&&(ae==="instanceMatrix"&&$.instanceMatrix&&(Re=$.instanceMatrix),ae==="instanceColor"&&$.instanceColor&&(Re=$.instanceColor)),Re!==void 0){const _e=Re.normalized,xe=Re.itemSize,we=n.get(Re);if(we===void 0)continue;const ve=we.buffer,De=we.type,We=we.bytesPerElement,lt=i.isWebGL2===!0&&(De===t.INT||De===t.UNSIGNED_INT||Re.gpuType===dQ);if(Re.isInterleavedBufferAttribute){const Ze=Re.data,z=Ze.stride,J=Re.offset;if(Ze.isInstancedInterleavedBuffer){for(let te=0;te<de.locationSize;te++)E(de.location+te,Ze.meshPerAttribute);$.isInstancedMesh!==!0&&Q._maxInstanceCount===void 0&&(Q._maxInstanceCount=Ze.meshPerAttribute*Ze.count)}else for(let te=0;te<de.locationSize;te++)T(de.location+te);t.bindBuffer(t.ARRAY_BUFFER,ve);for(let te=0;te<de.locationSize;te++)D(de.location+te,xe/de.locationSize,De,_e,z*We,(J+xe/de.locationSize*te)*We,lt)}else{if(Re.isInstancedBufferAttribute){for(let Ze=0;Ze<de.locationSize;Ze++)E(de.location+Ze,Re.meshPerAttribute);$.isInstancedMesh!==!0&&Q._maxInstanceCount===void 0&&(Q._maxInstanceCount=Re.meshPerAttribute*Re.count)}else for(let Ze=0;Ze<de.locationSize;Ze++)T(de.location+Ze);t.bindBuffer(t.ARRAY_BUFFER,ve);for(let Ze=0;Ze<de.locationSize;Ze++)D(de.location+Ze,xe/de.locationSize,De,_e,xe*We,xe/de.locationSize*Ze*We,lt)}}else if(X!==void 0){const _e=X[ae];if(_e!==void 0)switch(_e.length){case 2:t.vertexAttrib2fv(de.location,_e);break;case 3:t.vertexAttrib3fv(de.location,_e);break;case 4:t.vertexAttrib4fv(de.location,_e);break;default:t.vertexAttrib1fv(de.location,_e)}}}}C()}function A(){N();for(const $ in o){const G=o[$];for(const Y in G){const Q=G[Y];for(const re in Q)m(Q[re].object),delete Q[re];delete G[Y]}delete o[$]}}function k($){if(o[$.id]===void 0)return;const G=o[$.id];for(const Y in G){const Q=G[Y];for(const re in Q)m(Q[re].object),delete Q[re];delete G[Y]}delete o[$.id]}function F($){for(const G in o){const Y=o[G];if(Y[$.id]===void 0)continue;const Q=Y[$.id];for(const re in Q)m(Q[re].object),delete Q[re];delete Y[$.id]}}function N(){U(),c=!0,u!==l&&(u=l,p(u.object))}function U(){l.geometry=null,l.program=null,l.wireframe=!1}return{setup:f,reset:N,resetDefaultState:U,dispose:A,releaseStatesOfGeometry:k,releaseStatesOfProgram:F,initAttributes:x,enableAttribute:T,disableUnusedAttributes:C}}function kPe(t,e,n,i){const r=i.isWebGL2;let s;function a(u){s=u}function o(u,c){t.drawArrays(s,u,c),n.update(c,s,1)}function l(u,c,f){if(f===0)return;let h,p;if(r)h=t,p="drawArraysInstanced";else if(h=e.get("ANGLE_instanced_arrays"),p="drawArraysInstancedANGLE",h===null){console.error("THREE.WebGLBufferRenderer: using THREE.InstancedBufferGeometry but hardware does not support extension ANGLE_instanced_arrays.");return}h[p](s,u,c,f),n.update(c,s,f)}this.setMode=a,this.render=o,this.renderInstances=l}function IPe(t,e,n){let i;function r(){if(i!==void 0)return i;if(e.has("EXT_texture_filter_anisotropic")===!0){const D=e.get("EXT_texture_filter_anisotropic");i=t.getParameter(D.MAX_TEXTURE_MAX_ANISOTROPY_EXT)}else i=0;return i}function s(D){if(D==="highp"){if(t.getShaderPrecisionFormat(t.VERTEX_SHADER,t.HIGH_FLOAT).precision>0&&t.getShaderPrecisionFormat(t.FRAGMENT_SHADER,t.HIGH_FLOAT).precision>0)return"highp";D="mediump"}return D==="mediump"&&t.getShaderPrecisionFormat(t.VERTEX_SHADER,t.MEDIUM_FLOAT).precision>0&&t.getShaderPrecisionFormat(t.FRAGMENT_SHADER,t.MEDIUM_FLOAT).precision>0?"mediump":"lowp"}const a=typeof WebGL2RenderingContext<"u"&&t.constructor.name==="WebGL2RenderingContext";let o=n.precision!==void 0?n.precision:"highp";const l=s(o);l!==o&&(console.warn("THREE.WebGLRenderer:",o,"not supported, using",l,"instead."),o=l);const u=a||e.has("WEBGL_draw_buffers"),c=n.logarithmicDepthBuffer===!0,f=t.getParameter(t.MAX_TEXTURE_IMAGE_UNITS),h=t.getParameter(t.MAX_VERTEX_TEXTURE_IMAGE_UNITS),p=t.getParameter(t.MAX_TEXTURE_SIZE),m=t.getParameter(t.MAX_CUBE_MAP_TEXTURE_SIZE),y=t.getParameter(t.MAX_VERTEX_ATTRIBS),v=t.getParameter(t.MAX_VERTEX_UNIFORM_VECTORS),_=t.getParameter(t.MAX_VARYING_VECTORS),b=t.getParameter(t.MAX_FRAGMENT_UNIFORM_VECTORS),x=h>0,T=a||e.has("OES_texture_float"),E=x&&T,C=a?t.getParameter(t.MAX_SAMPLES):0;return{isWebGL2:a,drawBuffers:u,getMaxAnisotropy:r,getMaxPrecision:s,precision:o,logarithmicDepthBuffer:c,maxTextures:f,maxVertexTextures:h,maxTextureSize:p,maxCubemapSize:m,maxAttributes:y,maxVertexUniforms:v,maxVaryings:_,maxFragmentUniforms:b,vertexTextures:x,floatFragmentTextures:T,floatVertexTextures:E,maxSamples:C}}function LPe(t){const e=this;let n=null,i=0,r=!1,s=!1;const a=new Mf,o=new mn,l={value:null,needsUpdate:!1};this.uniform=l,this.numPlanes=0,this.numIntersection=0,this.init=function(f,h){const p=f.length!==0||h||i!==0||r;return r=h,i=f.length,p},this.beginShadows=function(){s=!0,c(null)},this.endShadows=function(){s=!1},this.setGlobalState=function(f,h){n=c(f,h,0)},this.setState=function(f,h,p){const m=f.clippingPlanes,y=f.clipIntersection,v=f.clipShadows,_=t.get(f);if(!r||m===null||m.length===0||s&&!v)s?c(null):u();else{const b=s?0:i,x=b*4;let T=_.clippingState||null;l.value=T,T=c(m,h,x,p);for(let E=0;E!==x;++E)T[E]=n[E];_.clippingState=T,this.numIntersection=y?this.numPlanes:0,this.numPlanes+=b}};function u(){l.value!==n&&(l.value=n,l.needsUpdate=i>0),e.numPlanes=i,e.numIntersection=0}function c(f,h,p,m){const y=f!==null?f.length:0;let v=null;if(y!==0){if(v=l.value,m!==!0||v===null){const _=p+y*4,b=h.matrixWorldInverse;o.getNormalMatrix(b),(v===null||v.length<_)&&(v=new Float32Array(_));for(let x=0,T=p;x!==y;++x,T+=4)a.copy(f[x]).applyMatrix4(b,o),a.normal.toArray(v,T),v[T+3]=a.constant}l.value=v,l.needsUpdate=!0}return e.numPlanes=y,e.numIntersection=0,v}}function FPe(t){let e=new WeakMap;function n(a,o){return o===sR?a.mapping=Tg:o===aR&&(a.mapping=Eg),a}function i(a){if(a&&a.isTexture&&a.isRenderTargetTexture===!1){const o=a.mapping;if(o===sR||o===aR)if(e.has(a)){const l=e.get(a).texture;return n(l,a.mapping)}else{const l=a.image;if(l&&l.height>0){const u=new KMe(l.height/2);return u.fromEquirectangularTexture(t,a),e.set(a,u),a.addEventListener("dispose",r),n(u.texture,a.mapping)}else return null}}return a}function r(a){const o=a.target;o.removeEventListener("dispose",r);const l=e.get(o);l!==void 0&&(e.delete(o),l.dispose())}function s(){e=new WeakMap}return{get:i,dispose:s}}class NPe extends DQ{constructor(e=-1,n=1,i=1,r=-1,s=.1,a=2e3){super(),this.isOrthographicCamera=!0,this.type="Orthogra
3654phicCamera",this.zoom=1,this.view=null,this.left=e,this.right=n,this.top=i,this.bottom=r,this.near=s,this.far=a,this.updateProjectionMatrix()}copy(e,n){return super.copy(e,n),this.left=e.left,this.right=e.right,this.top=e.top,this.bottom=e.bottom,this.near=e.near,this.far=e.far,this.zoom=e.zoom,this.view=e.view===null?null:Object.assign({},e.view),this}setViewOffset(e,n,i,r,s,a){this.view===null&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=e,this.view.fullHeight=n,this.view.offsetX=i,this.view.offsetY=r,this.view.width=s,this.view.height=a,this.updateProjectionMatrix()}clearViewOffset(){this.view!==null&&(this.view.enabled=!1),this.updateProjectionMatrix()}updateProjectionMatrix(){const e=(this.right-this.left)/(2*this.zoom),n=(this.top-this.bottom)/(2*this.zoom),i=(this.right+this.left)/2,r=(this.top+this.bottom)/2;let s=i-e,a=i+e,o=r+n,l=r-n;if(this.view!==null&&this.view.enabled){const u=(this.right-this.left)/this.view.fullWidth/this.zoom,c=(this.top-this.bottom)/this.view.fullHeight/this.zoom;s+=u*this.view.offsetX,a=s+u*this.view.width,o-=c*this.view.offsetY,l=o-c*this.view.height}this.projectionMatrix.makeOrthographic(s,a,o,l,this.near,this.far,this.coordinateSystem),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}toJSON(e){const n=super.toJSON(e);return n.object.zoom=this.zoom,n.object.left=this.left,n.object.right=this.right,n.object.top=this.top,n.object.bottom=this.bottom,n.object.near=this.near,n.object.far=this.far,this.view!==null&&(n.object.view=Object.assign({},this.view)),n}}const cm=4,z9=[.125,.215,.35,.446,.526,.582],Sh=20,zD=new NPe,H9=new ri;let HD=null;const ph=(1+Math.sqrt(5))/2,R0=1/ph,V9=[new Ie(1,1,1),new Ie(-1,1,1),new Ie(1,1,-1),new Ie(-1,1,-1),new Ie(0,ph,R0),new Ie(0,ph,-R0),new Ie(R0,0,ph),new Ie(-R0,0,ph),new Ie(ph,R0,0),new Ie(-ph,R0,0)];class W9{constructor(e){this._renderer=e,this._pingPongRenderTarget=null,this._lodMax=0,this._cubeSize=0,this._lodPlanes=[],this._sizeLods=[],this._sigmas=[],this._blurMaterial=null,this._cubemapMaterial=null,this._equirectMaterial=null,this._compileMaterial(this._blurMaterial)}fromScene(e,n=0,i=.1,r=100){HD=this._renderer.getRenderTarget(),this._setSize(256);const s=this._allocateTargets();return s.depthBuffer=!0,this._sceneToCubeUV(e,i,r,s),n>0&&this._blur(s,0,0,n),this._applyPMREM(s),this._cleanup(s),s}fromEquirectangular(e,n=null){return this._fromTexture(e,n)}fromCubemap(e,n=null){return this._fromTexture(e,n)}compileCubemapShader(){this._cubemapMaterial===null&&(this._cubemapMaterial=q9(),this._compileMaterial(this._cubemapMaterial))}compileEquirectangularShader(){this._equirectMaterial===null&&(this._equirectMaterial=j9(),this._compileMaterial(this._equirectMaterial))}dispose(){this._dispose(),this._cubemapMaterial!==null&&this._cubemapMaterial.dispose(),this._equirectMaterial!==null&&this._equirectMaterial.dispose()}_setSize(e){this._lodMax=Math.floor(Math.log2(e)),this._cubeSize=Math.pow(2,this._lodMax)}_dispose(){this._blurMaterial!==null&&this._blurMaterial.dispose(),this._pingPongRenderTarget!==null&&this._pingPongRenderTarget.dispose();for(let e=0;e<this._lodPlanes.length;e++)this._lodPlanes[e].dispose()}_cleanup(e){this._renderer.setRenderTarget(HD),e.scissorTest=!1,ES(e,0,0,e.width,e.height)}_fromTexture(e,n){e.mapping===Tg||e.mapping===Eg?this._setSize(e.image.length===0?16:e.image[0].width||e.image[0].image.width):this._setSize(e.image.width/4),HD=this._renderer.getRenderTarget();const i=n||this._allocateTargets();return this._textureToCubeUV(e,i),this._applyPMREM(i),this._cleanup(i),i}_allocateTargets(){const e=3*Math.max(this._cubeSize,112),n=4*this._cubeSize,i={magFilter:xo,minFilter:xo,generateMipmaps:!1,type:cb,format:al,colorSpace:_u,depthBuffer:!1},r=G9(e,n,i);if(this._pingPongRenderTarget===null||this._pingPongRenderTarget.width!==e||this._pingPongRenderTarget.height!==n){this._pingPongRenderTarget!==null&&this._dispose(),this._pingPongRenderTarget=G9(e,n,i);const{_lodMax:s}=this;({sizeLods:this._sizeLods,lodPlanes:this._lodPlanes,sigmas:this._sigmas}
vendor: 5,727 bytes, lines 3654-3729
3654=BPe(s)),this._blurMaterial=UPe(s,e,n)}return r}_compileMaterial(e){const n=new Hf(this._lodPlanes[0],e);this._renderer.compile(n,zD)}_sceneToCubeUV(e,n,i,r){const o=new Jo(90,1,n,i),l=[1,-1,1,1,1,1],u=[1,1,1,-1,-1,-1],c=this._renderer,f=c.autoClear,h=c.toneMapping;c.getClearColor(H9),c.toneMapping=nd,c.autoClear=!1;const p=new wQ({name:"PMREM.Background",side:sa,depthWrite:!1,depthTest:!1}),m=new Hf(new e1,p);let y=!1;const v=e.background;v?v.isColor&&(p.color.copy(v),e.background=null,y=!0):(p.color.copy(H9),y=!0);for(let _=0;_<6;_++){const b=_%3;b===0?(o.up.set(0,l[_],0),o.lookAt(u[_],0,0)):b===1?(o.up.set(0,0,l[_]),o.lookAt(0,u[_],0)):(o.up.set(0,l[_],0),o.lookAt(0,0,u[_]));const x=this._cubeSize;ES(r,b*x,_>2?x:0,x,x),c.setRenderTarget(r),y&&c.render(m,o),c.render(e,o)}m.geometry.dispose(),m.material.dispose(),c.toneMapping=h,c.autoClear=f,e.background=v}_textureToCubeUV(e,n){const i=this._renderer,r=e.mapping===Tg||e.mapping===Eg;r?(this._cubemapMaterial===null&&(this._cubemapMaterial=q9()),this._cubemapMaterial.uniforms.flipEnvMap.value=e.isRenderTargetTexture===!1?-1:1):this._equirectMaterial===null&&(this._equirectMaterial=j9());const s=r?this._cubemapMaterial:this._equirectMaterial,a=new Hf(this._lodPlanes[0],s),o=s.uniforms;o.envMap.value=e;const l=this._cubeSize;ES(n,0,0,3*l,2*l),i.setRenderTarget(n),i.render(a,zD)}_applyPMREM(e){const n=this._renderer,i=n.autoClear;n.autoClear=!1;for(let r=1;r<this._lodPlanes.length;r++){const s=Math.sqrt(this._sigmas[r]*this._sigmas[r]-this._sigmas[r-1]*this._sigmas[r-1]),a=V9[(r-1)%V9.length];this._blur(e,r-1,r,s,a)}n.autoClear=i}_blur(e,n,i,r,s){const a=this._pingPongRenderTarget;this._halfBlur(e,a,n,i,r,"latitudinal",s),this._halfBlur(a,e,i,i,r,"longitudinal",s)}_halfBlur(e,n,i,r,s,a,o){const l=this._renderer,u=this._blurMaterial;a!=="latitudinal"&&a!=="longitudinal"&&console.error("blur direction must be either latitudinal or longitudinal!");const c=3,f=new Hf(this._lodPlanes[r],u),h=u.uniforms,p=this._sizeLods[i]-1,m=isFinite(s)?Math.PI/(2*p):2*Math.PI/(2*Sh-1),y=s/m,v=isFinite(s)?1+Math.floor(c*y):Sh;v>Sh&&console.warn(`sigmaRadians, ${s}, is too large and will clip, as it requested ${v} samples when the maximum is set to ${Sh}`);const _=[];let b=0;for(let D=0;D<Sh;++D){const R=D/y,A=Math.exp(-R*R/2);_.push(A),D===0?b+=A:D<v&&(b+=2*A)}for(let D=0;D<_.length;D++)_[D]=_[D]/b;h.envMap.value=e.texture,h.samples.value=v,h.weights.value=_,h.latitudinal.value=a==="latitudinal",o&&(h.poleAxis.value=o);const{_lodMax:x}=this;h.dTheta.value=m,h.mipInt.value=x-i;const T=this._sizeLods[r],E=3*T*(r>x-cm?r-x+cm:0),C=4*(this._cubeSize-T);ES(n,E,C,3*T,2*T),l.setRenderTarget(n),l.render(f,zD)}}function BPe(t){const e=[],n=[],i=[];let r=t;const s=t-cm+1+z9.length;for(let a=0;a<s;a++){const o=Math.pow(2,r);n.push(o);let l=1/o;a>t-cm?l=z9[a-t+cm-1]:a===0&&(l=0),i.push(l);const u=1/(o-2),c=-u,f=1+u,h=[c,c,f,c,f,f,c,c,f,f,c,f],p=6,m=6,y=3,v=2,_=1,b=new Float32Array(y*m*p),x=new Float32Array(v*m*p),T=new Float32Array(_*m*p);for(let C=0;C<p;C++){const D=C%3*2/3-1,R=C>2?0:-1,A=[D,R,0,D+2/3,R,0,D+2/3,R+1,0,D,R,0,D+2/3,R+1,0,D,R+1,0];b.set(A,y*m*C),x.set(h,v*m*C);const k=[C,C,C,C,C,C];T.set(k,_*m*C)}const E=new Bc;E.setAttribute("position",new dl(b,y)),E.setAttribute("uv",new dl(x,v)),E.setAttribute("faceIndex",new dl(T,_)),e.push(E),r>cm&&r--}return{lodPlanes:e,sizeLods:n,sigmas:i}}function G9(t,e,n){const i=new hp(t,e,n);return i.texture.mapping=Zw,i.texture.name="PMREM.cubeUv",i.scissorTest=!0,i}function ES(t,e,n,i,r){t.viewport.set(e,n,i,r),t.scissor.set(e,n,i,r)}function UPe(t,e,n){const i=new Float32Array(Sh),r=new Ie(0,1,0);return new mp({name:"SphericalGaussianBlur",defines:{n:Sh,CUBEUV_TEXEL_WIDTH:1/e,CUBEUV_TEXEL_HEIGHT:1/n,CUBEUV_MAX_MIP:`${t}.0`},uniforms:{envMap:{value:null},samples:{value:1},weights:{value:i},latitudinal:{value:!1},dTheta:{value:0},mipInt:{value:0},poleAxis:{value:r}},vertexShader:b4(),fragmentShader:`
3655
3656			precision mediump float;
3657			precision mediump int;
3658
3659			varying vec3 vOutputDirection;
3660
3661			uniform sampler2D envMap;
3662			uniform int samples;
3663			uniform float weights[ n ];
3664			uniform bool latitudinal;
3665			uniform float dTheta;
3666			uniform float mipInt;
3667			uniform vec3 poleAxis;
3668
3669			#define ENVMAP_TYPE_CUBE_UV
3670			#include <cube_uv_reflection_fragment>
3671
3672			vec3 getSample( float theta, vec3 axis ) {
3673
3674				float cosTheta = cos( theta );
3675				// Rodrigues' axis-angle rotation
3676				vec3 sampleDirection = vOutputDirection * cosTheta
3677					+ cross( axis, vOutputDirection ) * sin( theta )
3678					+ axis * dot( axis, vOutputDirection ) * ( 1.0 - cosTheta );
3679
3680				return bilinearCubeUV( envMap, sampleDirection, mipInt );
3681
3682			}
3683
3684			void main() {
3685
3686				vec3 axis = latitudinal ? poleAxis : cross( poleAxis, vOutputDirection );
3687
3688				if ( all( equal( axis, vec3( 0.0 ) ) ) ) {
3689
3690					axis = vec3( vOutputDirection.z, 0.0, - vOutputDirection.x );
3691
3692				}
3693
3694				axis = normalize( axis );
3695
3696				gl_FragColor = vec4( 0.0, 0.0, 0.0, 1.0 );
3697				gl_FragColor.rgb += weights[ 0 ] * getSample( 0.0, axis );
3698
3699				for ( int i = 1; i < n; i++ ) {
3700
3701					if ( i >= samples ) {
3702
3703						break;
3704
3705					}
3706
3707					float theta = dTheta * float( i );
3708					gl_FragColor.rgb += weights[ i ] * getSample( -1.0 * theta, axis );
3709					gl_FragColor.rgb += weights[ i ] * getSample( theta, axis );
3710
3711				}
3712
3713			}
3714		`,blending:td,depthTest:!1,depthWrite:!1})}function j9(){return new mp({name:"EquirectangularToCubeUV",uniforms:{envMap:{value:null}},vertexShader:b4(),fragmentShader:`
3715
3716			precision mediump float;
3717			precision mediump int;
3718
3719			varying vec3 vOutputDirection;
3720
3721			uniform sampler2D envMap;
3722
3723			#include <common>
3724
3725			void main() {
3726
3727				vec3 outputDirection = normalize( vOutputDirection );
3728				vec2 uv = equirectUv( outputDirection );
3729
3730				gl_FragColor = vec4( texture2D ( envMap, uv ).rgb, 1.0 );
3731
3732			}
3733		`,blending:td,depthTest:!1,depthWrite:!1})}function q9(){return new mp({name:"CubemapToCubeUV",uniforms:{envMap:{value:null},flipEnvMap:{value:-1}},vertexShader:b4(),fragmentShader:`
3734
3735			precision mediump float;
3736			precision mediump int;
3737
3738			uniform float flipEnvMap;
3739
3740			varying vec3 vOutputDirection;
3741
3742			uniform samplerCube envMap;
3743
3744			void main() {
3745
3746				gl_FragColor = textureCube( envMap, vec3( flipEnvMap * vOutputDirection.x, vOutputDirection.yz ) );
3747
3748			}
3749		`,blending:td,depthTest:!1,depthWrite:!1})}function b4(){return`
3750
3751		precision mediump float;
3752		precision mediump int;
3753
3754		attribute float faceIndex;
3755
3756		varying vec3 vOutputDirection;
3757
3758		// RH coordinate system; PMREM face-indexing convention
3759		vec3 getDirection( vec2 uv, float face ) {
3760
3761			uv = 2.0 * uv - 1.0;
3762
3763			vec3 direction = vec3( uv, 1.0 );
3764
3765			if ( face == 0.0 ) {
3766
3767				direction = direction.zyx; // ( 1, v, u ) pos x
3768
3769			} else if ( face == 1.0 ) {
3770
3771				direction = direction.xzy;
3772				direction.xz *= -1.0; // ( -u, 1, -v ) pos y
3773
3774			} else if ( face == 2.0 ) {
3775
3776				direction.x *= -1.0; // ( -u, v, 1 ) pos z
3777
3778			} else if ( face == 3.0 ) {
3779
3780				direction = direction.zyx;
3781				direction.xz *= -1.0; // ( -1, v, -u ) neg x
3782
3783			} else if ( face == 4.0 ) {
3784
3785				direction = direction.xzy;
3786				direction.xy *= -1.0; // ( -u, -1, v ) neg y
3787
3788			} else if ( face == 5.0 ) {
3789
3790				direction.z *= -1.0; // ( u, v, -1 ) neg z
3791
3792			}
3793
3794			return direction;
3795
3796		}
3797
3798		void main() {
3799
3800			vOutputDirection = getDirection( uv, faceIndex );
3801			gl_Position = vec4( position, 1.0 );
3802
3803		}
3804	`}function $Pe(t){let e=new WeakMap,n=null;function i(o){if(o&&o.isTexture){const l=o.mapping,u=l===sR||l===aR,c=l===Tg||l===Eg;if(u||c)if(o.isRenderTargetTexture&&o.needsPMREMUpdate===!0){o.needsPMREMUpdate=!1;let f=e.get(o);return n===null&&(n=new W9(t)),f=u?n.fromEquirectangular(o,f):n.fromCubemap(o,f),e.set(o,f),f.texture}else{if(e.has(o))return e.get(o).texture;{const f=o.image;if(u&&f&&f.height>0||c&&f&&r(f)){n===null&&(n=new W9(t));const h=u?n.fromEquirectangular(o):n.fromCubemap(o);return e.set(o,h),o.addEventListener("dispose",s),h.texture}else return null}}}return o}function r(o){let l=0;const u=6;for(let c=0;c<u;c++)o[c]!==void 0&&l++;return l===u}function s(o){const l=o.target;l.removeEventListener("dispose",s);const u=e.get(l);u!==void 0&&(e.delete(l),u.dispose())}function a(){e=new WeakMap,n!==null&&(n.dispose(),n=null)}return{get:i,dispose:a}}function zPe(t){const e={};function n(i){if(e[i]!==void 0)return e[i];let r;switch(i){case"WEBGL_depth_texture":r=t.getExtension("WEBGL_depth_texture")||t.getExtension("MOZ_WEBGL_depth_texture")||t.getExtension("WEBKIT_WEBGL_depth_texture");break;case"EXT_texture_filter_anisotropic":r=t.getExtension("EXT_texture_filter_anisotropic")||t.getExtension("MOZ_EXT_texture_filter_anisotropic")||t.getExtension("WEBKIT_EXT_texture_filter_anisotropic");break;case"WEBGL_compressed_texture_s3tc":r=t.getExtension("WEBGL_compressed_texture_s3tc")||t.getExtension("MOZ_WEBGL_compressed_texture_s3tc")||t.getExtension("WEBKIT_WEBGL_compressed_texture_s3tc");break;case"WEBGL_compressed_texture_pvrtc":r=t.getExtension("WEBGL_compressed_texture_pvrtc")||t.getExtension("WEBKIT_WEBGL_compressed_texture_pvrtc");break;default:r=t.getExtension(i)}return e[i]=r,r}return{has:function(i){return n(i)!==null},init:function(i){i.isWebGL2?n("EXT_color_buffer_float"):(n("WEBGL_depth_texture"),n("OES_texture_float"),n("OES_texture_half_float"),n("OES_texture_half_float_linear"),n("OES_standard_derivatives"),n("OES_element_index_uint"),n("OES_vertex_array_object"),n("ANGLE_instanced_arrays")),n("OES_texture_float_linear"),n("EXT_color_buffer_half_float"),n("WEBGL_multisampled_render_to_texture")},get:function(i){const r=n(i);return r===null&&console.warn("THREE.WebGLRenderer: "+i+" extension not supported."),r}}}function HPe(t,e,n,i){const r={},s=new WeakMap;function a(f){const h=f.target;h.index!==null&&e.remove(h.index);for(const m in h.attributes)e.remove(h.attributes[m]);for(const m in h.morphAttributes){const y=h.morphAttributes[m];for(let v=0,_=y.length;v<_;v++)e.remove(y[v])}h.removeEventListener("dispose",a),delete r[h.id];const p=s.get(h);p&&(e.remove(p),s.delete(h)),i.releaseStatesOfGeometry(h),h.isInstancedBufferGeometry===!0&&delete h._maxInstanceCount,n.memory.geometries--}function o(f,h){return r[h.id]===!0||(h.addEventListener("dispose",a),r[h.id]=!0,n.memory.geometries++),h}function l(f){const h=f.attributes;for(const m in h)e.update(h[m],t.ARRAY_BUFFER);const p=f.morphAttributes;for(const m in p){const y=p[m];for(let v=0,_=y.length;v<_;v++)e.update(y[v],t.ARRAY_BUFFER)}}function u(f){const h=[],p=f.index,m=f.attributes.position;let y=0;if(p!==null){const b=p.array;y=p.version;for(let x=0,T=b.length;x<T;x+=3){const E=b[x+0],C=b[x+1],D=b[x+2];h.push(E,C,C,D,D,E)}}else if(m!==void 0){const b=m.array;y=m.version;for(let x=0,T=b.length/3-1;x<T;x+=3){const E=x+0,C=x+1,D=x+2;h.push(E,C,C,D,D,E)}}else return;
3804const v=new(bQ(h)?AQ:CQ)(h,1);v.version=y;const _=s.get(f);_&&e.remove(_),s.set(f,v)}function c(f){const h=s.get(f);if(h){const p=f.index;p!==null&&h.version<p.version&&u(f)}else u(f);return s.get(f)}return{get:o,update:l,getWireframeAttribute:c}}function VPe(t,e,n,i){const r=i.isWebGL2;let s;function a(h){s=h}let o,l;function u(h){o=h.type,l=h.bytesPerElement}function c(h,p){t.drawElements(s,p,o,h*l),n.update(p,s,1)}function f(h,p,m){if(m===0)return;let y,v;if(r)y=t,v="drawElementsInstanced";else if(y=e.get("ANGLE_instanced_arrays"),v="drawElementsInstancedANGLE",y===null){console.error("THREE.WebGLIndexedBufferRenderer: using THREE.InstancedBufferGeometry but hardware does not support extension ANGLE_instanced_arrays.");return}y[v](s,p,o,h*l,m),n.update(p,s,m)}this.setMode=a,this.setIndex=u,this.render=c,this.renderInstances=f}function WPe(t){const e={geometries:0,textures:0},n={frame:0,calls:0,triangles:0,points:0,lines:0};function i(s,a,o){switch(n.calls++,a){case t.TRIANGLES:n.triangles+=o*(s/3);break;case t.LINES:n.lines+=o*(s/2);break;case t.LINE_STRIP:n.lines+=o*(s-1);break;case t.LINE_LOOP:n.lines+=o*s;break;case t.POINTS:n.points+=o*s;break;default:console.error("THREE.WebGLInfo: Unknown draw mode:",a);break}}function r(){n.calls=0,n.triangles=0,n.points=0,n.lines=0}return{memory:e,render:n,programs:null,autoReset:!0,reset:r,update:i}}function GPe(t,e){return t[0]-e[0]}function jPe(t,e){return Math.abs(e[1])-Math.abs(t[1])}function qPe(t,e,n){const i={},r=new Float32Array(8),s=new WeakMap,a=new Fr,o=[];for(let u=0;u<8;u++)o[u]=[u,0];function l(u,c,f){const h=u.morphTargetInfluences;if(e.isWebGL2===!0){const p=c.morphAttributes.position||c.morphAttributes.normal||c.morphAttributes.color,m=p!==void 0?p.length:0;let y=s.get(c);if(y===void 0||y.count!==m){let $=function(){N.dispose(),s.delete(c),c.removeEventListener("dispose",$)};y!==void 0&&y.texture.dispose();const b=c.morphAttributes.position!==void 0,x=c.morphAttributes.normal!==void 0,T=c.morphAttributes.color!==void 0,E=c.morphAttributes.position||[],C=c.morphAttributes.normal||[],D=c.morphAttributes.color||[];let R=0;b===!0&&(R=1),x===!0&&(R=2),T===!0&&(R=3);let A=c.attributes.position.count*R,k=1;A>e.maxTextureSize&&(k=Math.ceil(A/e.maxTextureSize),A=e.maxTextureSize);const F=new Float32Array(A*k*4*m),N=new TQ(F,A,k,m);N.type=zf,N.needsUpdate=!0;const U=R*4;for(let G=0;G<m;G++){const Y=E[G],Q=C[G],re=D[G],he=A*k*4*G;for(let X=0;X<Y.count;X++){const ae=X*U;b===!0&&(a.fromBufferAttribute(Y,X),F[he+ae+0]=a.x,F[he+ae+1]=a.y,F[he+ae+2]=a.z,F[he+ae+3]=0),x===!0&&(a.fromBufferAttribute(Q,X),F[he+ae+4]=a.x,F[he+ae+5]=a.y,F[he+ae+6]=a.z,F[he+ae+7]=0),T===!0&&(a.fromBufferAttribute(re,X),F[he+ae+8]=a.x,F[he+ae+9]=a.y,F[he+ae+10]=a.z,F[he+ae+11]=re.itemSize===4?a.w:1)}}y={count:m,texture:N,size:new Xt(A,k)},s.set(c,y),c.addEventListener("dispose",$)}let v=0;for(let b=0;b<h.length;b++)v+=h[b];const _=c.morphTargetsRelative?1:1-v;f.getUniforms().setValue(t,"morphTargetBaseInfluence",_),f.getUniforms().setValue(t,"morphTargetInfluences",h),f.getUniforms().setValue(t,"morphTargetsTexture",y.texture,n),f.getUniforms().setValue(t,"morphTargetsTextureSize",y.size)}else{const p=h===void 0?0:h.length;let m=i[c.id];if(m===void 0||m.length!==p){m=[];for(let x=0;x<p;x++)m[x]=[x,0];i[c.id]=m}for(let x=0;x<p;x++){const T=m[x];T[0]=x,T[1]=h[x]}m.sort(jPe);for(let x=0;x<8;x++)x<p&&m[x][1]?(o[x][0]=m[x][0],o[x][1]=m[x][1]):(o[x][0]=Number.MAX_SAFE_INTEGER,o[x][1]=0);o.sort(GPe);const y=c.morphAttributes.position,v=c.morphAttributes.normal;let _=0;for(let x=0;x<8;x++){const T=o[x],E=T[0],C=T[1];E!==Number.MAX_SAFE_INTEGER&&C?(y&&c.getAttribute("morphTarget"+x)!==y[E]&&c.setAttribute("morphTarget"+x,y[E]),v&&c.getAttribute("morphNormal"+x)!==v[E]&&c.setAttribute("morphNormal"+x,v[E]),r[x]=C,_+=C):(y&&c.hasAttribute("morphTarget"+x)===!0&&c.deleteAttribute("morphTarget"+x),v&&c.hasAttribute("morphNormal"+x)===!0&&c.deleteAttribute("morphNormal"+x),r[x]=0)}const b=c.morphTargetsRelative?1:1-_;f.getUniforms().setValue(t,"morphTargetBaseInfluence",b),f.getUniforms().setValue(t,"morphTargetInfluences",r)}}return{update:l}}function XPe(t,e,n,i){let r=new WeakMap;function s(l){const u=i.render.frame,c=l.geometry,f=e.get(l,c);if(r.get(f)!==u&&(e.update(f),r.set(f,u)),l.isInstancedMesh&&(l.hasEventListener("dispose",o)===!1&&l.addEventListener("dispose",o),r.get(l)!==u&&(n.update(l.instanceMatrix,t.ARRAY_BUFFER),l.instanceColor!==null&&n.update(l.instanceColor,t.ARRAY_BUFFER),r.set(l,u))),l.isSkinnedMesh){const h=l.skeleton;r.get(h)!==u&&(h.update(),r.set(h,u))}return f}function a(){r=new WeakMap}function o(l){const u=l.target;u.removeEventListener("dispose",o),n.remove(u.instanceMatrix),u.instanceColor!==null&&n.remove(u.instanceColor)}return{update:s,dispose:a}}const kQ=new aa,IQ=new TQ,LQ=new IMe,FQ=new PQ,X9=[],Y9=[],K9=new Float32Array(16),Z9=new Float32Array(9),Q9=new Float32Array(4);function Yg(t,e,n){const i=t[0];if(i<=0||i>0)return t;const r=e*n;let s=X9[r];if(s===void 0&&(s=new Float32Array(r),X9[r]=s),e!==0){i.toArray(s,0);for(let a=1,o=0;a!==e;++a)o+=n,t[a].toArray(s,o)}return s}function ur(t,e){if(t.length!==e.length)return!1;for(let n=0,i=t.length;n<i;n++)if(t[n]!==e[n])return!1;return!0}function cr(t,e){for(let n=0,i=e.length;n<i;n++)t[n]=e[n]}function Jw(t,e){let n=Y9[e];n===void 0&&(n=new Int32Array(e),Y9[e]=n);for(let i=0;i!==e;++i)n[i]=t.allocateTextureUnit();return n}function YPe(t,e){const n=this.cache;n[0]!==e&&(t.uniform1f(this.addr,e),n[0]=e)}function KPe(t,e){const n=this.cache;
vendor: 13,854 bytes, lines 3804-3821
3804if(e.x!==void 0)(n[0]!==e.x||n[1]!==e.y)&&(t.uniform2f(this.addr,e.x,e.y),n[0]=e.x,n[1]=e.y);else{if(ur(n,e))return;t.uniform2fv(this.addr,e),cr(n,e)}}function ZPe(t,e){const n=this.cache;if(e.x!==void 0)(n[0]!==e.x||n[1]!==e.y||n[2]!==e.z)&&(t.uniform3f(this.addr,e.x,e.y,e.z),n[0]=e.x,n[1]=e.y,n[2]=e.z);else if(e.r!==void 0)(n[0]!==e.r||n[1]!==e.g||n[2]!==e.b)&&(t.uniform3f(this.addr,e.r,e.g,e.b),n[0]=e.r,n[1]=e.g,n[2]=e.b);else{if(ur(n,e))return;t.uniform3fv(this.addr,e),cr(n,e)}}function QPe(t,e){const n=this.cache;if(e.x!==void 0)(n[0]!==e.x||n[1]!==e.y||n[2]!==e.z||n[3]!==e.w)&&(t.uniform4f(this.addr,e.x,e.y,e.z,e.w),n[0]=e.x,n[1]=e.y,n[2]=e.z,n[3]=e.w);else{if(ur(n,e))return;t.uniform4fv(this.addr,e),cr(n,e)}}function JPe(t,e){const n=this.cache,i=e.elements;if(i===void 0){if(ur(n,e))return;t.uniformMatrix2fv(this.addr,!1,e),cr(n,e)}else{if(ur(n,i))return;Q9.set(i),t.uniformMatrix2fv(this.addr,!1,Q9),cr(n,i)}}function eOe(t,e){const n=this.cache,i=e.elements;if(i===void 0){if(ur(n,e))return;t.uniformMatrix3fv(this.addr,!1,e),cr(n,e)}else{if(ur(n,i))return;Z9.set(i),t.uniformMatrix3fv(this.addr,!1,Z9),cr(n,i)}}function tOe(t,e){const n=this.cache,i=e.elements;if(i===void 0){if(ur(n,e))return;t.uniformMatrix4fv(this.addr,!1,e),cr(n,e)}else{if(ur(n,i))return;K9.set(i),t.uniformMatrix4fv(this.addr,!1,K9),cr(n,i)}}function nOe(t,e){const n=this.cache;n[0]!==e&&(t.uniform1i(this.addr,e),n[0]=e)}function iOe(t,e){const n=this.cache;if(e.x!==void 0)(n[0]!==e.x||n[1]!==e.y)&&(t.uniform2i(this.addr,e.x,e.y),n[0]=e.x,n[1]=e.y);else{if(ur(n,e))return;t.uniform2iv(this.addr,e),cr(n,e)}}function rOe(t,e){const n=this.cache;if(e.x!==void 0)(n[0]!==e.x||n[1]!==e.y||n[2]!==e.z)&&(t.uniform3i(this.addr,e.x,e.y,e.z),n[0]=e.x,n[1]=e.y,n[2]=e.z);else{if(ur(n,e))return;t.uniform3iv(this.addr,e),cr(n,e)}}function sOe(t,e){const n=this.cache;if(e.x!==void 0)(n[0]!==e.x||n[1]!==e.y||n[2]!==e.z||n[3]!==e.w)&&(t.uniform4i(this.addr,e.x,e.y,e.z,e.w),n[0]=e.x,n[1]=e.y,n[2]=e.z,n[3]=e.w);else{if(ur(n,e))return;t.uniform4iv(this.addr,e),cr(n,e)}}function aOe(t,e){const n=this.cache;n[0]!==e&&(t.uniform1ui(this.addr,e),n[0]=e)}function oOe(t,e){const n=this.cache;if(e.x!==void 0)(n[0]!==e.x||n[1]!==e.y)&&(t.uniform2ui(this.addr,e.x,e.y),n[0]=e.x,n[1]=e.y);else{if(ur(n,e))return;t.uniform2uiv(this.addr,e),cr(n,e)}}function lOe(t,e){const n=this.cache;if(e.x!==void 0)(n[0]!==e.x||n[1]!==e.y||n[2]!==e.z)&&(t.uniform3ui(this.addr,e.x,e.y,e.z),n[0]=e.x,n[1]=e.y,n[2]=e.z);else{if(ur(n,e))return;t.uniform3uiv(this.addr,e),cr(n,e)}}function uOe(t,e){const n=this.cache;if(e.x!==void 0)(n[0]!==e.x||n[1]!==e.y||n[2]!==e.z||n[3]!==e.w)&&(t.uniform4ui(this.addr,e.x,e.y,e.z,e.w),n[0]=e.x,n[1]=e.y,n[2]=e.z,n[3]=e.w);else{if(ur(n,e))return;t.uniform4uiv(this.addr,e),cr(n,e)}}function cOe(t,e,n){const i=this.cache,r=n.allocateTextureUnit();i[0]!==r&&(t.uniform1i(this.addr,r),i[0]=r),n.setTexture2D(e||kQ,r)}function fOe(t,e,n){const i=this.cache,r=n.allocateTextureUnit();i[0]!==r&&(t.uniform1i(this.addr,r),i[0]=r),n.setTexture3D(e||LQ,r)}function dOe(t,e,n){const i=this.cache,r=n.allocateTextureUnit();i[0]!==r&&(t.uniform1i(this.addr,r),i[0]=r),n.setTextureCube(e||FQ,r)}function hOe(t,e,n){const i=this.cache,r=n.allocateTextureUnit();i[0]!==r&&(t.uniform1i(this.addr,r),i[0]=r),n.setTexture2DArray(e||IQ,r)}function pOe(t){switch(t){case 5126:return YPe;case 35664:return KPe;case 35665:return ZPe;case 35666:return QPe;case 35674:return JPe;case 35675:return eOe;case 35676:return tOe;case 5124:case 35670:return nOe;case 35667:case 35671:return iOe;case 35668:case 35672:return rOe;case 35669:case 35673:return sOe;case 5125:return aOe;case 36294:return oOe;case 36295:return lOe;case 36296:return uOe;case 35678:case 36198:case 36298:case 36306:case 35682:return cOe;case 35679:case 36299:case 36307:return fOe;case 35680:case 36300:case 36308:case 36293:return dOe;case 36289:case 36303:case 36311:case 36292:return hOe}}function mOe(t,e){t.uniform1fv(this.addr,e)}function gOe(t,e){const n=Yg(e,this.size,2);t.uniform2fv(this.addr,n)}function _Oe(t,e){const n=Yg(e,this.size,3);t.uniform3fv(this.addr,n)}function vOe(t,e){const n=Yg(e,this.size,4);t.uniform4fv(this.addr,n)}function yOe(t,e){const n=Yg(e,this.size,4);t.uniformMatrix2fv(this.addr,!1,n)}function bOe(t,e){const n=Yg(e,this.size,9);t.uniformMatrix3fv(this.addr,!1,n)}function xOe(t,e){const n=Yg(e,this.size,16);t.uniformMatrix4fv(this.addr,!1,n)}function SOe(t,e){t.uniform1iv(this.addr,e)}function TOe(t,e){t.uniform2iv(this.addr,e)}function EOe(t,e){t.uniform3iv(this.addr,e)}function wOe(t,e){t.uniform4iv(this.addr,e)}function COe(t,e){t.uniform1uiv(this.addr,e)}function AOe(t,e){t.uniform2uiv(this.addr,e)}function MOe(t,e){t.uniform3uiv(this.addr,e)}function DOe(t,e){t.uniform4uiv(this.addr,e)}function POe(t,e,n){const i=this.cache,r=e.length,s=Jw(n,r);ur(i,s)||(t.uniform1iv(this.addr,s),cr(i,s));for(let a=0;a!==r;++a)n.setTexture2D(e[a]||kQ,s[a])}function OOe(t,e,n){const i=this.cache,r=e.length,s=Jw(n,r);ur(i,s)||(t.uniform1iv(this.addr,s),cr(i,s));for(let a=0;a!==r;++a)n.setTexture3D(e[a]||LQ,s[a])}function ROe(t,e,n){const i=this.cache,r=e.length,s=Jw(n,r);ur(i,s)||(t.uniform1iv(this.addr,s),cr(i,s));for(let a=0;a!==r;++a)n.setTextureCube(e[a]||FQ,s[a])}function kOe(t,e,n){const i=this.cache,r=e.length,s=Jw(n,r);ur(i,s)||(t.uniform1iv(this.addr,s),cr(i,s));for(let a=0;a!==r;++a)n.setTexture2DArray(e[a]||IQ,s[a])}function IOe(t){switch(t){case 5126:return mOe;case 35664:return gOe;case 35665:return _Oe;case 35666:return vOe;case 35674:return yOe;case 35675:return bOe;case 35676:return xOe;case 5124:case 35670:return SOe;case 35667:case 35671:return TOe;case 35668:case 35672:return EOe;case 35669:case 35673:return wOe;case 5125:return COe;case 36294:return AOe;case 36295:return MOe;case 36296:return DOe;case 35678:case 36198:case 36298:case 36306:case 35682:return POe;case 35679:case 36299:case 36307:return OOe;case 35680:case 36300:case 36308:case 36293:return ROe;case 36289:case 36303:case 36311:case 36292:return kOe}}class LOe{constructor(e,n,i){this.id=e,this.addr=i,this.cache=[],this.setValue=pOe(n.type)}}class FOe{constructor(e,n,i){this.id=e,this.addr=i,this.cache=[],this.size=n.size,this.setValue=IOe(n.type)}}class NOe{constructor(e){this.id=e,this.seq=[],this.map={}}setValue(e,n,i){const r=this.seq;for(let s=0,a=r.length;s!==a;++s){const o=r[s];o.setValue(e,n[o.id],i)}}}const VD=/(\w+)(\])?(\[|\.)?/g;function J9(t,e){t.seq.push(e),t.map[e.id]=e}function BOe(t,e,n){const i=t.name,r=i.length;for(VD.lastIndex=0;;){const s=VD.exec(i),a=VD.lastIndex;let o=s[1];const l=s[2]==="]",u=s[3];if(l&&(o=o|0),u===void 0||u==="["&&a+2===r){J9(n,u===void 0?new LOe(o,t,e):new FOe(o,t,e));break}else{let f=n.map[o];f===void 0&&(f=new NOe(o),J9(n,f)),n=f}}}class NT{constructor(e,n){this.seq=[],this.map={};const i=e.getProgramParameter(n,e.ACTIVE_UNIFORMS);for(let r=0;r<i;++r){const s=e.getActiveUniform(n,r),a=e.getUniformLocation(n,s.name);BOe(s,a,this)}}setValue(e,n,i,r){const s=this.map[n];s!==void 0&&s.setValue(e,i,r)}setOptional(e,n,i){const r=n[i];r!==void 0&&this.setValue(e,i,r)}static upload(e,n,i,r){for(let s=0,a=n.length;s!==a;++s){const o=n[s],l=i[o.id];l.needsUpdate!==!1&&o.setValue(e,l.value,r)}}static seqWithValue(e,n){const i=[];for(let r=0,s=e.length;r!==s;++r){const a=e[r];a.id in n&&i.push(a)}return i}}function e7(t,e,n){const i=t.createShader(e);return t.shaderSource(i,n),t.compileShader(i),i}let UOe=0;function $Oe(t,e){const n=t.split(`
3805`),i=[],r=Math.max(e-6,0),s=Math.min(e+6,n.length);for(let a=r;a<s;a++){const o=a+1;i.push(`${o===e?">":" "} ${o}: ${n[a]}`)}return i.join(`
3806`)}function zOe(t){switch(t){case _u:return["Linear","( value )"];case ln:return["sRGB","( value )"];default:return console.warn("THREE.WebGLProgram: Unsupported color space:",t),["Linear","( value )"]}}function t7(t,e,n){const i=t.getShaderParameter(e,t.COMPILE_STATUS),r=t.getShaderInfoLog(e).trim();if(i&&r==="")return"";const s=/ERROR: 0:(\d+)/.exec(r);if(s){const a=parseInt(s[1]);return n.toUpperCase()+`
3807
3808`+r+`
3809
3810`+$Oe(t.getShaderSource(e),a)}else return r}function HOe(t,e){const n=zOe(e);return"vec4 "+t+"( vec4 value ) { return LinearTo"+n[0]+n[1]+"; }"}function VOe(t,e){let n;switch(e){case FAe:n="Linear";break;case NAe:n="Reinhard";break;case BAe:n="OptimizedCineon";break;case UAe:n="ACESFilmic";break;case $Ae:n="Custom";break;default:console.warn("THREE.WebGLProgram: Unsupported toneMapping:",e),n="Linear"}return"vec3 "+t+"( vec3 color ) { return "+n+"ToneMapping( color ); }"}function WOe(t){return[t.extensionDerivatives||!!t.envMapCubeUVHeight||t.bumpMap||t.normalMapTangentSpace||t.clearcoatNormalMap||t.flatShading||t.shaderID==="physical"?"#extension GL_OES_standard_derivatives : enable":"",(t.extensionFragDepth||t.logarithmicDepthBuffer)&&t.rendererExtensionFragDepth?"#extension GL_EXT_frag_depth : enable":"",t.extensionDrawBuffers&&t.rendererExtensionDrawBuffers?"#extension GL_EXT_draw_buffers : require":"",(t.extensionShaderTextureLOD||t.envMap||t.transmission)&&t.rendererExtensionShaderTextureLod?"#extension GL_EXT_shader_texture_lod : enable":""].filter(Dv).join(`
3811`)}function GOe(t){const e=[];for(const n in t){const i=t[n];i!==!1&&e.push("#define "+n+" "+i)}return e.join(`
3812`)}function jOe(t,e){const n={},i=t.getProgramParameter(e,t.ACTIVE_ATTRIBUTES);for(let r=0;r<i;r++){const s=t.getActiveAttrib(e,r),a=s.name;let o=1;s.type===t.FLOAT_MAT2&&(o=2),s.type===t.FLOAT_MAT3&&(o=3),s.type===t.FLOAT_MAT4&&(o=4),n[a]={type:s.type,location:t.getAttribLocation(e,a),locationSize:o}}return n}function Dv(t){return t!==""}function n7(t,e){const n=e.numSpotLightShadows+e.numSpotLightMaps-e.numSpotLightShadowsWithMaps;return t.replace(/NUM_DIR_LIGHTS/g,e.numDirLights).replace(/NUM_SPOT_LIGHTS/g,e.numSpotLights).replace(/NUM_SPOT_LIGHT_MAPS/g,e.numSpotLightMaps).replace(/NUM_SPOT_LIGHT_COORDS/g,n).replace(/NUM_RECT_AREA_LIGHTS/g,e.numRectAreaLights).replace(/NUM_POINT_LIGHTS/g,e.numPointLights).replace(/NUM_HEMI_LIGHTS/g,e.numHemiLights).replace(/NUM_DIR_LIGHT_SHADOWS/g,e.numDirLightShadows).replace(/NUM_SPOT_LIGHT_SHADOWS_WITH_MAPS/g,e.numSpotLightShadowsWithMaps).replace(/NUM_SPOT_LIGHT_SHADOWS/g,e.numSpotLightShadows).replace(/NUM_POINT_LIGHT_SHADOWS/g,e.numPointLightShadows)}function i7(t,e){return t.replace(/NUM_CLIPPING_PLANES/g,e.numClippingPlanes).replace(/UNION_CLIPPING_PLANES/g,e.numClippingPlanes-e.numClipIntersection)}const qOe=/^[ \t]*#include +<([\w\d./]+)>/gm;function dR(t){return t.replace(qOe,YOe)}const XOe=new Map([["encodings_fragment","colorspace_fragment"],["encodings_pars_fragment","colorspace_pars_fragment"],["output_fragment","opaque_fragment"]]);function YOe(t,e){let n=on[e];if(n===void 0){const i=XOe.get(e);if(i!==void 0)n=on[i],console.warn('THREE.WebGLRenderer: Shader chunk "%s" has been deprecated. Use "%s" instead.',e,i);else throw new Error("Can not resolve #include <"+e+">")}return dR(n)}const KOe=/#pragma unroll_loop_start\s+for\s*\(\s*int\s+i\s*=\s*(\d+)\s*;\s*i\s*<\s*(\d+)\s*;\s*i\s*\+\+\s*\)\s*{([\s\S]+?)}\s+#pragma unroll_loop_end/g;function r7(t){return t.replace(KOe,ZOe)}function ZOe(t,e,n,i){let r="";for(let s=parseInt(e);s<parseInt(n);s++)r+=i.replace(/\[\s*i\s*\]/g,"[ "+s+" ]").replace(/UNROLLED_LOOP_INDEX/g,s);return r}function s7(t){let e="precision "+t.precision+` float;
3813precision `+t.precision+" int;";return t.precision==="highp"?e+=`
3814#define HIGH_PRECISION`:t.precision==="mediump"?e+=`
3815#define MEDIUM_PRECISION`:t.precision==="lowp"&&(e+=`
3816#define LOW_PRECISION`),e}function QOe(t){let e="SHADOWMAP_TYPE_BASIC";return t.shadowMapType===oQ?e="SHADOWMAP_TYPE_PCF":t.shadowMapType===pAe?e="SHADOWMAP_TYPE_PCF_SOFT":t.shadowMapType===Qu&&(e="SHADOWMAP_TYPE_VSM"),e}function JOe(t){let e="ENVMAP_TYPE_CUBE";if(t.envMap)switch(t.envMapMode){case Tg:case Eg:e="ENVMAP_TYPE_CUBE";break;case Zw:e="ENVMAP_TYPE_CUBE_UV";break}return e}function eRe(t){let e="ENVMAP_MODE_REFLECTION";if(t.envMap)switch(t.envMapMode){case Eg:e="ENVMAP_MODE_REFRACTION";break}return e}function tRe(t){let e="ENVMAP_BLENDING_NONE";if(t.envMap)switch(t.combine){case cQ:e="ENVMAP_BLENDING_MULTIPLY";break;case IAe:e="ENVMAP_BLENDING_MIX";break;case LAe:e="ENVMAP_BLENDING_ADD";break}return e}function nRe(t){const e=t.envMapCubeUVHeight;if(e===null)return null;const n=Math.log2(e)-2,i=1/e;return{texelWidth:1/(3*Math.max(Math.pow(2,n),7*16)),texelHeight:i,maxMip:n}}function iRe(t,e,n,i){const r=t.getContext(),s=n.defines;let a=n.vertexShader,o=n.fragmentShader;const l=QOe(n),u=JOe(n),c=eRe(n),f=tRe(n),h=nRe(n),p=n.isWebGL2?"":WOe(n),m=GOe(s),y=r.createProgram();let v,_,b=n.glslVersion?"#version "+n.glslVersion+`
3817`:"";n.isRawShaderMaterial?(v=["#define SHADER_TYPE "+n.shaderType,"#define SHADER_NAME "+n.shaderName,m].filter(Dv).join(`
3818`),v.length>0&&(v+=`
3819`),_=[p,"#define SHADER_TYPE "+n.shaderType,"#define SHADER_NAME "+n.shaderName,m].filter(Dv).join(`
3820`),_.length>0&&(_+=`
3821`)):(v=[s7(n),"#define SHADER_TYPE "+n.shaderType,"#define SHADER_NAME "+n.shaderName,m,n.instancing?"#define USE_INSTANCING":"",n.instancingColor?"#define USE_INSTANCING_COLOR":"",n.useFog&&n.fog?"#define USE_FOG":"",n.useFog&&n.fogExp2?"#define FOG_EXP2":"",n.map?"#define USE_MAP":"",n.envMap?"#define USE_ENVMAP":"",n.envMap?"#define "+c:"",n.lightMap?"#define USE_LIGHTMAP":"",n.aoMap?"#define USE_AOMAP":"",n.bumpMap?"#define USE_BUMPMAP":"",n.normalMap?"#define USE_NORMALMAP":"",n.normalMapObjectSpace?"#define USE_NORMALMAP_OBJECTSPACE":"",n.normalMapTangentSpace?"#define USE_NORMALMAP_TANGENTSPACE":"",n.displacementMap?"#define USE_DISPLACEMENTMAP":"",n.emissiveMap?"#define USE_EMISSIVEMAP":"",n.anisotropyMap?"#define USE_ANISOTROPYMAP":"",n.clearcoatMap?"#define USE_CLEARCOATMAP":"",n.clearcoatRoughnessMap?"#define USE_CLEARCOAT_ROUGHNESSMAP":"",n.clearcoatNormalMap?"#define USE_CLEARCOAT_NORMALMAP":"",n.iridescenceMap?"#define USE_IR
3821IDESCENCEMAP":"",n.iridescenceThicknessMap?"#define USE_IRIDESCENCE_THICKNESSMAP":"",n.specularMap?"#define USE_SPECULARMAP":"",n.specularColorMap?"#define USE_SPECULAR_COLORMAP":"",n.specularIntensityMap?"#define USE_SPECULAR_INTENSITYMAP":"",n.roughnessMap?"#define USE_ROUGHNESSMAP":"",n.metalnessMap?"#define USE_METALNESSMAP":"",n.alphaMap?"#define USE_ALPHAMAP":"",n.alphaHash?"#define USE_ALPHAHASH":"",n.transmission?"#define USE_TRANSMISSION":"",n.transmissionMap?"#define USE_TRANSMISSIONMAP":"",n.thicknessMap?"#define USE_THICKNESSMAP":"",n.sheenColorMap?"#define USE_SHEEN_COLORMAP":"",n.sheenRoughnessMap?"#define USE_SHEEN_ROUGHNESSMAP":"",n.mapUv?"#define MAP_UV "+n.mapUv:"",n.alphaMapUv?"#define ALPHAMAP_UV "+n.alphaMapUv:"",n.lightMapUv?"#define LIGHTMAP_UV "+n.lightMapUv:"",n.aoMapUv?"#define AOMAP_UV "+n.aoMapUv:"",n.emissiveMapUv?"#define EMISSIVEMAP_UV "+n.emissiveMapUv:"",n.bumpMapUv?"#define BUMPMAP_UV "+n.bumpMapUv:"",n.normalMapUv?"#define NORMALMAP_UV "+n.normalMapUv:"",n.displacementMapUv?"#define DISPLACEMENTMAP_UV "+n.displacementMapUv:"",n.metalnessMapUv?"#define METALNESSMAP_UV "+n.metalnessMapUv:"",n.roughnessMapUv?"#define ROUGHNESSMAP_UV "+n.roughnessMapUv:"",n.anisotropyMapUv?"#define ANISOTROPYMAP_UV "+n.anisotropyMapUv:"",n.clearcoatMapUv?"#define CLEARCOATMAP_UV "+n.clearcoatMapUv:"",n.clearcoatNormalMapUv?"#define CLEARCOAT_NORMALMAP_UV "+n.clearcoatNormalMapUv:"",n.clearcoatRoughnessMapUv?"#define CLEARCOAT_ROUGHNESSMAP_UV "+n.clearcoatRoughnessMapUv:"",n.iridescenceMapUv?"#define IRIDESCENCEMAP_UV "+n.iridescenceMapUv:"",n.iridescenceThicknessMapUv?"#define IRIDESCENCE_THICKNESSMAP_UV "+n.iridescenceThicknessMapUv:"",n.sheenColorMapUv?"#define SHEEN_COLORMAP_UV "+n.sheenColorMapUv:"",n.sheenRoughnessMapUv?"#define SHEEN_ROUGHNESSMAP_UV "+n.sheenRoughnessMapUv:"",n.specularMapUv?"#define SPECULARMAP_UV "+n.specularMapUv:"",n.specularColorMapUv?"#define SPECULAR_COLORMAP_UV "+n.specularColorMapUv:"",n.specularIntensityMapUv?"#define SPECULAR_INTENSITYMAP_UV "+n.specularIntensityMapUv:"",n.transmissionMapUv?"#define TRANSMISSIONMAP_UV "+n.transmissionMapUv:"",n.thicknessMapUv?"#define THICKNESSMAP_UV "+n.thicknessMapUv:"",n.vertexTangents&&n.flatShading===!1?"#define USE_TANGENT":"",n.vertexColors?"#define USE_COLOR":"",n.vertexAlphas?"#define USE_COLOR_ALPHA":"",n.vertexUv1s?"#define USE_UV1":"",n.vertexUv2s?"#define USE_UV2":"",n.vertexUv3s?"#define USE_UV3":"",n.pointsUvs?"#define USE_POINTS_UV":"",n.flatShading?"#define FLAT_SHADED":"",n.skinning?"#define USE_SKINNING":"",n.morphTargets?"#define USE_MORPHTARGETS":"",n.morphNormals&&n.flatShading===!1?"#define USE_MORPHNORMALS":"",n.morphColors&&n.isWebGL2?"#define USE_MORPHCOLORS":"",n.morphTargetsCount>0&&n.isWebGL2?"#define MORPHTARGETS_TEXTURE":"",n.morphTargetsCount>0&&n.isWebGL2?"#define MORPHTARGETS_TEXTURE_STRIDE "+n.morphTextureStride:"",n.morphTargetsCount>0&&n.isWebGL2?"#define MORPHTARGETS_COUNT "+n.morphTargetsCount:"",n.doubleSided?"#define DOUBLE_SIDED":"",n.flipSided?"#define FLIP_SIDED":"",n.shadowMapEnabled?"#define USE_SHADOWMAP":"",n.shadowMapEnabled?"#define "+l:"",n.sizeAttenuation?"#define USE_SIZEATTENUATION":"",n.useLegacyLights?"#define LEGACY_LIGHTS":"",n.logarithmicDepthBuffer?"#define USE_LOGDEPTHBUF":"",n.logarithmicDepthBuffer&&n.rendererExtensionFragDepth?"#define USE_LOGDEPTHBUF_EXT":"","uniform mat4 modelMatrix;","uniform mat4 modelViewMatrix;","uniform mat4 projectionMatrix;","uniform mat4 viewMatrix;","uniform mat3 normalMatrix;","uniform vec3 cameraPosition;","uniform bool isOrthographic;","#ifdef USE_INSTANCING","	attribute mat4 instanceMatrix;","#endif","#ifdef USE_INSTANCING_COLOR","	attribute vec3 instanceColor;","#endif","attribute vec3 position;","attribute vec3 normal;","attribute vec2 uv;","#ifdef USE_UV1","	attribute vec2 uv1;","#endif","#ifdef USE_UV2","	attribute vec2 uv2;","#endif","#ifdef USE_UV3","	attribute vec2 uv3;","#endif","#ifdef USE_TANGENT","	attribute vec4 tangent;","#endif","#if defined( USE_COLOR_ALPHA )","	attribute vec4 color;","#elif defined( USE_COLOR )","	attribute vec3 color;","#endif","#if ( defined( USE_MORPHTARGETS ) && ! defined( MORPHTARGETS_TEXTURE ) )","	attribute vec3 morphTarget0;","	attribute vec3 morphTarget1;","	attribute vec3 morphTarget2;","	attribute vec3 morphTarget3;","	#ifdef USE_MORPHNORMALS","		attribute vec3 morphNormal0;","		attribute vec3 morphNormal1;","		attribute vec3 morphNormal2;","		attribute vec3 morphNormal3;","	#else","		attribute vec3 morphTarget4;","		attribute vec3 morphTarget5;","		attribute vec3 morphTarget6;","		attribute vec3 morphTarget7;","	#endif","#endif","#ifdef USE_SKINNING","	attribute vec4 skinIndex;","	attribute vec4 skinWeight;","#endif",`
3822`].filter(Dv).join(`
3823`),_=[p,s7(n),"#define SHADER_TYPE "+n.shaderType,"#define SHADER_NAME "+n.shaderName,m,n.useFog&&n.fog?"#define USE_FOG":"",n.useFog&&n.fogExp2?"#define FOG_EXP2":"",n.map?"#define USE_MAP":"",n.matcap?"#define USE_MATCAP":"",n.envMap?"#define USE_ENVMAP":"",n.envMap?"#define "+u:"",n.envMap?"#define "+c:"",n.envMap?"#define "+f:"",h?"#define CUBEUV_TEXEL_WIDTH "+h.texelWidth:"",h?"#define CUBEUV_TEXEL_HEIGHT "+h.texelHeight:"",h?"#define CUBEUV_MAX_MIP "+h.maxMip+".0":"",n.lightMap?"#define USE_LIGHTMAP":"",n.aoMap?"#define USE_AOMAP":"",n.bumpMap?"#define USE_BUMPMAP":"",n.normalMap?"#define USE_NORMALMAP":"",n.normalMapObjectSpace?"#define USE_NORMALMAP_OBJECTSPACE":"",n.normalMapTangentSpace?"#define USE_NORMALMAP_TANGENTSPACE":"",n.emissiveMap?"#define USE_EMISSIVEMAP":"",n.anisotropy?"#define USE_ANISOTROPY":"",n.anisotropyMap?"#define USE_ANISOTROPYMAP":"",n.clearcoat?"#define USE_CLEARCOAT":"",n.clearcoatMap?"#define USE_CLEARCOATMAP":"",n.clearcoatRoughnessMap?"#define USE_CLEARCOAT_ROUGHNESSMAP":"",n.clearcoatNormalMap?"#define USE_CLEARCOAT_NORMALMAP":"",n.iridescence?"#define USE_IR
3823IDESCENCE":"",n.iridescenceMap?"#define USE_IRIDESCENCEMAP":"",n.iridescenceThicknessMap?"#define USE_IRIDESCENCE_THICKNESSMAP":"",n.specularMap?"#define USE_SPECULARMAP":"",n.specularColorMap?"#define USE_SPECULAR_COLORMAP":"",n.specularIntensityMap?"#define USE_SPECULAR_INTENSITYMAP":"",n.roughnessMap?"#define USE_ROUGHNESSMAP":"",n.metalnessMap?"#define USE_METALNESSMAP":"",n.alphaMap?"#define USE_ALPHAMAP":"",n.alphaTest?"#define USE_ALPHATEST":"",n.alphaHash?"#define USE_ALPHAHASH":"",n.sheen?"#define USE_SHEEN":"",n.sheenColorMap?"#define USE_SHEEN_COLORMAP":"",n.sheenRoughnessMap?"#define USE_SHEEN_ROUGHNESSMAP":"",n.transmission?"#define USE_TRANSMISSION":"",n.transmissionMap?"#define USE_TRANSMISSIONMAP":"",n.thicknessMap?"#define USE_THICKNESSMAP":"",n.vertexTangents&&n.flatShading===!1?"#define USE_TANGENT":"",n.vertexColors||n.instancingColor?"#define USE_COLOR":"",n.vertexAlphas?"#define USE_COLOR_ALPHA":"",n.vertexUv1s?"#define USE_UV1":"",n.vertexUv2s?"#define USE_UV2":"",n.vertexUv3s?"#define USE_UV3":"",n.pointsUvs?"#define USE_POINTS_UV":"",n.gradientMap?"#define USE_GRADIENTMAP":"",n.flatShading?"#define FLAT_SHADED":"",n.doubleSided?"#define DOUBLE_SIDED":"",n.flipSided?"#define FLIP_SIDED":"",n.shadowMapEnabled?"#define USE_SHADOWMAP":"",n.shadowMapEnabled?"#define "+l:"",n.premultipliedAlpha?"#define PREMULTIPLIED_ALPHA":"",n.useLegacyLights?"#define LEGACY_LIGHTS":"",n.logarithmicDepthBuffer?"#define USE_LOGDEPTHBUF":"",n.logarithmicDepthBuffer&&n.rendererExtensionFragDepth?"#define USE_LOGDEPTHBUF_EXT":"","uniform mat4 viewMatrix;","uniform vec3 cameraPosition;","uniform bool isOrthographic;",n.toneMapping!==nd?"#define TONE_MAPPING":"",n.toneMapping!==nd?on.tonemapping_pars_fragment:"",n.toneMapping!==nd?VOe("toneMapping",n.toneMapping):"",n.dithering?"#define DITHERING":"",n.opaque?"#define OPAQUE":"",on.colorspace_pars_fragment,HOe("linearToOutputTexel",n.outputColorSpace),n.useDepthPacking?"#define DEPTH_PACKING "+n.depthPacking:"",`
3824`].filter(Dv).join(`
3825`)),a=dR(a),a=n7(a,n),a=i7(a,n),o=dR(o),o=n7(o,n),o=i7(o,n),a=r7(a),o=r7(o),n.isWebGL2&&n.isRawShaderMaterial!==!0&&(b=`#version 300 es
3826`,v=["precision mediump sampler2DArray;","#define attribute in","#define varying out","#define texture2D texture"].join(`
3827`)+`
3828`+v,_=["#define varying in",n.glslVersion===E9?"":"layout(location = 0) out highp vec4 pc_fragColor;",n.glslVersion===E9?"":"#define gl_FragColor pc_fragColor","#define gl_FragDepthEXT gl_FragDepth","#define texture2D texture","#define textureCube texture","#define texture2DProj textureProj","#define texture2DLodEXT textureLod","#define texture2DProjLodEXT textureProjLod","#define textureCubeLodEXT textureLod","#define texture2DGradEXT textureGrad","#define texture2DProjGradEXT textureProjGrad","#define textureCubeGradEXT textureGrad"].join(`
3829`)+`
3830`+_);const x=b+v+a,T=b+_+o,E=e7(r,r.VERTEX_SHADER,x),C=e7(r,r.FRAGMENT_SHADER,T);if(r.attachShader(y,E),r.attachShader(y,C),n.index0AttributeName!==void 0?r.bindAttribLocation(y,0,n.index0AttributeName):n.morphTargets===!0&&r.bindAttribLocation(y,0,"position"),r.linkProgram(y),t.debug.checkShaderErrors){const A=r.getProgramInfoLog(y).trim(),k=r.getShaderInfoLog(E).trim(),F=r.getShaderInfoLog(C).trim();let N=!0,U=!0;if(r.getProgramParameter(y,r.LINK_STATUS)===!1)if(N=!1,typeof t.debug.onShaderError=="function")t.debug.onShaderError(r,y,E,C);else{const $=t7(r,E,"vertex"),G=t7(r,C,"fragment");console.error("THREE.WebGLProgram: Shader Error "+r.getError()+" - VALIDATE_STATUS "+r.getProgramParameter(y,r.VALIDATE_STATUS)+`
3831
3832Program Info Log: `+A+`
3833`+$+`
3834`+G)}else A!==""?console.warn("THREE.WebGLProgram: Program Info Log:",A):(k===""||F==="")&&(U=!1);U&&(this.diagnostics={runnable:N,programLog:A,vertexShader:{log:k,prefix:v},fragmentShader:{log:F,prefix:_}})}r.deleteShader(E),r.deleteShader(C);let D;
vendor: 20,758 bytes, lines 3834-3840
3834this.getUniforms=function(){return D===void 0&&(D=new NT(r,y)),D};let R;return this.getAttributes=function(){return R===void 0&&(R=jOe(r,y)),R},this.destroy=function(){i.releaseStatesOfProgram(this),r.deleteProgram(y),this.program=void 0},this.type=n.shaderType,this.name=n.shaderName,this.id=UOe++,this.cacheKey=e,this.usedTimes=1,this.program=y,this.vertexShader=E,this.fragmentShader=C,this}let rRe=0;class sRe{constructor(){this.shaderCache=new Map,this.materialCache=new Map}update(e){const n=e.vertexShader,i=e.fragmentShader,r=this._getShaderStage(n),s=this._getShaderStage(i),a=this._getShaderCacheForMaterial(e);return a.has(r)===!1&&(a.add(r),r.usedTimes++),a.has(s)===!1&&(a.add(s),s.usedTimes++),this}remove(e){const n=this.materialCache.get(e);for(const i of n)i.usedTimes--,i.usedTimes===0&&this.shaderCache.delete(i.code);return this.materialCache.delete(e),this}getVertexShaderID(e){return this._getShaderStage(e.vertexShader).id}getFragmentShaderID(e){return this._getShaderStage(e.fragmentShader).id}dispose(){this.shaderCache.clear(),this.materialCache.clear()}_getShaderCacheForMaterial(e){const n=this.materialCache;let i=n.get(e);return i===void 0&&(i=new Set,n.set(e,i)),i}_getShaderStage(e){const n=this.shaderCache;let i=n.get(e);return i===void 0&&(i=new aRe(e),n.set(e,i)),i}}class aRe{constructor(e){this.id=rRe++,this.code=e,this.usedTimes=0}}function oRe(t,e,n,i,r,s,a){const o=new v4,l=new sRe,u=[],c=r.isWebGL2,f=r.logarithmicDepthBuffer,h=r.vertexTextures;let p=r.precision;const m={MeshDepthMaterial:"depth",MeshDistanceMaterial:"distanceRGBA",MeshNormalMaterial:"normal",MeshBasicMaterial:"basic",MeshLambertMaterial:"lambert",MeshPhongMaterial:"phong",MeshToonMaterial:"toon",MeshStandardMaterial:"physical",MeshPhysicalMaterial:"physical",MeshMatcapMaterial:"matcap",LineBasicMaterial:"basic",LineDashedMaterial:"dashed",PointsMaterial:"points",ShadowMaterial:"shadow",SpriteMaterial:"sprite"};function y(A){return A===0?"uv":`uv${A}`}function v(A,k,F,N,U){const $=N.fog,G=U.geometry,Y=A.isMeshStandardMaterial?N.environment:null,Q=(A.isMeshStandardMaterial?n:e).get(A.envMap||Y),re=!!Q&&Q.mapping===Zw?Q.image.height:null,he=m[A.type];A.precision!==null&&(p=r.getMaxPrecision(A.precision),p!==A.precision&&console.warn("THREE.WebGLProgram.getParameters:",A.precision,"not supported, using",p,"instead."));const X=G.morphAttributes.position||G.morphAttributes.normal||G.morphAttributes.color,ae=X!==void 0?X.length:0;let de=0;G.morphAttributes.position!==void 0&&(de=1),G.morphAttributes.normal!==void 0&&(de=2),G.morphAttributes.color!==void 0&&(de=3);let Re,_e,xe,we;if(he){const ht=$l[he];Re=ht.vertexShader,_e=ht.fragmentShader}else Re=A.vertexShader,_e=A.fragmentShader,l.update(A),xe=l.getVertexShaderID(A),we=l.getFragmentShaderID(A);const ve=t.getRenderTarget(),De=U.isInstancedMesh===!0,We=!!A.map,lt=!!A.matcap,Ze=!!Q,z=!!A.aoMap,J=!!A.lightMap,te=!!A.bumpMap,pe=!!A.normalMap,me=!!A.displacementMap,ne=!!A.emissiveMap,Le=!!A.metalnessMap,Pe=!!A.roughnessMap,Ce=A.anisotropy>0,Te=A.clearcoat>0,et=A.iridescence>0,j=A.sheen>0,V=A.transmission>0,oe=Ce&&!!A.anisotropyMap,Ne=Te&&!!A.clearcoatMap,Ae=Te&&!!A.clearcoatNormalMap,Ue=Te&&!!A.clearcoatRoughnessMap,tt=et&&!!A.iridescenceMap,qe=et&&!!A.iridescenceThicknessMap,ke=j&&!!A.sheenColorMap,ie=j&&!!A.sheenRoughnessMap,Ve=!!A.specularMap,rt=!!A.specularColorMap,Je=!!A.specularIntensityMap,nt=V&&!!A.transmissionMap,Tt=V&&!!A.thicknessMap,Mt=!!A.gradientMap,ce=!!A.alphaMap,ot=A.alphaTest>0,Oe=!!A.alphaHash,Qe=!!A.extensions,st=!!G.attributes.uv1,Rt=!!G.attributes.uv2,Vt=!!G.attributes.uv3;let Wt=nd;return A.toneMapped&&(ve===null||ve.isXRRenderTarget===!0)&&(Wt=t.toneMapping),{isWebGL2:c,shaderID:he,shaderType:A.type,shaderName:A.name,vertexShader:Re,fragmentShader:_e,defines:A.defines,customVertexShaderID:xe,customFragmentShaderID:we,isRawShaderMaterial:A.isRawShaderMaterial===!0,glslVersion:A.glslVersion,precision:p,instancing:De,instancingColor:De&&U.instanceColor!==null,supportsVertexTextures:h,outputColorSpace:ve===null?t.outputColorSpace:ve.isXRRenderTarget===!0?ve.texture.colorSpace:_u,map:We,matcap:lt,envMap:Ze,envMapMode:Ze&&Q.mapping,envMapCubeUVHeight:re,aoMap:z,lightMap:J,bumpMap:te,normalMap:pe,displacementMap:h&&me,emissiveMap:ne,normalMapObjectSpace:pe&&A.normalMapType===eMe,normalMapTangentSpace:pe&&A.normalMapType===JAe,metalnessMap:Le,roughnessMap:Pe,anisotropy:Ce,anisotropyMap:oe,clearcoat:Te,clearcoatMap:Ne,clearcoatNormalMap:Ae,clearcoatRoughnessMap:Ue,iridescence:et,iridescenceMap:tt,iridescenceThicknessMap:qe,sheen:j,sheenColorMap:ke,sheenRoughnessMap:ie,specularMap:Ve,specularColorMap:rt,specularIntensityMap:Je,transmission:V,transmissionMap:nt,thicknessMap:Tt,gradientMap:Mt,opaque:A.transparent===!1&&A.blending===Bm,alphaMap:ce,alphaTest:ot,alphaHash:Oe,combine:A.combine,mapUv:We&&y(A.map.channel),aoMapUv:z&&y(A.aoMap.channel),lightMapUv:J&&y(A.lightMap.channel),bumpMapUv:te&&y(A.bumpMap.channel),normalMapUv:pe&&y(A.normalMap.channel),displacementMapUv:me&&y(A.displacementMap.channel),emissiveMapUv:ne&&y(A.emissiveMap.channel),metalnessMapUv:Le&&y(A.metalnessMap.channel),roughnessMapUv:Pe&&y(A.roughnessMap.channel),anisotropyMapUv:oe&&y(A.anisotropyMap.channel),clearcoatMapUv:Ne&&y(A.clearcoatMap.channel),clearcoatNormalMapUv:Ae&&y(A.clearcoatNormalMap.channel),clearcoatRoughnessMapUv:Ue&&y(A.clearcoatRoughnessMap.channel),iridescenceMapUv:tt&&y(A.iridescenceMap.channel),iridescenceThicknessMapUv:qe&&y(A.iridescenceThicknessMap.channel),sheenColorMapUv:ke&&y(A.sheenColorMap.channel),sheenRoughnessMapUv:ie&&y(A.sheenRoughnessMap.channel),specularMapUv:Ve&&y(A.specularMap.channel),specularColorMapUv:rt&&y(A.specularColorMap.channel),specularIntensityMapUv:Je&&y(A.specularIntensityMap.channel),transmissionMapUv:nt&&y(A.transmissionMap.channel),thicknessMapUv:Tt&&y(A.thicknessMap.channel),alphaMapUv:ce&&y(A.alphaMap.channel),vertexTangents:!!G.attributes.tangent&&(pe||Ce),vertexColors:A.vertexColors,vertexAlphas:A.vertexColors===!0&&!!G.attributes.color&&G.attributes.color.itemSize===4,vertexUv1s:st,vertexUv2s:Rt,vertexUv3s:Vt,pointsUvs:U.isPoints===!0&&!!G.attributes.uv&&(We||ce),fog:!!$,useFog:A.fog===!0,fogExp2:$&&$.isFogExp2,flatShading:A.flatShading===!0,sizeAttenuation:A.sizeAttenuation===!0,logarithmicDepthBuffer:f,skinning:U.isSkinnedMesh===!0,morphTargets:G.morphAttributes.position!==void 0,morphNormals:G.morphAttributes.normal!==void 0,morphColors:G.morphAttributes.color!==void 0,morphTargetsCount:ae,morphTextureStride:de,numDirLights:k.directional.length,numPointLights:k.point.length,numSpotLights:k.spot.length,numSpotLightMaps:k.spotLightMap.length,numRectAreaLights:k.rectArea.length,numHemiLights:k.hemi.length,numDirLightShadows:k.directionalShadowMap.length,numPointLightShadows:k.pointShadowMap.length,numSpotLightShadows:k.spotShadowMap.length,numSpotLightShadowsWithMaps:k.numSpotLightShadowsWithMaps,numClippingPlanes:a.numPlanes,numClipIntersection:a.numIntersection,dithering:A.dithering,shadowMapEnabled:t.shadowMap.enabled&&F.length>0,shadowMapType:t.shadowMap.type,toneMapping:Wt,useLegacyLights:t._useLegacyLights,premultipliedAlpha:A.premultipliedAlpha,doubleSided:A.side===hc,flipSided:A.side===sa,useDepthPacking:A.depthPacking>=0,depthPacking:A.depthPacking||0,index0AttributeName:A.index0AttributeName,extensionDerivatives:Qe&&A.extensions.derivatives===!0,extensionFragDepth:Qe&&A.extensions.fragDepth===!0,extensionDrawBuffers:Qe&&A.extensions.drawBuffers===!0,extensionShaderTextureLOD:Qe&&A.extensions.shaderTextureLOD===!0,rendererExtensionFragDepth:c||i.has("EXT_frag_depth"),rendererExtensionDrawBuffers:c||i.has("WEBGL_draw_buffers"),rendererExtensionShaderTextureLod:c||i.has("EXT_shader_texture_lod"),customProgramCacheKey:A.customProgramCacheKey()}}function _(A){const k=[];if(A.shaderID?k.push(A.shaderID):(k.push(A.customVertexShaderID),k.push(A.customFragmentShaderID)),A.defines!==void 0)for(const F in A.defines)k.push(F),k.push(A.defines[F]);return A.isRawShaderMaterial===!1&&(b(k,A),x(k,A),k.push(t.outputColorSpace)),k.push(A.customProgramCacheKey),k.join()}function b(A,k){A.push(k.precision),A.push(k.outputColorSpace),A.push(k.envMapMode),A.push(k.envMapCubeUVHeight),A.push(k.mapUv),A.push(k.alphaMapUv),A.push(k.lightMapUv),A.push(k.aoMapUv),A.push(k.bumpMapUv),A.push(k.normalMapUv),A.push(k.displacementMapUv),A.push(k.emissiveMapUv),A.push(k.metalnessMapUv),A.push(k.roughnessMapUv),A.push(k.anisotropyMapUv),A.push(k.clearcoatMapUv),A.push(k.clearcoatNormalMapUv),A.push(k.clearcoatRoughnessMapUv),A.push(k.iridescenceMapUv),A.push(k.iridescenceThicknessMapUv),A.push(k.sheenColorMapUv),A.push(k.sheenRoughnessMapUv),A.push(k.specularMapUv),A.push(k.specularColorMapUv),A.push(k.specularIntensityMapUv),A.push(k.transmissionMapUv),A.push(k.thicknessMapUv),A.push(k.combine),A.push(k.fogExp2),A.push(k.sizeAttenuation),A.push(k.morphTargetsCount),A.push(k.morphAttributeCount),A.push(k.numDirLights),A.push(k.numPointLights),A.push(k.numSpotLights),A.push(k.numSpotLightMaps),A.push(k.numHemiLights),A.push(k.numRectAreaLights),A.push(k.numDirLightShadows),A.push(k.numPointLightShadows),A.push(k.numSpotLightShadows),A.push(k.numSpotLightShadowsWithMaps),A.push(k.shadowMapType),A.push(k.toneMapping),A.push(k.numClippingPlanes),A.push(k.numClipIntersection),A.push(k.depthPacking)}function x(A,k){o.disableAll(),k.isWebGL2&&o.enable(0),k.supportsVertexTextures&&o.enable(1),k.instancing&&o.enable(2),k.instancingColor&&o.enable(3),k.matcap&&o.enable(4),k.envMap&&o.enable(5),k.normalMapObjectSpace&&o.enable(6),k.normalMapTangentSpace&&o.enable(7),k.clearcoat&&o.enable(8),k.iridescence&&o.enable(9),k.alphaTest&&o.enable(10),k.vertexColors&&o.enable(11),k.vertexAlphas&&o.enable(12),k.vertexUv1s&&o.enable(13),k.vertexUv2s&&o.enable(14),k.vertexUv3s&&o.enable(15),k.vertexTangents&&o.enable(16),k.anisotropy&&o.enable(17),A.push(o.mask),o.disableAll(),k.fog&&o.enable(0),k.useFog&&o.enable(1),k.flatShading&&o.enable(2),k.logarithmicDepthBuffer&&o.enable(3),k.skinning&&o.enable(4),k.morphTargets&&o.enable(5),k.morphNormals&&o.enable(6),k.morphColors&&o.enable(7),k.premultipliedAlpha&&o.enable(8),k.shadowMapEnabled&&o.enable(9),k.useLegacyLights&&o.enable(10),k.doubleSided&&o.enable(11),k.flipSided&&o.enable(12),k.useDepthPacking&&o.enable(13),k.dithering&&o.enable(14),k.transmission&&o.enable(15),k.sheen&&o.enable(16),k.opaque&&o.enable(17),k.pointsUvs&&o.enable(18),A.push(o.mask)}function T(A){const k=m[A.type];let F;if(k){const N=$l[k];F=jMe.clone(N.uniforms)}else F=A.uniforms;return F}function E(A,k){let F;for(let N=0,U=u.length;N<U;N++){const $=u[N];if($.cacheKey===k){F=$,++F.usedTimes;break}}return F===void 0&&(F=new iRe(t,k,A,s),u.push(F)),F}function C(A){if(--A.usedTimes===0){const k=u.indexOf(A);u[k]=u[u.length-1],u.pop(),A.destroy()}}function D(A){l.remove(A)}function R(){l.dispose()}return{getParameters:v,getProgramCacheKey:_,getUniforms:T,acquireProgram:E,releaseProgram:C,releaseShaderCache:D,programs:u,dispose:R}}function lRe(){let t=new WeakMap;function e(s){let a=t.get(s);return a===void 0&&(a={},t.set(s,a)),a}function n(s){t.delete(s)}function i(s,a,o){t.get(s)[a]=o}function r(){t=new WeakMap}return{get:e,remove:n,update:i,dispose:r}}function uRe(t,e){return t.groupOrder!==e.groupOrder?t.groupOrder-e.groupOrder:t.renderOrder!==e.renderOrder?t.renderOrder-e.renderOrder:t.material.id!==e.material.id?t.material.id-e.material.id:t.z!==e.z?t.z-e.z:t.id-e.id}function a7(t,e){return t.groupOrder!==e.groupOrder?t.groupOrder-e.groupOrder:t.renderOrder!==e.renderOrder?t.renderOrder-e.renderOrder:t.z!==e.z?e.z-t.z:t.id-e.id}function o7(){const t=[];let e=0;const n=[],i=[],r=[];function s(){e=0,n.length=0,i.length=0,r.length=0}function a(f,h,p,m,y,v){let _=t[e];return _===void 0?(_={id:f.id,object:f,geometry:h,material:p,groupOrder:m,renderOrder:f.renderOrder,z:y,group:v},t[e]=_):(_.id=f.id,_.object=f,_.geometry=h,_.material=p,_.groupOrder=m,_.renderOrder=f.renderOrder,_.z=y,_.group=v),e++,_}function o(f,h,p,m,y,v){const _=a(f,h,p,m,y,v);p.transmission>0?i.push(_):p.transparent===!0?r.push(_):n.push(_)}function l(f,h,p,m,y,v){const _=a(f,h,p,m,y,v);p.transmission>0?i.unshift(_):p.transparent===!0?r.unshift(_):n.unshift(_)}function u(f,h){n.length>1&&n.sort(f||uRe),i.length>1&&i.sort(h||a7),r.length>1&&r.sort(h||a7)}function c(){for(let f=e,h=t.length;f<h;f++){const p=t[f];if(p.id===null)break;p.id=null,p.object=null,p.geometry=null,p.material=null,p.group=null}}return{opaque:n,transmissive:i,transparent:r,init:s,push:o,unshift:l,finish:c,sort:u}}function cRe(){let t=new WeakMap;function e(i,r){const s=t.get(i);let a;return s===void 0?(a=new o7,t.set(i,[a])):r>=s.length?(a=new o7,s.push(a)):a=s[r],a}function n(){t=new WeakMap}return{get:e,dispose:n}}function fRe(){const t={};return{get:function(e){if(t[e.id]!==void 0)return t[e.id];let n;switch(e.type){case"DirectionalLight":n={direction:new Ie,color:new ri};break;case"SpotLight":n={position:new Ie,direction:new Ie,color:new ri,distance:0,coneCos:0,penumbraCos:0,decay:0};break;case"PointLight":n={position:new Ie,color:new ri,distance:0,decay:0};break;case"HemisphereLight":n={direction:new Ie,skyColor:new ri,groundColor:new ri};break;case"RectAreaLight":n={color:new ri,position:new Ie,halfWidth:new Ie,halfHeight:new Ie};break}return t[e.id]=n,n}}}function dRe(){const t={};return{get:function(e){if(t[e.id]!==void 0)return t[e.id];let n;switch(e.type){case"DirectionalLight":n={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new Xt};break;case"SpotLight":n={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new Xt};break;case"PointLight":n={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new Xt,shadowCameraNear:1,shadowCameraFar:1e3};break}return t[e.id]=n,n}}}let hRe=0;function pRe(t,e){return(e.castShadow?2:0)-(t.castShadow?2:0)+(e.map?1:0)-(t.map?1:0)}function mRe(t,e){const n=new fRe,i=dRe(),r={version:0,hash:{directionalLength:-1,pointLength:-1,spotLength:-1,rectAreaLength:-1,hemiLength:-1,numDirectionalShadows:-1,numPointShadows:-1,numSpotShadows:-1,numSpotMaps:-1},ambient:[0,0,0],probe:[],directional:[],directionalShadow:[],directionalShadowMap:[],directionalShadowMatrix:[],spot:[],spotLightMap:[],spotShadow:[],spotShadowMap:[],spotLightMatrix:[],rectArea:[],rectAreaLTC1:null,rectAreaLTC2:null,point:[],pointShadow:[],pointShadowMap:[],pointShadowMatrix:[],hemi:[],numSpotLightShadowsWithMaps:0};for(let c=0;c<9;c++)r.probe.push(new Ie);const s=new Ie,a=new Er,o=new Er;function l(c,f){let h=0,p=0,m=0;for(let F=0;F<9;F++)r.probe[F].set(0,0,0);let y=0,v=0,_=0,b=0,x=0,T=0,E=0,C=0,D=0,R=0;c.sort(pRe);const A=f===!0?Math.PI:1;for(let F=0,N=c.length;F<N;F++){const U=c[F],$=U.color,G=U.intensity,Y=U.distance,Q=U.shadow&&U.shadow.map?U.shadow.map.texture:null;if(U.isAmbientLight)h+=$.r*G*A,p+=$.g*G*A,m+=$.b*G*A;else if(U.isLightProbe)for(let re=0;re<9;re++)r.probe[re].addScaledVector(U.sh.coefficients[re],G);else if(U.isDirectionalLight){const re=n.get(U);if(re.color.copy(U.color).multiplyScalar(U.intensity*A),U.castShadow){const he=U.shadow,X=i.get(U);X.shadowBias=he.bias,X.shadowNormalBias=he.normalBias,X.shadowRadius=he.radius,X.shadowMapSize=he.mapSize,r.directionalShadow[y]=X,r.directionalShadowMap[y]=Q,r.directionalShadowMatrix[y]=U.shadow.matrix,T++}r.directional[y]=re,y++}else if(U.isSpotLight){const re=n.get(U);re.position.setFromMatrixPosition(U.matrixWorld),re.color.copy($).multiplyScalar(G*A),re.distance=Y,re.coneCos=Math.cos(U.angle),re.penumbraCos=Math.cos(U.angle*(1-U.penumbra)),re.decay=U.decay,r.spot[_]=re;const he=U.shadow;if(U.map&&(r.spotLightMap[D]=U.map,D++,he.updateMatrices(U),U.castShadow&&R++),r.spotLightMatrix[_]=he.matrix,U.castShadow){const X=i.get(U);X.shadowBias=he.bias,X.shadowNormalBias=he.normalBias,X.shadowRadius=he.radius,X.shadowMapSize=he.mapSize,r.spotShadow[_]=X,r.spotShadowMap[_]=Q,C++}_++}else if(U.isRectAreaLight){const re=n.get(U);re.color.copy($).multiplyScalar(G),re.halfWidth.set(U.width*.5,0,0),re.halfHeight.set(0,U.height*.5,0),r.rectArea[b]=re,b++}else if(U.isPointLight){const re=n.get(U);if(re.color.copy(U.color).multiplyScalar(U.intensity*A),re.distance=U.distance,re.decay=U.decay,U.castShadow){const he=U.shadow,X=i.get(U);X.shadowBias=he.bias,X.shadowNormalBias=he.normalBias,X.shadowRadius=he.radius,X.shadowMapSize=he.mapSize,X.shadowCameraNear=he.camera.near,X.shadowCameraFar=he.camera.far,r.pointShadow[v]=X,r.pointShadowMap[v]=Q,r.pointShadowMatrix[v]=U.shadow.matrix,E++}r.point[v]=re,v++}else if(U.isHemisphereLight){const re=n.get(U);re.skyColor.copy(U.color).multiplyScalar(G*A),re.groundColor.copy(U.groundColor).multiplyScalar(G*A),r.hemi[x]=re,x++}}b>0&&(e.isWebGL2||t.has("OES_texture_float_linear")===!0?(r.rectAreaLTC1=pt.LTC_FLOAT_1,r.rectAreaLTC2=pt.LTC_FLOAT_2):t.has("OES_texture_half_float_linear")===!0?(r.rectAreaLTC1=pt.LTC_HALF_1,r.rectAreaLTC2=pt.LTC_HALF_2):console.error("THREE.WebGLRenderer: Unable to use RectAreaLight. Missing WebGL extensions.")),r.ambient[0]=h,r.ambient[1]=p,r.ambient[2]=m;const k=r.hash;(k.directionalLength!==y||k.pointLength!==v||k.spotLength!==_||k.rectAreaLength!==b||k.hemiLength!==x||k.numDirectionalShadows!==T||k.numPointShadows!==E||k.numSpotShadows!==C||k.numSpotMaps!==D)&&(r.directional.length=y,r.spot.length=_,r.rectArea.length=b,r.point.length=v,r.hemi.length=x,r.directionalShadow.length=T,r.directionalShadowMap.length=T,r.pointShadow.length=E,r.pointShadowMap.length=E,r.spotShadow.length=C,r.spotShadowMap.length=C,r.directionalShadowMatrix.length=T,r.pointShadowMatrix.length=E,r.spotLightMatrix.length=C+D-R,r.spotLightMap.length=D,r.numSpotLightShadowsWithMaps=R,k.directionalLength=y,k.pointLength=v,k.spotLength=_,k.rectAreaLength=b,k.hemiLength=x,k.numDirectionalShadows=T,k.numPointShadows=E,k.numSpotShadows=C,k.numSpotMaps=D,r.version=hRe++)}function u(c,f){let h=0,p=0,m=0,y=0,v=0;const _=f.matrixWorldInverse;for(let b=0,x=c.length;b<x;b++){const T=c[b];if(T.isDirectionalLight){const E=r.directional[h];E.direction.setFromMatrixPosition(T.matrixWorld),s.setFromMatrixPosition(T.target.matrixWorld),E.direction.sub(s),E.direction.transformDirection(_),h++}else if(T.isSpotLight){const E=r.spot[m];E.position.setFromMatrixPosition(T.matrixWorld),E.position.applyMatrix4(_),E.direction.setFromMatrixPosition(T.matrixWorld),s.setFromMatrixPosition(T.target.matrixWorld),E.direction.sub(s),E.direction.transformDirection(_),m++}else if(T.isRectAreaLight){const E=r.rectArea[y];E.position.setFromMatrixPosition(T.matrixWorld),E.position.applyMatrix4(_),o.identity(),a.copy(T.matrixWorld),a.premultiply(_),o.extractRotation(a),E.halfWidth.set(T.width*.5,0,0),E.halfHeight.set(0,T.height*.5,0),E.halfWidth.applyMatrix4(o),E.halfHeight.applyMatrix4(o),y++}else if(T.isPointLight){const E=r.point[p];E.position.setFromMatrixPosition(T.matrixWorld),E.position.applyMatrix4(_),p++}else if(T.isHemisphereLight){const E=r.hemi[v];E.direction.setFromMatrixPosition(T.matrixWorld),E.direction.transformDirection(_),v++}}}return{setup:l,setupView:u,state:r}}function l7(t,e){const n=new mRe(t,e),i=[],r=[];function s(){i.length=0,r.length=0}function a(f){i.push(f)}function o(f){r.push(f)}function l(f){n.setup(i,f)}function u(f){n.setupView(i,f)}return{init:s,state:{lightsArray:i,shadowsArray:r,lights:n},setupLights:l,setupLightsView:u,pushLight:a,pushShadow:o}}function gRe(t,e){let n=new WeakMap;function i(s,a=0){const o=n.get(s);let l;return o===void 0?(l=new l7(t,e),n.set(s,[l])):a>=o.length?(l=new l7(t,e),o.push(l)):l=o[a],l}function r(){n=new WeakMap}return{get:i,dispose:r}}class _Re extends Jb{constructor(e){super(),this.isMeshDepthMaterial=!0,this.type="MeshDepthMaterial",this.depthPacking=ZAe,this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.wireframe=!1,this.wireframeLinewidth=1,this.setValues(e)}copy(e){return super.copy(e),this.depthPacking=e.depthPacking,this.map=e.map,this.alphaMap=e.alphaMap,this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this}}class vRe extends Jb{constructor(e){super(),this.isMeshDistanceMaterial=!0,this.type="MeshDistanceMaterial",this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.setValues(e)}copy(e){return super.copy(e),this.map=e.map,this.alphaMap=e.alphaMap,this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this}}const yRe=`void main() {
3835	gl_Position = vec4( position, 1.0 );
3836}`,bRe=`uniform sampler2D shadow_pass;
3837uniform vec2 resolution;
3838uniform float radius;
3839#include <packing>
3840void main() {
3841	const float samples = float( VSM_SAMPLES );
3842	float mean = 0.0;
3843	float squared_mean = 0.0;
3844	float uvStride = samples <= 1.0 ? 0.0 : 2.0 / ( samples - 1.0 );
3845	float uvStart = samples <= 1.0 ? 0.0 : - 1.0;
3846	for ( float i = 0.0; i < samples; i ++ ) {
3847		float uvOffset = uvStart + i * uvStride;
3848		#ifdef HORIZONTAL_PASS
3849			vec2 distribution = unpackRGBATo2Half( texture2D( shadow_pass, ( gl_FragCoord.xy + vec2( uvOffset, 0.0 ) * radius ) / resolution ) );
3850			mean += distribution.x;
3851			squared_mean += distribution.y * distribution.y + distribution.x * distribution.x;
3852		#else
3853			float depth = unpackRGBAToDepth( texture2D( shadow_pass, ( gl_FragCoord.xy + vec2( 0.0, uvOffset ) * radius ) / resolution ) );
3854			mean += depth;
3855			squared_mean += depth * depth;
3856		#endif
3857	}
3858	mean = mean / samples;
3859	squared_mean = squared_mean / samples;
3860	float std_dev = sqrt( squared_mean - mean * mean );
3861	gl_FragColor = pack2HalfToRGBA( vec2( mean, std_dev ) );
3862}`;function xRe(t,e,n){let i=new OQ;const r=new Xt,s=new Xt,a=new Fr,o=new _Re({depthPacking:QAe}),l=new vRe,u={},c=n.maxTextureSize,f={[yd]:sa,[sa]:yd,[hc]:hc},h=new mp({defines:{VSM_SAMPLES:8},uniforms:{shadow_pass:{value:null},resolution:{value:new Xt},radius:{value:4}},vertexShader:yRe,fragmentShader:bRe}),p=h.clone();p.defines.HORIZONTAL_PASS=1;const m=new Bc;m.setAttribute("position",new dl(new Float32Array([-1,-1,.5,3,-1,.5,-1,3,.5]),3));const y=new Hf(m,h),v=this;this.enabled=!1,this.autoUpdate=!0,this.needsUpdate=!1,this.type=oQ;let _=this.type;this.render=function(E,C,D){if(v.enabled===!1||v.autoUpdate===!1&&v.needsUpdate===!1||E.length===0)return;const R=t.getRenderTarget(),A=t.getActiveCubeFace(),k=t.getActiveMipmapLevel(),F=t.state;F.setBlending(td),F.buffers.color.setClear(1,1,1,1),F.buffers.depth.setTest(!0),F.setScissorTest(!1);const N=_!==Qu&&this.type===Qu,U=_===Qu&&this.type!==Qu;for(let $=0,G=E.length;$<G;$++){const Y=E[$],Q=Y.shadow;if(Q===void 0){console.warn("THREE.WebGLShadowMap:",Y,"has no shadow.");continue}if(Q.autoUpdate===!1&&Q.needsUpdate===!1)continue;r.copy(Q.mapSize);const re=Q.getFrameExtents();if(r.multiply(re),s.copy(Q.mapSize),(r.x>c||r.y>c)&&(r.x>c&&(s.x=Math.floor(c/re.x),r.x=s.x*re.x,Q.mapSize.x=s.x),r.y>c&&(s.y=Math.floor(c/re.y),r.y=s.y*re.y,Q.mapSize.y=s.y)),Q.map===null||N===!0||U===!0){const X=this.type!==Qu?{minFilter:Ss,magFilter:Ss}:{};Q.map!==null&&Q.map.dispose(),Q.map=new hp(r.x,r.y,X),Q.map.texture.name=Y.name+".shadowMap",Q.camera.updateProjectionMatrix()}
vendor: 11,665 bytes, line 3862
3862t.setRenderTarget(Q.map),t.clear();const he=Q.getViewportCount();for(let X=0;X<he;X++){const ae=Q.getViewport(X);a.set(s.x*ae.x,s.y*ae.y,s.x*ae.z,s.y*ae.w),F.viewport(a),Q.updateMatrices(Y,X),i=Q.getFrustum(),T(C,D,Q.camera,Y,this.type)}Q.isPointLightShadow!==!0&&this.type===Qu&&b(Q,D),Q.needsUpdate=!1}_=this.type,v.needsUpdate=!1,t.setRenderTarget(R,A,k)};function b(E,C){const D=e.update(y);h.defines.VSM_SAMPLES!==E.blurSamples&&(h.defines.VSM_SAMPLES=E.blurSamples,p.defines.VSM_SAMPLES=E.blurSamples,h.needsUpdate=!0,p.needsUpdate=!0),E.mapPass===null&&(E.mapPass=new hp(r.x,r.y)),h.uniforms.shadow_pass.value=E.map.texture,h.uniforms.resolution.value=E.mapSize,h.uniforms.radius.value=E.radius,t.setRenderTarget(E.mapPass),t.clear(),t.renderBufferDirect(C,null,D,h,y,null),p.uniforms.shadow_pass.value=E.mapPass.texture,p.uniforms.resolution.value=E.mapSize,p.uniforms.radius.value=E.radius,t.setRenderTarget(E.map),t.clear(),t.renderBufferDirect(C,null,D,p,y,null)}function x(E,C,D,R){let A=null;const k=D.isPointLight===!0?E.customDistanceMaterial:E.customDepthMaterial;if(k!==void 0)A=k;else if(A=D.isPointLight===!0?l:o,t.localClippingEnabled&&C.clipShadows===!0&&Array.isArray(C.clippingPlanes)&&C.clippingPlanes.length!==0||C.displacementMap&&C.displacementScale!==0||C.alphaMap&&C.alphaTest>0||C.map&&C.alphaTest>0){const F=A.uuid,N=C.uuid;let U=u[F];U===void 0&&(U={},u[F]=U);let $=U[N];$===void 0&&($=A.clone(),U[N]=$),A=$}if(A.visible=C.visible,A.wireframe=C.wireframe,R===Qu?A.side=C.shadowSide!==null?C.shadowSide:C.side:A.side=C.shadowSide!==null?C.shadowSide:f[C.side],A.alphaMap=C.alphaMap,A.alphaTest=C.alphaTest,A.map=C.map,A.clipShadows=C.clipShadows,A.clippingPlanes=C.clippingPlanes,A.clipIntersection=C.clipIntersection,A.displacementMap=C.displacementMap,A.displacementScale=C.displacementScale,A.displacementBias=C.displacementBias,A.wireframeLinewidth=C.wireframeLinewidth,A.linewidth=C.linewidth,D.isPointLight===!0&&A.isMeshDistanceMaterial===!0){const F=t.properties.get(A);F.light=D}return A}function T(E,C,D,R,A){if(E.visible===!1)return;if(E.layers.test(C.layers)&&(E.isMesh||E.isLine||E.isPoints)&&(E.castShadow||E.receiveShadow&&A===Qu)&&(!E.frustumCulled||i.intersectsObject(E))){E.modelViewMatrix.multiplyMatrices(D.matrixWorldInverse,E.matrixWorld);const N=e.update(E),U=E.material;if(Array.isArray(U)){const $=N.groups;for(let G=0,Y=$.length;G<Y;G++){const Q=$[G],re=U[Q.materialIndex];if(re&&re.visible){const he=x(E,re,R,A);t.renderBufferDirect(D,null,N,he,E,Q)}}}else if(U.visible){const $=x(E,U,R,A);t.renderBufferDirect(D,null,N,$,E,null)}}const F=E.children;for(let N=0,U=F.length;N<U;N++)T(F[N],C,D,R,A)}}function SRe(t,e,n){const i=n.isWebGL2;function r(){let ce=!1;const ot=new Fr;let Oe=null;const Qe=new Fr(0,0,0,0);return{setMask:function(st){Oe!==st&&!ce&&(t.colorMask(st,st,st,st),Oe=st)},setLocked:function(st){ce=st},setClear:function(st,Rt,Vt,Wt,Vn){Vn===!0&&(st*=Wt,Rt*=Wt,Vt*=Wt),ot.set(st,Rt,Vt,Wt),Qe.equals(ot)===!1&&(t.clearColor(st,Rt,Vt,Wt),Qe.copy(ot))},reset:function(){ce=!1,Oe=null,Qe.set(-1,0,0,0)}}}function s(){let ce=!1,ot=null,Oe=null,Qe=null;return{setTest:function(st){st?ve(t.DEPTH_TEST):De(t.DEPTH_TEST)},setMask:function(st){ot!==st&&!ce&&(t.depthMask(st),ot=st)},setFunc:function(st){if(Oe!==st){switch(st){case AAe:t.depthFunc(t.NEVER);break;case MAe:t.depthFunc(t.ALWAYS);break;case DAe:t.depthFunc(t.LESS);break;case rR:t.depthFunc(t.LEQUAL);break;case PAe:t.depthFunc(t.EQUAL);break;case OAe:t.depthFunc(t.GEQUAL);break;case RAe:t.depthFunc(t.GREATER);break;case kAe:t.depthFunc(t.NOTEQUAL);break;default:t.depthFunc(t.LEQUAL)}Oe=st}},setLocked:function(st){ce=st},setClear:function(st){Qe!==st&&(t.clearDepth(st),Qe=st)},reset:function(){ce=!1,ot=null,Oe=null,Qe=null}}}function a(){let ce=!1,ot=null,Oe=null,Qe=null,st=null,Rt=null,Vt=null,Wt=null,Vn=null;return{setTest:function(ht){ce||(ht?ve(t.STENCIL_TEST):De(t.STENCIL_TEST))},setMask:function(ht){ot!==ht&&!ce&&(t.stencilMask(ht),ot=ht)},setFunc:function(ht,Et,It){(Oe!==ht||Qe!==Et||st!==It)&&(t.stencilFunc(ht,Et,It),Oe=ht,Qe=Et,st=It)},setOp:function(ht,Et,It){(Rt!==ht||Vt!==Et||Wt!==It)&&(t.stencilOp(ht,Et,It),Rt=ht,Vt=Et,Wt=It)},setLocked:function(ht){ce=ht},setClear:function(ht){Vn!==ht&&(t.clearStencil(ht),Vn=ht)},reset:function(){ce=!1,ot=null,Oe=null,Qe=null,st=null,Rt=null,Vt=null,Wt=null,Vn=null}}}const o=new r,l=new s,u=new a,c=new WeakMap,f=new WeakMap;let h={},p={},m=new WeakMap,y=[],v=null,_=!1,b=null,x=null,T=null,E=null,C=null,D=null,R=null,A=!1,k=null,F=null,N=null,U=null,$=null;const G=t.getParameter(t.MAX_COMBINED_TEXTURE_IMAGE_UNITS);let Y=!1,Q=0;const re=t.getParameter(t.VERSION);re.indexOf("WebGL")!==-1?(Q=parseFloat(/^WebGL (\d)/.exec(re)[1]),Y=Q>=1):re.indexOf("OpenGL ES")!==-1&&(Q=parseFloat(/^OpenGL ES (\d)/.exec(re)[1]),Y=Q>=2);let he=null,X={};const ae=t.getParameter(t.SCISSOR_BOX),de=t.getParameter(t.VIEWPORT),Re=new Fr().fromArray(ae),_e=new Fr().fromArray(de);function xe(ce,ot,Oe,Qe){const st=new Uint8Array(4),Rt=t.createTexture();t.bindTexture(ce,Rt),t.texParameteri(ce,t.TEXTURE_MIN_FILTER,t.NEAREST),t.texParameteri(ce,t.TEXTURE_MAG_FILTER,t.NEAREST);for(let Vt=0;Vt<Oe;Vt++)i&&(ce===t.TEXTURE_3D||ce===t.TEXTURE_2D_ARRAY)?t.texImage3D(ot,0,t.RGBA,1,1,Qe,0,t.RGBA,t.UNSIGNED_BYTE,st):t.texImage2D(ot+Vt,0,t.RGBA,1,1,0,t.RGBA,t.UNSIGNED_BYTE,st);return Rt}const we={};we[t.TEXTURE_2D]=xe(t.TEXTURE_2D,t.TEXTURE_2D,1),we[t.TEXTURE_CUBE_MAP]=xe(t.TEXTURE_CUBE_MAP,t.TEXTURE_CUBE_MAP_POSITIVE_X,6),i&&(we[t.TEXTURE_2D_ARRAY]=xe(t.TEXTURE_2D_ARRAY,t.TEXTURE_2D_ARRAY,1,1),we[t.TEXTURE_3D]=xe(t.TEXTURE_3D,t.TEXTURE_3D,1,1)),o.setClear(0,0,0,1),l.setClear(1),u.setClear(0),ve(t.DEPTH_TEST),l.setFunc(rR),me(!1),ne(XU),ve(t.CULL_FACE),te(td);function ve(ce){h[ce]!==!0&&(t.enable(ce),h[ce]=!0)}function De(ce){h[ce]!==!1&&(t.disable(ce),h[ce]=!1)}function We(ce,ot){return p[ce]!==ot?(t.bindFramebuffer(ce,ot),p[ce]=ot,i&&(ce===t.DRAW_FRAMEBUFFER&&(p[t.FRAMEBUFFER]=ot),ce===t.FRAMEBUFFER&&(p[t.DRAW_FRAMEBUFFER]=ot)),!0):!1}function lt(ce,ot){let Oe=y,Qe=!1;if(ce)if(Oe=m.get(ot),Oe===void 0&&(Oe=[],m.set(ot,Oe)),ce.isWebGLMultipleRenderTargets){const st=ce.texture;if(Oe.length!==st.length||Oe[0]!==t.COLOR_ATTACHMENT0){for(let Rt=0,Vt=st.length;Rt<Vt;Rt++)Oe[Rt]=t.COLOR_ATTACHMENT0+Rt;Oe.length=st.length,Qe=!0}}else Oe[0]!==t.COLOR_ATTACHMENT0&&(Oe[0]=t.COLOR_ATTACHMENT0,Qe=!0);else Oe[0]!==t.BACK&&(Oe[0]=t.BACK,Qe=!0);Qe&&(n.isWebGL2?t.drawBuffers(Oe):e.get("WEBGL_draw_buffers").drawBuffersWEBGL(Oe))}function Ze(ce){return v!==ce?(t.useProgram(ce),v=ce,!0):!1}const z={[q0]:t.FUNC_ADD,[gAe]:t.FUNC_SUBTRACT,[_Ae]:t.FUNC_REVERSE_SUBTRACT};if(i)z[QU]=t.MIN,z[JU]=t.MAX;else{const ce=e.get("EXT_blend_minmax");ce!==null&&(z[QU]=ce.MIN_EXT,z[JU]=ce.MAX_EXT)}const J={[vAe]:t.ZERO,[yAe]:t.ONE,[bAe]:t.SRC_COLOR,[lQ]:t.SRC_ALPHA,[CAe]:t.SRC_ALPHA_SATURATE,[EAe]:t.DST_COLOR,[SAe]:t.DST_ALPHA,[xAe]:t.ONE_MINUS_SRC_COLOR,[uQ]:t.ONE_MINUS_SRC_ALPHA,[wAe]:t.ONE_MINUS_DST_COLOR,[TAe]:t.ONE_MINUS_DST_ALPHA};function te(ce,ot,Oe,Qe,st,Rt,Vt,Wt){if(ce===td){_===!0&&(De(t.BLEND),_=!1);return}if(_===!1&&(ve(t.BLEND),_=!0),ce!==mAe){if(ce!==b||Wt!==A){if((x!==q0||C!==q0)&&(t.blendEquation(t.FUNC_ADD),x=q0,C=q0),Wt)switch(ce){case Bm:t.blendFuncSeparate(t.ONE,t.ONE_MINUS_SRC_ALPHA,t.ONE,t.ONE_MINUS_SRC_ALPHA);break;case YU:t.blendFunc(t.ONE,t.ONE);break;case KU:t.blendFuncSeparate(t.ZERO,t.ONE_MINUS_SRC_COLOR,t.ZERO,t.ONE);break;case ZU:t.blendFuncSeparate(t.ZERO,t.SRC_COLOR,t.ZERO,t.SRC_ALPHA);break;default:console.error("THREE.WebGLState: Invalid blending: ",ce);break}else switch(ce){case Bm:t.blendFuncSeparate(t.SRC_ALPHA,t.ONE_MINUS_SRC_ALPHA,t.ONE,t.ONE_MINUS_SRC_ALPHA);break;case YU:t.blendFunc(t.SRC_ALPHA,t.ONE);break;case KU:t.blendFuncSeparate(t.ZERO,t.ONE_MINUS_SRC_COLOR,t.ZERO,t.ONE);break;case ZU:t.blendFunc(t.ZERO,t.SRC_COLOR);break;default:console.error("THREE.WebGLState: Invalid blending: ",ce);break}T=null,E=null,D=null,R=null,b=ce,A=Wt}return}st=st||ot,Rt=Rt||Oe,Vt=Vt||Qe,(ot!==x||st!==C)&&(t.blendEquationSeparate(z[ot],z[st]),x=ot,C=st),(Oe!==T||Qe!==E||Rt!==D||Vt!==R)&&(t.blendFuncSeparate(J[Oe],J[Qe],J[Rt],J[Vt]),T=Oe,E=Qe,D=Rt,R=Vt),b=ce,A=!1}function pe(ce,ot){ce.side===hc?De(t.CULL_FACE):ve(t.CULL_FACE);let Oe=ce.side===sa;ot&&(Oe=!Oe),me(Oe),ce.blending===Bm&&ce.transparent===!1?te(td):te(ce.blending,ce.blendEquation,ce.blendSrc,ce.blendDst,ce.blendEquationAlpha,ce.blendSrcAlpha,ce.blendDstAlpha,ce.premultipliedAlpha),l.setFunc(ce.depthFunc),l.setTest(ce.depthTest),l.setMask(ce.depthWrite),o.setMask(ce.colorWrite);const Qe=ce.stencilWrite;u.setTest(Qe),Qe&&(u.setMask(ce.stencilWriteMask),u.setFunc(ce.stencilFunc,ce.stencilRef,ce.stencilFuncMask),u.setOp(ce.stencilFail,ce.stencilZFail,ce.stencilZPass)),Pe(ce.polygonOffset,ce.polygonOffsetFactor,ce.polygonOffsetUnits),ce.alphaToCoverage===!0?ve(t.SAMPLE_ALPHA_TO_COVERAGE):De(t.SAMPLE_ALPHA_TO_COVERAGE)}function me(ce){k!==ce&&(ce?t.frontFace(t.CW):t.frontFace(t.CCW),k=ce)}function ne(ce){ce!==dAe?(ve(t.CULL_FACE),ce!==F&&(ce===XU?t.cullFace(t.BACK):ce===hAe?t.cullFace(t.FRONT):t.cullFace(t.FRONT_AND_BACK))):De(t.CULL_FACE),F=ce}function Le(ce){ce!==N&&(Y&&t.lineWidth(ce),N=ce)}function Pe(ce,ot,Oe){ce?(ve(t.POLYGON_OFFSET_FILL),(U!==ot||$!==Oe)&&(t.polygonOffset(ot,Oe),U=ot,$=Oe)):De(t.POLYGON_OFFSET_FILL)}function Ce(ce){ce?ve(t.SCISSOR_TEST):De(t.SCISSOR_TEST)}function Te(ce){ce===void 0&&(ce=t.TEXTURE0+G-1),he!==ce&&(t.activeTexture(ce),he=ce)}function et(ce,ot,Oe){Oe===void 0&&(he===null?Oe=t.TEXTURE0+G-1:Oe=he);let Qe=X[Oe];Qe===void 0&&(Qe={type:void 0,texture:void 0},X[Oe]=Qe),(Qe.type!==ce||Qe.texture!==ot)&&(he!==Oe&&(t.activeTexture(Oe),he=Oe),t.bindTexture(ce,ot||we[ce]),Qe.type=ce,Qe.texture=ot)}function j(){const ce=X[he];ce!==void 0&&ce.type!==void 0&&(t.bindTexture(ce.type,null),ce.type=void 0,ce.texture=void 0)}function V(){try{t.compressedTexImage2D.apply(t,arguments)}catch(ce){console.error("THREE.WebGLState:",ce)}}function oe(){try{t.compressedTexImage3D.apply(t,arguments)}catch(ce){console.error("THREE.WebGLState:",ce)}}function Ne(){try{t.texSubImage2D.apply(t,arguments)}catch(ce){console.error("THREE.WebGLState:",ce)}}function Ae(){try{t.texSubImage3D.apply(t,arguments)}catch(ce){console.error("THREE.WebGLState:",ce)}}function Ue(){try{t.compressedTexSubImage2D.apply(t,arguments)}catch(ce){console.error("THREE.WebGLState:",ce)}}function tt(){try{t.compressedTexSubImage3D.apply(t,arguments)}catch(ce){console.error("THREE.WebGLState:",ce)}}function qe(){try{t.texStorage2D.apply(t,arguments)}catch(ce){console.error("THREE.WebGLState:",ce)}}function ke(){try{t.texStorage3D.apply(t,arguments)}catch(ce){console.error("THREE.WebGLState:",ce)}}function ie(){try{t.texImage2D.apply(t,arguments)}catch(ce){console.error("THREE.WebGLState:",ce)}}function Ve(){try{t.texImage3D.apply(t,arguments)}catch(ce){console.error("THREE.WebGLState:",ce)}}function rt(ce){Re.equals(ce)===!1&&(t.scissor(ce.x,ce.y,ce.z,ce.w),Re.copy(ce))}function Je(ce){_e.equals(ce)===!1&&(t.viewport(ce.x,ce.y,ce.z,ce.w),_e.copy(ce))}function nt(ce,ot){let Oe=f.get(ot);Oe===void 0&&(Oe=new WeakMap,f.set(ot,Oe));let Qe=Oe.get(ce);Qe===void 0&&(Qe=t.getUniformBlockIndex(ot,ce.name),Oe.set(ce,Qe))}function Tt(ce,ot){const Qe=f.get(ot).get(ce);c.get(ot)!==Qe&&(t.uniformBlockBinding(ot,Qe,ce.__bindingPointIndex),c.set(ot,Qe))}function Mt(){t.disable(t.BLEND),t.disable(t.CULL_FACE),t.disable(t.DEPTH_TEST),t.disable(t.POLYGON_OFFSET_FILL),t.disable(t.SCISSOR_TEST),t.disable(t.STENCIL_TEST),t.disable(t.SAMPLE_ALPHA_TO_COVERAGE),t.blendEquation(t.FUNC_ADD),t.blendFunc(t.ONE,t.ZERO),t.blendFuncSeparate(t.ONE,t.ZERO,t.ONE,t.ZERO),t.colorMask(!0,!0,
3862!0,!0),t.clearColor(0,0,0,0),t.depthMask(!0),t.depthFunc(t.LESS),t.clearDepth(1),t.stencilMask(4294967295),t.stencilFunc(t.ALWAYS,0,4294967295),t.stencilOp(t.KEEP,t.KEEP,t.KEEP),t.clearStencil(0),t.cullFace(t.BACK),t.frontFace(t.CCW),t.polygonOffset(0,0),t.activeTexture(t.TEXTURE0),t.bindFramebuffer(t.FRAMEBUFFER,null),i===!0&&(t.bindFramebuffer(t.DRAW_FRAMEBUFFER,null),t.bindFramebuffer(t.READ_FRAMEBUFFER,null)),t.useProgram(null),t.lineWidth(1),t.scissor(0,0,t.canvas.width,t.canvas.height),t.viewport(0,0,t.canvas.width,t.canvas.height),h={},he=null,X={},p={},m=new WeakMap,y=[],v=null,_=!1,b=null,x=null,T=null,E=null,C=null,D=null,R=null,A=!1,k=null,F=null,N=null,U=null,$=null,Re.set(0,0,t.canvas.width,t.canvas.height),_e.set(0,0,t.canvas.width,t.canvas.height),o.reset(),l.reset(),u.reset()}return{buffers:{color:o,depth:l,stencil:u},enable:ve,disable:De,bindFramebuffer:We,drawBuffers:lt,useProgram:Ze,setBlending:te,setMaterial:pe,setFlipSided:me,setCullFace:ne,setLineWidth:Le,setPolygonOffset:Pe,setScissorTest:Ce,activeTexture:Te,bindTexture:et,unbindTexture:j,compressedTexImage2D:V,compressedTexImage3D:oe,texImage2D:ie,texImage3D:Ve,updateUBOMapping:nt,uniformBlockBinding:Tt,texStorage2D:qe,texStorage3D:ke,texSubImage2D:Ne,texSubImage3D:Ae,compressedTexSubImage2D:Ue,compressedTexSubImage3D:tt,scissor:rt,viewport:Je,reset:Mt}}function TRe(t,e,n,i,r,s,a){const o=r.isWebGL2,l=r.maxTextures,u=r.maxCubemapSize,c=r.maxTextureSize,f=r.maxSamples,h=e.has("WEBGL_multisampled_render_to_texture")?e.get("WEBGL_multisampled_render_to_texture"):null,p=typeof navigator>"u"?!1:/OculusBrowser/g.test(navigator.userAgent),m=new WeakMap;let y;const v=new WeakMap;let _=!1;try{_=typeof OffscreenCanvas<"u"&&new OffscreenCanvas(1,1).getContext("2d")!==null}catch(j){}function b(j,V){return _?new OffscreenCanvas(j,V):db("canvas")}function x(j,V,oe,Ne){let Ae=1;if((j.width>Ne||j.height>Ne)&&(Ae=Ne/Math.max(j.width,j.height)),Ae<1||V===!0)if(typeof HTMLImageElement<"u"&&j instanceof HTMLImageElement||typeof HTMLCanvasElement<"u"&&j instanceof HTMLCanvasElement||typeof ImageBitmap<"u"&&j instanceof ImageBitmap){const Ue=V?pE:Math.floor,tt=Ue(Ae*j.width),qe=Ue(Ae*j.height);y===void 0&&(y=b(tt,qe));const ke=oe?b(tt,qe):y;return ke.width=tt,ke.height=qe,ke.getContext("2d").drawImage(j,0,0,tt,qe),console.warn("THREE.WebGLRenderer: Texture has been resized from ("+j.width+"x"+j.height+") to ("+tt+"x"+qe+")."),ke}else return"data"in j&&console.warn("THREE.WebGLRenderer: Image in DataTexture is too big ("+j.width+"x"+j.height+")."),j;return j}function T(j){return fR(j.width)&&fR(j.height)}function E(j){return o?!1:j.wrapS!==sl||j.wrapT!==sl||j.minFilter!==Ss&&j.minFilter!==xo}function C(j,V){return j.generateMipmaps&&V&&j.minFilter!==Ss&&j.minFilter!==xo}function D(j){t.generateMipmap(j)}function R(j,V,oe,Ne,Ae=!1){if(o===!1)return V;if(j!==null){if(t[j]!==void 0)return t[j];console.warn("THREE.WebGLRenderer: Attempt to use non-existing WebGL internal format '"+j+"'")}let Ue=V;return V===t.RED&&(oe===t.FLOAT&&(Ue=t.R32F),oe===t.HALF_FLOAT&&(Ue=t.R16F),oe===t.UNSIGNED_BYTE&&(Ue=t.R8)),V===t.RED_INTEGER&&(oe===t.UNSIGNED_BYTE&&(Ue=t.R8UI),oe===t.UNSIGNED_SHORT&&(Ue=t.R16UI),oe===t.UNSIGNED_INT&&(Ue=t.R32UI),oe===t.BYTE&&(Ue=t.R8I),oe===t.SHORT&&(Ue=t.R16I),oe===t.INT&&(Ue=t.R32I)),V===t.RG&&(oe===t.FLOAT&&(Ue=t.RG32F),oe===t.HALF_FLOAT&&(Ue=t.RG16F),oe===t.UNSIGNED_BYTE&&(Ue=t.RG8)),V===t.RGBA&&(oe===t.FLOAT&&(Ue=t.RGBA32F),oe===t.HALF_FLOAT&&(Ue=t.RGBA16F),oe===t.UNSIGNED_BYTE&&(Ue=Ne===ln&&Ae===!1?t.SRGB8_ALPHA8:t.RGBA8),oe===t.UNSIGNED_SHORT_4_4_4_4&&(Ue=t.RGBA4),oe===t.UNSIGNED_SHORT_5_5_5_1&&(Ue=t.RGB5_A1)),(Ue===t.R16F||Ue===t.R32F||Ue===t.RG16F||Ue===t.RG32F||Ue===t.RGBA16F||Ue===t.RGBA32F)&&e.get("EXT_color_buffer_float"),Ue}function A(j,V,oe){return C(j,oe)===!0||j.isFramebufferTexture&&j.minFilter!==Ss&&j.minFilter!==xo?Math.log2(Math.max(V.width,V.height))+1:j.mipmaps!==void 0&&j.mipmaps.length>0?j.mipmaps.length:j.isCompressedTexture&&Array.isArray(j.image)?V.mipmaps.length:1}function k(j){return j===Ss||j===e9||j===_D?t.NEAREST:t.LINEAR}function F(j){const V=j.target;V.removeEventListener("dispose",F),U(V),V.isVideoTexture&&m.delete(V)}function N(j){const V=j.target;V.removeEventListener("dispose",N),G(V)}function U(j){const V=i.get(j);if(V.__webglInit===void 0)return;const oe=j.source,Ne=v.get(oe);if(Ne){const Ae=Ne[V.__cacheKey];Ae.usedTimes--,Ae.usedTimes===0&&$(j),Object.keys(Ne).length===0&&v.delete(oe)}i.remove(j)}function $(j){const V=i.get(j);t.deleteTexture(V.__webglTexture);const oe=j.source,Ne=v.get(oe);delete Ne[V.__cacheKey],a.memory.textures--}
vendor: 1,107 bytes, line 3862
3862function G(j){const V=j.texture,oe=i.get(j),Ne=i.get(V);if(Ne.__webglTexture!==void 0&&(t.deleteTexture(Ne.__webglTexture),a.memory.textures--),j.depthTexture&&j.depthTexture.dispose(),j.isWebGLCubeRenderTarget)for(let Ae=0;Ae<6;Ae++){if(Array.isArray(oe.__webglFramebuffer[Ae]))for(let Ue=0;Ue<oe.__webglFramebuffer[Ae].length;Ue++)t.deleteFramebuffer(oe.__webglFramebuffer[Ae][Ue]);else t.deleteFramebuffer(oe.__webglFramebuffer[Ae]);oe.__webglDepthbuffer&&t.deleteRenderbuffer(oe.__webglDepthbuffer[Ae])}else{if(Array.isArray(oe.__webglFramebuffer))for(let Ae=0;Ae<oe.__webglFramebuffer.length;Ae++)t.deleteFramebuffer(oe.__webglFramebuffer[Ae]);else t.deleteFramebuffer(oe.__webglFramebuffer);if(oe.__webglDepthbuffer&&t.deleteRenderbuffer(oe.__webglDepthbuffer),oe.__webglMultisampledFramebuffer&&t.deleteFramebuffer(oe.__webglMultisampledFramebuffer),oe.__webglColorRenderbuffer)for(let Ae=0;Ae<oe.__webglColorRenderbuffer.length;Ae++)oe.__webglColorRenderbuffer[Ae]&&t.deleteRenderbuffer(oe.__webglColorRenderbuffer[Ae]);oe.__webglDepthRenderbuffer&&t.deleteRenderbuffer(oe.__webglDepthRenderbuffer)}
3862if(j.isWebGLMultipleRenderTargets)for(let Ae=0,Ue=V.length;Ae<Ue;Ae++){const tt=i.get(V[Ae]);tt.__webglTexture&&(t.deleteTexture(tt.__webglTexture),a.memory.textures--),i.remove(V[Ae])}i.remove(V),i.remove(j)}let Y=0;function Q(){Y=0}function re(){const j=Y;return j>=l&&console.warn("THREE.WebGLTextures: Trying to use "+j+" texture units while this GPU supports only "+l),Y+=1,j}function he(j){const V=[];return V.push(j.wrapS),V.push(j.wrapT),V.push(j.wrapR||0),V.push(j.magFilter),V.push(j.minFilter),V.push(j.anisotropy),V.push(j.internalFormat),V.push(j.format),V.push(j.type),V.push(j.generateMipmaps),V.push(j.premultiplyAlpha),V.push(j.flipY),V.push(j.unpackAlignment),V.push(j.colorSpace),V.join()}function X(j,V){const oe=i.get(j);if(j.isVideoTexture&&Te(j),j.isRenderTargetTexture===!1&&j.version>0&&oe.__version!==j.version){const Ne=j.image;if(Ne===null)console.warn("THREE.WebGLRenderer: Texture marked for update but no image data found.");else if(Ne.complete===!1)console.warn("THREE.WebGLRenderer: Texture marked for update but image is incomplete");else{We(oe,j,V);return}}n.bindTexture(t.TEXTURE_2D,oe.__webglTexture,t.TEXTURE0+V)}function ae(j,V){const oe=i.get(j);if(j.version>0&&oe.__version!==j.version){We(oe,j,V);return}n.bindTexture(t.TEXTURE_2D_ARRAY,oe.__webglTexture,t.TEXTURE0+V)}function de(j,V){const oe=i.get(j);if(j.version>0&&oe.__version!==j.version){We(oe,j,V);return}n.bindTexture(t.TEXTURE_3D,oe.__webglTexture,t.TEXTURE0+V)}function Re(j,V){const oe=i.get(j);if(j.version>0&&oe.__version!==j.version){lt(oe,j,V);return}n.bindTexture(t.TEXTURE_CUBE_MAP,oe.__webglTexture,t.TEXTURE0+V)}const _e={[oR]:t.REPEAT,[sl]:t.CLAMP_TO_EDGE,[lR]:t.MIRRORED_REPEAT},xe={[Ss]:t.NEAREST,[e9]:t.NEAREST_MIPMAP_NEAREST,[_D]:t.NEAREST_MIPMAP_LINEAR,[xo]:t.LINEAR,[zAe]:t.LINEAR_MIPMAP_NEAREST,[ub]:t.LINEAR_MIPMAP_LINEAR},we={[nMe]:t.NEVER,[uMe]:t.ALWAYS,[iMe]:t.LESS,[sMe]:t.LEQUAL,[rMe]:t.EQUAL,[lMe]:t.GEQUAL,[aMe]:t.GREATER,[oMe]:t.NOTEQUAL};function ve(j,V,oe){if(oe?(t.texParameteri(j,t.TEXTURE_WRAP_S,_e[V.wrapS]),t.texParameteri(j,t.TEXTURE_WRAP_T,_e[V.wrapT]),(j===t.TEXTURE_3D||j===t.TEXTURE_2D_ARRAY)&&t.texParameteri(j,t.TEXTURE_WRAP_R,_e[V.wrapR]),t.texParameteri(j,t.TEXTURE_MAG_FILTER,xe[V.magFilter]),t.texParameteri(j,t.TEXTURE_MIN_FILTER,xe[V.minFilter])):(t.texParameteri(j,t.TEXTURE_WRAP_S,t.CLAMP_TO_EDGE),t.texParameteri(j,t.TEXTURE_WRAP_T,t.CLAMP_TO_EDGE),(j===t.TEXTURE_3D||j===t.TEXTURE_2D_ARRAY)&&t.texParameteri(j,t.TEXTURE_WRAP_R,t.CLAMP_TO_EDGE),(V.wrapS!==sl||V.wrapT!==sl)&&console.warn("THREE.WebGLRenderer: Texture is not power of two. Texture.wrapS and Texture.wrapT should be set to THREE.ClampToEdgeWrapping."),t.texParameteri(j,t.TEXTURE_MAG_FILTER,k(V.magFilter)),t.texParameteri(j,t.TEXTURE_MIN_FILTER,k(V.minFilter)),V.minFilter!==Ss&&V.minFilter!==xo&&console.warn("THREE.WebGLRenderer: Texture is not power of two. Texture.minFilter should be set to THREE.NearestFilter or THREE.LinearFilter.")),V.compareFunction&&(t.texParameteri(j,t.TEXTURE_COMPARE_MODE,t.COMPARE_REF_TO_TEXTURE),t.texParameteri(j,t.TEXTURE_COMPARE_FUNC,we[V.compareFunction])),e.has("EXT_texture_filter_anisotropic")===!0){const Ne=e.get("EXT_texture_filter_anisotropic");if(V.magFilter===Ss||V.minFilter!==_D&&V.minFilter!==ub||V.type===zf&&e.has("OES_texture_float_linear")===!1||o===!1&&V.type===cb&&e.has("OES_texture_half_float_linear")===!1)return;(V.anisotropy>1||i.get(V).__currentAnisotropy)&&(t.texParameterf(j,Ne.TEXTURE_MAX_ANISOTROPY_EXT,Math.min(V.anisotropy,r.getMaxAnisotropy())),i.get(V).__currentAnisotropy=V.anisotropy)}}function De(j,V){let oe=!1;j.__webglInit===void 0&&(j.__webglInit=!0,V.addEventListener("dispose",F));const Ne=V.source;let Ae=v.get(Ne);Ae===void 0&&(Ae={},v.set(Ne,Ae));const Ue=he(V);if(Ue!==j.__cacheKey){Ae[Ue]===void 0&&(Ae[Ue]={texture:t.createTexture(),usedTimes:0},a.memory.textures++,oe=!0),Ae[Ue].usedTimes++;const tt=Ae[j.__cacheKey];tt!==void 0&&(Ae[j.__cacheKey].usedTimes--,tt.usedTimes===0&&$(V)),j.__cacheKey=Ue,j.__webglTexture=Ae[Ue].texture}return oe}function We(j,V,oe){let Ne=t.TEXTURE_2D;(V.isDataArrayTexture||V.isCompressedArrayTexture)&&(Ne=t.TEXTURE_2D_ARRAY),V.isData3DTexture&&(Ne=t.TEXTURE_3D);const Ae=De(j,V),Ue=V.source;n.bindTexture(Ne,j.__webglTexture,t.TEXTURE0+oe);const tt=i.get(Ue);if(Ue.version!==tt.__version||Ae===!0){n.activeTexture(t.TEXTURE0+oe),t.pixelStorei(t.UNPACK_FLIP_Y_WEBGL,V.flipY),t.pixelStorei(t.UNPACK_PREMULTIPLY_ALPHA_WEBGL,V.premultiplyAlpha),t.pixelStorei(t.UNPACK_ALIGNMENT,V.unpackAlignment),t.pixelStorei(t.UNPACK_COLORSPACE_CONVERSION_WEBGL,t.NONE);const qe=E(V)&&T(V.image)===!1;let ke=x(V.image,qe,!1,c);ke=et(V,ke);const ie=T(ke)||o,Ve=s.convert(V.format,V.colorSpace);let rt=s.convert(V.type),Je=R(V.internalFormat,Ve,rt,V.colorSpace);ve(Ne,V,ie);let nt;
3862const Tt=V.mipmaps,Mt=o&&V.isVideoTexture!==!0,ce=tt.__version===void 0||Ae===!0,ot=A(V,ke,ie);if(V.isDepthTexture)Je=t.DEPTH_COMPONENT,o?V.type===zf?Je=t.DEPTH_COMPONENT32F:V.type===$f?Je=t.DEPTH_COMPONENT24:V.type===qh?Je=t.DEPTH24_STENCIL8:Je=t.DEPTH_COMPONENT16:V.type===zf&&console.error("WebGLRenderer: Floating point depth texture requires WebGL2."),V.format===Xh&&Je===t.DEPTH_COMPONENT&&V.type!==p4&&V.type!==$f&&(console.warn("THREE.WebGLRenderer: Use UnsignedShortType or UnsignedIntType for DepthFormat DepthTexture."),V.type=$f,rt=s.convert(V.type)),V.format===wg&&Je===t.DEPTH_COMPONENT&&(Je=t.DEPTH_STENCIL,V.type!==qh&&(console.warn("THREE.WebGLRenderer: Use UnsignedInt248Type for DepthStencilFormat DepthTexture."),V.type=qh,rt=s.convert(V.type))),ce&&(Mt?n.texStorage2D(t.TEXTURE_2D,1,Je,ke.width,ke.height):n.texImage2D(t.TEXTURE_2D,0,Je,ke.width,ke.height,0,Ve,rt,null));else if(V.isDataTexture)if(Tt.length>0&&ie){Mt&&ce&&n.texStorage2D(t.TEXTURE_2D,ot,Je,Tt[0].width,Tt[0].height);for(let Oe=0,Qe=Tt.length;Oe<Qe;Oe++)nt=Tt[Oe],Mt?n.texSubImage2D(t.TEXTURE_2D,Oe,0,0,nt.width,nt.height,Ve,rt,nt.data):n.texImage2D(t.TEXTURE_2D,Oe,Je,nt.width,nt.height,0,Ve,rt,nt.data);V.generateMipmaps=!1}else Mt?(ce&&n.texStorage2D(t.TEXTURE_2D,ot,Je,ke.width,ke.height),n.texSubImage2D(t.TEXTURE_2D,0,0,0,ke.width,ke.height,Ve,rt,ke.data)):n.texImage2D(t.TEXTURE_2D,0,Je,ke.width,ke.height,0,Ve,rt,ke.data);else if(V.isCompressedTexture)if(V.isCompressedArrayTexture){Mt&&ce&&n.texStorage3D(t.TEXTURE_2D_ARRAY,ot,Je,Tt[0].width,Tt[0].height,ke.depth);for(let Oe=0,Qe=Tt.length;Oe<Qe;Oe++)nt=Tt[Oe],V.format!==al?Ve!==null?Mt?n.compressedTexSubImage3D(t.TEXTURE_2D_ARRAY,Oe,0,0,0,nt.width,nt.height,ke.depth,Ve,nt.data,0,0):n.compressedTexImage3D(t.TEXTURE_2D_ARRAY,Oe,Je,nt.width,nt.height,ke.depth,0,nt.data,0,0):console.warn("THREE.WebGLRenderer: Attempt to load unsupported compressed texture format in .uploadTexture()"):Mt?n.texSubImage3D(t.TEXTURE_2D_ARRAY,Oe,0,0,0,nt.width,nt.height,ke.depth,Ve,rt,nt.data):n.texImage3D(t.TEXTURE_2D_ARRAY,Oe,Je,nt.width,nt.height,ke.depth,0,Ve,rt,nt.data)}else{Mt&&ce&&n.texStorage2D(t.TEXTURE_2D,ot,Je,Tt[0].width,Tt[0].height);for(let Oe=0,Qe=Tt.length;Oe<Qe;Oe++)nt=Tt[Oe],V.format!==al?Ve!==null?Mt?n.compressedTexSubImage2D(t.TEXTURE_2D,Oe,0,0,nt.width,nt.height,Ve,nt.data):n.compressedTexImage2D(t.TEXTURE_2D,Oe,Je,nt.width,nt.height,0,nt.data):console.warn("THREE.WebGLRenderer: Attempt to load unsupported compressed texture format in .uploadTexture()"):Mt?n.texSubImage2D(t.TEXTURE_2D,Oe,0,0,nt.width,nt.height,Ve,rt,nt.data):n.texImage2D(t.TEXTURE_2D,Oe,Je,nt.width,nt.height,0,Ve,rt,nt.data)}else if(V.isDataArrayTexture)Mt?(ce&&n.texStorage3D(t.TEXTURE_2D_ARRAY,ot,Je,ke.width,ke.height,ke.depth),n.texSubImage3D(t.TEXTURE_2D_ARRAY,0,0,0,0,ke.width,ke.height,ke.depth,Ve,rt,ke.data)):n.texImage3D(t.TEXTURE_2D_ARRAY,0,Je,ke.width,ke.height,ke.depth,0,Ve,rt,ke.data);else if(V.isData3DTexture)Mt?(ce&&n.texStorage3D(t.TEXTURE_3D,ot,Je,ke.width,ke.height,ke.depth),n.texSubImage3D(t.TEXTURE_3D,0,0,0,0,ke.width,ke.height,ke.depth,Ve,rt,ke.data)):n.texImage3D(t.TEXTURE_3D,0,Je,ke.width,ke.height,ke.depth,0,Ve,rt,ke.data);else if(V.isFramebufferTexture){if(ce)if(Mt)n.texStorage2D(t.TEXTURE_2D,ot,Je,ke.width,ke.height);else{let Oe=ke.width,Qe=ke.height;for(let st=0;st<ot;st++)n.texImage2D(t.TEXTURE_2D,st,Je,Oe,Qe,0,Ve,rt,null),Oe>>=1,Qe>>=1}}else if(Tt.length>0&&ie){Mt&&ce&&n.texStorage2D(t.TEXTURE_2D,ot,Je,Tt[0].width,Tt[0].height);for(let Oe=0,Qe=Tt.length;Oe<Qe;Oe++)nt=Tt[Oe],Mt?n.texSubImage2D(t.TEXTURE_2D,Oe,0,0,Ve,rt,nt):n.texImage2D(t.TEXTURE_2D,Oe,Je,Ve,rt,nt);V.generateMipmaps=!1}else Mt?(ce&&n.texStorage2D(t.TEXTURE_2D,ot,Je,ke.width,ke.height),n.texSubImage2D(t.TEXTURE_2D,0,0,0,Ve,rt,ke)):n.texImage2D(t.TEXTURE_2D,0,Je,Ve,rt,ke);C(V,ie)&&D(Ne),tt.__version=Ue.version,V.onUpdate&&V.onUpdate(V)}j.__version=V.version}function lt(j,V,oe){if(V.image.length!==6)return;const Ne=De(j,V),Ae=V.source;n.bindTexture(t.TEXTURE_CUBE_MAP,j.__webglTexture,t.TEXTURE0+oe);const Ue=i.get(Ae);if(Ae.version!==Ue.__version||Ne===!0){n.activeTexture(t.TEXTURE0+oe),t.pixelStorei(t.UNPACK_FLIP_Y_WEBGL,V.flipY),t.pixelStorei(t.UNPACK_PREMULTIPLY_ALPHA_WEBGL,V.premultiplyAlpha),t.pixelStorei(t.UNPACK_ALIGNMENT,V.unpackAlignment),t.pixelStorei(t.UNPACK_COLORSPACE_CONVERSION_WEBGL,t.NONE);const tt=V.isCompressedTexture||V.image[0].isCompressedTexture,qe=V.image[0]&&V.image[0].isDataTexture,ke=[];for(let Oe=0;Oe<6;Oe++)!tt&&!qe?ke[Oe]=x(V.image[Oe],!1,!0,u):ke[Oe]=qe?V.image[Oe].image:V.image[Oe],ke[Oe]=et(V,ke[Oe]);const ie=ke[0],Ve=T(ie)||o,rt=s.convert(V.format,V.colorSpace),Je=s.convert(V.type),nt=R(V.internalFormat,rt,Je,V.colorSpace),Tt=o&&V.isVideoTexture!==!0,Mt=Ue.__version===void 0||Ne===!0;let ce=A(V,ie,Ve);ve(t.TEXTURE_CUBE_MAP,V,Ve);let ot;if(tt){Tt&&Mt&&n.texStorage2D(t.TEXTURE_CUBE_MAP,ce,nt,ie.width,ie.height);for(let Oe=0;Oe<6;Oe++){ot=ke[Oe].mipmaps;for(let Qe=0;Qe<ot.length;Qe++){const st=ot[Qe];V.format!==al?rt!==null?Tt?n.compressedTexSubImage2D(t.TEXTURE_CUBE_MAP_POSITIVE_X+Oe,Qe,0,0,st.width,st.height,rt,st.data):n.compressedTexImage2D(t.TEXTURE_CUBE_MAP_POSITIVE_X+Oe,Qe,nt,st.width,st.height,0,st.data):console.warn("THREE.WebGLRenderer: Attempt to load unsupported compressed texture format in .setTextureCube()"):Tt?n.texSubImage2D(t.TEXTURE_CUBE_MAP_POSITIVE_X+Oe,Qe,0,0,st.width,st.height,rt,Je,st.data):n.texImage2D(t.TEXTURE_CUBE_MAP_POSITIVE_X+Oe,Qe,nt,st.width,st.height,0,rt,Je,
vendor: 4,311 bytes, line 3862
3862st.data)}}}else{ot=V.mipmaps,Tt&&Mt&&(ot.length>0&&ce++,n.texStorage2D(t.TEXTURE_CUBE_MAP,ce,nt,ke[0].width,ke[0].height));for(let Oe=0;Oe<6;Oe++)if(qe){Tt?n.texSubImage2D(t.TEXTURE_CUBE_MAP_POSITIVE_X+Oe,0,0,0,ke[Oe].width,ke[Oe].height,rt,Je,ke[Oe].data):n.texImage2D(t.TEXTURE_CUBE_MAP_POSITIVE_X+Oe,0,nt,ke[Oe].width,ke[Oe].height,0,rt,Je,ke[Oe].data);for(let Qe=0;Qe<ot.length;Qe++){const Rt=ot[Qe].image[Oe].image;Tt?n.texSubImage2D(t.TEXTURE_CUBE_MAP_POSITIVE_X+Oe,Qe+1,0,0,Rt.width,Rt.height,rt,Je,Rt.data):n.texImage2D(t.TEXTURE_CUBE_MAP_POSITIVE_X+Oe,Qe+1,nt,Rt.width,Rt.height,0,rt,Je,Rt.data)}}else{Tt?n.texSubImage2D(t.TEXTURE_CUBE_MAP_POSITIVE_X+Oe,0,0,0,rt,Je,ke[Oe]):n.texImage2D(t.TEXTURE_CUBE_MAP_POSITIVE_X+Oe,0,nt,rt,Je,ke[Oe]);for(let Qe=0;Qe<ot.length;Qe++){const st=ot[Qe];Tt?n.texSubImage2D(t.TEXTURE_CUBE_MAP_POSITIVE_X+Oe,Qe+1,0,0,rt,Je,st.image[Oe]):n.texImage2D(t.TEXTURE_CUBE_MAP_POSITIVE_X+Oe,Qe+1,nt,rt,Je,st.image[Oe])}}}C(V,Ve)&&D(t.TEXTURE_CUBE_MAP),Ue.__version=Ae.version,V.onUpdate&&V.onUpdate(V)}j.__version=V.version}function Ze(j,V,oe,Ne,Ae,Ue){const tt=s.convert(oe.format,oe.colorSpace),qe=s.convert(oe.type),ke=R(oe.internalFormat,tt,qe,oe.colorSpace);if(!i.get(V).__hasExternalTextures){const Ve=Math.max(1,V.width>>Ue),rt=Math.max(1,V.height>>Ue);Ae===t.TEXTURE_3D||Ae===t.TEXTURE_2D_ARRAY?n.texImage3D(Ae,Ue,ke,Ve,rt,V.depth,0,tt,qe,null):n.texImage2D(Ae,Ue,ke,Ve,rt,0,tt,qe,null)}n.bindFramebuffer(t.FRAMEBUFFER,j),Ce(V)?h.framebufferTexture2DMultisampleEXT(t.FRAMEBUFFER,Ne,Ae,i.get(oe).__webglTexture,0,Pe(V)):(Ae===t.TEXTURE_2D||Ae>=t.TEXTURE_CUBE_MAP_POSITIVE_X&&Ae<=t.TEXTURE_CUBE_MAP_NEGATIVE_Z)&&t.framebufferTexture2D(t.FRAMEBUFFER,Ne,Ae,i.get(oe).__webglTexture,Ue),n.bindFramebuffer(t.FRAMEBUFFER,null)}function z(j,V,oe){if(t.bindRenderbuffer(t.RENDERBUFFER,j),V.depthBuffer&&!V.stencilBuffer){let Ne=t.DEPTH_COMPONENT16;if(oe||Ce(V)){const Ae=V.depthTexture;Ae&&Ae.isDepthTexture&&(Ae.type===zf?Ne=t.DEPTH_COMPONENT32F:Ae.type===$f&&(Ne=t.DEPTH_COMPONENT24));const Ue=Pe(V);Ce(V)?h.renderbufferStorageMultisampleEXT(t.RENDERBUFFER,Ue,Ne,V.width,V.height):t.renderbufferStorageMultisample(t.RENDERBUFFER,Ue,Ne,V.width,V.height)}else t.renderbufferStorage(t.RENDERBUFFER,Ne,V.width,V.height);t.framebufferRenderbuffer(t.FRAMEBUFFER,t.DEPTH_ATTACHMENT,t.RENDERBUFFER,j)}else if(V.depthBuffer&&V.stencilBuffer){const Ne=Pe(V);oe&&Ce(V)===!1?t.renderbufferStorageMultisample(t.RENDERBUFFER,Ne,t.DEPTH24_STENCIL8,V.width,V.height):Ce(V)?h.renderbufferStorageMultisampleEXT(t.RENDERBUFFER,Ne,t.DEPTH24_STENCIL8,V.width,V.height):t.renderbufferStorage(t.RENDERBUFFER,t.DEPTH_STENCIL,V.width,V.height),t.framebufferRenderbuffer(t.FRAMEBUFFER,t.DEPTH_STENCIL_ATTACHMENT,t.RENDERBUFFER,j)}else{const Ne=V.isWebGLMultipleRenderTargets===!0?V.texture:[V.texture];for(let Ae=0;Ae<Ne.length;Ae++){const Ue=Ne[Ae],tt=s.convert(Ue.format,Ue.colorSpace),qe=s.convert(Ue.type),ke=R(Ue.internalFormat,tt,qe,Ue.colorSpace),ie=Pe(V);oe&&Ce(V)===!1?t.renderbufferStorageMultisample(t.RENDERBUFFER,ie,ke,V.width,V.height):Ce(V)?h.renderbufferStorageMultisampleEXT(t.RENDERBUFFER,ie,ke,V.width,V.height):t.renderbufferStorage(t.RENDERBUFFER,ke,V.width,V.height)}}t.bindRenderbuffer(t.RENDERBUFFER,null)}function J(j,V){if(V&&V.isWebGLCubeRenderTarget)throw new Error("Depth Texture with cube render targets is not supported");if(n.bindFramebuffer(t.FRAMEBUFFER,j),!(V.depthTexture&&V.depthTexture.isDepthTexture))throw new Error("renderTarget.depthTexture must be an instance of THREE.DepthTexture");(!i.get(V.depthTexture).__webglTexture||V.depthTexture.image.width!==V.width||V.depthTexture.image.height!==V.height)&&(V.depthTexture.image.width=V.width,V.depthTexture.image.height=V.height,V.depthTexture.needsUpdate=!0),X(V.depthTexture,0);const Ne=i.get(V.depthTexture).__webglTexture,Ae=Pe(V);if(V.depthTexture.format===Xh)Ce(V)?h.framebufferTexture2DMultisampleEXT(t.FRAMEBUFFER,t.DEPTH_ATTACHMENT,t.TEXTURE_2D,Ne,0,Ae):t.framebufferTexture2D(t.FRAMEBUFFER,t.DEPTH_ATTACHMENT,t.TEXTURE_2D,Ne,0);else if(V.depthTexture.format===wg)Ce(V)?h.framebufferTexture2DMultisampleEXT(t.FRAMEBUFFER,t.DEPTH_STENCIL_ATTACHMENT,t.TEXTURE_2D,Ne,0,Ae):t.framebufferTexture2D(t.FRAMEBUFFER,t.DEPTH_STENCIL_ATTACHMENT,t.TEXTURE_2D,Ne,0);else throw new Error("Unknown depthTexture format")}
3862function te(j){const V=i.get(j),oe=j.isWebGLCubeRenderTarget===!0;if(j.depthTexture&&!V.__autoAllocateDepthBuffer){if(oe)throw new Error("target.depthTexture not supported in Cube render targets");J(V.__webglFramebuffer,j)}else if(oe){V.__webglDepthbuffer=[];for(let Ne=0;Ne<6;Ne++)n.bindFramebuffer(t.FRAMEBUFFER,V.__webglFramebuffer[Ne]),V.__webglDepthbuffer[Ne]=t.createRenderbuffer(),z(V.__webglDepthbuffer[Ne],j,!1)}else n.bindFramebuffer(t.FRAMEBUFFER,V.__webglFramebuffer),V.__webglDepthbuffer=t.createRenderbuffer(),z(V.__webglDepthbuffer,j,!1);n.bindFramebuffer(t.FRAMEBUFFER,null)}function pe(j,V,oe){const Ne=i.get(j);V!==void 0&&Ze(Ne.__webglFramebuffer,j,j.texture,t.COLOR_ATTACHMENT0,t.TEXTURE_2D,0),oe!==void 0&&te(j)}function me(j){const V=j.texture,oe=i.get(j),Ne=i.get(V);j.addEventListener("dispose",N),j.isWebGLMultipleRenderTargets!==!0&&(Ne.__webglTexture===void 0&&(Ne.__webglTexture=t.createTexture()),Ne.__version=V.version,a.memory.textures++);const Ae=j.isWebGLCubeRenderTarget===!0,Ue=j.isWebGLMultipleRenderTargets===!0,tt=T(j)||o;if(Ae){oe.__webglFramebuffer=[];for(let qe=0;qe<6;qe++)if(o&&V.mipmaps&&V.mipmaps.length>0){oe.__webglFramebuffer[qe]=[];for(let ke=0;ke<V.mipmaps.length;ke++)oe.__webglFramebuffer[qe][ke]=t.createFramebuffer()}else oe.__webglFramebuffer[qe]=t.createFramebuffer()}else{if(o&&V.mipmaps&&V.mipmaps.length>0){oe.__webglFramebuffer=[];for(let qe=0;qe<V.mipmaps.length;qe++)oe.__webglFramebuffer[qe]=t.createFramebuffer()}else oe.__webglFramebuffer=t.createFramebuffer();if(Ue)if(r.drawBuffers){const qe=j.texture;for(let ke=0,ie=qe.length;ke<ie;ke++){const Ve=i.get(qe[ke]);Ve.__webglTexture===void 0&&(Ve.__webglTexture=t.createTexture(),a.memory.textures++)}}else console.warn("THREE.WebGLRenderer: WebGLMultipleRenderTargets can only be used with WebGL2 or WEBGL_draw_buffers extension.");if(o&&j.samples>0&&Ce(j)===!1){const qe=Ue?V:[V];oe.__webglMultisampledFramebuffer=t.createFramebuffer(),oe.__webglColorRenderbuffer=[],n.bindFramebuffer(t.FRAMEBUFFER,oe.__webglMultisampledFramebuffer);for(let ke=0;ke<qe.length;ke++){const ie=qe[ke];oe.__webglColorRenderbuffer[ke]=t.createRenderbuffer(),t.bindRenderbuffer(t.RENDERBUFFER,oe.__webglColorRenderbuffer[ke]);const Ve=s.convert(ie.format,ie.colorSpace),rt=s.convert(ie.type),Je=R(ie.internalFormat,Ve,rt,ie.colorSpace,j.isXRRenderTarget===!0),nt=Pe(j);t.renderbufferStorageMultisample(t.RENDERBUFFER,nt,Je,j.width,j.height),t.framebufferRenderbuffer(t.FRAMEBUFFER,t.COLOR_ATTACHMENT0+ke,t.RENDERBUFFER,oe.__webglColorRenderbuffer[ke])}t.bindRenderbuffer(t.RENDERBUFFER,null),j.depthBuffer&&(oe.__webglDepthRenderbuffer=t.createRenderbuffer(),z(oe.__webglDepthRenderbuffer,j,!0)),n.bindFramebuffer(t.FRAMEBUFFER,null)}}if(Ae){n.bindTexture(t.TEXTURE_CUBE_MAP,Ne.__webglTexture),ve(t.TEXTURE_CUBE_MAP,V,tt);for(let qe=0;qe<6;qe++)if(o&&V.mipmaps&&V.mipmaps.length>0)for(let ke=0;ke<V.mipmaps.length;ke++)Ze(oe.__webglFramebuffer[qe][ke],j,V,t.COLOR_ATTACHMENT0,t.TEXTURE_CUBE_MAP_POSITIVE_X+qe,ke);else Ze(oe.__webglFramebuffer[qe],j,V,t.COLOR_ATTACHMENT0,t.TEXTURE_CUBE_MAP_POSITIVE_X+qe,0);C(V,tt)&&D(t.TEXTURE_CUBE_MAP),n.unbindTexture()}else if(Ue){const qe=j.texture;for(let ke=0,ie=qe.length;ke<ie;ke++){const Ve=qe[ke],rt=i.get(Ve);n.bindTexture(t.TEXTURE_2D,rt.__webglTexture),ve(t.TEXTURE_2D,Ve,tt),Ze(oe.__webglFramebuffer,j,Ve,t.COLOR_ATTACHMENT0+ke,t.TEXTURE_2D,0),C(Ve,tt)&&D(t.TEXTURE_2D)}n.unbindTexture()}else{let qe=t.TEXTURE_2D;if((j.isWebGL3DRenderTarget||j.isWebGLArrayRenderTarget)&&(o?qe=j.isWebGL3DRenderTarget?t.TEXTURE_3D:t.TEXTURE_2D_ARRAY:console.error("THREE.WebGLTextures: THREE.Data3DTexture and THREE.DataArrayTexture only supported with WebGL2.")),n.bindTexture(qe,Ne.__webglTexture),ve(qe,V,tt),o&&V.mipmaps&&V.mipmaps.length>0)for(let ke=0;ke<V.mipmaps.length;ke++)Ze(oe.__webglFramebuffer[ke],j,V,t.COLOR_ATTACHMENT0,qe,ke);else Ze(oe.__webglFramebuffer,j,V,t.COLOR_ATTACHMENT0,qe,0);C(V,tt)&&D(qe),n.unbindTexture()}j.depthBuffer&&te(j)}function ne(j){const V=T(j)||o,oe=j.isWebGLMultipleRenderTargets===!0?j.texture:[j.texture];for(let Ne=0,Ae=oe.length;Ne<Ae;Ne++){const Ue=oe[Ne];
vendor: 25,432 bytes, line 3862
3862if(C(Ue,V)){const tt=j.isWebGLCubeRenderTarget?t.TEXTURE_CUBE_MAP:t.TEXTURE_2D,qe=i.get(Ue).__webglTexture;n.bindTexture(tt,qe),D(tt),n.unbindTexture()}}}function Le(j){if(o&&j.samples>0&&Ce(j)===!1){const V=j.isWebGLMultipleRenderTargets?j.texture:[j.texture],oe=j.width,Ne=j.height;let Ae=t.COLOR_BUFFER_BIT;const Ue=[],tt=j.stencilBuffer?t.DEPTH_STENCIL_ATTACHMENT:t.DEPTH_ATTACHMENT,qe=i.get(j),ke=j.isWebGLMultipleRenderTargets===!0;if(ke)for(let ie=0;ie<V.length;ie++)n.bindFramebuffer(t.FRAMEBUFFER,qe.__webglMultisampledFramebuffer),t.framebufferRenderbuffer(t.FRAMEBUFFER,t.COLOR_ATTACHMENT0+ie,t.RENDERBUFFER,null),n.bindFramebuffer(t.FRAMEBUFFER,qe.__webglFramebuffer),t.framebufferTexture2D(t.DRAW_FRAMEBUFFER,t.COLOR_ATTACHMENT0+ie,t.TEXTURE_2D,null,0);n.bindFramebuffer(t.READ_FRAMEBUFFER,qe.__webglMultisampledFramebuffer),n.bindFramebuffer(t.DRAW_FRAMEBUFFER,qe.__webglFramebuffer);for(let ie=0;ie<V.length;ie++){Ue.push(t.COLOR_ATTACHMENT0+ie),j.depthBuffer&&Ue.push(tt);const Ve=qe.__ignoreDepthValues!==void 0?qe.__ignoreDepthValues:!1;if(Ve===!1&&(j.depthBuffer&&(Ae|=t.DEPTH_BUFFER_BIT),j.stencilBuffer&&(Ae|=t.STENCIL_BUFFER_BIT)),ke&&t.framebufferRenderbuffer(t.READ_FRAMEBUFFER,t.COLOR_ATTACHMENT0,t.RENDERBUFFER,qe.__webglColorRenderbuffer[ie]),Ve===!0&&(t.invalidateFramebuffer(t.READ_FRAMEBUFFER,[tt]),t.invalidateFramebuffer(t.DRAW_FRAMEBUFFER,[tt])),ke){const rt=i.get(V[ie]).__webglTexture;t.framebufferTexture2D(t.DRAW_FRAMEBUFFER,t.COLOR_ATTACHMENT0,t.TEXTURE_2D,rt,0)}t.blitFramebuffer(0,0,oe,Ne,0,0,oe,Ne,Ae,t.NEAREST),p&&t.invalidateFramebuffer(t.READ_FRAMEBUFFER,Ue)}if(n.bindFramebuffer(t.READ_FRAMEBUFFER,null),n.bindFramebuffer(t.DRAW_FRAMEBUFFER,null),ke)for(let ie=0;ie<V.length;ie++){n.bindFramebuffer(t.FRAMEBUFFER,qe.__webglMultisampledFramebuffer),t.framebufferRenderbuffer(t.FRAMEBUFFER,t.COLOR_ATTACHMENT0+ie,t.RENDERBUFFER,qe.__webglColorRenderbuffer[ie]);const Ve=i.get(V[ie]).__webglTexture;n.bindFramebuffer(t.FRAMEBUFFER,qe.__webglFramebuffer),t.framebufferTexture2D(t.DRAW_FRAMEBUFFER,t.COLOR_ATTACHMENT0+ie,t.TEXTURE_2D,Ve,0)}n.bindFramebuffer(t.DRAW_FRAMEBUFFER,qe.__webglMultisampledFramebuffer)}}function Pe(j){return Math.min(f,j.samples)}function Ce(j){const V=i.get(j);return o&&j.samples>0&&e.has("WEBGL_multisampled_render_to_texture")===!0&&V.__useRenderToTexture!==!1}function Te(j){const V=a.render.frame;m.get(j)!==V&&(m.set(j,V),j.update())}function et(j,V){const oe=j.colorSpace,Ne=j.format,Ae=j.type;return j.isCompressedTexture===!0||j.format===cR||oe!==_u&&oe!==Kh&&(oe===ln?o===!1?e.has("EXT_sRGB")===!0&&Ne===al?(j.format=cR,j.minFilter=xo,j.generateMipmaps=!1):V=xQ.sRGBToLinear(V):(Ne!==al||Ae!==id)&&console.warn("THREE.WebGLTextures: sRGB encoded textures have to use RGBAFormat and UnsignedByteType."):console.error("THREE.WebGLTextures: Unsupported texture color space:",oe)),V}this.allocateTextureUnit=re,this.resetTextureUnits=Q,this.setTexture2D=X,this.setTexture2DArray=ae,this.setTexture3D=de,this.setTextureCube=Re,this.rebindTextures=pe,this.setupRenderTarget=me,this.updateRenderTargetMipmap=ne,this.updateMultisampleRenderTarget=Le,this.setupDepthRenderbuffer=te,this.setupFrameBufferTexture=Ze,this.useMultisampledRTT=Ce}function ERe(t,e,n){const i=n.isWebGL2;function r(s,a=Kh){let o;if(s===id)return t.UNSIGNED_BYTE;if(s===hQ)return t.UNSIGNED_SHORT_4_4_4_4;if(s===pQ)return t.UNSIGNED_SHORT_5_5_5_1;if(s===HAe)return t.BYTE;if(s===VAe)return t.SHORT;if(s===p4)return t.UNSIGNED_SHORT;if(s===dQ)return t.INT;if(s===$f)return t.UNSIGNED_INT;if(s===zf)return t.FLOAT;if(s===cb)return i?t.HALF_FLOAT:(o=e.get("OES_texture_half_float"),o!==null?o.HALF_FLOAT_OES:null);if(s===WAe)return t.ALPHA;if(s===al)return t.RGBA;if(s===GAe)return t.LUMINANCE;if(s===jAe)return t.LUMINANCE_ALPHA;if(s===Xh)return t.DEPTH_COMPONENT;if(s===wg)return t.DEPTH_STENCIL;if(s===cR)return o=e.get("EXT_sRGB"),o!==null?o.SRGB_ALPHA_EXT:null;if(s===qAe)return t.RED;if(s===mQ)return t.RED_INTEGER;if(s===XAe)return t.RG;if(s===gQ)return t.RG_INTEGER;if(s===_Q)return t.RGBA_INTEGER;if(s===vD||s===yD||s===bD||s===xD)if(a===ln)if(o=e.get("WEBGL_compressed_texture_s3tc_srgb"),o!==null){if(s===vD)return o.COMPRESSED_SRGB_S3TC_DXT1_EXT;if(s===yD)return o.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT;if(s===bD)return o.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT;if(s===xD)return o.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT}else return null;else if(o=e.get("WEBGL_compressed_texture_s3tc"),o!==null){if(s===vD)return o.COMPRESSED_RGB_S3TC_DXT1_EXT;if(s===yD)return o.COMPRESSED_RGBA_S3TC_DXT1_EXT;if(s===bD)return o.COMPRESSED_RGBA_S3TC_DXT3_EXT;if(s===xD)return o.COMPRESSED_RGBA_S3TC_DXT5_EXT}else return null;if(s===t9||s===n9||s===i9||s===r9)if(o=e.get("WEBGL_compressed_texture_pvrtc"),o!==null){if(s===t9)return o.COMPRESSED_RGB_PVRTC_4BPPV1_IMG;if(s===n9)return o.COMPRESSED_RGB_PVRTC_2BPPV1_IMG;if(s===i9)return o.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG;if(s===r9)return o.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG}else return null;if(s===YAe)return o=e.get("WEBGL_compressed_texture_etc1"),o!==null?o.COMPRESSED_RGB_ETC1_WEBGL:null;if(s===s9||s===a9)if(o=e.get("WEBGL_compressed_texture_etc"),o!==null){if(s===s9)return a===ln?o.COMPRESSED_SRGB8_ETC2:o.COMPRESSED_RGB8_ETC2;if(s===a9)return a===ln?o.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:o.COMPRESSED_RGBA8_ETC2_EAC}else return null;if(s===o9||s===l9||s===u9||s===c9||s===f9||s===d9||s===h9||s===p9||s===m9||s===g9||s===_9||s===v9||s===y9||s===b9)if(o=e.get("WEBGL_compressed_texture_astc"),o!==null){if(s===o9)return a===ln?o.COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR:o.COMPRESSED_RGBA_ASTC_4x4_KHR;if(s===l9)return a===ln?o.COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR:o.COMPRESSED_RGBA_ASTC_5x4_KHR;if(s===u9)return a===ln?o.COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR:o.COMPRESSED_RGBA_ASTC_5x5_KHR;if(s===c9)return a===ln?o.COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR:o.COMPRESSED_RGBA_ASTC_6x5_KHR;if(s===f9)return a===ln?o.COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR:o.COMPRESSED_RGBA_ASTC_6x6_KHR;if(s===d9)return a===ln?o.COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR:o.COMPRESSED_RGBA_ASTC_8x5_KHR;if(s===h9)return a===ln?o.COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR:o.COMPRESSED_RGBA_ASTC_8x6_KHR;if(s===p9)return a===ln?o.COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR:o.COMPRESSED_RGBA_ASTC_8x8_KHR;if(s===m9)return a===ln?o.COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR:o.COMPRESSED_RGBA_ASTC_10x5_KHR;if(s===g9)return a===ln?o.COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR:o.COMPRESSED_RGBA_ASTC_10x6_KHR;if(s===_9)return a===ln?o.COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR:o.COMPRESSED_RGBA_ASTC_10x8_KHR;if(s===v9)return a===ln?o.COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR:o.COMPRESSED_RGBA_ASTC_10x10_KHR;if(s===y9)return a===ln?o.COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR:o.COMPRESSED_RGBA_ASTC_12x10_KHR;if(s===b9)return a===ln?o.COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR:o.COMPRESSED_RGBA_ASTC_12x12_KHR}else return null;if(s===SD)if(o=e.get("EXT_texture_compression_bptc"),o!==null){if(s===SD)return a===ln?o.COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT:o.COMPRESSED_RGBA_BPTC_UNORM_EXT}else return null;if(s===KAe||s===x9||s===S9||s===T9)if(o=e.get("EXT_texture_compression_rgtc"),o!==null){if(s===SD)return o.COMPRESSED_RED_RGTC1_EXT;if(s===x9)return o.COMPRESSED_SIGNED_RED_RGTC1_EXT;if(s===S9)return o.COMPRESSED_RED_GREEN_RGTC2_EXT;if(s===T9)return o.COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT}else return null;return s===qh?i?t.UNSIGNED_INT_24_8:(o=e.get("WEBGL_depth_texture"),o!==null?o.UNSIGNED_INT_24_8_WEBGL:null):t[s]!==void 0?t[s]:null}return{convert:r}}class wRe extends Jo{constructor(e=[]){super(),this.isArrayCamera=!0,this.cameras=e}}class wS extends oa{constructor(){super(),this.isGroup=!0,this.type="Group"}}const CRe={type:"move"};class WD{constructor(){this._targetRay=null,this._grip=null,this._hand=null}getHandSpace(){return this._hand===null&&(this._hand=new wS,this._hand.matrixAutoUpdate=!1,this._hand.visible=!1,this._hand.joints={},this._hand.inputState={pinching:!1}),this._hand}getTargetRaySpace(){return this._targetRay===null&&(this._targetRay=new wS,this._targetRay.matrixAutoUpdate=!1,this._targetRay.visible=!1,this._targetRay.hasLinearVelocity=!1,this._targetRay.linearVelocity=new Ie,this._targetRay.hasAngularVelocity=!1,this._targetRay.angularVelocity=new Ie),this._targetRay}getGripSpace(){return this._grip===null&&(this._grip=new wS,this._grip.matrixAutoUpdate=!1,this._grip.visible=!1,this._grip.hasLinearVelocity=!1,this._grip.linearVelocity=new Ie,this._grip.hasAngularVelocity=!1,this._grip.angularVelocity=new Ie),this._grip}dispatchEvent(e){return this._targetRay!==null&&this._targetRay.dispatchEvent(e),this._grip!==null&&this._grip.dispatchEvent(e),this._hand!==null&&this._hand.dispatchEvent(e),this}connect(e){if(e&&e.hand){const n=this._hand;if(n)for(const i of e.hand.values())this._getHandJoint(n,i)}return this.dispatchEvent({type:"connected",data:e}),this}disconnect(e){return this.dispatchEvent({type:"disconnected",data:e}),this._targetRay!==null&&(this._targetRay.visible=!1),this._grip!==null&&(this._grip.visible=!1),this._hand!==null&&(this._hand.visible=!1),this}update(e,n,i){let r=null,s=null,a=null;const o=this._targetRay,l=this._grip,u=this._hand;if(e&&n.session.visibilityState!=="visible-blurred"){if(u&&e.hand){a=!0;for(const y of e.hand.values()){const v=n.getJointPose(y,i),_=this._getHandJoint(u,y);v!==null&&(_.matrix.fromArray(v.transform.matrix),_.matrix.decompose(_.position,_.rotation,_.scale),_.matrixWorldNeedsUpdate=!0,_.jointRadius=v.radius),_.visible=v!==null}const c=u.joints["index-finger-tip"],f=u.joints["thumb-tip"],h=c.position.distanceTo(f.position),p=.02,m=.005;u.inputState.pinching&&h>p+m?(u.inputState.pinching=!1,this.dispatchEvent({type:"pinchend",handedness:e.handedness,target:this})):!u.inputState.pinching&&h<=p-m&&(u.inputState.pinching=!0,this.dispatchEvent({type:"pinchstart",handedness:e.handedness,target:this}))}else l!==null&&e.gripSpace&&(s=n.getPose(e.gripSpace,i),s!==null&&(l.matrix.fromArray(s.transform.matrix),l.matrix.decompose(l.position,l.rotation,l.scale),l.matrixWorldNeedsUpdate=!0,s.linearVelocity?(l.hasLinearVelocity=!0,l.linearVelocity.copy(s.linearVelocity)):l.hasLinearVelocity=!1,s.angularVelocity?(l.hasAngularVelocity=!0,l.angularVelocity.copy(s.angularVelocity)):l.hasAngularVelocity=!1));o!==null&&(r=n.getPose(e.targetRaySpace,i),r===null&&s!==null&&(r=s),r!==null&&(o.matrix.fromArray(r.transform.matrix),o.matrix.decompose(o.position,o.rotation,o.scale),o.matrixWorldNeedsUpdate=!0,r.linearVelocity?(o.hasLinearVelocity=!0,o.linearVelocity.copy(r.linearVelocity)):o.hasLinearVelocity=!1,r.angularVelocity?(o.hasAngularVelocity=!0,o.angularVelocity.copy(r.angularVelocity)):o.hasAngularVelocity=!1,this.dispatchEvent(CRe)))}return o!==null&&(o.visible=r!==null),l!==null&&(l.visible=s!==null),u!==null&&(u.visible=a!==null),this}_getHandJoint(e,n){if(e.joints[n.jointName]===void 0){const i=new wS;i.matrixAutoUpdate=!1,i.visible=!1,e.joints[n.jointName]=i,e.add(i)}return e.joints[n.jointName]}}class ARe extends aa{constructor(e,n,i,r,s,a,o,l,u,c){if(c=c!==void 0?c:Xh,c!==Xh&&c!==wg)throw new Error("DepthTexture format must be either THREE.DepthFormat or THREE.DepthStencilFormat");i===void 0&&c===Xh&&(i=$f),i===void 0&&c===wg&&(i=qh),super(null,r,s,a,o,l,c,i,u),this.isDepthTexture=!0,this.image={width:e,height:n},this.magFilter=o!==void 0?o:Ss,this.minFilter=l!==void 0?l:Ss,this.flipY=!1,this.generateMipmaps=!1,this.compareFunction=null}copy(e){return super.copy(e),this.compareFunction=e.compareFunction,this}toJSON(e){const n=super.toJSON(e);return this.compareFunction!==null&&(n.compareFunction=this.compareFunction),n}}class MRe extends Pp{constructor(e,n){super();const i=this;let r=null,s=1,a=null,o="local-floor",l=1,u=null,c=null,f=null,h=null,p=null,m=null;const y=n.getContextAttributes();let v=null,_=null;const b=[],x=[],T=new Jo;T.layers.enable(1),T.viewport=new Fr;const E=new Jo;E.layers.enable(2),E.viewport=new Fr;const C=[T,E],D=new wRe;D.layers.enable(1),D.layers.enable(2);let R=null,A=null;this.cameraAutoUpdate=!0,this.enabled=!1,this.isPresenting=!1,this.getController=function(ae){let de=b[ae];return de===void 0&&(de=new WD,b[ae]=de),de.getTargetRaySpace()},this.getControllerGrip=function(ae){let de=b[ae];return de===void 0&&(de=new WD,b[ae]=de),de.getGripSpace()},this.getHand=function(ae){let de=b[ae];return de===void 0&&(de=new WD,b[ae]=de),de.getHandSpace()};function k(ae){const de=x.indexOf(ae.inputSource);if(de===-1)return;const Re=b[de];Re!==void 0&&(Re.update(ae.inputSource,ae.frame,u||a),Re.dispatchEvent({type:ae.type,data:ae.inputSource}))}function F(){r.removeEventListener("select",k),r.removeEventListener("selectstart",k),r.removeEventListener("selectend",k),r.removeEventListener("squeeze",k),r.removeEventListener("squeezestart",k),r.removeEventListener("squeezeend",k),r.removeEventListener("end",F),r.removeEventListener("inputsourceschange",N);for(let ae=0;ae<b.length;ae++){const de=x[ae];de!==null&&(x[ae]=null,b[ae].disconnect(de))}R=null,A=null,e.setRenderTarget(v),p=null,h=null,f=null,r=null,_=null,X.stop(),i.isPresenting=!1,i.dispatchEvent({type:"sessionend"})}this.setFramebufferScaleFactor=function(ae){s=ae,i.isPresenting===!0&&console.warn("THREE.WebXRManager: Cannot change framebuffer scale while presenting.")},this.setReferenceSpaceType=function(ae){o=ae,i.isPresenting===!0&&console.warn("THREE.WebXRManager: Cannot change reference space type while presenting.")},this.getReferenceSpace=function(){return u||a},this.setReferenceSpace=function(ae){u=ae},this.getBaseLayer=function(){return h!==null?h:p},this.getBinding=function(){return f},this.getFrame=function(){return m},this.getSession=function(){return r},this.setSession=async function(ae){if(r=ae,r!==null){if(v=e.getRenderTarget(),r.addEventListener("select",k),r.addEventListener("selectstart",k),r.addEventListener("selectend",k),r.addEventListener("squeeze",k),r.addEventListener("squeezestart",k),r.addEventListener("squeezeend",k),r.addEventListener("end",F),r.addEventListener("inputsourceschange",N),y.xrCompatible!==!0&&await n.makeXRCompatible(),r.renderState.layers===void 0||e.capabilities.isWebGL2===!1){const de={antialias:r.renderState.layers===void 0?y.antialias:!0,alpha:!0,depth:y.depth,stencil:y.stencil,framebufferScaleFactor:s};p=new XRWebGLLayer(r,n,de),r.updateRenderState({baseLayer:p}),_=new hp(p.framebufferWidth,p.framebufferHeight,{format:al,type:id,colorSpace:e.outputColorSpace,stencilBuffer:y.stencil})}else{let de=null,Re=null,_e=null;y.depth&&(_e=y.stencil?n.DEPTH24_STENCIL8:n.DEPTH_COMPONENT24,de=y.stencil?wg:Xh,Re=y.stencil?qh:$f);const xe={colorFormat:n.RGBA8,depthFormat:_e,scaleFactor:s};f=new XRWebGLBinding(r,n),h=f.createProjectionLayer(xe),r.updateRenderState({layers:[h]}),_=new hp(h.textureWidth,h.textureHeight,{format:al,type:id,depthTexture:new ARe(h.textureWidth,h.textureHeight,Re,void 0,void 0,void 0,void 0,void 0,void 0,de),stencilBuffer:y.stencil,colorSpace:e.outputColorSpace,samples:y.antialias?4:0});const we=e.properties.get(_);we.__ignoreDepthValues=h.ignoreDepthValues}_.isXRRenderTarget=!0,this.setFoveation(l),u=null,a=await r.requestReferenceSpace(o),X.setContext(r),X.start(),i.isPresenting=!0,i.dispatchEvent({type:"sessionstart"})}},this.getEnvironmentBlendMode=function(){if(r!==null)return r.environmentBlendMode};function N(ae){for(let de=0;de<ae.removed.length;de++){const Re=ae.removed[de],_e=x.indexOf(Re);_e>=0&&(x[_e]=null,b[_e].disconnect(Re))}for(let de=0;de<ae.added.length;de++){const Re=ae.added[de];let _e=x.indexOf(Re);if(_e===-1){for(let we=0;we<b.length;we++)if(we>=x.length){x.push(Re),_e=we;break}else if(x[we]===null){x[we]=Re,_e=we;break}if(_e===-1)break}const xe=b[_e];xe&&xe.connect(Re)}}const U=new Ie,$=new Ie;function G(ae,de,Re){U.setFromMatrixPosition(de.matrixWorld),$.setFromMatrixPosition(Re.matrixWorld);const _e=U.distanceTo($),xe=de.projectionMatrix.elements,we=Re.projectionMatrix.elements,ve=xe[14]/(xe[10]-1),De=xe[14]/(xe[10]+1),We=(xe[9]+1)/xe[5],lt=(xe[9]-1)/xe[5],Ze=(xe[8]-1)/xe[0],z=(we[8]+1)/we[0],J=ve*Ze,te=ve*z,pe=_e/(-Ze+z),me=pe*-Ze;de.matrixWorld.decompose(ae.position,ae.quaternion,ae.scale),ae.translateX(me),ae.translateZ(pe),ae.matrixWorld.compose(ae.position,ae.quaternion,ae.scale),ae.matrixWorldInverse.copy(ae.matrixWorld).invert();const ne=ve+pe,Le=De+pe,Pe=J-me,Ce=te+(_e-me),Te=We*De/Le*ne,et=lt*De/Le*ne;ae.projectionMatrix.makePerspective(Pe,Ce,Te,et,ne,Le),ae.projectionMatrixInverse.copy(ae.projectionMatrix).invert()}function Y(ae,de){de===null?ae.matrixWorld.copy(ae.matrix):ae.matrixWorld.multiplyMatrices(de.matrixWorld,ae.matrix),ae.matrixWorldInverse.copy(ae.matrixWorld).invert()}this.updateCamera=function(ae){if(r===null)return;D.near=E.near=T.near=ae.near,D.far=E.far=T.far=ae.far,(R!==D.near||A!==D.far)&&(r.updateRenderState({depthNear:D.near,depthFar:D.far}),R=D.near,A=D.far);const de=ae.parent,Re=D.cameras;Y(D,de);for(let _e=0;_e<Re.length;_e++)Y(Re[_e],de);Re.length===2?G(D,T,E):D.projectionMatrix.copy(T.projectionMatrix),Q(ae,D,de)};function Q(ae,de,Re){Re===null?ae.matrix.copy(de.matrixWorld):(ae.matrix.copy(Re.matrixWorld),ae.matrix.invert(),ae.matrix.multiply(de.matrixWorld)),ae.matrix.decompose(ae.position,ae.quaternion,ae.scale),ae.updateMatrixWorld(!0);const _e=ae.children;for(let xe=0,we=_e.length;xe<we;xe++)_e[xe].updateMatrixWorld(!0);ae.projectionMatrix.copy(de.projectionMatrix),ae.projectionMatrixInverse.copy(de.projectionMatrixInverse),ae.isPerspectiveCamera&&(ae.fov=fb*2*Math.atan(1/ae.projectionMatrix.elements[5]),ae.zoom=1)}this.getCamera=function(){return D},this.getFoveation=function(){if(!(h===null&&p===null))return l},this.setFoveation=function(ae){l=ae,h!==null&&(h.fixedFoveation=ae),p!==null&&p.fixedFoveation!==void 0&&(p.fixedFoveation=ae)};let re=null;function he(ae,de){if(c=de.getViewerPose(u||a),m=de,c!==null){const Re=c.views;p!==null&&(e.setRenderTargetFramebuffer(_,p.framebuffer),e.setRenderTarget(_));let _e=!1;Re.length!==D.cameras.length&&(D.cameras.length=0,_e=!0);for(let xe=0;xe<Re.length;xe++){const we=Re[xe];let ve=null;if(p!==null)ve=p.getViewport(we);else{const We=f.getViewSubImage(h,we);ve=We.viewport,xe===0&&(e.setRenderTargetTextures(_,We.colorTexture,h.ignoreDepthValues?void 0:We.depthStencilTexture),e.setRenderTarget(_))}let De=C[xe];De===void 0&&(De=new Jo,De.layers.enable(xe),De.viewport=new Fr,C[xe]=De),De.matrix.fromArray(we.transform.matrix),De.matrix.decompose(De.position,De.quaternion,De.scale),De.projectionMatrix.fromArray(we.projectionMatrix),De.projectionMatrixInverse.copy(De.projectionMatrix).invert(),De.viewport.set(ve.x,ve.y,ve.width,ve.height),xe===0&&(D.matrix.copy(De.matrix),D.matrix.decompose(D.position,D.quaternion,D.scale)),_e===!0&&D.cameras.push(De)}}for(let Re=0;Re<b.length;Re++){const _e=x[Re],xe=b[Re];_e!==null&&xe!==void 0&&xe.update(_e,de,u||a)}re&&re(ae,de),de.detectedPlanes&&i.dispatchEvent({type:"planesdetected",data:de}),m=null}const X=new RQ;X.setAnimationLoop(he),this.setAnimationLoop=function(ae){re=ae},this.dispose=function(){}}}function DRe(t,e){function n(v,_){v.matrixAutoUpdate===!0&&v.updateMatrix(),_.value.copy(v.matrix)}function i(v,_){_.color.getRGB(v.fogColor.value,MQ(t)),_.isFog?(v.fogNear.value=_.near,v.fogFar.value=_.far):_.isFogExp2&&(v.fogDensity.value=_.density)}function r(v,_,b,x,T){_.isMeshBasicMaterial||_.isMeshLambertMaterial?s(v,_):_.isMeshToonMaterial?(s(v,_),f(v,_)):_.isMeshPhongMaterial?(s(v,_),c(v,_)):_.isMeshStandardMaterial?(s(v,_),h(v,_),_.isMeshPhysicalMaterial&&p(v,_,T)):_.isMeshMatcapMaterial?(s(v,_),m(v,_)):_.isMeshDepthMaterial?s(v,_):_.isMeshDistanceMaterial?(s(v,_),y(v,_)):_.isMeshNormalMaterial?s(v,_):_.isLineBasicMaterial?(a(v,_),_.isLineDashedMaterial&&o(v,_)):_.isPointsMaterial?l(v,_,b,x):_.isSpriteMaterial?u(v,_):_.isShadowMaterial?(v.color.value.copy(_.color),v.opacity.value=_.opacity):_.isShaderMaterial&&(_.uniformsNeedUpdate=!1)}function s(v,_){v.opacity.value=_.opacity,_.color&&v.diffuse.value.copy(_.color),_.emissive&&v.emissive.value.copy(_.emissive).multiplyScalar(_.emissiveIntensity),_.map&&(v.map.value=_.map,n(_.map,v.mapTransform)),_.alphaMap&&(v.alphaMap.value=_.alphaMap,n(_.alphaMap,v.alphaMapTransform)),_.bumpMap&&(v.bumpMap.value=_.bumpMap,n(_.bumpMap,v.bumpMapTransform),v.bumpScale.value=_.bumpScale,_.side===sa&&(v.bumpScale.value*=-1)),_.normalMap&&(v.normalMap.value=_.normalMap,n(_.normalMap,v.normalMapTransform),v.normalScale.value.copy(_.normalScale),_.side===sa&&v.normalScale.value.negate()),_.displacementMap&&(v.displacementMap.value=_.displacementMap,n(_.displacementMap,v.displacementMapTransform),v.displacementScale.value=_.displacementScale,v.displacementBias.value=_.displacementBias),_.emissiveMap&&(v.emissiveMap.value=_.emissiveMap,n(_.emissiveMap,v.emissiveMapTransform)),_.specularMap&&(v.specularMap.value=_.specularMap,n(_.specularMap,v.specularMapTransform)),_.alphaTest>0&&(v.alphaTest.value=_.alphaTest);const b=e.get(_).envMap;if(b&&(v.envMap.value=b,v.flipEnvMap.value=b.isCubeTexture&&b.isRenderTargetTexture===!1?-1:1,v.reflectivity.value=_.reflectivity,v.ior.value=_.ior,v.refractionRatio.value=_.refractionRatio),_.lightMap){v.lightMap.value=_.lightMap;const x=t._useLegacyLights===!0?Math.PI:1;v.lightMapIntensity.value=_.lightMapIntensity*x,n(_.lightMap,v.lightMapTransform)}_.aoMap&&(v.aoMap.value=_.aoMap,v.aoMapIntensity.value=_.aoMapIntensity,n(_.aoMap,v.aoMapTransform))}function a(v,_){v.diffuse.value.copy(_.color),v.opacity.value=_.opacity,_.map&&(v.map.value=_.map,n(_.map,v.mapTransform))}function o(v,_){v.dashSize.value=_.dashSize,v.totalSize.value=_.dashSize+_.gapSize,v.scale.value=_.scale}function l(v,_,b,x){v.diffuse.value.copy(_.color),v.opacity.value=_.opacity,v.size.value=_.size*b,v.scale.value=x*.5,_.map&&(v.map.value=_.map,n(_.map,v.uvTransform)),_.alphaMap&&(v.alphaMap.value=_.alphaMap,n(_.alphaMap,v.alphaMapTransform)),_.alphaTest>0&&(v.alphaTest.value=_.alphaTest)}function u(v,_){v.diffuse.value.copy(_.color),v.opacity.value=_.opacity,v.rotation.value=_.rotation,_.map&&(v.map.value=_.map,n(_.map,v.mapTransform)),_.alphaMap&&(v.alphaMap.value=_.alphaMap,n(_.alphaMap,v.alphaMapTransform)),_.alphaTest>0&&(v.alphaTest.value=_.alphaTest)}function c(v,_){v.specular.value.copy(_.specular),v.shininess.value=Math.max(_.shininess,1e-4)}function f(v,_){_.gradientMap&&(v.gradientMap.value=_.gradientMap)}function h(v,_){v.metalness.value=_.metalness,_.metalnessMap&&(v.metalnessMap.value=_.metalnessMap,n(_.metalnessMap,v.metalnessMapTransform)),v.roughness.value=_.roughness,_.roughnessMap&&(v.roughnessMap.value=_.roughnessMap,n(_.roughnessMap,v.roughnessMapTransform)),e.get(_).envMap&&(v.envMapIntensity.value=_.envMapIntensity)}function p(v,_,b){v.ior.value=_.ior,_.sheen>0&&(v.sheenColor.value.copy(_.sheenColor).multiplyScalar(_.sheen),v.sheenRoughness.value=_.sheenRoughness,_.sheenColorMap&&(v.sheenColorMap.value=_.sheenColorMap,n(_.sheenColorMap,v.sheenColorMapTransform)),_.sheenRoughnessMap&&(v.sheenRoughnessMap.value=_.sheenRoughnessMap,n(_.sheenRoughnessMap,v.sheenRoughnessMapTransform))),_.clearcoat>0&&(v.clearcoat.value=_.clearcoat,v.clearcoatRoughness.value=_.clearcoatRoughness,_.clearcoatMap&&(v.clearcoatMap.value=_.clearcoatMap,n(_.clearcoatMap,v.clearcoatMapTransform)),_.clearcoatRoughnessMap&&(v.clearcoatRoughnessMap.value=_.clearcoatRoughnessMap,n(_.clearcoatRoughnessMap,v.clearcoatRoughnessMapTransform)),_.clearcoatNormalMap&&(v.clearcoatNormalMap.value=_.clearcoatNormalMap,n(_.clearcoatNormalMap,v.clearcoatNormalMapTransform),v.clearcoatNormalScale.value.copy(_.clearcoatNormalScale),_.side===sa&&v.clearcoatNormalScale.value.negate())),_.iridescence>0&&(v.iridescence.value=_.iridescence,v.iridescenceIOR.value=_.iridescenceIOR,v.iridescenceThicknessMinimum.value=_.iridescenceThicknessRange[0],v.iridescenceThicknessMaximum.value=_.iridescenceThicknessRange[1],_.iridescenceMap&&(v.iridescenceMap.value=_.iridescenceMap,n(_.iridescenceMap,v.iridescenceMapTransform)),_.iridescenceThicknessMap&&(v.iridescenceThicknessMap.value=_.iridescenceThicknessMap,n(_.iridescenceThicknessMap,v.iridescenceThicknessMapTransform))),_.transmission>0&&(v.transmission.value=_.transmission,v.transmissionSamplerMap.value=b.texture,v.transmissionSamplerSize.value.set(b.width,b.height),_.transmissionMap&&(v.transmissionMap.value=_.transmissionMap,n(_.transmissionMap,v.transmissionMapTransform)),v.thickness.value=_.thickness,_.thicknessMap&&(v.thicknessMap.value=_.thicknessMap,n(_.thicknessMap,v.thicknessMapTransform)),v.attenuationDistance.value=_.attenuationDistance,v.attenuationColor.value.copy(_.attenuationColor)),_.anisotropy>0&&(v.anisotropyVector.value.set(_.anisotropy*Math.cos(_.anisotropyRotation),_.anisotropy*Math.sin(_.anisotropyRotation)),_.anisotropyMap&&(v.anisotropyMap.value=_.anisotropyMap,n(_.anisotropyMap,v.anisotropyMapTransform))),v.specularIntensity.value=_.specularIntensity,v.specularColor.value.copy(_.specularColor),_.specularColorMap&&(v.specularColorMap.value=_.specularColorMap,n(_.specularColorMap,v.specularColorMapTransform)),_.specularIntensityMap&&(v.specularIntensityMap.value=_.specularIntensityMap,n(_.specularIntensityMap,v.specularIntensityMapTransform))}function m(v,_){_.matcap&&(v.matcap.value=_.matcap)}function y(v,_){const b=e.get(_).light;v.referencePosition.value.setFromMatrixPosition(b.matrixWorld),v.nearDistance.value=b.shadow.camera.near,v.farDistance.value=b.shadow.camera.far}return{refreshFogUniforms:i,refreshMaterialUniforms:r}}function PRe(t,e,n,i){let r={},s={},a=[];
3862const o=n.isWebGL2?t.getParameter(t.MAX_UNIFORM_BUFFER_BINDINGS):0;function l(b,x){const T=x.program;i.uniformBlockBinding(b,T)}function u(b,x){let T=r[b.id];T===void 0&&(m(b),T=c(b),r[b.id]=T,b.addEventListener("dispose",v));const E=x.program;i.updateUBOMapping(b,E);const C=e.render.frame;s[b.id]!==C&&(h(b),s[b.id]=C)}function c(b){const x=f();b.__bindingPointIndex=x;const T=t.createBuffer(),E=b.__size,C=b.usage;return t.bindBuffer(t.UNIFORM_BUFFER,T),t.bufferData(t.UNIFORM_BUFFER,E,C),t.bindBuffer(t.UNIFORM_BUFFER,null),t.bindBufferBase(t.UNIFORM_BUFFER,x,T),T}function f(){for(let b=0;b<o;b++)if(a.indexOf(b)===-1)return a.push(b),b;return console.error("THREE.WebGLRenderer: Maximum number of simultaneously usable uniforms groups reached."),0}function h(b){const x=r[b.id],T=b.uniforms,E=b.__cache;t.bindBuffer(t.UNIFORM_BUFFER,x);for(let C=0,D=T.length;C<D;C++){const R=T[C];if(p(R,C,E)===!0){const A=R.__offset,k=Array.isArray(R.value)?R.value:[R.value];let F=0;for(let N=0;N<k.length;N++){const U=k[N],$=y(U);typeof U=="number"?(R.__data[0]=U,t.bufferSubData(t.UNIFORM_BUFFER,A+F,R.__data)):U.isMatrix3?(R.__data[0]=U.elements[0],R.__data[1]=U.elements[1],R.__data[2]=U.elements[2],R.__data[3]=U.elements[0],R.__data[4]=U.elements[3],R.__data[5]=U.elements[4],R.__data[6]=U.elements[5],R.__data[7]=U.elements[0],R.__data[8]=U.elements[6],R.__data[9]=U.elements[7],R.__data[10]=U.elements[8],R.__data[11]=U.elements[0]):(U.toArray(R.__data,F),F+=$.storage/Float32Array.BYTES_PER_ELEMENT)}t.bufferSubData(t.UNIFORM_BUFFER,A,R.__data)}}t.bindBuffer(t.UNIFORM_BUFFER,null)}function p(b,x,T){const E=b.value;if(T[x]===void 0){if(typeof E=="number")T[x]=E;else{const C=Array.isArray(E)?E:[E],D=[];for(let R=0;R<C.length;R++)D.push(C[R].clone());T[x]=D}return!0}else if(typeof E=="number"){if(T[x]!==E)return T[x]=E,!0}else{const C=Array.isArray(T[x])?T[x]:[T[x]],D=Array.isArray(E)?E:[E];for(let R=0;R<C.length;R++){const A=C[R];if(A.equals(D[R])===!1)return A.copy(D[R]),!0}}return!1}function m(b){const x=b.uniforms;let T=0;const E=16;let C=0;for(let D=0,R=x.length;D<R;D++){const A=x[D],k={boundary:0,storage:0},F=Array.isArray(A.value)?A.value:[A.value];for(let N=0,U=F.length;N<U;N++){const $=F[N],G=y($);k.boundary+=G.boundary,k.storage+=G.storage}if(A.__data=new Float32Array(k.storage/Float32Array.BYTES_PER_ELEMENT),A.__offset=T,D>0){C=T%E;const N=E-C;C!==0&&N-k.boundary<0&&(T+=E-C,A.__offset=T)}T+=k.storage}return C=T%E,C>0&&(T+=E-C),b.__size=T,b.__cache={},this}function y(b){const x={boundary:0,storage:0};return typeof b=="number"?(x.boundary=4,x.storage=4):b.isVector2?(x.boundary=8,x.storage=8):b.isVector3||b.isColor?(x.boundary=16,x.storage=12):b.isVector4?(x.boundary=16,x.storage=16):b.isMatrix3?(x.boundary=48,x.storage=48):b.isMatrix4?(x.boundary=64,x.storage=64):b.isTexture?console.warn("THREE.WebGLRenderer: Texture samplers can not be part of an uniforms group."):console.warn("THREE.WebGLRenderer: Unsupported uniform value type.",b),x}function v(b){const x=b.target;x.removeEventListener("dispose",v);const T=a.indexOf(x.__bindingPointIndex);a.splice(T,1),t.deleteBuffer(r[x.id]),delete r[x.id],delete s[x.id]}function _(){for(const b in r)t.deleteBuffer(r[b]);a=[],r={},s={}}return{bind:l,update:u,dispose:_}}function ORe(){const t=db("canvas");return t.style.display="block",t}class RRe{constructor(e={}){const{canvas:n=ORe(),context:i=null,depth:r=!0,stencil:s=!0,alpha:a=!1,antialias:o=!1,premultipliedAlpha:l=!0,preserveDrawingBuffer:u=!1,powerPreference:c="default",failIfMajorPerformanceCaveat:f=!1}=e;this.isWebGLRenderer=!0;let h;i!==null?h=i.getContextAttributes().alpha:h=a;const p=new Uint32Array(4),m=new Int32Array(4);let y=null,v=null;const _=[],b=[];this.domElement=n,this.debug={checkShaderErrors:!0,onShaderError:null},this.autoClear=!0,this.autoClearColor=!0,this.autoClearDepth=!0,this.autoClearStencil=!0,this.sortObjects=!0,this.clippingPlanes=[],this.localClippingEnabled=!1,this.outputColorSpace=ln,this._useLegacyLights=!1,this.toneMapping=nd,this.toneMappingExposure=1;const x=this;let T=!1,E=0,C=0,D=null,R=-1,A=null;const k=new Fr,F=new Fr;let N=null;const U=new ri(0);let $=0,G=n.width,Y=n.height,Q=1,re=null,he=null;const X=new Fr(0,0,G,Y),ae=new Fr(0,0,G,Y);let de=!1;const Re=new OQ;let _e=!1,xe=!1,we=null;const ve=new Er,De=new Xt,We=new Ie,lt={background:null,fog:null,environment:null,overrideMaterial:null,isScene:!0};function Ze(){return D===null?Q:1}let z=i;function J(q,Me){for(let Fe=0;Fe<q.length;Fe++){const Se=q[Fe],He=n.getContext(Se,Me);if(He!==null)return He}return null}try{const q={alpha:!0,depth:r,stencil:s,antialias:o,premultipliedAlpha:l,preserveDrawingBuffer:u,powerPreference:c,failIfMajorPerformanceCaveat:f};if("setAttribute"in n&&n.setAttribute("data-engine",`three.js r${h4}`),n.addEventListener("webglcontextlost",ot,!1),n.addEventListener("webglcontextrestored",Oe,!1),n.addEventListener("webglcontextcreationerror",Qe,!1),z===null){const Me=["webgl2","webgl","experimental-webgl"];if(x.isWebGL1Renderer===!0&&Me.shift(),z=J(Me,q),z===null)throw J(Me)?new Error("Error creating WebGL context with your selected attributes."):new Error("Error creating WebGL context.")}typeof WebGLRenderingContext<"u"&&z instanceof WebGLRenderingContext&&console.warn("THREE.WebGLRenderer: WebGL 1 support was deprecated 
3862in r153 and will be removed in r163."),z.getShaderPrecisionFormat===void 0&&(z.getShaderPrecisionFormat=function(){return{rangeMin:1,rangeMax:1,precision:1}})}catch(q){throw console.error("THREE.WebGLRenderer: "+q.message),q}let te,pe,me,ne,Le,Pe,Ce,Te,et,j,V,oe,Ne,Ae,Ue,tt,qe,ke,ie,Ve,rt,Je,nt,Tt;function Mt(){te=new zPe(z),pe=new IPe(z,te,e),te.init(pe),Je=new ERe(z,te,pe),me=new SRe(z,te,pe),ne=new WPe(z),Le=new lRe,Pe=new TRe(z,te,me,Le,pe,Je,ne),Ce=new FPe(x),Te=new $Pe(x),et=new JMe(z,pe),nt=new RPe(z,te,et,pe),j=new HPe(z,et,ne,nt),V=new XPe(z,j,et,ne),ie=new qPe(z,pe,Pe),tt=new LPe(Le),oe=new oRe(x,Ce,Te,te,pe,nt,tt),Ne=new DRe(x,Le),Ae=new cRe,Ue=new gRe(te,pe),ke=new OPe(x,Ce,Te,me,V,h,l),qe=new xRe(x,V,pe),Tt=new PRe(z,ne,pe,me),Ve=new kPe(z,te,ne,pe),rt=new VPe(z,te,ne,pe),ne.programs=oe.programs,x.capabilities=pe,x.extensions=te,x.properties=Le,x.renderLists=Ae,x.shadowMap=qe,x.state=me,x.info=ne}Mt();const ce=new MRe(x,z);this.xr=ce,this.getContext=function(){return z},this.getContextAttributes=function(){return z.getContextAttributes()},this.forceContextLoss=function(){const q=te.get("WEBGL_lose_context");q&&q.loseContext()},this.forceContextRestore=function(){const q=te.get("WEBGL_lose_context");q&&q.restoreContext()},this.getPixelRatio=function(){return Q},this.setPixelRatio=function(q){q!==void 0&&(Q=q,this.setSize(G,Y,!1))},this.getSize=function(q){return q.set(G,Y)},this.setSize=function(q,Me,Fe=!0){if(ce.isPresenting){console.warn("THREE.WebGLRenderer: Can't change size while VR device is presenting.");return}G=q,Y=Me,n.width=Math.floor(q*Q),n.height=Math.floor(Me*Q),Fe===!0&&(n.style.width=q+"px",n.style.height=Me+"px"),this.setViewport(0,0,q,Me)},this.getDrawingBufferSize=function(q){return q.set(G*Q,Y*Q).floor()},this.setDrawingBufferSize=function(q,Me,Fe){G=q,Y=Me,Q=Fe,n.width=Math.floor(q*Fe),n.height=Math.floor(Me*Fe),this.setViewport(0,0,q,Me)},this.getCurrentViewport=function(q){return q.copy(k)},this.getViewport=function(q){return q.copy(X)},this.setViewport=function(q,Me,Fe,Se){q.isVector4?X.set(q.x,q.y,q.z,q.w):X.set(q,Me,Fe,Se),me.viewport(k.copy(X).multiplyScalar(Q).floor())},this.getScissor=function(q){return q.copy(ae)},this.setScissor=function(q,Me,Fe,Se){q.isVector4?ae.set(q.x,q.y,q.z,q.w):ae.set(q,Me,Fe,Se),me.scissor(F.copy(ae).multiplyScalar(Q).floor())},this.getScissorTest=function(){return de},this.setScissorTest=function(q){me.setScissorTest(de=q)},this.setOpaqueSort=function(q){re=q},this.setTransparentSort=function(q){he=q},this.getClearColor=function(q){return q.copy(ke.getClearColor())},this.setClearColor=function(){ke.setClearColor.apply(ke,arguments)},this.getClearAlpha=function(){return ke.getClearAlpha()},this.setClearAlpha=function(){ke.setClearAlpha.apply(ke,arguments)},this.clear=function(q=!0,Me=!0,Fe=!0){let Se=0;if(q){let He=!1;if(D!==null){const ut=D.texture.format;He=ut===_Q||ut===gQ||ut===mQ}if(He){const ut=D.texture.type,at=ut===id||ut===$f||ut===p4||ut===qh||ut===hQ||ut===pQ,xt=ke.getClearColor(),At=ke.getClearAlpha(),Gt=xt.r,vt=xt.g,Ct=xt.b;at?(p[0]=Gt,p[1]=vt,p[2]=Ct,p[3]=At,z.clearBufferuiv(z.COLOR,0,p)):(m[0]=Gt,m[1]=vt,m[2]=Ct,m[3]=At,z.clearBufferiv(z.COLOR,0,m))}else Se|=z.COLOR_BUFFER_BIT}Me&&(Se|=z.DEPTH_BUFFER_BIT),Fe&&(Se|=z.STENCIL_BUFFER_BIT),z.clear(Se)},this.clearColor=function(){this.clear(!0,!1,!1)},this.clearDepth=function(){this.clear(!1,!0,!1)},this.clearStencil=function(){this.clear(!1,!1,!0)},this.dispose=function(){n.removeEventListener("webglcontextlost",ot,!1),n.removeEventListener("webglcontextrestored",Oe,!1),n.removeEventListener("webglcontextcreationerror",Qe,!1),Ae.dispose(),Ue.dispose(),Le.dispose(),Ce.dispose(),Te.dispose(),V.dispose(),nt.dispose(),Tt.dispose(),oe.dispose(),ce.dispose(),ce.removeEventListener("sessionstart",ht),ce.removeEventListener("sessionend",Et),we&&(we.dispose(),we=null),It.stop()};function ot(q){q.preventDefault(),console.log("THREE.WebGLRenderer: Context Lost."),T=!0}function Oe(){console.log("THREE.WebGLRenderer: Context Restored."),T=!1;const q=ne.autoReset,Me=qe.enabled,Fe=qe.autoUpdate,Se=qe.needsUpdate,He=qe.type;Mt(),ne.autoReset=q,qe.enabled=Me,qe.autoUpdate=Fe,qe.needsUpdate=Se,qe.type=He}function Qe(q){console.error("THREE.WebGLRenderer: A WebGL context could not be created. Reason: ",q.statusMessage)}function st(q){const Me=q.target;Me.removeEventListener("dispose",st),Rt(Me)}function Rt(q){Vt(q),Le.remove(q)}function Vt(q){const Me=Le.get(q).programs;Me!==void 0&&(Me.forEach(function(Fe){oe.releaseProgram(Fe)}),q.isShaderMaterial&&oe.releaseShaderCache(q))}this.renderBufferDirect=function(q,Me,Fe,Se,He,ut){Me===null&&(Me=lt);const at=He.isMesh&&He.matrixWorld.determinant()<0,xt=li(q,Me,Fe,Se,He);me.setMaterial(Se,at);let At=Fe.index,Gt=1;if(Se.wireframe===!0){if(At=j.getWireframeAttribute(Fe),At===void 0)return;Gt=2}const vt=Fe.drawRange,Ct=Fe.attributes.position;let hn=vt.start*Gt,In=(vt.start+vt.count)*Gt;ut!==null&&(hn=Math.max(hn,ut.start*Gt),In=Math.min(In,(ut.start+ut.count)*Gt)),At!==null?(hn=Math.max(hn,0),In=Math.min(In,At.count)):Ct!=null&&(hn=Math.max(hn,0),In=Math.min(In,Ct.count));const ki=In-hn;if(ki<0||ki===1/0)return;nt.setup(He,Se,xt,Fe,At);let $i,yn=Ve;if(At!==null&&($i=et.get(At),yn=rt,yn.setIndex($i)),He.isMesh)Se.wireframe===!0?(me.setLineWidth(Se.wireframeLinewidth*Ze()),yn.setMode(z.LINES)):yn.setMode(z.TRIANGLES);else if(He.isLine){let jt=Se.linewidth;jt===void 0&&(jt=1),me.setLineWidth(jt*Ze()),He.isLineSegments?yn.setMode(z.LINES):He.isLineLoop?yn.setMode(z.LINE_LOOP):yn.setMode(z.LINE_STRIP)}else He.isPoints?yn.setMode(z.POINTS):He.isSprite&&yn.setMode(z.TRIANGLES);if(He.isInstancedMesh)yn.renderInstances(hn,ki,He.count);else if(Fe.isInstancedBufferGeometry){const jt=Fe._maxInstanceCount!==void 0?Fe._maxInstanceCount:1/0,os=Math.min(Fe.instanceCount,jt);yn.renderInstances(hn,ki,os)}else yn.render(hn,ki)},this.compile=function(q,Me){function Fe(Se,He,ut){Se.transparent===!0&&Se.side===hc&&Se.forceSinglePass===!1?(Se.side=sa,Se.needsUpdate=!0,Ht(Se,He,ut),Se.side=yd,Se.needsUpdate=!0,Ht(Se,He,ut),Se.side=hc):Ht(Se,He,ut)}
vendor: 32,481 bytes, line 3862
3862v=Ue.get(q),v.init(),b.push(v),q.traverseVisible(function(Se){Se.isLight&&Se.layers.test(Me.layers)&&(v.pushLight(Se),Se.castShadow&&v.pushShadow(Se))}),v.setupLights(x._useLegacyLights),q.traverse(function(Se){const He=Se.material;if(He)if(Array.isArray(He))for(let ut=0;ut<He.length;ut++){const at=He[ut];Fe(at,q,Se)}else Fe(He,q,Se)}),b.pop(),v=null};let Wt=null;function Vn(q){Wt&&Wt(q)}function ht(){It.stop()}function Et(){It.start()}const It=new RQ;It.setAnimationLoop(Vn),typeof self<"u"&&It.setContext(self),this.setAnimationLoop=function(q){Wt=q,ce.setAnimationLoop(q),q===null?It.stop():It.start()},ce.addEventListener("sessionstart",ht),ce.addEventListener("sessionend",Et),this.render=function(q,Me){if(Me!==void 0&&Me.isCamera!==!0){console.error("THREE.WebGLRenderer.render: camera is not an instance of THREE.Camera.");return}if(T===!0)return;q.matrixWorldAutoUpdate===!0&&q.updateMatrixWorld(),Me.parent===null&&Me.matrixWorldAutoUpdate===!0&&Me.updateMatrixWorld(),ce.enabled===!0&&ce.isPresenting===!0&&(ce.cameraAutoUpdate===!0&&ce.updateCamera(Me),Me=ce.getCamera()),q.isScene===!0&&q.onBeforeRender(x,q,Me,D),v=Ue.get(q,b.length),v.init(),b.push(v),ve.multiplyMatrices(Me.projectionMatrix,Me.matrixWorldInverse),Re.setFromProjectionMatrix(ve),xe=this.localClippingEnabled,_e=tt.init(this.clippingPlanes,xe),y=Ae.get(q,_.length),y.init(),_.push(y),ft(q,Me,0,x.sortObjects),y.finish(),x.sortObjects===!0&&y.sort(re,he),this.info.render.frame++,_e===!0&&tt.beginShadows();const Fe=v.state.shadowsArray;if(qe.render(Fe,q,Me),_e===!0&&tt.endShadows(),this.info.autoReset===!0&&this.info.reset(),ke.render(y,q),v.setupLights(x._useLegacyLights),Me.isArrayCamera){const Se=Me.cameras;for(let He=0,ut=Se.length;He<ut;He++){const at=Se[He];Ot(y,q,at,at.viewport)}}else Ot(y,q,Me);D!==null&&(Pe.updateMultisampleRenderTarget(D),Pe.updateRenderTargetMipmap(D)),q.isScene===!0&&q.onAfterRender(x,q,Me),nt.resetDefaultState(),R=-1,A=null,b.pop(),b.length>0?v=b[b.length-1]:v=null,_.pop(),_.length>0?y=_[_.length-1]:y=null};function ft(q,Me,Fe,Se){if(q.visible===!1)return;if(q.layers.test(Me.layers)){if(q.isGroup)Fe=q.renderOrder;else if(q.isLOD)q.autoUpdate===!0&&q.update(Me);else if(q.isLight)v.pushLight(q),q.castShadow&&v.pushShadow(q);else if(q.isSprite){if(!q.frustumCulled||Re.intersectsSprite(q)){Se&&We.setFromMatrixPosition(q.matrixWorld).applyMatrix4(ve);const at=V.update(q),xt=q.material;xt.visible&&y.push(q,at,xt,Fe,We.z,null)}}else if((q.isMesh||q.isLine||q.isPoints)&&(!q.frustumCulled||Re.intersectsObject(q))){const at=V.update(q),xt=q.material;if(Se&&(q.boundingSphere!==void 0?(q.boundingSphere===null&&q.computeBoundingSphere(),We.copy(q.boundingSphere.center)):(at.boundingSphere===null&&at.computeBoundingSphere(),We.copy(at.boundingSphere.center)),We.applyMatrix4(q.matrixWorld).applyMatrix4(ve)),Array.isArray(xt)){const At=at.groups;for(let Gt=0,vt=At.length;Gt<vt;Gt++){const Ct=At[Gt],hn=xt[Ct.materialIndex];hn&&hn.visible&&y.push(q,at,hn,Fe,We.z,Ct)}}else xt.visible&&y.push(q,at,xt,Fe,We.z,null)}}const ut=q.children;for(let at=0,xt=ut.length;at<xt;at++)ft(ut[at],Me,Fe,Se)}function Ot(q,Me,Fe,Se){const He=q.opaque,ut=q.transmissive,at=q.transparent;v.setupLightsView(Fe),_e===!0&&tt.setGlobalState(x.clippingPlanes,Fe),ut.length>0&&bt(He,ut,Me,Fe),Se&&me.viewport(k.copy(Se)),He.length>0&&Dt(He,Me,Fe),ut.length>0&&Dt(ut,Me,Fe),at.length>0&&Dt(at,Me,Fe),me.buffers.depth.setTest(!0),me.buffers.depth.setMask(!0),me.buffers.color.setMask(!0),me.setPolygonOffset(!1)}function bt(q,Me,Fe,Se){const He=pe.isWebGL2;we===null&&(we=new hp(1,1,{generateMipmaps:!0,type:te.has("EXT_color_buffer_half_float")?cb:id,minFilter:ub,samples:He?4:0})),x.getDrawingBufferSize(De),He?we.setSize(De.x,De.y):we.setSize(pE(De.x),pE(De.y));const ut=x.getRenderTarget();x.setRenderTarget(we),x.getClearColor(U),$=x.getClearAlpha(),$<1&&x.setClearColor(16777215,.5),x.clear();const at=x.toneMapping;x.toneMapping=nd,Dt(q,Fe,Se),Pe.updateMultisampleRenderTarget(we),Pe.updateRenderTargetMipmap(we);let xt=!1;for(let At=0,Gt=Me.length;At<Gt;At++){const vt=Me[At],Ct=vt.object,hn=vt.geometry,In=vt.material,ki=vt.group;if(In.side===hc&&Ct.layers.test(Se.layers)){const $i=In.side;In.side=sa,In.needsUpdate=!0,sn(Ct,Fe,Se,hn,In,ki),In.side=$i,In.needsUpdate=!0,xt=!0}}xt===!0&&(Pe.updateMultisampleRenderTarget(we),Pe.updateRenderTargetMipmap(we)),x.setRenderTarget(ut),x.setClearColor(U,$),x.toneMapping=at}function Dt(q,Me,Fe){const Se=Me.isScene===!0?Me.overrideMaterial:null;for(let He=0,ut=q.length;He<ut;He++){const at=q[He],xt=at.object,At=at.geometry,Gt=Se===null?at.material:Se,vt=at.group;xt.layers.test(Fe.layers)&&sn(xt,Me,Fe,At,Gt,vt)}}function sn(q,Me,Fe,Se,He,ut){q.onBeforeRender(x,Me,Fe,Se,He,ut),q.modelViewMatrix.multiplyMatrices(Fe.matrixWorldInverse,q.matrixWorld),q.normalMatrix.getNormalMatrix(q.modelViewMatrix),He.onBeforeRender(x,Me,Fe,Se,q,ut),He.transparent===!0&&He.side===hc&&He.forceSinglePass===!1?(He.side=sa,He.needsUpdate=!0,x.renderBufferDirect(Fe,Me,Se,He,q,ut),He.side=yd,He.needsUpdate=!0,x.renderBufferDirect(Fe,Me,Se,He,q,ut),He.side=hc):x.renderBufferDirect(Fe,Me,Se,He,q,ut),q.onAfterRender(x,Me,Fe,Se,He,ut)}function Ht(q,Me,Fe){Me.isScene!==!0&&(Me=lt);const Se=Le.get(q),He=v.state.lights,ut=v.state.shadowsArray,at=He.state.version,xt=oe.getParameters(q,He.state,ut,Me,Fe),At=oe.getProgramCacheKey(xt);let Gt=Se.programs;Se.environment=q.isMeshStandardMaterial?Me.environment:null,Se.fog=Me.fog,Se.envMap=(q.isMeshStandardMaterial?Te:Ce).get(q.envMap||Se.environment),Gt===void 0&&(q.addEventListener("dispose",st),Gt=new Map,Se.programs=Gt);let vt=Gt.get(At);if(vt!==void 0){if(Se.currentProgram===vt&&Se.lightsStateVersion===at)return Wn(q,xt),vt}else xt.uniforms=oe.getUniforms(q),q.onBuild(Fe,xt,x),q.onBeforeCompile(xt,x),vt=oe.acquireProgram(xt,At),Gt.set(At,vt),Se.uniforms=xt.uniforms;const Ct=Se.uniforms;(!q.isShaderMaterial&&!q.isRawShaderMaterial||q.clipping===!0)&&(Ct.clippingPlanes=tt.uniform),Wn(q,xt),Se.needsLights=Pn(q),Se.lightsStateVersion=at,Se.needsLights&&(Ct.ambientLightColor.value=He.state.ambient,Ct.lightProbe.value=He.state.probe,Ct.directionalLights.value=He.state.directional,Ct.directionalLightShadows.value=He.state.directionalShadow,Ct.spotLights.value=He.state.spot,Ct.spotLightShadows.value=He.state.spotShadow,Ct.rectAreaLights.value=He.state.rectArea,Ct.ltc_1.value=He.state.rectAreaLTC1,Ct.ltc_2.value=He.state.rectAreaLTC2,Ct.pointLights.value=He.state.point,Ct.pointLightShadows.value=He.state.pointShadow,Ct.hemisphereLights.value=He.state.hemi,Ct.directionalShadowMap.value=He.state.directionalShadowMap,Ct.directionalShadowMatrix.value=He.state.directionalShadowMatrix,Ct.spotShadowMap.value=He.state.spotShadowMap,Ct.spotLightMatrix.value=He.state.spotLightMatrix,Ct.spotLightMap.value=He.state.spotLightMap,Ct.pointShadowMap.value=He.state.pointShadowMap,Ct.pointShadowMatrix.value=He.state.pointShadowMatrix);const hn=vt.getUniforms(),In=NT.seqWithValue(hn.seq,Ct);return Se.currentProgram=vt,Se.uniformsList=In,vt}function Wn(q,Me){const Fe=Le.get(q);Fe.outputColorSpace=Me.outputColorSpace,Fe.instancing=Me.instancing,Fe.instancingColor=Me.instancingColor,Fe.skinning=Me.skinning,Fe.morphTargets=Me.morphTargets,Fe.morphNormals=Me.morphNormals,Fe.morphColors=Me.morphColors,Fe.morphTargetsCount=Me.morphTargetsCount,Fe.numClippingPlanes=Me.numClippingPlanes,Fe.numIntersection=Me.numClipIntersection,Fe.vertexAlphas=Me.vertexAlphas,Fe.vertexTangents=Me.vertexTangents,Fe.toneMapping=Me.toneMapping}function li(q,Me,Fe,Se,He){Me.isScene!==!0&&(Me=lt),Pe.resetTextureUnits();const ut=Me.fog,at=Se.isMeshStandardMaterial?Me.environment:null,xt=D===null?x.outputColorSpace:D.isXRRenderTarget===!0?D.texture.colorSpace:_u,At=(Se.isMeshStandardMaterial?Te:Ce).get(Se.envMap||at),Gt=Se.vertexColors===!0&&!!Fe.attributes.color&&Fe.attributes.color.itemSize===4,vt=!!Fe.attributes.tangent&&(!!Se.normalMap||Se.anisotropy>0),Ct=!!Fe.morphAttributes.position,hn=!!Fe.morphAttributes.normal,In=!!Fe.morphAttributes.color;let ki=nd;Se.toneMapped&&(D===null||D.isXRRenderTarget===!0)&&(ki=x.toneMapping);const $i=Fe.morphAttributes.position||Fe.morphAttributes.normal||Fe.morphAttributes.color,yn=$i!==void 0?$i.length:0,jt=Le.get(Se),os=v.state.lights;if(_e===!0&&(xe===!0||q!==A)){const qi=q===A&&Se.id===R;tt.setState(Se,q,qi)}let bn=!1;Se.version===jt.__version?(jt.needsLights&&jt.lightsStateVersion!==os.state.version||jt.outputColorSpace!==xt||He.isInstancedMesh&&jt.instancing===!1||!He.isInstancedMesh&&jt.instancing===!0||He.isSkinnedMesh&&jt.skinning===!1||!He.isSkinnedMesh&&jt.skinning===!0||He.isInstancedMesh&&jt.instancingColor===!0&&He.instanceColor===null||He.isInstancedMesh&&jt.instancingColor===!1&&He.instanceColor!==null||jt.envMap!==At||Se.fog===!0&&jt.fog!==ut||jt.numClippingPlanes!==void 0&&(jt.numClippingPlanes!==tt.numPlanes||jt.numIntersection!==tt.numIntersection)||jt.vertexAlphas!==Gt||jt.vertexTangents!==vt||jt.morphTargets!==Ct||jt.morphNormals!==hn||jt.morphColors!==In||jt.toneMapping!==ki||pe.isWebGL2===!0&&jt.morphTargetsCount!==yn)&&(bn=!0):(bn=!0,jt.__version=Se.version);let Qa=jt.currentProgram;bn===!0&&(Qa=Ht(Se,Me,He));let Bo=!1,Os=!1,Ja=!1;const ui=Qa.getUniforms(),Uo=jt.uniforms;if(me.useProgram(Qa.program)&&(Bo=!0,Os=!0,Ja=!0),Se.id!==R&&(R=Se.id,Os=!0),Bo||A!==q){if(ui.setValue(z,"projectionMatrix",q.projectionMatrix),pe.logarithmicDepthBuffer&&ui.setValue(z,"logDepthBufFC",2/(Math.log(q.far+1)/Math.LN2)),A!==q&&(A=q,Os=!0,Ja=!0),Se.isShaderMaterial||Se.isMeshPhongMaterial||Se.isMeshToonMaterial||Se.isMeshStandardMaterial||Se.envMap){const qi=ui.map.cameraPosition;qi!==void 0&&qi.setValue(z,We.setFromMatrixPosition(q.matrixWorld))}(Se.isMeshPhongMaterial||Se.isMeshToonMaterial||Se.isMeshLambertMaterial||Se.isMeshBasicMaterial||Se.isMeshStandardMaterial||Se.isShaderMaterial)&&ui.setValue(z,"isOrthographic",q.isOrthographicCamera===!0),(Se.isMeshPhongMaterial||Se.isMeshToonMaterial||Se.isMeshLambertMaterial||Se.isMeshBasicMaterial||Se.isMeshStandardMaterial||Se.isShaderMaterial||Se.isShadowMaterial||He.isSkinnedMesh)&&ui.setValue(z,"viewMatrix",q.matrixWorldInverse)}if(He.isSkinnedMesh){ui.setOptional(z,He,"bindMatrix"),ui.setOptional(z,He,"bindMatrixInverse");const qi=He.skeleton;qi&&(pe.floatVertexTextures?(qi.boneTexture===null&&qi.computeBoneTexture(),ui.setValue(z,"boneTexture",qi.boneTexture,Pe),ui.setValue(z,"boneTextureSize",qi.boneTextureSize)):console.warn("THREE.WebGLRenderer: SkinnedMesh can only be used with WebGL 2. With WebGL 1 OES_texture_float and vertex textures support is required."))}const Eu=Fe.morphAttributes;if((Eu.position!==void 0||Eu.normal!==void 0||Eu.color!==void 0&&pe.isWebGL2===!0)&&ie.update(He,Fe,Qa),(Os||jt.receiveShadow!==He.receiveShadow)&&(jt.receiveShadow=He.receiveShadow,ui.setValue(z,"receiveShadow",He.receiveShadow)),Se.isMeshGouraudMaterial&&Se.envMap!==null&&(Uo.envMap.value=At,Uo.flipEnvMap.value=At.isCubeTexture&&At.isRenderTargetTexture===!1?-1:1),Os&&(ui.setValue(z,"toneMappingExposure",x.toneMappingExposure),jt.needsLights&&vn(Uo,Ja),ut&&Se.fog===!0&&Ne.refreshFogUniforms(Uo,ut),Ne.refreshMaterialUniforms(Uo,Se,Q,Y,we),NT.upload(z,jt.uniformsList,Uo,Pe)),Se.isShaderMaterial&&Se.uniformsNeedUpdate===!0&&(NT.upload(z,jt.uniformsList,Uo,Pe),Se.uniformsNeedUpdate=!1),Se.isSpriteMaterial&&ui.setValue(z,"center",He.center),ui.setValue(z,"modelViewMatrix",He.modelViewMatrix),ui.setValue(z,"normalMatrix",He.normalMatrix),ui.setValue(z,"modelMatrix",He.matrixWorld),Se.isShaderMaterial||Se.isRawShaderMaterial){const qi=Se.uniformsGroups;for(let Uc=0,eo=qi.length;Uc<eo;Uc++)if(pe.isWebGL2){const Tl=qi[Uc];Tt.update(Tl,Qa),Tt.bind(Tl,Qa)}else console.warn("THREE.WebGLRenderer: Uniform Buffer Objects can only be used with WebGL 2.")}return Qa}function vn(q,Me){q.ambientLightColor.needsUpdate=Me,q.lightProbe.needsUpdate=Me,q.directionalLights.needsUpdate=Me,q.directionalLightShadows.needsUpdate=Me,q.pointLights.needsUpdate=Me,q.pointLightShadows.needsUpdate=Me,q.spotLights.needsUpdate=Me,q.spotLightShadows.needsUpdate=Me,q.rectAreaLights.needsUpdate=Me,q.hemisphereLights.needsUpdate=Me}function Pn(q){return q.isMeshLambertMaterial||q.isMeshToonMaterial||q.isMeshPhongMaterial||q.isMeshStandardMaterial||q.isShadowMaterial||q.isShaderMaterial&&q.lights===!0}this.getActiveCubeFace=function(){return E},this.getActiveMipmapLevel=function(){return C},this.getRenderTarget=function(){return D},this.setRenderTargetTextures=function(q,Me,Fe){Le.get(q.texture).__webglTexture=Me,Le.get(q.depthTexture).__webglTexture=Fe;const Se=Le.get(q);Se.__hasExternalTextures=!0,Se.__hasExternalTextures&&(Se.__autoAllocateDepthBuffer=Fe===void 0,Se.__autoAllocateDepthBuffer||te.has("WEBGL_multisampled_render_to_texture")===!0&&(console.warn("THREE.WebGLRenderer: Render-to-texture extension was disabled because an external texture was provided"),Se.__useRenderToTexture=!1))},this.setRenderTargetFramebuffer=function(q,Me){const Fe=Le.get(q);Fe.__webglFramebuffer=Me,Fe.__useDefaultFramebuffer=Me===void 0},this.setRenderTarget=function(q,Me=0,Fe=0){D=q,E=Me,C=Fe;let Se=!0,He=null,ut=!1,at=!1;if(q){const At=Le.get(q);At.__useDefaultFramebuffer!==void 0?(me.bindFramebuffer(z.FRAMEBUFFER,null),Se=!1):At.__webglFramebuffer===void 0?Pe.setupRenderTarget(q):At.__hasExternalTextures&&Pe.rebindTextures(q,Le.get(q.texture).__webglTexture,Le.get(q.depthTexture).__webglTexture);const Gt=q.texture;(Gt.isData3DTexture||Gt.isDataArrayTexture||Gt.isCompressedArrayTexture)&&(at=!0);const vt=Le.get(q).__webglFramebuffer;q.isWebGLCubeRenderTarget?(Array.isArray(vt[Me])?He=vt[Me][Fe]:He=vt[Me],ut=!0):pe.isWebGL2&&q.samples>0&&Pe.useMultisampledRTT(q)===!1?He=Le.get(q).__webglMultisampledFramebuffer:Array.isArray(vt)?He=vt[Fe]:He=vt,k.copy(q.viewport),F.copy(q.scissor),N=q.scissorTest}else k.copy(X).multiplyScalar(Q).floor(),F.copy(ae).multiplyScalar(Q).floor(),N=de;if(me.bindFramebuffer(z.FRAMEBUFFER,He)&&pe.drawBuffers&&Se&&me.drawBuffers(q,He),me.viewport(k),me.scissor(F),me.setScissorTest(N),ut){const At=Le.get(q.texture);z.framebufferTexture2D(z.FRAMEBUFFER,z.COLOR_ATTACHMENT0,z.TEXTURE_CUBE_MAP_POSITIVE_X+Me,At.__webglTexture,Fe)}else if(at){const At=Le.get(q.texture),Gt=Me||0;z.framebufferTextureLayer(z.FRAMEBUFFER,z.COLOR_ATTACHMENT0,At.__webglTexture,Fe||0,Gt)}R=-1},this.readRenderTargetPixels=function(q,Me,Fe,Se,He,ut,at){if(!(q&&q.isWebGLRenderTarget)){console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.");return}let xt=Le.get(q).__webglFramebuffer;if(q.isWebGLCubeRenderTarget&&at!==void 0&&(xt=xt[at]),xt){me.bindFramebuffer(z.FRAMEBUFFER,xt);try{const At=q.texture,Gt=At.format,vt=At.type;if(Gt!==al&&Je.convert(Gt)!==z.getParameter(z.IMPLEMENTATION_COLOR_READ_FORMAT)){console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in RGBA or implementation defined format.");return}const Ct=vt===cb&&(te.has("EXT_color_buffer_half_float")||pe.isWebGL2&&te.has("EXT_color_buffer_float"));if(vt!==id&&Je.convert(vt)!==z.getParameter(z.IMPLEMENTATION_COLOR_READ_TYPE)&&!(vt===zf&&(pe.isWebGL2||te.has("OES_texture_float")||te.has("WEBGL_color_buffer_float")))&&!Ct){console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in UnsignedByteType or implementation defined type.");return}Me>=0&&Me<=q.width-Se&&Fe>=0&&Fe<=q.height-He&&z.readPixels(Me,Fe,Se,He,Je.convert(Gt),Je.convert(vt),ut)}finally{const At=D!==null?Le.get(D).__webglFramebuffer:null;me.bindFramebuffer(z.FRAMEBUFFER,At)}}},this.copyFramebufferToTexture=function(q,Me,Fe=0){const Se=Math.pow(2,-Fe),He=Math.floor(Me.image.width*Se),ut=Math.floor(Me.image.height*Se);Pe.setTexture2D(Me,0),z.copyTexSubImage2D(z.TEXTURE_2D,Fe,0,0,q.x,q.y,He,ut),me.unbindTexture()},this.copyTextureToTexture=function(q,Me,Fe,Se=0){const He=Me.image.width,ut=Me.image.height,at=Je.convert(Fe.format),xt=Je.convert(Fe.type);Pe.setTexture2D(Fe,0),z.pixelStorei(z.UNPACK_FLIP_Y_WEBGL,Fe.flipY),z.pixelStorei(z.UNPACK_PREMULTIPLY_ALPHA_WEBGL,Fe.premultiplyAlpha),z.pixelStorei(z.UNPACK_ALIGNMENT,Fe.unpackAlignment),Me.isDataTexture?z.texSubImage2D(z.TEXTURE_2D,Se,q.x,q.y,He,ut,at,xt,Me.image.data):Me.isCompressedTexture?z.compressedTexSubImage2D(z.TEXTURE_2D,Se,q.x,q.y,Me.mipmaps[0].width,Me.mipmaps[0].height,at,Me.mipmaps[0].data):z.texSubImage2D(z.TEXTURE_2D,Se,q.x,q.y,at,xt,Me.image),Se===0&&Fe.generateMipmaps&&z.generateMipmap(z.TEXTURE_2D),me.unbindTexture()},this.copyTextureToTexture3D=function(q,Me,Fe,Se,He=0){if(x.isWebGL1Renderer){console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: can only be used with WebGL2.");return}const ut=q.max.x-q.min.x+1,at=q.max.y-q.min.y+1,xt=q.max.z-q.min.z+1,At=Je.convert(Se.format),Gt=Je.convert(Se.type);let vt;if(Se.isData3DTexture)Pe.setTexture3D(Se,0),vt=z.TEXTURE_3D;else if(Se.isDataArrayTexture)Pe.setTexture2DArray(Se,0),vt=z.TEXTURE_2D_ARRAY;else{console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: only supports THREE.DataTexture3D and THREE.DataTexture2DArray.");return}z.pixelStorei(z.UNPACK_FLIP_Y_WEBGL,Se.flipY),z.pixelStorei(z.UNPACK_PREMULTIPLY_ALPHA_WEBGL,Se.premultiplyAlpha),z.pixelStorei(z.UNPACK_ALIGNMENT,Se.unpackAlignment);const Ct=z.getParameter(z.UNPACK_ROW_LENGTH),hn=z.getParameter(z.UNPACK_IMAGE_HEIGHT),In=z.getParameter(z.UNPACK_SKIP_PIXELS),ki=z.getParameter(z.UNPACK_SKIP_ROWS),$i=z.getParameter(z.UNPACK_SKIP_IMAGES),yn=Fe.isCompressedTexture?Fe.mipmaps[0]:Fe.image;z.pixelStorei(z.UNPACK_ROW_LENGTH,yn.width),z.pixelStorei(z.UNPACK_IMAGE_HEIGHT,yn.height),z.pixelStorei(z.UNPACK_SKIP_PIXELS,q.min.x),z.pixelStorei(z.UNPACK_SKIP_ROWS,q.min.y),z.pixelStorei(z.UNPACK_SKIP_IMAGES,q.min.z),Fe.isDataTexture||Fe.isData3DTexture?z.texSubImage3D(vt,He,Me.x,Me.y,Me.z,ut,at,xt,At,Gt,yn.data):Fe.isCompressedArrayTexture?(console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: untested support for compressed srcTexture."),z.compressedTexSubImage3D(vt,He,Me.x,Me.y,Me.z,ut,at,xt,At,yn.data)):z.texSubImage3D(vt,He,Me.x,Me.y,Me.z,ut,at,xt,At,Gt,yn),z.pixelStorei(z.UNPACK_ROW_LENGTH,Ct),z.pixelStorei(z.UNPACK_IMAGE_HEIGHT,hn),z.pixelStorei(z.UNPACK_SKIP_PIXELS,In),z.pixelStorei(z.UNPACK_SKIP_ROWS,ki),z.pixelStorei(z.UNPACK_SKIP_IMAGES,$i),He===0&&Se.generateMipmaps&&z.generateMipmap(vt),me.unbindTexture()},this.initTexture=function(q){q.isCubeTexture?Pe.setTextureCube(q,0):q.isData3DTexture?Pe.setTexture3D(q,0):q.isDataArrayTexture||q.isCompressedArrayTexture?Pe.setTexture2DArray(q,0):Pe.setTexture2D(q,0),me.unbindTexture()},this.resetState=function(){E=0,C=0,D=null,me.reset(),nt.reset()},typeof __THREE_DEVTOOLS__<"u"&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}get coordinateSystem(){return _c}get physicallyCorrectLights(){return console.warn("THREE.WebGLRenderer: The property .physicallyCorrectLights has been removed. Set renderer.useLegacyLights instead."),!this.useLegacyLights}set physicallyCorrectLights(e){console.warn("THREE.WebGLRenderer: The property .physicallyCorrectLights has been removed. Set renderer.useLegacyLights instead."),this.useLegacyLights=!e}get outputEncoding(){return console.warn("THREE.WebGLRenderer: Property .outputEncoding has been removed. Use .outputColorSpace instead."),this.outputColorSpace===ln?Yh:vQ}set outputEncoding(e){console.warn("THREE.WebGLRenderer: Property .outputEncoding has been removed. Use .outputColorSpace instead."),this.outputColorSpace=e===Yh?ln:_u}get useLegacyLights(){return console.warn("THREE.WebGLRenderer: The property .useLegacyLights has been deprecated. Migrate your lighting according to the following guide: https://discourse.threejs.org/t/updates-to-lighting-in-three-js-r155/53733."),this._useLegacyLights}set useLegacyLights(e){console.warn("THREE.WebGLRenderer: The property .useLegacyLights has been deprecated. Migrate your lighting according to the following guide: https://discourse.threejs.org/t/updates-to-lighting-in-three-js-r155/53733."),this._useLegacyLights=e}}class kRe extends RRe{}kRe.prototype.isWebGL1Renderer=!0;class gWe extends oa{constructor(){super(),this.isScene=!0,this.type="Scene",this.background=null,this.environment=null,this.fog=null,this.backgroundBlurriness=0,this.backgroundIntensity=1,this.overrideMaterial=null,typeof __THREE_DEVTOOLS__<"u"&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}copy(e,n){return super.copy(e,n),e.background!==null&&(this.background=e.background.clone()),e.environment!==null&&(this.environment=e.environment.clone()),e.fog!==null&&(this.fog=e.fog.clone()),this.backgroundBlurriness=e.backgroundBlurriness,this.backgroundIntensity=e.backgroundIntensity,e.overrideMaterial!==null&&(this.overrideMaterial=e.overrideMaterial.clone()),this.matrixAutoUpdate=e.matrixAutoUpdate,this}toJSON(e){const n=super.toJSON(e);return this.fog!==null&&(n.object.fog=this.fog.toJSON()),this.backgroundBlurriness>0&&(n.object.backgroundBlurriness=this.backgroundBlurriness),this.backgroundIntensity!==1&&(n.object.backgroundIntensity=this.backgroundIntensity),n}}class IRe{constructor(e,n){this.isInterleavedBuffer=!0,this.array=e,this.stride=n,this.count=e!==void 0?e.length/n:0,this.usage=uR,this.updateRange={offset:0,count:-1},this.version=0,this.uuid=Ec()}onUploadCallback(){}set needsUpdate(e){e===!0&&this.version++}setUsage(e){return this.usage=e,this}copy(e){return this.array=new e.array.constructor(e.array),this.count=e.count,this.stride=e.stride,this.usage=e.usage,this}copyAt(e,n,i){e*=this.stride,i*=n.stride;for(let r=0,s=this.stride;r<s;r++)this.array[e+r]=n.array[i+r];return this}set(e,n=0){return this.array.set(e,n),this}clone(e){e.arrayBuffers===void 0&&(e.arrayBuffers={}),this.array.buffer._uuid===void 0&&(this.array.buffer._uuid=Ec()),e.arrayBuffers[this.array.buffer._uuid]===void 0&&(e.arrayBuffers[this.array.buffer._uuid]=this.array.slice(0).buffer);const n=new this.array.constructor(e.arrayBuffers[this.array.buffer._uuid]),i=new this.constructor(n,this.stride);return i.setUsage(this.usage),i}onUpload(e){return this.onUploadCallback=e,this}toJSON(e){return e.arrayBuffers===void 0&&(e.arrayBuffers={}),this.array.buffer._uuid===void 0&&(this.array.buffer._uuid=Ec()),e.arrayBuffers[this.array.buffer._uuid]===void 0&&(e.arrayBuffers[this.array.buffer._uuid]=Array.from(new Uint32Array(this.array.buffer))),{uuid:this.uuid,buffer:this.array.buffer._uuid,type:this.array.constructor.name,stride:this.stride}}}const ps=new Ie;class mE{constructor(e,n,i,r=!1){this.isInterleavedBufferAttribute=!0,this.name="",this.data=e,this.itemSize=n,this.offset=i,this.normalized=r}get count(){return this.data.count}get array(){return this.data.array}set needsUpdate(e){this.data.needsUpdate=e}applyMatrix4(e){for(let n=0,i=this.data.count;n<i;n++)ps.fromBufferAttribute(this,n),ps.applyMatrix4(e),this.setXYZ(n,ps.x,ps.y,ps.z);return this}applyNormalMatrix(e){for(let n=0,i=this.count;n<i;n++)ps.fromBufferAttribute(this,n),ps.applyNormalMatrix(e),this.setXYZ(n,ps.x,ps.y,ps.z);return this}transformDirection(e){for(let n=0,i=this.count;n<i;n++)ps.fromBufferAttribute(this,n),ps.transformDirection(e),this.setXYZ(n,ps.x,ps.y,ps.z);return this}setX(e,n){return this.normalized&&(n=Xn(n,this.array)),this.data.array[e*this.data.stride+this.offset]=n,this}setY(e,n){return this.normalized&&(n=Xn(n,this.array)),this.data.array[e*this.data.stride+this.offset+1]=n,this}setZ(e,n){return this.normalized&&(n=Xn(n,this.array)),this.data.array[e*this.data.stride+this.offset+2]=n,this}setW(e,n){return this.normalized&&(n=Xn(n,this.array)),this.data.array[e*this.data.stride+this.offset+3]=n,this}getX(e){let n=this.data.array[e*this.data.stride+this.offset];return this.normalized&&(n=Vl(n,this.array)),n}getY(e){let n=this.data.array[e*this.data.stride+this.offset+1];return this.normalized&&(n=Vl(n,this.array)),n}getZ(e){let n=this.data.array[e*this.data.stride+this.offset+2];return this.normalized&&(n=Vl(n,this.array)),n}getW(e){let n=this.data.array[e*this.data.stride+this.offset+3];return this.normalized&&(n=Vl(n,this.array)),n}setXY(e,n,i){return e=e*this.data.stride+this.offset,this.normalized&&(n=Xn(n,this.array),i=Xn(i,this.array)),this.data.array[e+0]=n,this.data.array[e+1]=i,this}setXYZ(e,n,i,r){return e=e*this.data.stride+this.offset,this.normalized&&(n=Xn(n,this.array),i=Xn(i,this.array),r=Xn(r,this.array)),this.data.array[e+0]=n,this.data.array[e+1]=i,this.data.array[e+2]=r,this}setXYZW(e,n,i,r,s){return e=e*this.data.stride+this.offset,this.normalized&&(n=Xn(n,this.array),i=Xn(i,this.array),r=Xn(r,this.array),s=Xn(s,this.array)),this.data.array[e+0]=n,this.data.array[e+1]=i,this.data.array[e+2]=r,this.data.array[e+3]=s,this}clone(e){if(e===void 0){console.log("THREE.InterleavedBufferAttribute.clone(): Cloning an interleaved buffer attribute will de-interleave buffer data.");const n=[];for(let i=0;i<this.count;i++){const r=i*this.data.stride+this.offset;for(let s=0;s<this.itemSize;s++)n.push(this.data.array[r+s])}return new dl(new this.array.constructor(n),this.itemSize,this.normalized)}else return e.interleavedBuffers===void 0&&(e.interleavedBuffers={}),e.interleavedBuffers[this.data.uuid]===void 0&&(e.interleavedBuffers[this.data.uuid]=this.data.clone(e)),new mE(e.interleavedBuffers[this.data.uuid],this.itemSize,this.offset,this.normalized)}toJSON(e){if(e===void 0){console.log("THREE.InterleavedBufferAttribute.toJSON(): Serializing an interleaved buffer attribute will de-interleave buffer data.");const n=[];for(let i=0;i<this.count;i++){const r=i*this.data.stride+this.offset;for(let s=0;s<this.itemSize;s++)n.push(this.data.array[r+s])}return{itemSize:this.itemSize,type:this.array.constructor.name,array:n,normalized:this.normalized}}else return e.interleavedBuffers===void 0&&(e.interleavedBuffers={}),e.interleavedBuffers[this.data.uuid]===void 0&&(e.interleavedBuffers[this.data.uuid]=this.data.toJSON(e)),{isInterleavedBufferAttribute:!0,itemSize:this.itemSize,data:this.data.uuid,offset:this.offset,normalized:this.normalized}}}class LRe extends Jb{constructor(e){super(),this.isSpriteMaterial=!0,this.type="SpriteMaterial",this.color=new ri(16777215),this.map=null,this.alphaMap=null,this.rotation=0,this.sizeAttenuation=!0,this.transparent=!0,this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.map=e.map,this.alphaMap=e.alphaMap,this.rotation=e.rotation,this.sizeAttenuation=e.sizeAttenuation,this.fog=e.fog,this}}let k0;const X_=new Ie,I0=new Ie,L0=new Ie,F0=new Xt,Y_=new Xt,NQ=new Er,CS=new Ie,K_=new Ie,AS=new Ie,u7=new Xt,GD=new Xt,c7=new Xt;class _We extends oa{constructor(e){if(super(),this.isSprite=!0,this.type="Sprite",k0===void 0){k0=new Bc;const n=new Float32Array([-.5,-.5,0,0,0,.5,-.5,0,1,0,.5,.5,0,1,1,-.5,.5,0,0,1]),i=new IRe(n,5);k0.setIndex([0,1,2,0,2,3]),k0.setAttribute("position",new mE(i,3,0,!1)),k0.setAttribute("uv",new mE(i,2,3,!1))}this.geometry=k0,this.material=e!==void 0?e:new LRe,this.center=new Xt(.5,.5)}raycast(e,n){e.camera===null&&console.error('THREE.Sprite: "Raycaster.camera" needs to be set in order to raycast against sprites.'),I0.setFromMatrixScale(this.matrixWorld),NQ.copy(e.camera.matrixWorld),this.modelViewMatrix.multiplyMatrices(e.camera.matrixWorldInverse,this.matrixWorld),L0.setFromMatrixPosition(this.modelViewMatrix),e.camera.isPerspectiveCamera&&this.material.sizeAttenuation===!1&&I0.multiplyScalar(-L0.z);const i=this.material.rotation;let r,s;i!==0&&(s=Math.cos(i),r=Math.sin(i));const a=this.center;MS(CS.set(-.5,-.5,0),L0,a,I0,r,s),MS(K_.set(.5,-.5,0),L0,a,I0,r,s),MS(AS.set(.5,.5,0),L0,a,I0,r,s),u7.set(0,0),GD.set(1,0),c7.set(1,1);let o=e.ray.intersectTriangle(CS,K_,AS,!1,X_);if(o===null&&(MS(K_.set(-.5,.5,0),L0,a,I0,r,s),GD.set(0,1),o=e.ray.intersectTriangle(CS,AS,K_,!1,X_),o===null))return;const l=e.ray.origin.distanceTo(X_);l<e.near||l>e.far||n.push({distance:l,point:X_.clone(),uv:So.getInterpolation(X_,CS,K_,AS,u7,GD,c7,new Xt),face:null,object:this})}copy(e,n){return super.copy(e,n),e.center!==void 0&&this.center.copy(e.center),this.material=e.material,this}}function MS(t,e,n,i,r,s){F0.subVectors(t,n).addScalar(.5).multiply(i),r!==void 0?(Y_.x=s*F0.x-r*F0.y,Y_.y=r*F0.x+s*F0.y):Y_.copy(F0),t.copy(e),t.x+=Y_.x,t.y+=Y_.y,t.applyMatrix4(NQ)}class BQ extends Bc{constructor(e=1,n=32,i=16,r=0,s=Math.PI*2,a=0,o=Math.PI){super(),this.type="SphereGeometry",this.parameters={radius:e,widthSegments:n,heightSegments:i,phiStart:r,phiLength:s,thetaStart:a,thetaLength:o},n=Math.max(3,Math.floor(n)),i=Math.max(2,Math.floor(i));const l=Math.min(a+o,Math.PI);let u=0;const c=[],f=new Ie,h=new Ie,p=[],m=[],y=[],v=[];for(let _=0;_<=i;_++){const b=[],x=_/i;let T=0;_===0&&a===0?T=.5/n:_===i&&l===Math.PI&&(T=-.5/n);for(let E=0;E<=n;E++){const C=E/n;f.x=-e*Math.cos(r+C*s)*Math.sin(a+x*o),f.y=e*Math.cos(a+x*o),f.z=e*Math.sin(r+C*s)*Math.sin(a+x*o),m.push(f.x,f.y,f.z),h.copy(f).normalize(),y.push(h.x,h.y,h.z),v.push(C+T,1-x),b.push(u++)}c.push(b)}for(let _=0;_<i;_++)for(let b=0;b<n;b++){const x=c[_][b+1],T=c[_][b],E=c[_+1][b],C=c[_+1][b+1];(_!==0||a>0)&&p.push(x,T,C),(_!==i-1||l<Math.PI)&&p.push(T,E,C)}this.setIndex(p),this.setAttribute("position",new lu(m,3)),this.setAttribute("normal",new lu(y,3)),this.setAttribute("uv",new lu(v,2))}copy(e){return super.copy(e),this.parameters=Object.assign({},e.parameters),this}static fromJSON(e){return new BQ(e.radius,e.widthSegments,e.heightSegments,e.phiStart,e.phiLength,e.thetaStart,e.thetaLength)}}const f7={enabled:!1,files:{},add:function(t,e){this.enabled!==!1&&(this.files[t]=e)},get:function(t){if(this.enabled!==!1)return this.files[t]},remove:function(t){delete this.files[t]},clear:function(){this.files={}}};class FRe{constructor(e,n,i){const r=this;let s=!1,a=0,o=0,l;const u=[];this.onStart=void 0,this.onLoad=e,this.onProgress=n,this.onError=i,this.itemStart=function(c){o++,s===!1&&r.onStart!==void 0&&r.onStart(c,a,o),s=!0},this.itemEnd=function(c){a++,r.onProgress!==void 0&&r.onProgress(c,a,o),a===o&&(s=!1,r.onLoad!==void 0&&r.onLoad())},this.itemError=function(c){r.onError!==void 0&&r.onError(c)},this.resolveURL=function(c){return l?l(c):c},this.setURLModifier=function(c){return l=c,this},this.addHandler=function(c,f){return u.push(c,f),this},this.removeHandler=function(c){const f=u.indexOf(c);return f!==-1&&u.splice(f,2),this},this.getHandler=function(c){for(let f=0,h=u.length;f<h;f+=2){const p=u[f],m=u[f+1];if(p.global&&(p.lastIndex=0),p.test(c))return m}return null}}}const NRe=new FRe;class x4{constructor(e){this.manager=e!==void 0?e:NRe,this.crossOrigin="anonymous",this.withCredentials=!1,this.path="",this.resourcePath="",this.requestHeader={}}load(){}loadAsync(e,n){const i=this;return new Promise(function(r,s){i.load(e,r,n,s)})}parse(){}setCrossOrigin(e){return this.crossOrigin=e,this}setWithCredentials(e){return this.withCredentials=e,this}setPath(e){return this.path=e,this}setResourcePath(e){return this.resourcePath=e,this}setRequestHeader(e){return this.requestHeader=e,this}}x4.DEFAULT_MATERIAL_NAME="__DEFAULT";class BRe extends x4{constructor(e){super(e)}load(e,n,i,r){this.path!==void 0&&(e=this.path+e),e=this.manager.resolveURL(e);const s=this,a=f7.get(e);if(a!==void 0)return s.manager.itemStart(e),setTimeout(function(){n&&n(a),s.manager.itemEnd(e)},0),a;const o=db("img");function l(){c(),f7.add(e,this),n&&n(this),s.manager.itemEnd(e)}function u(f){c(),r&&r(f),s.manager.itemError(e),s.manager.itemEnd(e)}function c(){o.removeEventListener("load",l,!1),o.removeEventListener("error",u,!1)}return o.addEventListener("load",l,!1),o.addEventListener("error",u,!1),e.slice(0,5)!=="data:"&&this.crossOrigin!==void 0&&(o.crossOrigin=this.crossOrigin),s.manager.itemStart(e),o.src=e,o}}class vWe extends x4{constructor(e){super(e)}load(e,n,i,r){const s=new aa,a=new BRe(this.manager);return a.setCrossOrigin(this.crossOrigin),a.setPath(this.path),a.load(e,function(o){s.image=o,s.needsUpdate=!0,n!==void 0&&n(s)},i,r),s}}class yWe{constructor(e,n,i=0,r=1/0){this.ray=new _4(e,n),this.near=i,this.far=r,this.camera=null,this.layers=new v4,this.params={Mesh:{},Line:{threshold:1},LOD:{},Points:{threshold:1},Sprite:{}}}set(e,n){this.ray.set(e,n)}setFromCamera(e,n){n.isPerspectiveCamera?(this.ray.origin.setFromMatrixPosition(n.matrixWorld),this.ray.direction.set(e.x,e.y,.5).unproject(n).sub(this.ray.origin).normalize(),this.camera=n):n.isOrthographicCamera?(this.ray.origin.set(e.x,e.y,(n.near+n.far)/(n.near-n.far)).unproject(n),this.ray.direction.set(0,0,-1).transformDirection(n.matrixWorld),this.camera=n):console.error("THREE.Raycaster: 
3862Unsupported camera type: "+n.type)}intersectObject(e,n=!0,i=[]){return hR(e,this,i,n),i.sort(d7),i}intersectObjects(e,n=!0,i=[]){for(let r=0,s=e.length;r<s;r++)hR(e[r],this,i,n);return i.sort(d7),i}}function d7(t,e){return t.distance-e.distance}function hR(t,e,n,i){if(t.layers.test(e.layers)&&t.raycast(e,n),i===!0){const r=t.children;for(let s=0,a=r.length;s<a;s++)hR(r[s],e,n,!0)}}class h7{constructor(e=1,n=0,i=0){return this.radius=e,this.phi=n,this.theta=i,this}set(e,n,i){return this.radius=e,this.phi=n,this.theta=i,this}copy(e){return this.radius=e.radius,this.phi=e.phi,this.theta=e.theta,this}makeSafe(){return this.phi=Math.max(1e-6,Math.min(Math.PI-1e-6,this.phi)),this}setFromVector3(e){return this.setFromCartesianCoords(e.x,e.y,e.z)}setFromCartesianCoords(e,n,i){return this.radius=Math.sqrt(e*e+n*n+i*i),this.radius===0?(this.theta=0,this.phi=0):(this.theta=Math.atan2(e,i),this.phi=Math.acos(Yr(n/this.radius,-1,1))),this}clone(){return new this.constructor().copy(this)}}typeof __THREE_DEVTOOLS__<"u"&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("register",{detail:{revision:h4}}));typeof window<"u"&&(window.__THREE__?console.warn("WARNING: Multiple instances of Three.js being imported."):window.__THREE__=h4);const p7={type:"change"},jD={type:"start"},m7={type:"end"},DS=new _4,g7=new Mf,URe=Math.cos(70*EMe.DEG2RAD);class bWe extends Pp{constructor(e,n){super(),this.object=e,this.domElement=n,this.domElement.style.touchAction="none",this.enabled=!0,this.target=new Ie,this.minDistance=0,this.maxDistance=1/0,this.minZoom=0,this.maxZoom=1/0,this.minPolarAngle=0,this.maxPolarAngle=Math.PI,this.minAzimuthAngle=-1/0,this.maxAzimuthAngle=1/0,this.enableDamping=!1,this.dampingFactor=.05,this.enableZoom=!0,this.zoomSpeed=1,this.enableRotate=!0,this.rotateSpeed=1,this.enablePan=!0,this.panSpeed=1,this.screenSpacePanning=!0,this.keyPanSpeed=7,this.zoomToCursor=!1,this.autoRotate=!1,this.autoRotateSpeed=2,this.keys={LEFT:"ArrowLeft",UP:"ArrowUp",RIGHT:"ArrowRight",BOTTOM:"ArrowDown"},this.mouseButtons={LEFT:m0.ROTATE,MIDDLE:m0.DOLLY,RIGHT:m0.PAN},this.touches={ONE:g0.ROTATE,TWO:g0.DOLLY_PAN},this.target0=this.target.clone(),this.position0=this.object.position.clone(),this.zoom0=this.object.zoom,this._domElementKeyEvents=null,this.getPolarAngle=function(){return o.phi},this.getAzimuthalAngle=function(){return o.theta},this.getDistance=function(){return this.object.position.distanceTo(this.target)},this.listenToKeyEvents=function(ie){ie.addEventListener("keydown",V),this._domElementKeyEvents=ie},this.stopListenToKeyEvents=function(){this._domElementKeyEvents.removeEventListener("keydown",V),this._domElementKeyEvents=null},this.saveState=function(){i.target0.copy(i.target),i.position0.copy(i.object.position),i.zoom0=i.object.zoom},this.reset=function(){i.target.copy(i.target0),i.object.position.copy(i.position0),i.object.zoom=i.zoom0,i.object.updateProjectionMatrix(),i.dispatchEvent(p7),i.update(),s=r.NONE},this.update=function(){const ie=new Ie,Ve=new pp().setFromUnitVectors(e.up,new Ie(0,1,0)),rt=Ve.clone().invert(),Je=new Ie,nt=new pp,Tt=new Ie,Mt=2*Math.PI;return function(){const ot=i.object.position;ie.copy(ot).sub(i.target),ie.applyQuaternion(Ve),o.setFromVector3(ie),i.autoRotate&&s===r.NONE&&F(A()),i.enableDamping?(o.theta+=l.theta*i.dampingFactor,o.phi+=l.phi*i.dampingFactor):(o.theta+=l.theta,o.phi+=l.phi);let Oe=i.minAzimuthAngle,Qe=i.maxAzimuthAngle;isFinite(Oe)&&isFinite(Qe)&&(Oe<-Math.PI?Oe+=Mt:Oe>Math.PI&&(Oe-=Mt),Qe<-Math.PI?Qe+=Mt:Qe>Math.PI&&(Qe-=Mt),Oe<=Qe?o.theta=Math.max(Oe,Math.min(Qe,o.theta)):o.theta=o.theta>(Oe+Qe)/2?Math.max(Oe,o.theta):Math.min(Qe,o.theta)),o.phi=Math.max(i.minPolarAngle,Math.min(i.maxPolarAngle,o.phi)),o.makeSafe(),i.enableDamping===!0?i.target.addScaledVector(c,i.dampingFactor):i.target.add(c),i.zoomToCursor&&C||i.object.isOrthographicCamera?o.radius=he(o.radius):o.radius=he(o.radius*u),ie.setFromSpherical(o),ie.applyQuaternion(rt),ot.copy(i.target).add(ie),i.object.lookAt(i.target),i.enableDamping===!0?(l.theta*=1-i.dampingFactor,l.phi*=1-i.dampingFactor,c.multiplyScalar(1-i.dampingFactor)):(l.set(0,0,0),c.set(0,0,0));let st=!1;if(i.zoomToCursor&&C){let Rt=null;if(i.object.isPerspectiveCamera){const Vt=ie.length();Rt=he(Vt*u);const Wt=Vt-Rt;i.object.position.addScaledVector(T,Wt),i.object.updateMatrixWorld()}else if(i.object.isOrthographicCamera){const Vt=new Ie(E.x,E.y,0);Vt.unproject(i.object),i.object.zoom=Math.max(i.minZoom,Math.min(i.maxZoom,i.object.zoom/u)),i.object.updateProjectionMatrix(),st=!0;const Wt=new Ie(E.x,E.y,0);Wt.unproject(i.object),i.object.position.sub(Wt).add(Vt),i.object.updateMatrixWorld(),Rt=ie.length()}else console.warn("WARNING: OrbitControls.js encountered an unknown camera type - zoom to cursor disabled."),i.zoomToCursor=!1;Rt!==null&&(this.screenSpacePanning?i.target.set(0,0,-1).transformDirection(i.object.matrix).multiplyScalar(Rt).add(i.object.position):(DS.origin.copy(i.object.position),DS.direction.set(0,0,-1).transformDirection(i.object.matrix),Math.abs(i.object.up.dot(DS.direction))<URe?e.lookAt(i.target):(g7.setFromNormalAndCoplanarPoint(i.object.up,i.target),DS.intersectPlane(g7,i.target))))}else i.object.isOrthographicCamera&&(i.object.zoom=Math.max(i.minZoom,Math.min(i.maxZoom,i.object.zoom/u)),i.object.updateProjectionMatrix(),st=!0);return u=1,C=!1,st||Je.distanceToSquared(i.object.position)>a||8*(1-nt.dot(i.object.quaternion))>a||Tt.distanceToSquared(i.target)>0?(i.dispatchEvent(p7),Je.copy(i.object.position),nt.copy(i.object.quaternion),Tt.copy(i.target),st=!1,!0):!1}}(),this.dispose=function(){i.domElement.removeEventListener("contextmenu",Ae),i.domElement.removeEventListener("pointerdown",Le),i.domElement.removeEventListener("pointercancel",Ce),i.domElement.removeEventListener("wheel",j),i.domElement.removeEventListener("pointermove",Pe),i.domElement.removeEventListener("pointerup",Ce),i._domElementKeyEvents!==null&&(i._domElementKeyEvents.removeEventListener("keydown",V),i._domElementKeyEvents=null)};const i=this,r={NONE:-1,ROTATE:0,DOLLY:1,PAN:2,TOUCH_ROTATE:3,TOUCH_PAN:4,TOUCH_DOLLY_PAN:5,TOUCH_DOLLY_ROTATE:6};let s=r.NONE;const a=1e-6,o=new h7,l=new h7;let u=1;const c=new Ie,f=new Xt,h=new Xt,p=new Xt,m=new Xt,y=new Xt,v=new Xt,_=ne
3862w Xt,b=new Xt,x=new Xt,T=new Ie,E=new Xt;let C=!1;const D=[],R={};function A(){return 2*Math.PI/60/60*i.autoRotateSpeed}function k(){return Math.pow(.95,i.zoomSpeed)}function F(ie){l.theta-=ie}function N(ie){l.phi-=ie}const U=function(){const ie=new Ie;return function(rt,Je){ie.setFromMatrixColumn(Je,0),ie.multiplyScalar(-rt),c.add(ie)}}(),$=function(){const ie=new Ie;return function(rt,Je){i.screenSpacePanning===!0?ie.setFromMatrixColumn(Je,1):(ie.setFromMatrixColumn(Je,0),ie.crossVectors(i.object.up,ie)),ie.multiplyScalar(rt),c.add(ie)}}(),G=function(){const ie=new Ie;return function(rt,Je){const nt=i.domElement;if(i.object.isPerspectiveCamera){const Tt=i.object.position;ie.copy(Tt).sub(i.target);let Mt=ie.length();Mt*=Math.tan(i.object.fov/2*Math.PI/180),U(2*rt*Mt/nt.clientHeight,i.object.matrix),$(2*Je*Mt/nt.clientHeight,i.object.matrix)}else i.object.isOrthographicCamera?(U(rt*(i.object.right-i.object.left)/i.object.zoom/nt.clientWidth,i.object.matrix),$(Je*(i.object.top-i.object.bottom)/i.object.zoom/nt.clientHeight,i.object.matrix)):(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - pan disabled."),i.enablePan=!1)}}();function Y(ie){i.object.isPerspectiveCamera||i.object.isOrthographicCamera?u/=ie:(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),i.enableZoom=!1)}function Q(ie){i.object.isPerspectiveCamera||i.object.isOrthographicCamera?u*=ie:(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),i.enableZoom=!1)}function re(ie){if(!i.zoomToCursor)return;C=!0;const Ve=i.domElement.getBoundingClientRect(),rt=ie.clientX-Ve.left,Je=ie.clientY-Ve.top,nt=Ve.width,Tt=Ve.height;E.x=rt/nt*2-1,E.y=-(Je/Tt)*2+1,T.set(E.x,E.y,1).unproject(e).sub(e.position).normalize()}function he(ie){return Math.max(i.minDistance,Math.min(i.maxDistance,ie))}function X(ie){f.set(ie.clientX,ie.clientY)}function ae(ie){re(ie),_.set(ie.clientX,ie.clientY)}function de(ie){m.set(ie.clientX,ie.clientY)}function Re(ie){h.set(ie.clientX,ie.clientY),p.subVectors(h,f).multiplyScalar(i.rotateSpeed);const Ve=i.domElement;F(2*Math.PI*p.x/Ve.clientHeight),N(2*Math.PI*p.y/Ve.clientHeight),f.copy(h),i.update()}function _e(ie){b.set(ie.clientX,ie.clientY),x.subVectors(b,_),x.y>0?Y(k()):x.y<0&&Q(k()),_.copy(b),i.update()}function xe(ie){y.set(ie.clientX,ie.clientY),v.subVectors(y,m).multiplyScalar(i.panSpeed),G(v.x,v.y),m.copy(y),i.update()}function we(ie){re(ie),ie.deltaY<0?Q(k()):ie.deltaY>0&&Y(k()),i.update()}function ve(ie){let Ve=!1;switch(ie.code){case i.keys.UP:ie.ctrlKey||ie.metaKey||ie.shiftKey?N(2*Math.PI*i.rotateSpeed/i.domElement.clientHeight):G(0,i.keyPanSpeed),Ve=!0;break;case i.keys.BOTTOM:ie.ctrlKey||ie.metaKey||ie.shiftKey?N(-2*Math.PI*i.rotateSpeed/i.domElement.clientHeight):G(0,-i.keyPanSpeed),Ve=!0;break;case i.keys.LEFT:ie.ctrlKey||ie.metaKey||ie.shiftKey?F(2*Math.PI*i.rotateSpeed/i.domElement.clientHeight):G(i.keyPanSpeed,0),Ve=!0;break;case i.keys.RIGHT:ie.ctrlKey||ie.metaKey||ie.shiftKey?F(-2*Math.PI*i.rotateSpeed/i.domElement.clientHeight):G(-i.keyPanSpeed,0),Ve=!0;break}Ve&&(ie.preventDefault(),i.update())}function De(){if(D.length===1)f.set(D[0].pageX,D[0].pageY);else{const ie=.5*(D[0].pageX+D[1].pageX),Ve=.5*(D[0].pageY+D[1].pageY);f.set(ie,Ve)}}function We(){if(D.length===1)m.set(D[0].pageX,D[0].pageY);else{const ie=.5*(D[0].pageX+D[1].pageX),Ve=.5*(D[0].pageY+D[1].pageY);m.set(ie,Ve)}}function lt(){const ie=D[0].pageX-D[1].pageX,Ve=D[0].pageY-D[1].pageY,rt=Math.sqrt(ie*ie+Ve*Ve);_.set(0,rt)}function Ze(){i.enableZoom&&lt(),i.enablePan&&We()}function z(){i.enableZoom&&lt(),i.enableRotate&&De()}function J(ie){if(D.length==1)h.set(ie.pageX,ie.pageY);else{const rt=ke(ie),Je=.5*(ie.pageX+rt.x),nt=.5*(ie.pageY+rt.y);h.set(Je,nt)}p.subVectors(h,f).multiplyScalar(i.rotateSpeed);const Ve=i.domElement;F(2*Math.PI*p.x/Ve.clientHeight),N(2*Math.PI*p.y/Ve.clientHeight),f.copy(h)}function te(ie){if(D.length===1)y.set(ie.pageX,ie.pageY);else{const Ve=ke(ie),rt=.5*(ie.pageX+Ve.x),Je=.5*(ie.pageY+Ve.y);y.set(rt,Je)}v.subVectors(y,m).multiplyScalar(i.panSpeed),G(v.x,v.y),m.copy(y)}function pe(ie){const Ve=ke(ie),rt=ie.pageX-Ve.x,Je=ie.pageY-Ve.y,nt=Math.sqrt(rt*rt+Je*Je);b.set(0,nt),x.set(0,Math.pow(b.y/_.y,i.zoomSpeed)),Y(x.y),_.copy(b)}function me(ie){i.enableZoom&&pe(ie),i.enablePan&&te(ie)}function ne(ie){i.enableZoom&&pe(ie),i.enableRotate&&J(ie)}function Le(ie){i.enabled!==!1&&(D.length===0&&(i.domElement.setPointerCapture(ie.pointerId),i.domElement.addEventListener("pointermove",Pe),i.domElement.addEventListener("pointerup",Ce)),Ue(ie),ie.pointerType==="touch"?oe(ie):Te(ie))}function Pe(ie){i.enabled!==!1&&(ie.pointerType==="touch"?Ne(ie):et(ie))}function Ce(ie){tt(ie),D.length===0&&(i.domElement.releasePointerCapture(ie.pointerId),i.domElement.removeEventListener("pointermove",Pe),i.domElement.removeEventListener("pointerup",Ce)),i.dispatchEvent(m7),s=r.NONE}function Te(ie){let Ve;switch(ie.button){case 0:Ve=i.mouseButtons.LEFT;break;case 1:Ve=i.mouseButtons.MIDDLE;break;case 2:Ve=i.mouseButtons.RIGHT;break;default:Ve=-1}switch(Ve){case m0.DOLLY:if(i.enableZoom===!1)return;ae(ie),s=r.DOLLY;break;case m0.ROTATE:if(ie.ctrlKey||ie.metaKey||ie.shiftKey){if(i.enablePan===!1)return;de(ie),s=r.PAN}else{if(i.enableRotate===!1)return;X(ie),s=r.ROTATE}break;case m0.PAN:if(ie.ctrlKey||ie.metaKey||ie.shiftKey){if(i.enableRotate===!1)return;X(ie),s=r.ROTATE}else{if(i.enablePan===!1)return;de(ie),s=r.PAN}break;default:s=r.NONE}s!==r.NONE&&i.dispatchEvent(jD)}function et(ie){switch(s){case r.ROTATE:if(i.enableRotate===!1)return;Re(ie);break;case r.DOLLY:if(i.enableZoom===!1)return;_e(ie);break;case r.PAN:if(i.enablePan===!1)return;xe(ie);break}}function j(ie){i.enabled===!1||i.enableZoom===!1||s!==r.NONE||(ie.preventDefault(),i.dispatchEvent(jD),we(ie),i.dispatchEvent(m7))}function V(ie){i.enabled===!1||i.enablePan===!1||ve(ie)}function oe(ie){switch(qe(ie),D.length){case 1:switch(i.touches.ONE){case g0.ROTATE:if(i.enableRotate===!1)return;De(),s=r.TOUCH_ROTATE;break;case g0.PAN:if(i.enablePan===!1)return;We(),s=r.TOUCH_PAN;break;default:s=r.NONE}break;case 2:switch(i.touches.TWO){case g0.DOLLY_PAN:if(i.enableZoom===!1&&i.enablePan===!1)return;Ze(),s=r.TOUCH_DOLLY_PAN;break;case g0.DOLLY_ROTATE:if(i.enableZoom===!1&&i.enableRotate===!1)return;z(),s=r.TOUCH_DOLLY_ROTATE;break;default:s=r.NONE}break;default:s=r.NONE}s!==r.NONE&&i.dispatchEvent(jD)}function Ne(ie){switch(qe(ie),s){case r.TOUCH_ROTATE:if(i.enableRotate===!1)return;J(ie),i.update();break;case r.TOUCH_PAN:if(i.enablePan===!1)return;te(ie),i.update();break;case r.TOUCH_DOLLY_PAN:if(i.enableZoom===!1&&i.enablePan===!1)return;me(ie),i.update();break;case r.TOUCH_DOLLY_ROTATE:if(i.enableZoom===!1&&i.enableRotate===!1)return;ne(ie),i.update();break;default:s=r.NONE}}function Ae(ie){i.enabled!==!1&&ie.preventDefault()}function Ue(ie){D.push(ie)}function tt(ie){delete R[ie.pointerId];for(let Ve=0;Ve<D.length;Ve++)if(D[Ve].pointerId==ie.pointerId){D.splice(Ve,1);return}}function qe(ie){let Ve=R[ie.pointerId];Ve===void 0&&(Ve=new Xt,R[ie.pointerId]=Ve),Ve.set(ie.pageX,ie.pageY)}function ke(ie){const Ve=ie.pointerId===D[0].pointerId?D[1]:D[0];return R[Ve.pointerId]}i.domElement.addEventListener("contextmenu",Ae),i.domElement.addEventListener("pointerdown",Le),i.domElement.addEventListener("pointercancel",Ce),i.domElement.addEventListener("wheel",j,{passive:!1}),this.update()}}var PS=function(t){return t&&t.Math==Math&&t},zr=PS(typeof globalThis=="object"&&globalThis)||PS(typeof window=="object"&&window)||PS(typeof self=="object"&&self)||PS(typeof si=="object"&&si)||function(){return this}()||Function("return this")(),eC={exports:{}},_7=zr,$Re=Object.defineProperty,S4=function(t,e){try{$Re(_7,t,{value:e,configurable:!0,writable:!0})}catch(n){_7[t]=e}return e},zRe=zr,HRe=S4,v7="__core-js_shared__",VRe=zRe[v7]||HRe(v7,{}),T4=VRe,y7=T4;(eC.exports=function(t,e){return y7[t]||(y7[t]=e!==void 0?e:{})})("versions",[]).push({version:"3.27.2",mode:"global",copyright:"\xA9 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.27.2/LICENSE",source:"https://github.com/zloirock/core-js"});var gi=function(t){try{return!!t()}catch(e){return!0}},WRe=gi,tC=!WRe(function(){var t=function(){}.bind();return typeof t!="function"||t.hasOwnProperty("prototype")}),UQ=tC,$Q=Function.prototype,pR=$Q.call,GRe=UQ&&$Q.bind.bind(pR,pR),_i=UQ?GRe:function(t){return function(){return pR.apply(t,arguments)}},Op=function(t){return t==null},jRe=Op,qRe=TypeError,Kg=function(t){if(jRe(t))throw qRe("Can't call method on "+t);return t},XRe=Kg,YRe=Object,Zg=function(t){return YRe(XRe(t))},KRe=_i,ZRe=Zg,QRe=KRe({}.hasOwnProperty),vl=Object.hasOwn||function(e,n){return QRe(ZRe(e),n)}
3862,JRe=_i,eke=0,tke=Math.random(),nke=JRe(1 .toString),E4=function(t){return"Symbol("+(t===void 0?"":t)+")_"+nke(++eke+tke,36)},ike=typeof navigator<"u"&&String(navigator.userAgent)||"",zQ=zr,qD=ike,b7=zQ.process,x7=zQ.Deno,S7=b7&&b7.versions||x7&&x7.version,T7=S7&&S7.v8,el,gE;T7&&(el=T7.split("."),gE=el[0]>0&&el[0]<4?1:+(el[0]+el[1]));!gE&&qD&&(el=qD.match(/Edge\/(\d+)/),(!el||el[1]>=74)&&(el=qD.match(/Chrome\/(\d+)/),el&&(gE=+el[1])));var w4=gE,E7=w4,rke=gi,HQ=!!Object.getOwnPropertySymbols&&!rke(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&E7&&E7<41}),ske=HQ,VQ=ske&&!Symbol.sham&&typeof Symbol.iterator=="symbol",ake=zr,oke=eC.exports,w7=vl,lke=E4,uke=HQ,cke=VQ,fm=ake.Symbol,XD=oke("wks"),fke=cke?fm.for||fm:fm&&fm.withoutSetter||lke,Ps=function(t){return w7(XD,t)||(XD[t]=uke&&w7(fm,t)?fm[t]:fke("Symbol."+t)),XD[t]},dke=Ps,hke=dke("toStringTag"),WQ={};WQ[hke]="z";var C4=String(WQ)==="[object z]",mR=typeof document=="object"&&document.all,pke=typeof mR>"u"&&mR!==void 0,GQ={all:mR,IS_HTMLDDA:pke},jQ=GQ,mke=jQ.all,tr=jQ.IS_HTMLDDA?function(t){return typeof t=="function"||t===mke}:function(t){return typeof t=="function"},yl={},gke=gi,bl=!gke(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),C7=tr,qQ=GQ,_ke=qQ.all,Ka=qQ.IS_HTMLDDA?function(t){return typeof t=="object"?t!==null:C7(t)||t===_ke}:function(t){return typeof t=="object"?t!==null:C7(t)},vke=zr,A7=Ka,gR=vke.document,yke=A7(gR)&&A7(gR.createElement),A4=function(t){return yke?gR.createElement(t):{}},bke=bl,xke=gi,Ske=A4,XQ=!bke&&!xke(function(){return Object.defineProperty(Ske("div"),"a",{get:function(){return 7}}).a!=7}),Tke=bl,Eke=gi,YQ=Tke&&Eke(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42}),wke=Ka,Cke=String,Ake=TypeError,Za=function(t){if(wke(t))return t;throw Ake(Cke(t)+" is not an object")},Mke=tC,OS=Function.prototype.call,No=Mke?OS.bind(OS):function(){return OS.apply(OS,arguments)},YD=zr,Dke=tr,Pke=function(t){return Dke(t)?t:void 0},nC=function(t,e){return arguments.length<2?Pke(YD[t]):YD[t]&&YD[t][e]},Oke=_i,M4=Oke({}.isPrototypeOf),Rke=nC,kke=tr,Ike=M4,Lke=VQ,Fke=Object,KQ=Lke?function(t){return typeof t=="symbol"}:function(t){var e=Rke("Symbol");return kke(e)&&Ike(e.prototype,Fke(t))},Nke=String,D4=function(t){try{return Nke(t)}catch(e){return"Object"}},Bke=tr,Uke=D4,$ke=TypeError,iC=function(t){if(Bke(t))return t;throw $ke(Uke(t)+" is not a function")},zke=iC,Hke=Op,t1=function(t,e){var n=t[e];return Hke(n)?void 0:zke(n)},KD=No,ZD=tr,QD=Ka,Vke=TypeError,Wke=function(t,e){var n,i;if(e==="string"&&ZD(n=t.toString)&&!QD(i=KD(n,t))||ZD(n=t.valueOf)&&!QD(i=KD(n,t))||e!=="string"&&ZD(n=t.toString)&&!QD(i=KD(n,t)))return i;throw Vke("Can't convert object to primitive value")},Gke=No,M7=Ka,D7=KQ,jke=t1,qke=Wke,Xke=Ps,Yke=TypeError,Kke=Xke("toPrimitive"),Zke=function(t,e){if(!M7(t)||D7(t))return t;var n=jke(t,Kke),i;if(n){if(e===void 0&&(e="default"),i=Gke(n,t,e),!M7(i)||D7(i))return i;throw Yke("Can't convert object to primitive value")}return e===void 0&&(e="number"),qke(t,e)},Qke=Zke,Jke=KQ,P4=function(t){var e=Qke(t,"string");return Jke(e)?e:e+""},eIe=bl,tIe=XQ,nIe=YQ,RS=Za,P7=P4,iIe=TypeError,JD=Object.defineProperty,rIe=Object.getOwnPropertyDescriptor,e3="enumerable",t3="configurable",n3="writable";yl.f=eIe?nIe?function(e,n,i){if(RS(e),n=P7(n),RS(i),typeof e=="function"&&n==="prototype"&&"value"in i&&n3 in i&&!i[n3]){var r=rIe(e,n);r&&r[n3]&&(e[n]=i.value,i={configurable:t3 in i?i[t3]:r[t3],enumerable:e3 in i?i[e3]:r[e3],writable:!1})}return JD(e,n,i)}:JD:function(e,n,i){if(RS(e),n=P7(n),RS(i),tIe)try{return JD(e,n,i)}catch(r){}if("get"in i||"set"in i)throw iIe("Accessors not supported");return"value"in i&&(e[n]=i.value),e};var ZQ={exports:{}},_R=bl,sIe=vl,QQ=Function.prototype,aIe=_R&&Object.getOwnPropertyDescriptor,O4=sIe(QQ,"name"),oIe=O4&&function(){}.name==="something",lIe=O4&&(!_R||_R&&aIe(QQ,"name").configurable),R4={EXISTS:O4,PROPER:oIe,CONFIGURABLE:lIe},uIe=_i,cIe=tr,vR=T4,fIe=uIe(Function.toString);cIe(vR.inspectSource)||(vR.inspectSource=function(t){return fIe(t)});var JQ=vR.inspectSource,dIe=zr,hIe=tr,O7=dIe.WeakMap,eJ=hIe(O7)&&/native code/.test(String(O7)),rC=function(t,e){return{enumerable:!(t&1),configurable:!(t&2),writable:!(t&4),value:e}},pIe=bl,mIe=yl,gIe=rC,Qg=pIe?function(t,e,n){return mIe.f(t,e,gIe(1,n))}:function(t,e,n){return t[e]=n,t},_Ie=eC.exports,vIe=E4,R7=_Ie("keys"),k4=function(t){return R7[t]||(R7[t]=vIe(t))},sC={},yIe=eJ,tJ=zr,bIe=Ka,xIe=Qg,i3=vl,r3=T4,SIe=k4,TIe=sC,k7="Object already initialized",yR=tJ.TypeError,EIe=tJ.WeakMap,_E,hb,vE,wIe=function(t){return vE(t)?hb(t):_E(t,{})},CIe=function(t){return function(e){var n;if(!bIe(e)||(n=hb(e)).type!==t)throw yR("Incompatible receiver, "+t+" required");return n}};if(yIe||r3.state){var Ol=r3.state||(r3.state=new EIe);Ol.get=Ol.get,Ol.has=Ol.has,Ol.set=Ol.set,_E=function(t,e){if(Ol.has(t))throw yR(k7);return e.facade=t,Ol.set(t,e),e},hb=function(t){return Ol.get(t)||{}},vE=function(t){return Ol.has(t)}}else{var N0=SIe("state");TIe[N0]=!0,_E=function(t,e){if(i3(t,N0))throw yR(k7);return e.facade=t,xIe(t,N0,e),e},hb=function(t){return i3(t,N0)?t[N0]:{}},vE=function(t){return i3(t,N0)}}var Jg={set:_E,get:hb,has:vE,enforce:wIe,getterFor:CIe},I4=_i,AIe=gi,MIe=tr,kS=vl,bR=bl,DIe=R4.CONFIGURABLE,PIe=JQ,nJ=Jg,OIe=nJ.enforce,RIe=nJ.get,I7=String,BT=Object.defineProperty,kIe=I4("".slice),IIe=I4("".replace),LIe=I4([].join),FIe=bR&&!AIe(function(){return BT(function(){},"length",{value:8}).length!==8}),NIe=String(String).split("String"),BIe=ZQ.exports=function(t,e,n){kIe(I7(e),0,7)==="Symbol("&&(e="["+IIe(I7(e),/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!kS(t,"name")||DIe&&t.name!==e)&&(bR?BT(t,"name",{value:e,configurable:!0}):t.name=e),FIe&&n&&kS(n,"arity")&&t.length!==n.arity&&BT(t,"length",{value:n.arity});try{n&&kS(n,"constructor")&&n.constructor?bR&&BT(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(r){}var i=OIe(t);return kS(i,"source")||(i.source=LIe(NIe,typeof e=="string"?e:"")),t};Function.prototype.toString=BIe(function(){return MIe(this)&&RIe(this).source||PIe(this)},"toString");var UIe=tr,$Ie=yl,zIe=ZQ.exports,HIe=S4,Rp=function(t,e,n,i){i||(i={});var r=i.enumerable,s=i.name!==void 0?i.name:e;if(UIe(n)&&zIe(n,s,i),i.global)r?t[e]=n:HIe(e,n);else{try{i.unsafe?t[e]&&(r=!0):delete t[e]}catch(a){}
3862r?t[e]=n:$Ie.f(t,e,{value:n,enumerable:!1,configurable:!i.nonConfigurable,writable:!i.nonWritable})}return t},iJ=_i,VIe=iJ({}.toString),WIe=iJ("".slice),Md=function(t){return WIe(VIe(t),8,-1)},GIe=C4,jIe=tr,UT=Md,qIe=Ps,XIe=qIe("toStringTag"),YIe=Object,KIe=UT(function(){return arguments}())=="Arguments",ZIe=function(t,e){try{return t[e]}catch(n){}},aC=GIe?UT:function(t){var e,n,i;return t===void 0?"Undefined":t===null?"Null":typeof(n=ZIe(e=YIe(t),XIe))=="string"?n:KIe?UT(e):(i=UT(e))=="Object"&&jIe(e.callee)?"Arguments":i},QIe=C4,JIe=aC,eLe=QIe?{}.toString:function(){return"[object "+JIe(this)+"]"},tLe=C4,nLe=Rp,iLe=eLe;tLe||nLe(Object.prototype,"toString",iLe,{unsafe:!0});var rJ={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},rLe=A4,s3=rLe("span").classList,L7=s3&&s3.constructor&&s3.constructor.prototype,sJ=L7===Object.prototype?void 0:L7,sLe=Md,aLe=_i,aJ=function(t){if(sLe(t)==="Function")return aLe(t)},F7=aJ,oLe=iC,lLe=tC,uLe=F7(F7.bind),oJ=function(t,e){return oLe(t),e===void 0?t:lLe?uLe(t,e):function(){return t.apply(e,arguments)}},cLe=_i,fLe=gi,dLe=Md,a3=Object,hLe=cLe("".split),oC=fLe(function(){return!a3("z").propertyIsEnumerable(0)})?function(t){return dLe(t)=="String"?hLe(t,""):a3(t)}:a3,pLe=Math.ceil,mLe=Math.floor,gLe=Math.trunc||function(e){var n=+e;return(n>0?mLe:pLe)(n)},_Le=gLe,lC=function(t){var e=+t;return e!==e||e===0?0:_Le(e)},vLe=lC,yLe=Math.min,L4=function(t){return t>0?yLe(vLe(t),9007199254740991):0},bLe=L4,n1=function(t){return bLe(t.length)},xLe=Md,SLe=Array.isArray||function(e){return xLe(e)=="Array"},TLe=_i,ELe=gi,lJ=tr,wLe=aC,CLe=nC,ALe=JQ,uJ=function(){},MLe=[],cJ=CLe("Reflect","construct"),F4=/^\s*(?:class|function)\b/,DLe=TLe(F4.exec),PLe=!F4.exec(uJ),Z_=function(e){if(!lJ(e))return!1;try{return cJ(uJ,MLe,e),!0}catch(n){return!1}},fJ=function(e){if(!lJ(e))return!1;switch(wLe(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return PLe||!!DLe(F4,ALe(e))}catch(n){return!0}};fJ.sham=!0;var OLe=!cJ||ELe(function(){var t;return Z_(Z_.call)||!Z_(Object)||!Z_(function(){t=!0})||t})?fJ:Z_,N7=SLe,RLe=OLe,kLe=Ka,ILe=Ps,LLe=ILe("species"),B7=Array,FLe=function(t){var e;return N7(t)&&(e=t.constructor,RLe(e)&&(e===B7||N7(e.prototype))?e=void 0:kLe(e)&&(e=e[LLe],e===null&&(e=void 0))),e===void 0?B7:e},NLe=FLe,BLe=function(t,e){return new(NLe(t))(e===0?0:e)},ULe=oJ,$Le=_i,zLe=oC,HLe=Zg,VLe=n1,WLe=BLe,U7=$Le([].push),yf=function(t){var e=t==1,n=t==2,i=t==3,r=t==4,s=t==6,a=t==7,o=t==5||s;return function(l,u,c,f){for(var h=HLe(l),p=zLe(h),m=ULe(u,c),y=VLe(p),v=0,_=f||WLe,b=e?_(l,y):n||a?_(l,0):void 0,x,T;y>v;v++)if((o||v in p)&&(x=p[v],T=m(x,v,h),t))if(e)b[v]=T;else if(T)switch(t){case 3:return!0;case 5:return x;case 6:return v;case 2:U7(b,x)}else switch(t){case 4:return!1;case 7:U7(b,x)}return s?-1:i||r?r:b}},N4={forEach:yf(0),map:yf(1),filter:yf(2),some:yf(3),every:yf(4),find:yf(5),findIndex:yf(6),filterReject:yf(7)},GLe=gi,dJ=function(t,e){var n=[][t];return!!n&&GLe(function(){n.call(null,e||function(){return 1},1)})},jLe=N4.forEach,qLe=dJ,XLe=qLe("forEach"),YLe=XLe?[].forEach:function(e){return jLe(this,e,arguments.length>1?arguments[1]:void 0)},$7=zr,z7=rJ,KLe=sJ,o3=YLe,ZLe=Qg,hJ=function(t){if(t&&t.forEach!==o3)try{ZLe(t,"forEach",o3)}catch(e){t.forEach=o3}};for(var l3 in z7)z7[l3]&&hJ($7[l3]&&$7[l3].prototype);hJ(KLe);var B4={},U4={},pJ={}.propertyIsEnumerable,mJ=Object.getOwnPropertyDescriptor,QLe=mJ&&!pJ.call({1:2},1);U4.f=QLe?function(e){var n=mJ(this,e);return!!n&&n.enumerable}:pJ;var JLe=oC,e4e=Kg,e_=function(t){return JLe(e4e(t))},t4e=bl,n4e=No,i4e=U4,r4e=rC,s4e=e_,a4e=P4,o4e=vl,l4e=XQ,H7=Object.getOwnPropertyDescriptor;
3862B4.f=t4e?H7:function(e,n){if(e=s4e(e),n=a4e(n),l4e)try{return H7(e,n)}catch(i){}if(o4e(e,n))return r4e(!n4e(i4e.f,e,n),e[n])};var uC={},u4e=lC,c4e=Math.max,f4e=Math.min,gJ=function(t,e){var n=u4e(t);return n<0?c4e(n+e,0):f4e(n,e)},d4e=e_,h4e=gJ,p4e=n1,V7=function(t){return function(e,n,i){var r=d4e(e),s=p4e(r),a=h4e(i,s),o;if(t&&n!=n){for(;s>a;)if(o=r[a++],o!=o)return!0}else for(;s>a;a++)if((t||a in r)&&r[a]===n)return t||a||0;return!t&&-1}},m4e={includes:V7(!0),indexOf:V7(!1)},g4e=_i,u3=vl,_4e=e_,v4e=m4e.indexOf,y4e=sC,W7=g4e([].push),_J=function(t,e){var n=_4e(t),i=0,r=[],s;for(s in n)!u3(y4e,s)&&u3(n,s)&&W7(r,s);for(;e.length>i;)u3(n,s=e[i++])&&(~v4e(r,s)||W7(r,s));return r},$4=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],b4e=_J,x4e=$4,S4e=x4e.concat("length","prototype");uC.f=Object.getOwnPropertyNames||function(e){return b4e(e,S4e)};var z4={};z4.f=Object.getOwnPropertySymbols;var T4e=nC,E4e=_i,w4e=uC,C4e=z4,A4e=Za,M4e=E4e([].concat),D4e=T4e("Reflect","ownKeys")||function(e){var n=w4e.f(A4e(e)),i=C4e.f;return i?M4e(n,i(e)):n},G7=vl,P4e=D4e,O4e=B4,R4e=yl,k4e=function(t,e,n){for(var i=P4e(e),r=R4e.f,s=O4e.f,a=0;a<i.length;a++){var o=i[a];!G7(t,o)&&!(n&&G7(n,o))&&r(t,o,s(e,o))}},I4e=gi,L4e=tr,F4e=/#|\.prototype\./,i1=function(t,e){var n=B4e[N4e(t)];return n==$4e?!0:n==U4e?!1:L4e(e)?I4e(e):!!e},N4e=i1.normalize=function(t){return String(t).replace(F4e,".").toLowerCase()},B4e=i1.data={},U4e=i1.NATIVE="N",$4e=i1.POLYFILL="P",vJ=i1,c3=zr,z4e=B4.f,H4e=Qg,V4e=Rp,W4e=S4,G4e=k4e,j4e=vJ,Dd=function(t,e){var n=t.target,i=t.global,r=t.stat,s,a,o,l,u,c;if(i?a=c3:r?a=c3[n]||W4e(n,{}):a=(c3[n]||{}).prototype,a)for(o in e){if(u=e[o],t.dontCallGetSet?(c=z4e(a,o),l=c&&c.value):l=a[o],s=j4e(i?o:n+(r?".":"#")+o,t.forced),!s&&l!==void 0){if(typeof u==typeof l)continue;G4e(u,l)}(t.sham||l&&l.sham)&&H4e(u,"sham",!0),V4e(a,o,u,t)}},q4e=aC,X4e=String,kp=function(t){if(q4e(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return X4e(t)},yJ=`	
3863\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`,Y4e=_i,K4e=Kg,Z4e=kp,Q4e=yJ,j7=Y4e("".replace),yE="["+Q4e+"]",J4e=RegExp("^"+yE+yE+"*"),eFe=RegExp(yE+yE+"*$"),f3=function(t){return function(e){var n=Z4e(K4e(e));return t&1&&(n=j7(n,J4e,"")),t&2&&(n=j7(n,eFe,"")),n}},tFe={start:f3(1),end:f3(2),trim:f3(3)},bJ=zr,nFe=gi,iFe=_i,rFe=kp,sFe=tFe.trim,q7=yJ,dy=bJ.parseInt,X7=bJ.Symbol,Y7=X7&&X7.iterator,xJ=/^[+-]?0x/i,aFe=iFe(xJ.exec),oFe=dy(q7+"08")!==8||dy(q7+"0x16")!==22||Y7&&!nFe(function(){dy(Object(Y7))}),lFe=oFe?function(e,n){var i=sFe(rFe(e));return dy(i,n>>>0||(aFe(xJ,i)?16:10))}:dy,uFe=Dd,K7=lFe;uFe({global:!0,forced:parseInt!=K7},{parseInt:K7});var cFe=_J,fFe=$4,SJ=Object.keys||function(e){return cFe(e,fFe)},Z7=bl,dFe=_i,hFe=No,pFe=gi,d3=SJ,mFe=z4,gFe=U4,_Fe=Zg,vFe=oC,B0=Object.assign,Q7=Object.defineProperty,yFe=dFe([].concat),bFe=!B0||pFe(function(){if(Z7&&B0({b:1},B0(Q7({},"a",{enumerable:!0,get:function(){Q7(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var t={},e={},n=Symbol(),i="abcdefghijklmnopqrst";return t[n]=7,i.split("").forEach(function(r){e[r]=r}),B0({},t)[n]!=7||d3(B0({},e)).join("")!=i})?function(e,n){for(var i=_Fe(e),r=arguments.length,s=1,a=mFe.f,o=gFe.f;r>s;)for(var l=vFe(arguments[s++]),u=a?yFe(d3(l),a(l)):d3(l),c=u.length,f=0,h;c>f;)h=u[f++],(!Z7||hFe(o,l,h))&&(i[h]=l[h]);return i}:B0,xFe=Dd,J7=bFe;xFe({target:"Object",stat:!0,arity:2,forced:Object.assign!==J7},{assign:J7});var SFe=gi,TFe=Ps,EFe=w4,wFe=TFe("species"),CFe=function(t){return EFe>=51||!SFe(function(){var e=[],n=e.constructor={};return n[wFe]=function(){return{foo:1}},e[t](Boolean).foo!==1})},AFe=Dd,MFe=N4.filter,DFe=CFe,PFe=DFe("filter");AFe({target:"Array",proto:!0,forced:!PFe},{filter:function(e){return MFe(this,e,arguments.length>1?arguments[1]:void 0)}});var TJ={},OFe=bl,RFe=YQ,kFe=yl,IFe=Za,LFe=e_,FFe=SJ;TJ.f=OFe&&!RFe?Object.defineProperties:function(e,n){IFe(e);for(var i=LFe(n),r=FFe(n),s=r.length,a=0,o;s>a;)kFe.f(e,o=r[a++],i[o]);return e};var NFe=nC,BFe=NFe("document","documentElement"),UFe=Za,$Fe=TJ,e$=$4,zFe=sC,HFe=BFe,VFe=A4,WFe=k4,t$=">",n$="<",xR="prototype",SR="script",EJ=WFe("IE_PROTO"),h3=function(){},wJ=function(t){return n$+SR+t$+t+n$+"/"+SR+t$},i$=function(t){t.write(wJ("")),t.close();var e=t.parentWindow.Object;return t=null,e},GFe=function(){var t=VFe("iframe"),e="java"+SR+":",n;return t.style.display="none",HFe.appendChild(t),t.src=String(e),n=t.contentWindow.document,n.open(),n.write(wJ("document.F=Object")),n.close(),n.F},IS,$T=function(){try{IS=new ActiveXObject("htmlfile")}catch(e){}$T=typeof document<"u"?document.domain&&IS?i$(IS):GFe():i$(IS);for(var t=e$.length;t--;)delete $T[xR][e$[t]];return $T()};zFe[EJ]=!0;var H4=Object.create||function(e,n){var i;return e!==null?(h3[xR]=UFe(e),i=new h3,h3[xR]=null,i[EJ]=e):i=$T(
3863),n===void 0?i:$Fe.f(i,n)},jFe=Ps,qFe=H4,XFe=yl.f,TR=jFe("unscopables"),ER=Array.prototype;ER[TR]==null&&XFe(ER,TR,{configurable:!0,value:qFe(null)});var YFe=function(t){ER[TR][t]=!0},r1={},KFe=gi,ZFe=!KFe(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),QFe=vl,JFe=tr,eNe=Zg,tNe=k4,nNe=ZFe,r$=tNe("IE_PROTO"),wR=Object,iNe=wR.prototype,CJ=nNe?wR.getPrototypeOf:function(t){var e=eNe(t);if(QFe(e,r$))return e[r$];var n=e.constructor;return JFe(n)&&e instanceof n?n.prototype:e instanceof wR?iNe:null},rNe=gi,sNe=tr,aNe=Ka,s$=CJ,oNe=Rp,lNe=Ps,CR=lNe("iterator"),AJ=!1,gp,p3,m3;[].keys&&(m3=[].keys(),"next"in m3?(p3=s$(s$(m3)),p3!==Object.prototype&&(gp=p3)):AJ=!0);var uNe=!aNe(gp)||rNe(function(){var t={};return gp[CR].call(t)!==t});uNe&&(gp={});sNe(gp[CR])||oNe(gp,CR,function(){return this});var MJ={IteratorPrototype:gp,BUGGY_SAFARI_ITERATORS:AJ},cNe=yl.f,fNe=vl,dNe=Ps,a$=dNe("toStringTag"),V4=function(t,e,n){t&&!n&&(t=t.prototype),t&&!fNe(t,a$)&&cNe(t,a$,{configurable:!0,value:e})},hNe=MJ.IteratorPrototype,pNe=H4,mNe=rC,gNe=V4,_Ne=r1,vNe=function(){return this},yNe=function(t,e,n,i){var r=e+" Iterator";return t.prototype=pNe(hNe,{next:mNe(+!i,n)}),gNe(t,r,!1),_Ne[r]=vNe,t},bNe=tr,xNe=String,SNe=TypeError,TNe=function(t){if(typeof t=="object"||bNe(t))return t;throw SNe("Can't set "+xNe(t)+" as a prototype")},ENe=_i,wNe=Za,CNe=TNe,DJ=Object.setPrototypeOf||("__proto__"in{}?function(){var t=!1,e={},n;try{n=ENe(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set),n(e,[]),t=e instanceof Array}catch(i){}return function(r,s){return wNe(r),CNe(s),t?n(r,s):r.__proto__=s,r}}():void 0),ANe=Dd,MNe=No,PJ=R4,DNe=tr,PNe=yNe,o$=CJ,l$=DJ,ONe=V4,RNe=Qg,g3=Rp,kNe=Ps,INe=r1,OJ=MJ,LNe=PJ.PROPER,FNe=PJ.CONFIGURABLE,u$=OJ.IteratorPrototype,LS=OJ.BUGGY_SAFARI_ITERATORS,Q_=kNe("iterator"),c$="keys",J_="values",f$="entries",NNe=function(){return this},RJ=function(t,e,n,i,r,s,a){PNe(n,e,i);var o=function(_){if(_===r&&h)return h;if(!LS&&_ in c)return c[_];switch(_){case c$:return function(){return new n(this,_)};case J_:return function(){return new n(this,_)};case f$:return function(){return new n(this,_)}}return function(){return new n(this)}},l=e+" Iterator",u=!1,c=t.prototype,f=c[Q_]||c["@@iterator"]||r&&c[r],h=!LS&&f||o(r),p=e=="Array"&&c.entries||f,m,y,v;if(p&&(m=o$(p.call(new t)),m!==Object.prototype&&m.next&&(o$(m)!==u$&&(l$?l$(m,u$):DNe(m[Q_])||g3(m,Q_,NNe)),ONe(m,l,!0))),LNe&&r==J_&&f&&f.name!==J_&&(FNe?RNe(c,"name",J_):(u
3863=!0,h=function(){return MNe(f,this)})),r)if(y={values:o(J_),keys:s?h:o(c$),entries:o(f$)},a)for(v in y)(LS||u||!(v in c))&&g3(c,v,y[v]);else ANe({target:e,proto:!0,forced:LS||u},y);return c[Q_]!==h&&g3(c,Q_,h,{name:r}),INe[e]=h,y},kJ=function(t,e){return{value:t,done:e}},BNe=e_,W4=YFe,d$=r1,IJ=Jg,UNe=yl.f,$Ne=RJ,FS=kJ,zNe=bl,LJ="Array Iterator",HNe=IJ.set,VNe=IJ.getterFor(LJ),WNe=$Ne(Array,"Array",function(t,e){HNe(this,{type:LJ,target:BNe(t),index:0,kind:e})},function(){var t=VNe(this),e=t.target,n=t.kind,i=t.index++;return!e||i>=e.length?(t.target=void 0,FS(void 0,!0)):n=="keys"?FS(i,!1):n=="values"?FS(e[i],!1):FS([i,e[i]],!1)},"values"),h$=d$.Arguments=d$.Array;W4("keys");W4("values");W4("entries");if(zNe&&h$.name!=="values")try{UNe(h$,"name",{value:"values"})}catch(t){}var G4=_i,GNe=lC,jNe=kp,qNe=Kg,XNe=G4("".charAt),p$=G4("".charCodeAt),YNe=G4("".slice),m$=function(t){return function(e,n){var i=jNe(qNe(e)),r=GNe(n),s=i.length,a,o;return r<0||r>=s?t?"":void 0:(a=p$(i,r),a<55296||a>56319||r+1===s||(o=p$(i,r+1))<56320||o>57343?t?XNe(i,r):a:t?YNe(i,r,r+2):(a-55296<<10)+(o-56320)+65536)}},FJ={codeAt:m$(!1),charAt:m$(!0)},KNe=FJ.charAt,ZNe=kp,NJ=Jg,QNe=RJ,g$=kJ,BJ="String Iterator",JNe=NJ.set,e6e=NJ.getterFor(BJ);QNe(String,"String",function(t){JNe(this,{type:BJ,string:ZNe(t),index:0})},function(){var e=e6e(this),n=e.string,i=e.index,r;return i>=n.length?g$(void 0,!0):(r=KNe(n,i),e.index+=r.length,g$(r,!1))});var t6e=gi,UJ=!t6e(function(){return Object.isExtensible(Object.preventExtensions({}))}),n6e=Rp,$J=function(t,e,n){for(var i in e)n6e(t,i,e[i],n);return t},cC={exports:{}},zJ={},i6e=P4,r6e=yl,s6e=rC,a6e=function(t,e,n){var i=i6e(e);
vendor: 5,185 bytes, line 3863
3863i in t?r6e.f(t,i,s6e(0,n)):t[i]=n},_$=gJ,o6e=n1,l6e=a6e,u6e=Array,c6e=Math.max,f6e=function(t,e,n){for(var i=o6e(t),r=_$(e,i),s=_$(n===void 0?i:n,i),a=u6e(c6e(s-r,0)),o=0;r<s;r++,o++)l6e(a,o,t[r]);return a.length=o,a},d6e=Md,h6e=e_,HJ=uC.f,p6e=f6e,VJ=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],m6e=function(t){try{return HJ(t)}catch(e){return p6e(VJ)}};zJ.f=function(e){return VJ&&d6e(e)=="Window"?m6e(e):HJ(h6e(e))};var g6e=gi,_6e=g6e(function(){if(typeof ArrayBuffer=="function"){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}),v6e=gi,y6e=Ka,b6e=Md,v$=_6e,zT=Object.isExtensible,x6e=v6e(function(){zT(1)}),S6e=x6e||v$?function(e){return!y6e(e)||v$&&b6e(e)=="ArrayBuffer"?!1:zT?zT(e):!0}:zT,T6e=Dd,E6e=_i,w6e=sC,C6e=Ka,j4=vl,A6e=yl.f,y$=uC,M6e=zJ,q4=S6e,D6e=E4,P6e=UJ,WJ=!1,Lc=D6e("meta"),O6e=0,X4=function(t){A6e(t,Lc,{value:{objectID:"O"+O6e++,weakData:{}}})},R6e=function(t,e){if(!C6e(t))return typeof t=="symbol"?t:(typeof t=="string"?"S":"P")+t;if(!j4(t,Lc)){if(!q4(t))return"F";if(!e)return"E";X4(t)}return t[Lc].objectID},k6e=function(t,e){if(!j4(t,Lc)){if(!q4(t))return!0;if(!e)return!1;X4(t)}return t[Lc].weakData},I6e=function(t){return P6e&&WJ&&q4(t)&&!j4(t,Lc)&&X4(t),t},L6e=function(){F6e.enable=function(){},WJ=!0;var t=y$.f,e=E6e([].splice),n={};n[Lc]=1,t(n).length&&(y$.f=function(i){for(var r=t(i),s=0,a=r.length;s<a;s++)if(r[s]===Lc){e(r,s,1);break}return r},T6e({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:M6e.f}))},F6e=cC.exports={enable:L6e,fastKey:R6e,getWeakData:k6e,onFreeze:I6e};w6e[Lc]=!0;var N6e=Ps,B6e=r1,U6e=N6e("iterator"),$6e=Array.prototype,z6e=function(t){return t!==void 0&&(B6e.Array===t||$6e[U6e]===t)},H6e=aC,b$=t1,V6e=Op,W6e=r1,G6e=Ps,j6e=G6e("iterator"),GJ=function(t){if(!V6e(t))return b$(t,j6e)||b$(t,"@@iterator")||W6e[H6e(t)]},q6e=No,X6e=iC,Y6e=Za,K6e=D4,Z6e=GJ,Q6e=TypeError,J6e=function(t,e){var n=arguments.length<2?Z6e(t):e;if(X6e(n))return Y6e(q6e(n,t));throw Q6e(K6e(t)+" is not iterable")},e5e=No,x$=Za,t5e=t1,n5e=function(t,e,n){var i,r;x$(t);try{if(i=t5e(t,"return"),!i){if(e==="throw")throw n;return n}i=e5e(i,t)}catch(s){r=!0,i=s}if(e==="throw")throw n;if(r)throw i;return x$(i),n},i5e=oJ,r5e=No,s5e=Za,a5e=D4,o5e=z6e,l5e=n1,S$=M4,u5e=J6e,c5e=GJ,T$=n5e,f5e=TypeError,HT=function(t,e){this.stopped=t,this.result=e},E$=HT.prototype,jJ=function(t,e,n){var i=n&&n.that,r=!!(n&&n.AS_ENTRIES),s=!!(n&&n.IS_RECORD),a=!!(n&&n.IS_ITERATOR),o=!!(n&&n.INTERRUPTED),l=i5e(e,i),u,c,f,h,p,m,y,v=function(b){return u&&T$(u,"normal",b),new HT(!0,b)},_=function(b){return r?(s5e(b),o?l(b[0],b[1],v):l(b[0],b[1])):o?l(b,v):l(b)};if(s)u=t.iterator;else if(a)u=t;else{if(c=c5e(t),!c)throw f5e(a5e(t)+" is not iterable");if(o5e(c)){for(f=0,h=l5e(t);h>f;f++)if(p=_(t[f]),p&&S$(E$,p))return p;return new HT(!1)}u=u5e(t,c)}for(m=s?t.next:u.next;!(y=r5e(m,u)).done;){try{p=_(y.value)}catch(b){T$(u,"throw",b)}if(typeof p=="object"&&p&&S$(E$,p))return p}return new HT(!1)},d5e=M4,h5e=TypeError,qJ=function(t,e){if(d5e(e,t))return t;throw h5e("Incorrect invocation")},p5e=Ps,XJ=p5e("iterator"),YJ=!1;try{var m5e=0,w$={next:function(){return{done:!!m5e++}},return:function(){YJ=!0}};w$[XJ]=function(){return this},Array.from(w$,function(){throw 2})}catch(t){}var g5e=function(t,e){if(!e&&!YJ)return!1;var n=!1;try{var i={};i[XJ]=function(){return{next:function(){return{done:n=!0}}}},t(i)}catch(r){}return n},_5e=tr,v5e=Ka,C$=DJ,y5e=function(t,e,n){var i,r;return C$&&_5e(i=e.constructor)&&i!==n&&v5e(r=i.prototype)&&r!==n.prototype&&C$(t,r),t},b5e=Dd,x5e=zr,S5e=_i,A$=vJ,T5e=Rp,E5e=cC.exports,w5e=jJ,C5e=qJ,A5e=tr,M5e=Op,_3=Ka,v3=gi,D5e=g5e,P5e=V4,O5e=y5e,R5e=function(t,e,n){var i=t.indexOf("Map")!==-1,r=t.indexOf("Weak")!==-1,s=i?"set":"add",a=x5e[t],o=a&&a.prototype,l=a,u={},c=function(_){var b=S5e(o[_]);T5e(o,_,_=="add"?function(T){return b(this,T===0?0:T),this}:_=="delete"?function(x){return r&&!_3(x)?!1:b(this,x===0?0:x)}:_=="get"?function(T){return r&&!_3(T)?void 0:b(this,T===0?0:T)}:_=="has"?function(T){return r&&!_3(T)?!1:b(this,T===0?0:T)}:function(T,E){return b(this,T===0?0:T,E),this})},f=A$(t,!A5e(a)||!(r||o.forEach&&!v3(function(){new a().entries().next()})));if(f)l=n.getConstructor(e,t,i,s),E5e.enable();else if(A$(t,!0)){var h=new l,p=h[s](r?{}:-0,1)!=h,m=v3(function(){h.has(1)}),y=D5e(function(_){new a(_)}),v=!r&&v3(function(){for(var _=new a,b=5;b--;)_[s](b,b);return!_.has(-0)});y||(l=e(function(_,b){C5e(_,o);var x=O5e(new a,_,l);return M5e(b)||w5e(b,x[s],{that:x,AS_ENTRIES:i}),x}),l.prototype=o,o.constructor=l),(m||v)&&(c("delete"),c("has"),i&&c("get")),(v||p)&&c(s),r&&o.clear&&delete o.clear}return u[t]=l,b5e({global:!0,constructor:!0,forced:l!=a},u),P5e(l,t),r||n.setStrong(l,t,i),l},k5e=_i,M$=$J,NS=cC.exports.getWeakData,I5e=qJ,L5e=Za,F5e=Op,y3=Ka,N5e=jJ,KJ=N4,D$=vl,ZJ=Jg,B5e=ZJ.set,U5e=ZJ.getterFor,$5e=KJ.find,z5e=KJ.findIndex,H5e=k5e([].splice),V5e=0,BS=function(t){return t.frozen||(t.frozen=new QJ)},QJ=function(){this.entries=[]},b3=function(t,e){return $5e(t.entries,function(n){return n[0]===e})};QJ.prototype={get:function(t){var e=b3(this,t);if(e)return e[1]},has:function(t){return!!b3(this,t)}
3863,set:function(t,e){var n=b3(this,t);n?n[1]=e:this.entries.push([t,e])},delete:function(t){var e=z5e(this.entries,function(n){return n[0]===t});return~e&&H5e(this.entries,e,1),!!~e}};var W5e={getConstructor:function(t,e,n,i){var r=t(function(l,u){I5e(l,s),B5e(l,{type:e,id:V5e++,frozen:void 0}),F5e(u)||N5e(u,l[i],{that:l,AS_ENTRIES:n})}),s=r.prototype,a=U5e(e),o=function(l,u,c){var f=a(l),h=NS(L5e(u),!0);return h===!0?BS(f).set(u,c):h[f.id]=c,l};return M$(s,{delete:function(l){var u=a(this);if(!y3(l))return!1;var c=NS(l);return c===!0?BS(u).delete(l):c&&D$(c,u.id)&&delete c[u.id]},has:function(u){var c=a(this);if(!y3(u))return!1;var f=NS(u);return f===!0?BS(c).has(u):f&&D$(f,c.id)}}),M$(s,n?{get:function(u){var c=a(this);if(y3(u)){var f=NS(u);return f===!0?BS(c).get(u):f?f[c.id]:void 0}},set:function(u,c){return o(this,u,c)}}:{add:function(u){return o(this,u,!0)}}),r}},G5e=UJ,P$=zr,VT=_i,O$=$J,j5e=cC.exports,q5e=R5e,JJ=W5e,US=Ka,$S=Jg.enforce,X5e=gi,Y5e=eJ,s1=Object,K5e=Array.isArray,zS=s1.isExtensible,eee=s1.isFrozen,Z5e=s1.isSealed,tee=s1.freeze,Q5e=s1.seal,R$={},k$={},J5e=!P$.ActiveXObject&&"ActiveXObject"in P$,ev,nee=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},iee=q5e("WeakMap",nee,JJ),X0=iee.prototype,WT=VT(X0.set),e8e=function(){return G5e&&X5e(function(){var t=tee([]);return WT(new iee,t,1),!eee(t)})};if(Y5e)if(J5e){ev=JJ.getConstructor(nee,"WeakMap",!0),j5e.enable();var I$=VT(X0.delete),HS=VT(X0.has),L$=VT(X0.get);O$(X0,{delete:function(t){if(US(t)&&!zS(t)){var e=$S(this);return e.frozen||(e.frozen=new ev),I$(this,t)||e.frozen.delete(t)}return I$(this,t)},has:function(e){if(US(e)&&!zS(e)){var n=$S(this);return n.frozen||(n.frozen=new ev),HS(this,e)||n.frozen.has(e)}return HS(this,e)},get:function(e){if(US(e)&&!zS(e)){var n=$S(this);return n.frozen||(n.frozen=new ev),HS(this,e)?L$(this,e):n.frozen.get(e)}return L$(this,e)},set:function(e,n){if(US(e)&&!zS(e)){var i=$S(this);i.frozen||(i.frozen=new ev),HS(this,e)?WT(this,e,n):i.frozen.set(e,n)}else WT(this,e,n);return this}})}else e8e()&&O$(X0,{set:function(e,n){var i;return K5e(e)&&(eee(e)?i=R$:Z5e(e)&&(i=k$)),WT(this,e,n),i==R$&&tee(e),i==k$&&Q5e(e),this}});var F$=zr,ree=rJ,t8e=sJ,Pv=WNe,x3=Qg,see=Ps,S3=see("iterator"),N$=see("toStringTag"),T3=Pv.values,aee=function(t,e){if(t){if(t[S3]!==T3)try{x3(t,S3,T3)}catch(i){t[S3]=T3}if(t[N$]||x3(t,N$,e),ree[e]){for(var n in Pv)if(t[n]!==Pv[n])try{x3(t,n,Pv[n])}catch(i){t[n]=Pv[n]}}}};for(var E3 in ree)aee(F$[E3]&&F$[E3].prototype,E3);aee(t8e,"DOMTokenList");var oee="Expected a function",B$=0/0,n8e="[object Symbol]",i8e=/^\s+|\s+$/g,r8e=/^[-+]0x[0-9a-f]+$/i,s8e=/^0b[01]+$/i,a8e=/^0o[0-7]+$/i,o8e=parseInt,l8e=typeof si=="object"&&si&&si.Object===Object&&si,u8e=typeof self=="object"&&self&&self.Object===Object&&self,c8e=l8e||u8e||Function("return this")(),f8e=Object.prototype,d8e=f8e.toString,h8e=Math.max,p8e=Math.min,w3=function(){return c8e.Date.now()};function m8e(t,e,n){var i,r,s,a,o,l,u=0,c=!1,f=!1,h=!0;if(typeof t!="function")throw new TypeError(oee);e=U$(e)||0,bE(n)&&(c=!!n.leading,f="maxWait"in n,s=f?h8e(U$(n.maxWait)||0,e):s,h="trailing"in n?!!n.trailing:h);function p(C){var D=i,R=r;return i=r=void 0,u=C,a=t.apply(R,D),a}function m(C){return u=C,o=setTimeout(_,e),c?p(C):a}function y(C){var D=C-l,R=C-u,A=e-D;return f?p8e(A,s-R):A}function v(C){var D=C-l,R=C-u;return l===void 0||D>=e||D<0||f&&R>=s}function _(){var C=w3();if(v(C))return b(C);o=setTimeout(_,y(C))}function b(C){return o=void 0,h&&i?p(C):(i=r=void 0,a)}function x(){o!==void 0&&clearTimeout(o),u=0,i=l=r=o=void 0}function T(){return o===void 0?a:b(w3())}function E(){var C=w3(),D=v(C);if(i=arguments,r=this,l=C,D){if(o===void 0)return m(l);if(f)return o=setTimeout(_,e),p(l)}return o===void 0&&(o=setTimeout(_,e)),a}return E.cancel=x,E.flush=T,E}function g8e(t,e,n){var i=!0,r=!0;if(typeof t!="function")throw new TypeError(oee);return bE(n)&&(i="leading"in n?!!n.leading:i,r="trailing"in n?!!n.trailing:r),m8e(t,e,{leading:i,maxWait:e,trailing:r})}function bE(t){var e=typeof t;return!!t&&(e=="object"||e=="function")}function _8e(t){return!!t&&typeof t=="object"}function v8e(t){return typeof t=="symbol"||_8e(t)&&d8e.call(t)==n8e}function U$(t){if(typeof t=="number")return t;if(v8e(t))return B$;if(bE(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=bE(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=t.replace(i8e,"");var n=s8e.test(t);return n||a8e.test(t)?o8e(t.slice(2),n?2:8):r8e.test(t)?B$:+t}var $$=g8e,y8e="Expected a function",z$=0/0,b8e="[object Symbol]",x8e=/^\s+|\s+$/g,S8e=/^[-+]0x[0-9a-f]+$/i,T8e=/^0b[01]+$/i,E8e=/^0o[0-7]+$/i,w8e=parseInt,C8e=typeof si=="object"&&si&&si.Object===Object&&si,A8e=typeof self=="object"&&self&&self.Object===Object&&self,M8e=C8e||A8e||Function("return this")(),D8e=Object.prototype,P8e=D8e.toString,O8e=Math.max,R8e=Math.min,C3=function(){return M8e.Date.now()};function k8e(t,e,n){var i,r,s,a,o,l,u=0,c=!1,f=!1,h=!0;if(typeof t!="function")throw new TypeError(y8e);e=H$(e)||0,AR(n)&&(c=!!n.leading,f="maxWait"in n,s=f?O8e(H$(n.maxWait)||0,e):s,h="trailing"in n?!!n.trailing:h);function p(C){var D=i,R=r;return i=r=void 0,u=C,a=t.apply(R,D),a}function m(C){return u=C,o=setTimeout(_,e),c?p(C):a}function y(C){var D=C-l,R=C-u,A=e-D;return f?R8e(A,s-R):A}function v(C){var D=C-l,R=C-u;return l===void 0||D>=e||D<0||f&&R>=s}function _(){var C=C3();if(v(C))return b(C);o=setTimeout(_,y(C))}function b(C){return o=void 0,h&&i?p(C):(i=r=void 0,a)}function x(){o!==void 0&&clearTimeout(o),u=0,i=l=r=o=void 0}function T(){return o===void 0?a:b(C3())}function E(){var C=C3(),D=v(C);if(i=arguments,r=this,l=C,D){if(o===void 0)return m(l);
3863if(f)return o=setTimeout(_,e),p(l)}return o===void 0&&(o=setTimeout(_,e)),a}return E.cancel=x,E.flush=T,E}function AR(t){var e=typeof t;return!!t&&(e=="object"||e=="function")}function I8e(t){return!!t&&typeof t=="object"}function L8e(t){return typeof t=="symbol"||I8e(t)&&P8e.call(t)==b8e}function H$(t){if(typeof t=="number")return t;if(L8e(t))return z$;if(AR(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=AR(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=t.replace(x8e,"");var n=T8e.test(t);return n||E8e.test(t)?w8e(t.slice(2),n?2:8):S8e.test(t)?z$:+t}var V$=k8e,F8e="Expected a function",lee="__lodash_hash_undefined__",N8e="[object Function]",B8e="[object GeneratorFunction]",U8e=/[\\^$.*+?()[\]{}|]/g,$8e=/^\[object .+?Constructor\]$/,z8e=typeof si=="object"&&si&&si.Object===Object&&si,H8e=typeof self=="object"&&self&&self.Object===Object&&self,uee=z8e||H8e||Function("return this")();function V8e(t,e){return t==null?void 0:t[e]}function W8e(t){var e=!1;if(t!=null&&typeof t.toString!="function")try{e=!!(t+"")}catch(n){}return e}var G8e=Array.prototype,j8e=Function.prototype,cee=Object.prototype,A3=uee["__core-js_shared__"],W$=function(){var t=/[^.]+$/.exec(A3&&A3.keys&&A3.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),fee=j8e.toString,Y4=cee.hasOwnProperty,q8e=cee.toString,X8e=RegExp("^"+fee.call(Y4).replace(U8e,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Y8e=G8e.splice,K8e=dee(uee,"Map"),pb=dee(Object,"create");function _p(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}function Z8e(){this.__data__=pb?pb(null):{}}function Q8e(t){return this.has(t)&&delete this.__data__[t]}function J8e(t){var e=this.__data__;if(pb){var n=e[t];return n===lee?void 0:n}return Y4.call(e,t)?e[t]:void 0}function eBe(t){var e=this.__data__;return pb?e[t]!==void 0:Y4.call(e,t)}function tBe(t,e){var n=this.__data__;return n[t]=pb&&e===void 0?lee:e,this}_p.prototype.clear=Z8e;_p.prototype.delete=Q8e;_p.prototype.get=J8e;_p.prototype.has=eBe;_p.prototype.set=tBe;function t_(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}function nBe(){this.__data__=[]}function iBe(t){var e=this.__data__,n=fC(e,t);if(n<0)return!1;var i=e.length-1;return n==i?e.pop():Y8e.call(e,n,1),!0}function rBe(t){var e=this.__data__,n=fC(e,t);return n<0?void 0:e[n][1]}function sBe(t){return fC(this.__data__,t)>-1}function aBe(t,e){var n=this.__data__,i=fC(n,t);return i<0?n.push([t,e]):n[i][1]=e,this}t_.prototype.clear=nBe;t_.prototype.delete=iBe;t_.prototype.get=rBe;t_.prototype.has=sBe;t_.prototype.set=aBe;function Ip(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}function oBe(){this.__data__={hash:new _p,map:new(K8e||t_),string:new _p}}function lBe(t){return dC(this,t).delete(t)}function uBe(t){return dC(this,t).get(t)}function cBe(t){return dC(this,t).has(t)}function fBe(t,e){return dC(this,t).set(t,e),this}Ip.prototype.clear=oBe;Ip.prototype.delete=lBe;Ip.prototype.get=uBe;Ip.prototype.has=cBe;Ip.prototype.set=fBe;function fC(t,e){for(var n=t.length;n--;)if(gBe(t[n][0],e))return n;return-1}function dBe(t){if(!hee(t)||pBe(t))return!1;var e=_Be(t)||W8e(t)?X8e:$8e;return e.test(mBe(t))}function dC(t,e){var n=t.__data__;return hBe(e)?n[typeof e=="string"?"string":"hash"]:n.map}function dee(t,e){var n=V8e(t,e);return dBe(n)?n:void 0}function hBe(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function pBe(t){return!!W$&&W$ in t}function mBe(t){if(t!=null){try{return fee.call(t)}catch(e){}try{return t+""}catch(e){}}return""}function K4(t,e){if(typeof t!="function"||e&&typeof e!="function")throw new TypeError(F8e);var n=function(){var i=arguments,r=e?e.apply(this,i):i[0],s=n.cache;if(s.has(r))return s.get(r);var a=t.apply(this,i);return n.cache=s.set(r,a),a};return n.cache=new(K4.Cache||Ip),n}K4.Cache=Ip;function gBe(t,e){return t===e||t!==t&&e!==e}function _Be(t){var e=hee(t)?q8e.call(t):"";return e==N8e||e==B8e}function hee(t){var e=typeof t;return!!t&&(e=="object"||e=="function")}var vBe=K4,Zh=[],yBe=function(){return Zh.some(function(t){return t.activeTargets.length>0})},bBe=function(){return Zh.some(function(t){return t.skippedTargets.length>0})},G$="ResizeObserver loop completed with undelivered notifications.",xBe=function(){var t;typeof ErrorEvent=="function"?t=new ErrorEvent("error",{message:G$}):(t=document.createEvent("Event"),t.initEvent("error",!1,!1),t.message=G$),window.dispatchEvent(t)},mb;(function(t){t.BORDER_BOX="border-box",t.CONTENT_BOX="content-box",t.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(mb||(mb={}));var Qh=function(t){return Object.freeze(t)},SBe=function(){function t(e,n){this.inlineSize=e,this.blockSize=n,Qh(this)}return t}(),pee=function(){function t(e,n,i,r){return this.x=e,this.y=n,this.width=i,this.height=r,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,Qh(this)}return t.prototype.toJSON=function(){var e=this,n=e.x,i=e.y,r=e.top,s=e.right,a=e.bottom,o=e.left,l=e.width,u=e.height;
3863return{x:n,y:i,top:r,right:s,bottom:a,left:o,width:l,height:u}},t.fromRect=function(e){return new t(e.x,e.y,e.width,e.height)},t}(),Z4=function(t){return t instanceof SVGElement&&"getBBox"in t},mee=function(t){if(Z4(t)){var e=t.getBBox(),n=e.width,i=e.height;return!n&&!i}var r=t,s=r.offsetWidth,a=r.offsetHeight;return!(s||a||t.getClientRects().length)},j$=function(t){var e;if(t instanceof Element)return!0;var n=(e=t==null?void 0:t.ownerDocument)===null||e===void 0?void 0:e.defaultView;return!!(n&&t instanceof n.Element)},TBe=function(t){switch(t.tagName){case"INPUT":if(t.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},hy=typeof window<"u"?window:{},VS=new WeakMap,q$=/auto|scroll/,EBe=/^tb|vertical/,wBe=/msie|trident/i.test(hy.navigator&&hy.navigator.userAgent),Rl=function(t){return parseFloat(t||"0")},$m=function(t,e,n){return t===void 0&&(t=0),e===void 0&&(e=0),n===void 0&&(n=!1),new SBe((n?e:t)||0,(n?t:e)||0)},X$=Qh({devicePixelContentBoxSize:$m(),borderBoxSize:$m(),contentBoxSize:$m(),contentRect:new pee(0,0,0,0)}),gee=function(t,e){if(e===void 0&&(e=!1),VS.has(t)&&!e)return VS.get(t);if(mee(t))return VS.set(t,X$),X$;var n=getComputedStyle(t),i=Z4(t)&&t.ownerSVGElement&&t.getBBox(),r=!wBe&&n.boxSizing==="border-box",s=EBe.test(n.writingMode||""),a=!i&&q$.test(n.overflowY||""),o=!i&&q$.test(n.overflowX||""),l=i?0:Rl(n.paddingTop),u=i?0:Rl(n.paddingRight),c=i?0:Rl(n.paddingBottom),f=i?0:Rl(n.paddingLeft),h=i?0:Rl(n.borderTopWidth),p=i?0:Rl(n.borderRightWidth),m=i?0:Rl(n.borderBottomWidth),y=i?0:Rl(n.borderLeftWidth),v=f+u,_=l+c,b=y+p,x=h+m,T=o?t.offsetHeight-x-t.clientHeight:0,E=a?t.offsetWidth-b-t.clientWidth:0,C=r?v+b:0,D=r?_+x:0,R=i?i.width:Rl(n.width)-C-E,A=i?i.height:Rl(n.height)-D-T,k=R+v+E+b,F=A+_+T+x,N=Qh({devicePixelContentBoxSize:$m(Math.round(R*devicePixelRatio),Math.round(A*devicePixelRatio),s),borderBoxSize:$m(k,F,s),contentBoxSize:$m(R,A,s),contentRect:new pee(f,l,R,A)});return VS.set(t,N),N},_ee=function(t,e,n){var i=gee(t,n),r=i.borderBoxSize,s=i.contentBoxSize,a=i.devicePixelContentBoxSize;switch(e){case mb.DEVICE_PIXEL_CONTENT_BOX:return a;case mb.BORDER_BOX:return r;default:return s}},CBe=function(){function t(e){var n=gee(e);this.target=e,this.contentRect=n.contentRect,this.borderBoxSize=Qh([n.borderBoxSize]),this.contentBoxSize=Qh([n.contentBoxSize]),this.devicePixelContentBoxSize=Qh([n.devicePixelContentBoxSize])}return t}(),vee=function(t){if(mee(t))return 1/0;for(var e=0,n=t.parentNode;n;)e+=1,n=n.parentNode;return e},ABe=function(){var t=1/0,e=[];Zh.forEach(function(a){if(a.activeTargets.length!==0){var o=[];a.activeTargets.forEach(function(u){var c=new CBe(u.target),f=vee(u.target);o.push(c),u.lastReportedSize=_ee(u.target,u.observedBox),f<t&&(t=f)}),e.push(function(){a.callback.call(a.observer,o,a.observer)}),a.activeTargets.splice(0,a.activeTargets.length)}});for(var n=0,i=e;n<i.length;n++){var r=i[n];r()}return t},Y$=function(t){Zh.forEach(function(n){n.activeTargets.splice(0,n.activeTargets.length),n.skippedTargets.splice(0,n.skippedTargets.length),n.observationTargets.forEach(function(r){r.isActive()&&(vee(r.target)>t?n.activeTargets.push(r):n.skippedTargets.push(r))})})},MBe=function(){var t=0;for(Y$(t);yBe();)t=ABe(),Y$(t);return bBe()&&xBe(),t>0},M3,yee=[],DBe=function(){return yee.splice(0).forEach(function(t){return t()})},PBe=function(t){if(!M3){var e=0,n=document.createTextNode(""),i={characterData:!0};new MutationObserver(function(){return DBe()}).observe(n,i),M3=function(){n.textContent="".concat(e?e--:e++)}}yee.push(t),M3()},OBe=function(t){PBe(function(){requestAnimationFrame(t)})},GT=0,RBe=function(){return!!GT},kBe=250,IBe={attributes:!0,characterData:!0,childList:!0,subtree:!0},K$=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Z$=function(t){return t===void 0&&(t=0),Date.now()+t},D3=!1,LBe=function(){function t(){var e=this;this.stopped=!0,this.listener=function(){return e.schedule()}}return t.prototype.run=function(e){var n=this;if(e===void 0&&(e=kBe),!D3){D3=!0;var i=Z$(e);OBe(function(){var r=!1;try{r=MBe()}finally{if(D3=!1,e=i-Z$(),!RBe())return;r?n.run(1e3):e>0?n.run(e):n.start()}})}},t.prototype.schedule=function(){this.stop(),this.run()},t.prototype.observe=function(){var e=this,n=function(){return e.observer&&e.observer.observe(document.body,IBe)};document.body?n():hy.addEventListener("DOMContentLoaded",n)},t.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),K$.forEach(function(n){return hy.addEventListener(n,e.listener,!0)}))},t.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),K$.forEach(function(n){return hy.removeEventListener(n,e.listener,!0)}),this.stopped=!0)},t}(),MR=new LBe,Q$=function(t){!GT&&t>0&&MR.start(),GT+=t,!GT&&MR.stop()},FBe=function(t){return!Z4(t)&&!TBe(t)&&getComputedStyle(t).display==="inline"},NBe=function(){function t(e,n){this.target=e,this.observedBox=n||mb.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return t.prototype.isActive=function(){var e=_ee(this.target,this.observedBox,!0);return FBe(this.target)&&(this.lastReportedSize=e),this.lastReportedSize.inlineSize!==e.inlineSize||this.lastReportedSize.blockSize!==e.blockSize},t}(),BBe=function(){function t(e,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=n}return t}(),WS=new WeakMap,J$=function(t,e){for(var n=0;n<t.length;n+=1)if(t[n].target===e)return n;return-1},GS=function(){function t(){}return t.connect=function(e,n){var i=new BBe(e,n);WS.set(e,i)},t.observe=function(e,n,i){var r=WS.get(e),s=r.observationTargets.length===0;J$(r.observationTargets,n)<0&&(s&&Zh.push(r),r.observationTargets.push(new NBe(n,i&&i.box)),Q$(1),MR.schedule())},t.unobserve=function(e,n){var i=WS.get(e),r=J$(i.observationTargets,n),s=i.observationTargets.length===1;r>=0&&(s&&Zh.splice(Zh.indexOf(i),1),i.observationTargets.splice(r,1),Q$(-1))},t.disconnect=function(e){var n=this,i=WS.get(e);
vendor: 4,899 bytes, lines 3863-3865
3863i.observationTargets.slice().forEach(function(r){return n.unobserve(e,r.target)}),i.activeTargets.splice(0,i.activeTargets.length)},t}(),UBe=function(){function t(e){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof e!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");GS.connect(this,e)}return t.prototype.observe=function(e,n){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!j$(e))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");GS.observe(this,e,n)},t.prototype.unobserve=function(e){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!j$(e))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");GS.unobserve(this,e)},t.prototype.disconnect=function(){GS.disconnect(this)},t.toString=function(){return"function ResizeObserver () { [polyfill code] }"},t}(),$Be=iC,zBe=Zg,HBe=oC,VBe=n1,WBe=TypeError,ez=function(t){return function(e,n,i,r){$Be(n);var s=zBe(e),a=HBe(s),o=VBe(s),l=t?o-1:0,u=t?-1:1;if(i<2)for(;;){if(l in a){r=a[l],l+=u;break}if(l+=u,t?l<0:o<=l)throw WBe("Reduce of empty array with no initial value")}for(;t?l>=0:o>l;l+=u)l in a&&(r=n(r,a[l],l,s));return r}},GBe={left:ez(!1),right:ez(!0)},jBe=Md,qBe=typeof process<"u"&&jBe(process)=="process",XBe=Dd,YBe=GBe.left,KBe=dJ,tz=w4,ZBe=qBe,QBe=!ZBe&&tz>79&&tz<83,JBe=QBe||!KBe("reduce");XBe({target:"Array",proto:!0,forced:JBe},{reduce:function(e){var n=arguments.length;return YBe(this,e,n,n>1?arguments[1]:void 0)}});var eUe=Za,tUe=function(){var t=eUe(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e},Q4=gi,nUe=zr,J4=nUe.RegExp,eF=Q4(function(){var t=J4("a","y");return t.lastIndex=2,t.exec("abcd")!=null}),iUe=eF||Q4(function(){return!J4("a","y").sticky}),rUe=eF||Q4(function(){var t=J4("^r","gy");return t.lastIndex=2,t.exec("str")!=null}),sUe={BROKEN_CARET:rUe,MISSED_STICKY:iUe,UNSUPPORTED_Y:eF},aUe=gi,oUe=zr,lUe=oUe.RegExp,uUe=aUe(function(){var t=lUe(".","s");return!(t.dotAll&&t.exec(`
3864`)&&t.flags==="s")}),cUe=gi,fUe=zr,dUe=fUe.RegExp,hUe=cUe(function(){var t=dUe("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),dm=No,hC=_i,pUe=kp,mUe=tUe,gUe=sUe,_Ue=eC.exports,vUe=H4,yUe=Jg.get,bUe=uUe,xUe=hUe,SUe=_Ue("native-string-replace",String.prototype.replace),xE=RegExp.prototype.exec,DR=xE,TUe=hC("".charAt),EUe=hC("".indexOf),wUe=hC("".replace),P3=hC("".slice),PR=function(){var t=/a/,e=/b*/g;return dm(xE,t,"a"),dm(xE,e,"a"),t.lastIndex!==0||e.lastIndex!==0}(),bee=gUe.BROKEN_CARET,OR=/()??/.exec("")[1]!==void 0,CUe=PR||OR||bee||bUe||xUe;CUe&&(DR=function(e){var n=this,i=yUe(n),r=pUe(e),s=i.raw,a,o,l,u,c,f,h;if(s)return s.lastIndex=n.lastIndex,a=dm(DR,s,r),n.lastIndex=s.lastIndex,a;var p=i.groups,m=bee&&n.sticky,y=dm(mUe,n),v=n.source,_=0,b=r;if(m&&(y=wUe(y,"y",""),EUe(y,"g")===-1&&(y+="g"),b=P3(r,n.lastIndex),n.lastIndex>0&&(!n.multiline||n.multiline&&TUe(r,n.lastIndex-1)!==`
3865`)&&(v="(?: "+v+")",b=" "+b,_++),o=new RegExp("^(?:"+v+")",y)),OR&&(o=new RegExp("^"+v+"$(?!\\s)",y)),PR&&(l=n.lastIndex),u=dm(xE,m?o:n,b),m?u?(u.input=P3(u.input,_),u[0]=P3(u[0],_),u.index=n.lastIndex,n.lastIndex+=u[0].length):n.lastIndex=0:PR&&u&&(n.lastIndex=n.global?u.index+u[0].length:l),OR&&u&&u.length>1&&dm(SUe,u[0],o,function(){for(c=1;c<arguments.length-2;c++)arguments[c]===void 0&&(u[c]=void 0)}),u&&p)for(u.groups=f=vUe(null),c=0;c<p.length;c++)h=p[c],f[h[0]]=u[h[1]];return u});var tF=DR,AUe=Dd,nz=tF;AUe({target:"RegExp",proto:!0,forced:/./.exec!==nz},{exec:nz});var iz=aJ,rz=Rp,MUe=tF,sz=gi,xee=Ps,DUe=Qg,PUe=xee("species"),O3=RegExp.prototype,See=function(t,e,n,i){var r=xee(t),s=!sz(function(){var u={};return u[r]=function(){return 7},""[t](u)!=7}),a=s&&!sz(function(){var u=!1,c=/a/;return t==="split"&&(c={},c.constructor={},c.constructor[PUe]=function(){return c},c.flags="",c[r]=/./[r]),c.exec=function(){return u=!0,null},c[r](""),!u});if(!s||!a||n){var o=iz(/./[r]),l=e(r,""[t],function(u,c,f,h,p){var m=iz(u),y=c.exec;return y===MUe||y===O3.exec?s&&!p?{done:!0,value:o(c,f,h)}:{done:!0,value:m(f,c,h)}:{done:!1}});rz(String.prototype,t,l[0]),rz(O3,r,l[1])}i&&DUe(O3[r],"sham",!0)},OUe=FJ.charAt,Tee=function(t,e,n){return e+(n?OUe(t,e).length:1)},az=No,RUe=Za,kUe=tr,IUe=Md,LUe=tF,FUe=TypeError,Eee=function(t,e){var n=t.exec;if(kUe(n)){var i=az(n,t,e);return i!==null&&RUe(i),i}if(IUe(t)==="RegExp")return az(LUe,t,e);throw FUe("RegExp#exec called on incompatible receiver")}
3865,NUe=No,BUe=See,UUe=Za,$Ue=Op,zUe=L4,R3=kp,HUe=Kg,VUe=t1,WUe=Tee,oz=Eee;BUe("match",function(t,e,n){return[function(r){var s=HUe(this),a=$Ue(r)?void 0:VUe(r,t);return a?NUe(a,r,s):new RegExp(r)[t](R3(s))},function(i){var r=UUe(this),s=R3(i),a=n(e,r,s);if(a.done)return a.value;if(!r.global)return oz(r,s);var o=r.unicode;r.lastIndex=0;for(var l=[],u=0,c;(c=oz(r,s))!==null;){var f=R3(c[0]);l[u]=f,f===""&&(r.lastIndex=WUe(s,zUe(r.lastIndex),o)),u++}return u===0?null:l}]});var GUe=bl,jUe=R4.EXISTS,wee=_i,qUe=yl.f,Cee=Function.prototype,XUe=wee(Cee.toString),Aee=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,YUe=wee(Aee.exec),KUe="name";GUe&&!jUe&&qUe(Cee,KUe,{configurable:!0,get:function(){try{return YUe(Aee,XUe(this))[1]}catch(t){return""}}});var ZUe=tC,Mee=Function.prototype,lz=Mee.apply,uz=Mee.call,QUe=typeof Reflect=="object"&&Reflect.apply||(ZUe?uz.bind(lz):function(){return uz.apply(lz,arguments)}),nF=_i,JUe=Zg,e9e=Math.floor,k3=nF("".charAt),t9e=nF("".replace),I3=nF("".slice),n9e=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,i9e=/\$([$&'`]|\d{1,2})/g,r9e=function(t,e,n,i,r,s){var a=n+t.length,o=i.length,l=i9e;return r!==void 0&&(r=JUe(r),l=n9e),t9e(s,l,function(u,c){var f;switch(k3(c,0)){case"$":return"$";case"&":return t;case"`":return I3(e,0,n);case"'":return I3(e,a);case"<":f=r[I3(c,1,-1)];break;default:var h=+c;if(h===0)return u;if(h>o){var p=e9e(h/10);return p===0?u:p<=o?i[p-1]===void 0?k3(c,1):i[p-1]+k3(c,1):u}f=i[h-1]}return f===void 0?"":f})},s9e=QUe,cz=No,pC=_i,a9e=See,o9e=gi,l9e=Za,u9e=tr,c9e=Op,f9e=lC,d9e=L4,U0=kp,h9e=Kg,p9e=Tee,m9e=t1,g9e=r9e,_9e=Eee,v9e=Ps,RR=v9e("replace"),y9e=Math.max,b9e=Math.min,x9e=pC([].concat),L3=pC([].push),fz=pC("".indexOf),dz=pC("".slice),S9e=function(t){return t===void 0?t:String(t)},T9e=function(){return"a".replace(/./,"$0")==="$0"}(),hz=function(){return/./[RR]?/./[RR]("a","$0")==="":!1}(),E9e=!o9e(function(){var t=/./;return t.exec=function(){var e=[];return e.groups={a:"7"},e},"".replace(t,"$<a>")!=="7"});a9e("replace",function(t,e,n){var i=hz?"$":"$0";return[function(s,a){var o=h9e(this),l=c9e(s)?void 0:m9e(s,RR);return l?cz(l,s,o,a):cz(e,U0(o),s,a)},function(r,s){var a=l9e(this),o=U0(r);if(typeof s=="string"&&fz(s,i)===-1&&fz(s,"$<")===-1){var l=n(e,a,o,s);if(l.done)return l.value}var u=u9e(s);u||(s=U0(s));var c=a.global;if(c){var f=a.unicode;a.lastIndex=0}for(var h=[];;){var p=_9e(a,o);if(p===null||(L3(h,p),!c))break;var m=U0(p[0]);m===""&&(a.lastIndex=p9e(o,d9e(a.lastIndex),f))}for(var y="",v=0,_=0;_<h.length;_++){p=h[_];for(var b=U0(p[0]),x=y9e(b9e(f9e(p.index),o.length),0),T=[],E=1;E<p.length;E++)L3(T,S9e(p[E]));var C=p.groups;if(u){var D=x9e([b],T,x,o);C!==void 0&&L3(D,C);var R=U0(s9e(s,void 0,D))}else R=g9e(b,o,x,T,C,s);x>=v&&(y+=dz(o,v,x)+R,v=x+b.length)}return y+dz(o,v)}]},!E9e||!T9e||hz);var SE=function(e){var n=Array.prototype.reduce.call(e,function(i,r){var s=r.name.match(/data-simplebar-(.+)/);if(s){var a=s[1].replace(/\W+(.)/g,function(o,l){return l.toUpperCase()});switch(r.value){case"true":i[a]=!0;break;case"false":i[a]=!1;break;case void 0:i[a]=!0;break;default:i[a]=r.value}}return i},{});return n};function bf(t){return!t||!t.ownerDocument||!t.ownerDocument.defaultView?window:t.ownerDocument.defaultView}function jT(t){return!t||!t.ownerDocument?document:t.ownerDocument}var Y0=null,pz=null;Xb&&window.addEventListener("resize",function(){pz!==window.devicePixelRatio&&(pz=window.devicePixelRatio,Y0=null)});function mz(t){if(Y0===null){var e=jT(t);if(typeof e>"u")return Y0=0,Y0;var n=e.body,i=e.createElement("div");i.classList.add("simplebar-hide-scrollbar"),n.appendChild(i);var r=i.getBoundingClientRect().right;n.removeChild(i),Y0=r}return Y0}var sr=function(){function t(n,i){var r=this;this.onScroll=function(){var s=bf(r.el);r.scrollXTicking||(s.requestAnimationFrame(r.scrollX),r.scrollXTicking=!0),r.scrollYTicking||(s.requestAnimationFrame(r.scrollY),r.scrollYTicking=!0)},this.scrollX=function(){r.axis.x.isOverflowing&&(r.showScrollbar("x"),r.positionScrollbar("x")),r.scrollXTicking=!1},this.scrollY=function(){r.axis.y.isOverflowing&&(r.showScrollbar("y"),r.positionScrollbar("y")),r.scrollYTicking=!1},this.onMouseEnter=function(){r.showScrollbar("x"),r.showScrollbar("y")},this.onMouseMove=function(s){r.mouseX=s.clientX,r.mouseY=s.clientY,(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&r.onMouseMoveForAxis("x"),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&r.onMouseMoveForAxis("y")},this.onMouseLeave=function(){r.onMouseMove.cancel(),(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&r.onMouseLeaveForAxis("x"),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&r.onMouseLeaveForAxis("y"),r.mouseX=-1,r.mouseY=-1},this.onWindowResize=function(){r.scrollbarWidth=r.getScrollbarWidth(),r.hideNativeScrollbar()},this.hideScrollbars=function(){r.axis.x.track.rect=r.axis.x.track.el.getBoundingClientRect(),r.axis.y.track.rect=r.axis.y.track.el.getBoundingClientRect(),r.isWithinBounds(r.axis.y.track.rect)||(r.axis.y.scrollbar.el.classList.remove(r.classNames.visible),r.axis.y.isVisible=!1),r.isWithinBounds(r.axis.x.track.rect)||(r.axis.x.scrollbar.el.classList.remove(r.classNames.visible),r.axis.x.isVisible=!1)},this.onPointerEvent=function(s){var a,o;r.axis.x.track.rect=r.axis.x.track.el.getBoundingClientRect(),r.axis.y.track.rect=r.axis.y.track.el.getBoundingClientRect(),(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&(a=r.isWithinBounds(r.axis.x.track.rect)),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&(o=r.isWithinBounds(r.axis.y.track.rect)),(a||o)&&(s.preventDefault(),s.stopPropagation(),s.type==="mousedown"&&(a&&(r.axis.x.scrollbar.rect=r.axis.x.scrollbar.el.getBoundingClientRect(),r.isWithinBounds(r.axis.x.scrollbar.rect)?r.onDragStart(s,"x"):r.onTrackClick(s,"x")),o&&(r.axis.y.scrollbar.rect=r.axis.y.scrollbar.el.getBoundingClientRect(),r.isWithinBounds(r.axis.y.scrollbar.rect)?r.onDragStart(s,"y"):r.onTrackClick(s,"y"))))},this.drag=function(s){var a,o=r.axis[r.draggedAxis].track,l=o.rect[r.axis[r.draggedAxis].sizeAttr],u=r.axis[r.draggedAxis].scrollbar,c=r.contentWrapperEl[r.axis[r.draggedAxis].scrollSizeAttr],f=parseInt(r.elStyles[r.axis[r.draggedAxis].sizeAttr],10);s.preventDefault(),s.stopPropagation(),r.draggedAxis==="y"?a=s.pageY:a=s.pageX;var h=a-o.rect[r.axis[r.draggedAxis].offsetAttr]-r.axis[r.draggedAxis].dragOffset,p=h/(l-u.size),m=p*(c-f);r.draggedAxis==="x"&&(m=r.isRtl&&t.getRtlHelpers().isRtlScrollbarInverted?m-(l+u.size):m,m=r.isRtl&&t.getRtlHelpers().isRtlScrollingInverted?-m:m),r.contentWrapperEl[r.axis[r.draggedAxis].scrollOffsetAttr]=m},this.onEndDrag=function(s){var a=jT(r.el),o=bf(r.el);s.preventDefault(),s.stopPropagation(),r.el.classList.remove(r.classNames.dragging),a.removeEventListener("mousemove",r.drag,!0),a.removeEventListener("mouseup",r.onEndDrag,!0),r.removePreventClickId=o.setTimeout(function(){a.removeEventListener("click",r.preventClick,!0),a.removeEventListener("dblclick",r.preventClick,!0),r.removePreventClickId=null})},this.preventClick=function(s){s.preventDefault(),s.stopPropagation()},this.el=n,this.minScrollbarWidth=20,this.options=Object.assign({},t.defaultOptions,i),this.classNames=Object.assign({},t.defaultOptions.classNames,this.options.classNames),this.axis={x:{scrollOffsetAttr:"scrollLeft",sizeAttr:"width",scrollSizeAttr:"scrollWidth",offsetSizeAttr:"offsetWidth",offsetAttr:"left",overflowAttr:"overflowX",dragOffset:0,isOverflowing:!0,isVisible:!1,forceVisible:!1,track:{},scrollbar:{}},y:{scrollOffsetAttr:"scrollTop",sizeAttr:"height",scrollSizeAttr:"scrollHeight",offsetSizeAttr:"offsetHeight",offsetAttr:"top",overflowAttr:"overflowY",dragOffset:0,isOverflowing:!0,isVisible:!1,forceVisible:!1,track:{},scrollbar:{}}},this.removePreventClickId=null,!t.instances.has(this.el)&&(this.recalculate=$$(this.recalculate.bind(this),64),this.onMouseMove=$$(this.onMouseMove.bind(this),64),this.hideScrollbars=V$(this.hideScrollbars.bind(this),this.options.timeout),this.onWindowResize=V$(this.onWindowResize.bind(this),64,{leading:!0}),t.getRtlHelpers=vBe(t.getRtlHelpers),this.init())}t.getRtlHelpers=function(){var i=document.createElement("div");i.innerHTML='<div class="hs-dummy-scrollbar-size"><div style="height: 200%; width: 200%; margin: 10px 0;"></div></div>';var r=i.firstElementChild;document.body.appendChild(r);var s=r.firstElementChild;r.scrollLeft=0;var a=t.getOffset(r),o=t.getOffset(s);r.scrollLeft=999;var l=t.getOffset(s);return{isRtlScrollingInverted:a.left!==o.left&&o.left-l.left!==0,isRtlScrollbarInverted:a.left!==o.left}},t.getOffset=function(i){var r=i.getBoundingClientRect(),s=jT(i),a=bf(i);return{top:r.top+(a.pageYOffset||s.documentElement.scrollTop),left
3865:r.left+(a.pageXOffset||s.documentElement.scrollLeft)}};var e=t.prototype;return e.init=function(){t.instances.set(this.el,this),Xb&&(this.initDOM(),this.setAccessibilityAttributes(),this.scrollbarWidth=this.getScrollbarWidth(),this.recalculate(),this.initListeners())},e.initDOM=function(){var i=this;if(Array.prototype.filter.call(this.el.children,function(a){return a.classList.contains(i.classNames.wrapper)}).length)this.wrapperEl=this.el.querySelector("."+this.classNames.wrapper),this.contentWrapperEl=this.options.scrollableNode||this.el.querySelector("."+this.classNames.contentWrapper),this.contentEl=this.options.contentNode||this.el.querySelector("."+this.classNames.contentEl),this.offsetEl=this.el.querySelector("."+this.classNames.offset),this.maskEl=this.el.querySelector("."+this.classNames.mask),this.placeholderEl=this.findChild(this.wrapperEl,"."+this.classNames.placeholder),this.heightAutoObserverWrapperEl=this.el.querySelector("."+this.classNames.heightAutoObserverWrapperEl),this.heightAutoObserverEl=this.el.querySelector("."+this.classNames.heightAutoObserverEl),this.axis.x.track.el=this.findChild(this.el,"."+this.classNames.track+"."+this.classNames.horizontal),this.axis.y.track.el=this.findChild(this.el,"."+this.classNames.track+"."+this.classNames.vertical);else{for(this.wrapperEl=document.createElement("div"),this.contentWrapperEl=document.createElement("div"),this.offsetEl=document.createElement("div"),this.maskEl=document.createElement("div"),this.contentEl=document.createElement("div"),this.placeholderEl=document.createElement("div"),this.heightAutoObserverWrapperEl=document.createElement("div"),this.heightAutoObserverEl=document.createElement("div"),this.wrapperEl.classList.add(this.classNames.wrapper),this.contentWrapperEl.classList.add(this.classNames.contentWrapper),this.offsetEl.classList.add(this.classNames.offset),this.maskEl.classList.add(this.classNames.mask),this.contentEl.classList.add(this.classNames.contentEl),this.placeholderEl.classList.add(this.classNames.placeholder),this.heightAutoObserverWrapperEl.classList.add(this.classNames.heightAutoObserverWrapperEl),this.heightAutoObserverEl.classList.add(this.classNames.heightAutoObserverEl);this.el.firstChild;)this.contentEl.appendChild(this.el.firstChild);this.contentWrapperEl.appendChild(this.contentEl),this.offsetEl.appendChild(this.contentWrapperEl),this.maskEl.appendChild(this.offsetEl),this.heightAutoObserverWrapperEl.appendChild(this.heightAutoObserverEl),this.wrapperEl.appendChild(this.heightAutoObserverWrapperEl),this.wrapperEl.appendChild(this.maskEl),this.wrapperEl.appendChild(this.placeholderEl),this.el.appendChild(this.wrapperEl)}if(!this.axis.x.track.el||!this.axis.y.track.el){var r=document.createElement("div"),s=document.createElement("div");r.classList.add(this.classNames.track),s.classList.add(this.classNames.scrollbar),r.appendChild(s),this.axis.x.track.el=r.cloneNode(!0),this.axis.x.track.el.classList.add(this.classNames.horizontal),this.axis.y.track.el=r.cloneNode(!0),this.axis.y.track.el.classList.add(this.classNames.vertical),this.el.appendChild(this.axis.x.track.el),this.el.appendChild(this.axis.y.track.el)}this.axis.x.scrollbar.el=this.axis.x.track.el.querySelector("."+this.classNames.scrollbar),this.axis.y.scrollbar.el=this.axis.y.track.el.querySelector("."+this.classNames.scrollbar),this.options.autoHide||(this.axis.x.scrollbar.el.classList.add(this.classNames.visible),this.axis.y.scrollbar.el.classList.add(this.classNames.visible)),this.el.setAttribute("data-simplebar","init")},e.setAccessibilityAttributes=function(){var i=this.options.ariaLabel||"scrollable content";this.contentWrapperEl.setAttribute("tabindex","0"),this.contentWrapperEl.setAttribute("role","region"),this.contentWrapperEl.setAttribute("aria-label",i)},e.initListeners=function(){var i=this,r=bf(this.el);this.options.autoHide&&this.el.addEventListener("mouseenter",this.onMouseEnter),["mousedown","click","dblclick"].forEach(function(l){i.el.addEventListener(l,i.onPointerEvent,!0)}),["touchstart","touchend","touchmove"].forEach(function(l){i.el.addEventListener(l,i.onPointerEvent,{capture:!0,passive:!0})}),this.el.addEventListener("mousemove",this.onMouseMove),this.el.addEventListener("mouseleave",this.onMouseLeave),this.contentWrapperEl.addEventListener("scroll",this.onScroll),r.addEventListener("resize",this.onWindowResize);var s=!1,a=null,o=r.ResizeObserver||UBe;this.resizeObserver=new o(function(){!s||a!==null||(a=r.requestAnimationFrame(function(){i.recalculate(),a=null}))}),this.resizeObserver.observe(this.el),this.resizeObserver.observe(this.contentEl),r.requestAnimationFrame(function(){s=!0}),this.mutationObserver=new r.MutationObserver(this.recalculate),this.mutationObserver.observe(this.contentEl,{childList:!0,subtree:!0,characterData:!0}
3865)},e.recalculate=function(){var i=bf(this.el);this.elStyles=i.getComputedStyle(this.el),this.isRtl=this.elStyles.direction==="rtl";var r=this.heightAutoObserverEl.offsetHeight<=1,s=this.heightAutoObserverEl.offsetWidth<=1,a=this.contentEl.offsetWidth,o=this.contentWrapperEl.offsetWidth,l=this.elStyles.overflowX,u=this.elStyles.overflowY;this.contentEl.style.padding=this.elStyles.paddingTop+" "+this.elStyles.paddingRight+" "+this.elStyles.paddingBottom+" "+this.elStyles.paddingLeft,this.wrapperEl.style.margin="-"+this.elStyles.paddingTop+" -"+this.elStyles.paddingRight+" -"+this.elStyles.paddingBottom+" -"+this.elStyles.paddingLeft;var c=this.contentEl.scrollHeight,f=this.contentEl.scrollWidth;this.contentWrapperEl.style.height=r?"auto":"100%",this.placeholderEl.style.width=s?a+"px":"auto",this.placeholderEl.style.height=c+"px";var h=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=f>a,this.axis.y.isOverflowing=c>h,this.axis.x.isOverflowing=l==="hidden"?!1:this.axis.x.isOverflowing,this.axis.y.isOverflowing=u==="hidden"?!1:this.axis.y.isOverflowing,this.axis.x.forceVisible=this.options.forceVisible==="x"||this.options.forceVisible===!0,this.axis.y.forceVisible=this.options.forceVisible==="y"||this.options.forceVisible===!0,this.hideNativeScrollbar();var p=this.axis.x.isOverflowing?this.scrollbarWidth:0,m=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&f>o-m,this.axis.y.isOverflowing=this.axis.y.isOverflowing&&c>h-p,this.axis.x.scrollbar.size=this.getScrollbarSize("x"),this.axis.y.scrollbar.size=this.getScrollbarSize("y"),this.axis.x.scrollbar.el.style.width=this.axis.x.scrollbar.size+"px",this.axis.y.scrollbar.el.style.height=this.axis.y.scrollbar.size+"px",this.positionScrollbar("x"),this.positionScrollbar("y"),this.toggleTrackVisibility("x"),this.toggleTrackVisibility("y")},e.getScrollbarSize=function(i){if(i===void 0&&(i="y"),!this.axis[i].isOverflowing)return 0;var r=this.contentEl[this.axis[i].scrollSizeAttr],s=this.axis[i].track.el[this.axis[i].offsetSizeAttr],a,o=s/r;return a=Math.max(~~(o*s),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(a=Math.min(a,this.options.scrollbarMaxSize)),a},e.positionScrollbar=function(i){if(i===void 0&&(i="y"),!!this.axis[i].isOverflowing){var r=this.contentWrapperEl[this.axis[i].scrollSizeAttr],s=this.axis[i].track.el[this.axis[i].offsetSizeAttr],a=parseInt(this.elStyles[this.axis[i].sizeAttr],10),o=this.axis[i].scrollbar,l=this.contentWrapperEl[this.axis[i].scrollOffsetAttr];l=i==="x"&&this.isRtl&&t.getRtlHelpers().isRtlScrollingInverted?-l:l;var u=l/(r-a),c=~~((s-o.size)*u);c=i==="x"&&this.isRtl&&t.getRtlHelpers().isRtlScrollbarInverted?c+(s-o.size):c,o.el.style.transform=i==="x"?"translate3d("+c+"px, 0, 0)":"translate3d(0, "+c+"px, 0)"}},e.toggleTrackVisibility=function(i){i===void 0&&(i="y");var r=this.axis[i].track.el,s=this.axis[i].scrollbar.el;this.axis[i].isOverflowing||this.axis[i].forceVisible?(r.style.visibility="visible",this.contentWrapperEl.style[this.axis[i].overflowAttr]="scroll"):(r.style.visibility="hidden",this.contentWrapperEl.style[this.axis[i].overflowAttr]="hidden"),this.axis[i].isOverflowing?s.style.display="block":s.style.display="none"},e.hideNativeScrollbar=function(){this.offsetEl.style[this.isRtl?"left":"right"]=this.axis.y.isOverflowing||this.axis.y.forceVisible?"-"+this.scrollbarWidth+"px":0,this.offsetEl.style.bottom=this.axis.x.isOverflowing||this.axis.x.forceVisible?"-"+this.scrollbarWidth+"px":0},e.onMouseMoveForAxis=function(i){i===void 0&&(i="y"),this.axis[i].track.rect=this.axis[i].track.el.getBoundingClientRect(),this.axis[i].scrollbar.rect=this.axis[i].scrollbar.el.getBoundingClientRect();var r=this.isWithinBounds(this.axis[i].scrollbar.rect);r?this.axis[i].scrollbar.el.classList.add(this.classNames.hover):this.axis[i].scrollbar.el.classList.remove(this.classNames.hover),this.isWithinBounds(this.axis[i].track.rect)?(this.showScrollbar(i),this.axis[i].track.el.classList.add(this.classNames.hover)):this.axis[i].track.el.classList.remove(this.classNames.hover)},e.onMouseLeaveForAxis=function(i){i===void 0&&(i="y"),this.axis[i].track.el.classList.remove(this.classNames.hover),this.axis[i].scrollbar.el.classList.remove(this.classNames.hover)},e.showScrollbar=function(i){i===void 0&&(i="y");var r=this.axis[i].scrollbar.el;this.axis[i].isVisible||(r.classList.add(this.classNames.visible),this.axis[i].isVisible=!0),this.options.autoHide&&this.hideScrollbars()},e.onDragStart=function(i,r){r===void 0&&(r="y");var s=jT(this.el),a=bf(this.el),o=this.axis[r].scrollbar,l=r==="y"?i.pageY:i.pageX;this.axis[r].dragOffset=l-o.rect[this.axis[r].offsetAttr],this.draggedAxis=r,this.el.classList.add(this.classNames.dragging),s.addEventListener("mousemove",this.drag,!0),s.addEventListener("mouseup",this.onEndDrag,!0),this.removePreventClickId===null?(s.addEventListener("click",this.preventClick,!0),s.addEventListener("dblclick",this.preventClick,!0)):(a.clearTimeout(this.removePreventClickId),this.removePreventClickId=null)},e.onTrackClick=function(i,r){var s=this;if(r===void 0&&(r="y"),!!this.options.clickOnTrack){var a=bf(this.el);this.axis[r].scrollbar.rect=this.axis[r].scrollbar.el.getBoundingClientRect();var o=this.axis[r].scrollbar,l=o.rect[this.axis[r].offsetAttr],u=parseInt(this.elStyles[this.axis[r].sizeAttr],10),c=this.contentWrapperEl[this.axis[r].scrollOffsetAttr],f=r==="y"?this.mouseY-l:this.mouseX-l,h=f<0?-1:1,p=h===-1?c-u:c+u,m=function y(){if(h===-1){if(c>p){var v;c-=s.options.clickOnTrackSpeed,s.contentWrapperEl.scrollTo((v={},v[s.axis[r].offsetAttr]=c,v)),a.requestAnimationFrame(y)}}else if(c<p){var _;c+=s.options.clickOnTrackSpeed,s.contentWrapperEl.scrollTo((_={},_[s.axis[r].offsetAttr]=c,_)),a.requestAnimationFrame(y)}};m()}},e.getContentElement=function(){return this.contentEl},e.getScrollElement=function(){return this.contentWrapperEl},e.getScrollbarWidth=function(){try{return getComputedStyle(this.contentWrapperEl,"::-webkit-scrollbar").display==="none"||"scrollbarWidth"in document.documentElement.style||"-ms-overflow-style"in document.documentElement.style?0:mz(this.el)}catch(i){return mz(this.el)}},e.removeListeners=function(){var i=this,r=bf(this.el);this.options.autoHide&&this.el.removeEventListener("mouseenter",this.onMouseEnter),["mousedown","click","dblclick"].forEach(function(s){i.el.removeEventListener(s,i.onPointerEvent,!0)}),["touchstart","touchend","touchmove"].forEach(function(s){i.el.removeEventListener(s,i.onPointerEvent,{capture:!0,passive:!0})}),this.el.removeEventListener("mousemove",this.onMouseMove),this.el.removeEventListener("mouseleave",this.onMouseLeave),this.contentWrapperEl&&this.contentWrapperEl.removeEventListener("scroll",this.onScroll),r.removeEventListener("resize",this.onWindowResize),this.mutationObserver&&this.mutationObserver.disconnect(),this.resizeObserver&&this.resizeObserver.disconnect(),this.recalculate.cancel(),this.onMouseMove.cancel(),this.hideScrollbars.cancel(),this.onWindowResize.cancel()},e.unMount=function(){this.removeListeners(),t.instances.delete(this.el)},e.isWithinBounds=function(i){return this.mouseX>=i.left&&this.mouseX<=i.left+i.width&&this.mouseY>=i.top&&this.mouseY<=i.top+i.height},e.findChild=function(i,r){var s=i.matches||i.webkitMatchesSelector||i.mozMatchesSelector||i.msMatchesSelector;return Array.prototype.filter.call(i.children,function(a){return s.call(a,r)})[0]},t}();
3865sr.defaultOptions={autoHide:!0,forceVisible:!1,clickOnTrack:!0,clickOnTrackSpeed:40,classNames:{contentEl:"simplebar-content",contentWrapper:"simplebar-content-wrapper",offset:"simplebar-offset",mask:"simplebar-mask",wrapper:"simplebar-wrapper",placeholder:"simplebar-placeholder",scrollbar:"simplebar-scrollbar",track:"simplebar-track",heightAutoObserverWrapperEl:"simplebar-height-auto-observer-wrapper",heightAutoObserverEl:"simplebar-height-auto-observer",visible:"simplebar-visible",horizontal:"simplebar-horizontal",vertical:"simplebar-vertical",hover:"simplebar-hover",dragging:"simplebar-dragging"},scrollbarMinSize:25,scrollbarMaxSize:0,timeout:1e3};sr.instances=new WeakMap;sr.initDOMLoadedElements=function(){document.removeEventListener("DOMContentLoaded",this.initDOMLoadedElements),window.removeEventListener("load",this.initDOMLoadedElements),Array.prototype.forEach.call(document.querySelectorAll("[data-simplebar]"),function(t){t.getAttribute("data-simplebar")!=="init"&&!sr.instances.has(t)&&new sr(t,SE(t.attributes))})};sr.removeObserver=function(){this.globalObserver.disconnect()};sr.initHtmlApi=function(){this.initDOMLoadedElements=this.initDOMLoadedElements.bind(this),typeof MutationObserver<"u"&&(this.globalObserver=new MutationObserver(sr.handleMutations),this.globalObserver.observe(document,{childList:!0,subtree:!0})),document.readyState==="complete"||document.readyState!=="loading"&&!document.documentElement.doScroll?window.setTimeout(this.initDOMLoadedElements):(document.addEventListener("DOMContentLoaded",this.initDOMLoadedElements),window.addEventListener("load",this.initDOMLoadedElements))};sr.handleMutations=function(t){t.forEach(function(e){Array.prototype.forEach.call(e.addedNodes,function(n){n.nodeType===1&&(n.hasAttribute("data-simplebar")?!sr.instances.has(n)&&document.documentElement.contains(n)&&new sr(n,SE(n.attributes)):Array.prototype.forEach.call(n.querySelectorAll("[data-simplebar]"),function(i){i.getAttribute("data-simplebar")!=="init"&&!sr.instances.has(i)&&document.documentElement.contains(i)&&new sr(i,SE(i.attributes))}))}),Array.prototype.forEach.call(e.removedNodes,function(n){n.nodeType===1&&(n.getAttribute("data-simplebar")==="init"?sr.instances.has(n)&&!document.documentElement.contains(n)&&sr.instances.get(n).unMount():Array.prototype.forEach.call(n.querySelectorAll('[data-simplebar="init"]'),function(i){sr.instances.has(i)&&!document.documentElement.contains(i)&&sr.instances.get(i).unMount()}))})})};sr.getOptions=SE;Xb&&sr.initHtmlApi();/*! @vimeo/player v2.18.0 | (c) 2022 Vimeo | MIT License | https://github.com/vimeo/player.js */function w9e(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function gz(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function C9e(t,e,n){return e&&gz(t.prototype,e),n&&gz(t,n),t}var Dee=typeof global<"u"&&{}.toString.call(global)==="[object global]";function _z(t,e){return t.indexOf(e.toLowerCase())===0?t:"".concat(e.toLowerCase()).concat(t.substr(0,1).toUpperCase()).concat(t.substr(1))}function A9e(t){return Boolean(t&&t.nodeType===1&&"nodeName"in t&&t.ownerDocument&&t.ownerDocument.defaultView)}function M9e(t){return!isNaN(parseFloat(t))&&isFinite(t)&&Math.floor(t)==t}function vp(t){return/^(https?:)?\/\/((player|www)\.)?vimeo\.com(?=$|\/)/.test(t)}function Pee(t){var e=/^https:\/\/player\.vimeo\.com\/video\/\d+/;return e.test(t)}function Oee(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=t.id,n=t.url,i=e||n;if(!i)throw new Error("An id or url must be passed, either in an options object or as a data-vimeo-id or data-vimeo-url attribute.");if(M9e(i))return"https://vimeo.com/".concat(i);if(vp(i))return i.replace("http:","https:");throw e?new TypeError("\u201C".concat(e,"\u201D is not a valid video id.")):new TypeError("\u201C".concat(i,"\u201D is not a vimeo.com url."))}var D9e=typeof Array.prototype.indexOf<"u",P9e=typeof window<"u"&&typeof window.postMessage<"u";if(!Dee&&(!D9e||!P9e))throw new Error("Sorry, the Vimeo Player API is not available in this browser.");var zm=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function O9e(t,e){return e={exports:{}},t(e,e.exports),e.exports}/*!
3866 * weakmap-polyfill v2.0.4 - ECMAScript6 WeakMap polyfill
3867 * https://github.com/polygonplanet/weakmap-polyfill
3868 * Copyright (c) 2015-2021 polygonplanet <[email protected]>
3869 * @license MIT
3870 */(function(t){if(t.WeakMap)return;var e=Object.prototype.hasOwnProperty,n=Object.defineProperty&&function(){try{return Object.defineProperty({},"x",{value:1}).x===1}catch(s){}}(),i=function(s,a,o){n?Object.defineProperty(s,a,{configurable:!0,writable:!0,value:o}):s[a]=o};t.WeakMap=function(){function s(){if(this===void 0)throw new TypeError("Constructor WeakMap requires 'new'");if(i(this,"_id",o("_WeakMap")),arguments.length>0)throw new TypeError("WeakMap iterable is not supported")}i(s.prototype,"delete",function(u){if(a(this,"delete"),!r(u))return!1;var c=u[this._id];return c&&c[0]===u?(delete u[this._id],!0):!1}),i(s.prototype,"get",function(u){if(a(this,"get"),!!r(u)){var c=u[this._id];if(c&&c[0]===u)return c[1]}}),i(s.prototype,"has",function(u){if(a(this,"has"),!r(u))return!1;var c=u[this._id];return!!(c&&c[0]===u)}
3870),i(s.prototype,"set",function(u,c){if(a(this,"set"),!r(u))throw new TypeError("Invalid value used as weak map key");var f=u[this._id];return f&&f[0]===u?(f[1]=c,this):(i(u,this._id,[u,c]),this)});function a(u,c){if(!r(u)||!e.call(u,"_id"))throw new TypeError(c+" method called on incompatible receiver "+typeof u)}function o(u){return u+"_"+l()+"."+l()}function l(){return Math.random().toString().substring(2)}return i(s,"_polyfill",!0),s}();function r(s){return Object(s)===s}})(typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:zm);var xf=O9e(function(t){/*! Native Promise Only
3871    v0.8.1 (c) Kyle Simpson
3872    MIT License: http://getify.mit-license.org
3873*/(function(n,i,r){i[n]=i[n]||r(),t.exports&&(t.exports=i[n])})("Promise",zm,function(){var n,i,r,s=Object.prototype.toString,a=typeof setImmediate<"u"?function(x){return setImmediate(x)}:setTimeout;try{Object.defineProperty({},"x",{}),n=function(x,T,E,C){return Object.defineProperty(x,T,{value:E,writable:!0,configurable:C!==!1})}}catch(b){n=function(T,E,C){return T[E]=C,T}}r=function(){var x,T,E;function C(D,R){this.fn=D,this.self=R,this.next=void 0}return{add:function(R,A){E=new C(R,A),T?T.next=E:x=E,T=E,E=void 0},drain:function(){var R=x;for(x=T=i=void 0;R;)R.fn.call(R.self),R=R.next}}}();function o(b,x){r.add(b,x),i||(i=a(r.drain))}function l(b){var x,T=typeof b;return b!=null&&(T=="object"||T=="function")&&(x=b.then),typeof x=="function"?x:!1}function u(){for(var b=0;b<this.chain.length;b++)c(this,this.state===1?this.chain[b].success:this.chain[b].failure,this.chain[b]);this.chain.length=0}function c(b,x,T){var E,C;try{x===!1?T.reject(b.msg):(x===!0?E=b.msg:E=x.call(void 0,b.msg),E===T.promise?T.reject(TypeError("Promise-chain cycle")):(C=l(E))?C.call(E,T.resolve,T.reject):T.resolve(E))}catch(D){T.reject(D)}}function f(b){var x,T=this;if(!T.triggered){T.triggered=!0,T.def&&(T=T.def);try{(x=l(b))?o(function(){var E=new m(T);try{x.call(b,function(){f.apply(E,arguments)},function(){h.apply(E,arguments)})}catch(C){h.call(E,C)}}):(T.msg=b,T.state=1,T.chain.length>0&&o(u,T))}catch(E){h.call(new m(T),E)}}}function h(b){var x=this;x.triggered||(x.triggered=!0,x.def&&(x=x.def),x.msg=b,x.state=2,x.chain.length>0&&o(u,x))}function p(b,x,T,E){for(var C=0;C<x.length;C++)(function(R){b.resolve(x[R]).then(function(k){T(R,k)},E)})(C)}function m(b){this.def=b,this.triggered=!1}function y(b){this.promise=b,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function v(b){if(typeof b!="function")throw TypeError("Not a function");if(this.__NPO__!==0)throw TypeError("Not a promise");this.__NPO__=1;var x=new y(this);this.then=function(E,C){var D={success:typeof E=="function"?E:!0,failure:typeof C=="function"?C:!1};return D.promise=new this.constructor(function(A,k){if(typeof A!="function"||typeof k!="function")throw TypeError("Not a function");D.resolve=A,D.reject=k}),x.chain.push(D),x.state!==0&&o(u,x),D.promise},this.catch=function(E){return this.then(void 0,E)};try{b.call(void 0,function(E){f.call(x,E)},function(E){h.call(x,E)})}catch(T){h.call(x,T)}}var _=n({},"constructor",v,!1);return v.prototype=_,n(_,"__NPO__",0,!1),n(v,"resolve",function(x){var T=this;return x&&typeof x=="object"&&x.__NPO__===1?x:new T(function(C,D){if(typeof C!="function"||typeof D!="function")throw TypeError("Not a function");C(x)})}),n(v,"reject",function(x){return new this(function(E,C){if(typeof E!="function"||typeof C!="function")throw TypeError("Not a function");C(x)})}),n(v,"all",function(x){var T=this;return s.call(x)!="[object Array]"?T.reject(TypeError("Not an array")):x.length===0?T.resolve([]):new T(function(C,D){if(typeof C!="function"||typeof D!="function")throw TypeError("Not a function");var R=x.length,A=Array(R),k=0;p(T,x,function(N,U){A[N]=U,++k===R&&C(A)},D)})}),n(v,"race",function(x){var T=this;return s.call(x)!="[object Array]"?T.reject(TypeError("Not an array")):new T(function(C,D){if(typeof C!="function"||typeof D!="function")throw TypeError("Not a function");p(T,x,function(A,k){C(k)},D)})}),v})}),wc=new WeakMap;function tv(t,e,n){var i=wc.get(t.element)||{};e in i||(i[e]=[]),i[e].push(n),wc.set(t.element,i)}function TE(t,e){var n=wc.get(t.element)||{};return n[e]||[]}function EE(t,e,n){var i=wc.get(t.element)||{};if(!i[e])return!0;
3873if(!n)return i[e]=[],wc.set(t.element,i),!0;var r=i[e].indexOf(n);return r!==-1&&i[e].splice(r,1),wc.set(t.element,i),i[e]&&i[e].length===0}function R9e(t,e){var n=TE(t,e);if(n.length<1)return!1;var i=n.shift();return EE(t,e,i),i}function k9e(t,e){var n=wc.get(t);wc.set(e,n),wc.delete(t)}function mC(t){if(typeof t=="string")try{t=JSON.parse(t)}catch(e){return console.warn(e),{}}return t}function nv(t,e,n){if(!(!t.element.contentWindow||!t.element.contentWindow.postMessage)){var i={method:e};n!==void 0&&(i.value=n);var r=parseFloat(navigator.userAgent.toLowerCase().replace(/^.*msie (\d+).*$/,"$1"));r>=8&&r<10&&(i=JSON.stringify(i)),t.element.contentWindow.postMessage(i,t.origin)}}function I9e(t,e){e=mC(e);var n=[],i;if(e.event){if(e.event==="error"){var r=TE(t,e.data.method);r.forEach(function(a){var o=new Error(e.data.message);o.name=e.data.name,a.reject(o),EE(t,e.data.method,a)})}n=TE(t,"event:".concat(e.event)),i=e.data}else if(e.method){var s=R9e(t,e.method);s&&(n.push(s),i=e.value)}n.forEach(function(a){try{if(typeof a=="function"){a.call(t,i);return}a.resolve(i)}catch(o){}})}var L9e=["autopause","autoplay","background","byline","color","controls","dnt","height","id","interactive_params","keyboard","loop","maxheight","maxwidth","muted","playsinline","portrait","responsive","speed","texttrack","title","transparent","url","width"];function Ree(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return L9e.reduce(function(n,i){var r=t.getAttribute("data-vimeo-".concat(i));return(r||r==="")&&(n[i]=r===""?1:r),n},e)}function iF(t,e){var n=t.html;if(!e)throw new TypeError("An element must be provided");if(e.getAttribute("data-vimeo-initialized")!==null)return e.querySelector("iframe");var i=document.createElement("div");return i.innerHTML=n,e.appendChild(i.firstChild),e.setAttribute("data-vimeo-initialized","true"),e.querySelector("iframe")}function kee(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return new Promise(function(i,r){if(!vp(t))throw new TypeError("\u201C".concat(t,"\u201D is not a vimeo.com url."));var s="https://vimeo.com/api/oembed.json?url=".concat(encodeURIComponent(t));for(var a in e)e.hasOwnProperty(a)&&(s+="&".concat(a,"=").concat(encodeURIComponent(e[a])));var o="XDomainRequest"in window?new XDomainRequest:new XMLHttpRequest;o.open("GET",s,!0),o.onload=function(){if(o.status===404){r(new Error("\u201C".concat(t,"\u201D was not found.")));return}if(o.status===403){r(new Error("\u201C".concat(t,"\u201D is not embeddable.")));return}try{var l=JSON.parse(o.responseText);if(l.domain_status_code===403){iF(l,n),r(new Error("\u201C".concat(t,"\u201D is not embeddable.")));return}i(l)}catch(u){r(u)}},o.onerror=function(){var l=o.status?" (".concat(o.status,")"):"";r(new Error("There was an error fetching the embed code from Vimeo".concat(l,".")))},o.send()})}function F9e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document,e=[].slice.call(t.querySelectorAll("[data-vimeo-id], [data-vimeo-url]")),n=function(r){"console"in window&&console.error&&console.error("There was an error creating an embed: ".concat(r))};e.forEach(function(i){try{if(i.getAttribute("data-vimeo-defer")!==null)return;var r=Ree(i),s=Oee(r);kee(s,r,i).then(function(a){return iF(a,i)}).catch(n)}catch(a){n(a)}})}function N9e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document;if(!window.VimeoPlayerResizeEmbeds_){window.VimeoPlayerResizeEmbeds_=!0;var e=function(i){if(!!vp(i.origin)&&!(!i.data||i.data.event!=="spacechange")){for(var r=t.querySelectorAll("iframe"),s=0;s<r.length;s++)if(r[s].contentWindow===i.source){var a=r[s].parentElement;a.style.paddingBottom="".concat(i.data.data[0].bottom,"px");break}}};window.addEventListener("message",e)}}function B9e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document;if(!window.VimeoSeoMetadataAppended){window.VimeoSeoMetadataAppended=!0;var e=function(i){if(!!vp(i.origin)){var r=mC(i.data);if(!(!r||r.event!=="ready"))for(var s=t.querySelectorAll("iframe"),a=0;a<s.length;a++){var o=s[a],l=o.contentWindow===i.source;if(Pee(o.src)&&l){var u=new Iee(o);u.callMethod("appendVideoMetadata",window.location.href)}}}};window.addEventListener("message",e)}}function U9e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document;if(!window.VimeoCheckedUrlTimeParam){window.VimeoCheckedUrlTimeParam
3873=!0;var e=function(r){"console"in window&&console.error&&console.error("There was an error getting video Id: ".concat(r))},n=function(r){if(!!vp(r.origin)){var s=mC(r.data);if(!(!s||s.event!=="ready"))for(var a=t.querySelectorAll("iframe"),o=0;o<a.length;o++){var l=a[o],u=l.contentWindow===r.source;Pee(l.src)&&u&&function(){var c=new Iee(l);c.getVideoId().then(function(f){var h=new RegExp("[?&]vimeo_t_".concat(f,"=([^&#]*)")).exec(window.location.href);if(h&&h[1]){var p=decodeURI(h[1]);c.setCurrentTime(p)}}).catch(e)}()}}};window.addEventListener("message",n)}}function $9e(){var t=function(){for(var i,r=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],s=0,a=r.length,o={};s<a;s++)if(i=r[s],i&&i[1]in document){for(s=0;s<i.length;s++)o[r[0][s]]=i[s];return o}return!1}(),e={fullscreenchange:t.fullscreenchange,fullscreenerror:t.fullscreenerror},n={request:function(r){return new Promise(function(s,a){var o=function u(){n.off("fullscreenchange",u),s()};n.on("fullscreenchange",o),r=r||document.documentElement;var l=r[t.requestFullscreen]();l instanceof Promise&&l.then(o).catch(a)})},exit:function(){return new Promise(function(r,s){if(!n.isFullscreen){r();return}var a=function l(){n.off("fullscreenchange",l),r()};n.on("fullscreenchange",a);var o=document[t.exitFullscreen]();o instanceof Promise&&o.then(a).catch(s)})},on:function(r,s){var a=e[r];a&&document.addEventListener(a,s)},off:function(r,s){var a=e[r];a&&document.removeEventListener(a,s)}};return Object.defineProperties(n,{isFullscreen:{get:function(){return Boolean(document[t.fullscreenElement])}},element:{enumerable:!0,get:function(){return document[t.fullscreenElement]}},isEnabled:{enumerable:!0,get:function(){return Boolean(document[t.fullscreenEnabled])}}}),n}var $0=new WeakMap,F3=new WeakMap,$s={},Iee=function(){function t(e){var n=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(w9e(this,t),window.jQuery&&e instanceof jQuery&&(e.length>1&&window.console&&console.warn&&console.warn("A jQuery object with multiple elements was passed, using the first element."),e=e[0]),typeof document<"u"&&typeof e=="string"&&(e=document.getElementById(e)),!A9e(e))throw new TypeError("You must pass either a valid element or a valid id.");if(e.nodeName!=="IFRAME"){var r=e.querySelector("iframe");r&&(e=r)}if(e.nodeName==="IFRAME"&&!vp(e.getAttribute("src")||""))throw new Error("The player element passed isn\u2019t a Vimeo embed.");if($0.has(e))return $0.get(e);this._window=e.ownerDocument.defaultView,this.element=e,this.origin="*";var s=new xf(function(o,l){if(n._onMessage=function(f){if(!(!vp(f.origin)||n.element.contentWindow!==f.source)){n.origin==="*"&&(n.origin=f.origin);var h=mC(f.data),p=h&&h.event==="error",m=p&&h.data&&h.data.method==="ready";if(m){var y=new Error(h.data.message);y.name=h.data.name,l(y);return}var v=h&&h.event==="ready",_=h&&h.method==="ping";if(v||_){n.element.setAttribute("data-ready","true"),o();return}I9e(n,h)}},n._window.addEventListener("message",n._onMessage),n.element.nodeName!=="IFRAME"){var u=Ree(e,i),c=Oee(u);kee(c,u,e).then(function(f){var h=iF(f,e);return n.element=h,n._originalElement=e,k9e(e,h),$0.set(n.element,n),f}).catch(l)}});if(F3.set(this,s),$0.set(this.element,this),this.element.nodeName==="IFRAME"&&nv(this,"ping"),$s.isEnabled){var a=function(){return $s.exit()};this.fullscreenchangeHandler=function(){$s.isFullscreen?tv(n,"event:exitFullscreen",a):EE(n,"event:exitFullscreen",a),n.ready().then(function(){nv(n,"fullscreenchange",$s.isFullscreen)})},$s.on("fullscreenchange",this.fullscreenchangeHandler)}return this}return C9e(t,[{key:"callMethod",value:function(n){var i=this,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return new xf(function(s,a){return i.ready().then(function(){tv(i,n,{resolve:s,reject:a}),nv(i,n,r)}).catch(a)})}},{key:"get",value:function(n){var i=this;return new xf(function(r,s){return n=_z(n,"get"),i.ready().then(function(){tv(i,n,{resolve:r,reject:s}),nv(i,n)}).catch(s)})}},{key:"set",value:function(n,i){var r=this;return new xf(function(s,a){if(n=_z(n,"set"),i==null)throw new TypeError("There must be a value to set.");return r.ready().then(function(){tv(r,n,{resolve:s,reject:a}),nv(r,n,i)}).catch(a)})}}
3873,{key:"on",value:function(n,i){if(!n)throw new TypeError("You must pass an event name.");if(!i)throw new TypeError("You must pass a callback function.");if(typeof i!="function")throw new TypeError("The callback must be a function.");var r=TE(this,"event:".concat(n));r.length===0&&this.callMethod("addEventListener",n).catch(function(){}),tv(this,"event:".concat(n),i)}},{key:"off",value:function(n,i){if(!n)throw new TypeError("You must pass an event name.");if(i&&typeof i!="function")throw new TypeError("The callback must be a function.");var r=EE(this,"event:".concat(n),i);r&&this.callMethod("removeEventListener",n).catch(function(s){})}},{key:"loadVideo",value:function(n){return this.callMethod("loadVideo",n)}},{key:"ready",value:function(){var n=F3.get(this)||new xf(function(i,r){r(new Error("Unknown player. Probably unloaded."))});return xf.resolve(n)}},{key:"addCuePoint",value:function(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.callMethod("addCuePoint",{time:n,data:i})}},{key:"removeCuePoint",value:function(n){return this.callMethod("removeCuePoint",n)}},{key:"enableTextTrack",value:function(n,i){if(!n)throw new TypeError("You must pass a language.");return this.callMethod("enableTextTrack",{language:n,kind:i})}},{key:"disableTextTrack",value:function(){return this.callMethod("disableTextTrack")}},{key:"pause",value:function(){return this.callMethod("pause")}},{key:"play",value:function(){return this.callMethod("play")}},{key:"requestFullscreen",value:function(){return $s.isEnabled?$s.request(this.element):this.callMethod("requestFullscreen")}},{key:"exitFullscreen",value:function(){return $s.isEnabled?$s.exit():this.callMethod("exitFullscreen")}},{key:"getFullscreen",value:function(){return $s.isEnabled?xf.resolve($s.isFullscreen):this.get("fullscreen")}},{key:"requestPictureInPicture",value:function(){return this.callMethod("requestPictureInPicture")}},{key:"exitPictureInPicture",value:function(){return this.callMethod("exitPictureInPicture")}},{key:"getPictureInPicture",value:function(){return this.get("pictureInPicture")}},{key:"unload",value:function(){return this.callMethod("unload")}},{key:"destroy",value:function(){var n=this;return new xf(function(i){if(F3.delete(n),$0.delete(n.element),n._originalElement&&($0.delete(n._originalElement),n._originalElement.removeAttribute("data-vimeo-initialized")),n.element&&n.element.nodeName==="IFRAME"&&n.element.parentNode&&(n.element.parentNode.parentNode&&n._originalElement&&n._originalElement!==n.element.parentNode?n.element.parentNode.parentNode.removeChild(n.element.parentNode):n.element.parentNode.removeChild(n.element)),n.element&&n.element.nodeName==="DIV"&&n.element.parentNode){n.element.removeAttribute("data-vimeo-initialized");var r=n.element.querySelector("iframe");r&&r.parentNode&&(r.parentNode.parentNode&&n._originalElement&&n._originalElement!==r.parentNode?r.parentNode.parentNode.removeChild(r.parentNode):r.parentNode.removeChild(r))}n._window.removeEventListener("message",n._onMessage),$s.isEnabled&&$s.off("fullscreenchange",n.fullscreenchangeHandler),i()})}},{key:"getAutopause",value:function(){return this.get("autopause")}},{key:"setAutopause",value:function(n){return this.set("autopause",n)}},{key:"getBuffered",value:function(){return this.get("buffered")}},{key:"getCameraProps",value:function(){return this.get("cameraProps")}},{key:"setCameraProps",value:function(n){return this.set("cameraProps",n)}},{key:"getChapters",value:function(){return this.get("chapters")}},{key:"getCurrentChapter",value:function(){return this.get("currentChapter")}},{key:"getColor",value:function(){return this.get("color")}},{key:"setColor",value:function(n){return this.set("color",n)}},{key:"getCuePoints",value:function(){return this.get("cuePoints")}},{key:"getCurrentTime",value:function(){return this.get("currentTime")}},{key:"setCurrentTime",value:function(n){return this.set("currentTime",n)}},{key:"getDuration",value:function(){return this.get("duration")}},{key:"getEnded",value:function(){return this.get("ended")}},{key:"getLoop",value:function(){return this.get("loop")}},{key:"setLoop",value:function(n){return this.set("loop",n)}},{key:"setMuted",value:function(n){return this.set("muted",n)}},{key:"getMuted",value:function(){return this.get("muted")}},{key:"getPaused",value:function(){return this.get("paused")}},{key:"getPlaybackRate",value:function(){return this.get("playbackRate")}},{key:"setPlaybackRate",value:function(n){return this.set("playbackRate",n)}},{key:"getPlayed",value:function(){return this.get("played")}},{key:"getQualities",value:function(){return this.get("qualities")}},{key:"getQuality",value:function(){return this.get("quality")}
3873},{key:"setQuality",value:function(n){return this.set("quality",n)}},{key:"getSeekable",value:function(){return this.get("seekable")}},{key:"getSeeking",value:function(){return this.get("seeking")}},{key:"getTextTracks",value:function(){return this.get("textTracks")}},{key:"getVideoEmbedCode",value:function(){return this.get("videoEmbedCode")}},{key:"getVideoId",value:function(){return this.get("videoId")}},{key:"getVideoTitle",value:function(){return this.get("videoTitle")}},{key:"getVideoWidth",value:function(){return this.get("videoWidth")}},{key:"getVideoHeight",value:function(){return this.get("videoHeight")}},{key:"getVideoUrl",value:function(){return this.get("videoUrl")}},{key:"getVolume",value:function(){return this.get("volume")}},{key:"setVolume",value:function(n){return this.set("volume",n)}}]),t}();Dee||($s=$9e(),F9e(),N9e(),B9e(),U9e());var kR={exports:{}},Lee;/**
3874* @link https://github.com/gajus/sister for the canonical source repository
3875* @license https://github.com/gajus/sister/blob/master/LICENSE BSD 3-Clause
3876*/Lee=function(){var t={},e={};return t.on=function(n,i){var r={name:n,handler:i};return e[n]=e[n]||[],e[n].unshift(r),r},t.off=function(n){var i=e[n.name].indexOf(n);i!==-1&&e[n.name].splice(i,1)},t.trigger=function(n,i){var r=e[n],s;if(r)for(s=r.length;s--;)r[s].handler(i)},t};var z9e=Lee,IR={exports:{}},H9e=function(e,n,i){var r=document.head||document.getElementsByTagName("head")[0],s=document.createElement("script");typeof n=="function"&&(i=n,n={}),n=n||{},i=i||function(){},s.type=n.type||"text/javascript",s.charset=n.charset||"utf8",s.async="async"in n?!!n.async:!0,s.src=e,n.attrs&&V9e(s,n.attrs),n.text&&(s.text=""+n.text);var a="onload"in s?vz:W9e;a(s,i),s.onload||vz(s,i),r.appendChild(s)};function V9e(t,e){for(var n in e)t.setAttribute(n,e[n])}function vz(t,e){t.onload=function(){this.onerror=this.onload=null,e(null,t)},t.onerror=function(){this.onerror=this.onload=null,e(new Error("Failed to load "+this.src),t)}}function W9e(t,e){t.onreadystatechange=function(){this.readyState!="complete"&&this.readyState!="loaded"||(this.onreadystatechange=null,e(null,t))}}(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var n=H9e,i=r(n);function r(s){return s&&s.__esModule?s:{default:s}}e.default=function(s){var a=new Promise(function(o){if(window.YT&&window.YT.Player&&window.YT.Player instanceof Function){o(window.YT);return}else{var l=window.location.protocol==="http:"?"http:":"https:";(0,i.default)(l+"//www.youtube.com/iframe_api",function(c){c&&s.trigger("error",c)})}var u=window.onYouTubeIframeAPIReady;window.onYouTubeIframeAPIReady=function(){u&&u(),o(window.YT)}});return a},t.exports=e.default})(IR,IR.exports);var LR={exports:{}},FR={exports:{}},NR={exports:{}},gb=1e3,_b=gb*60,vb=_b*60,yb=vb*24,G9e=yb*365.25,j9e=function(t,e){e=e||{};var n=typeof t;if(n==="string"&&t.length>0)return q9e(t);if(n==="number"&&isNaN(t)===!1)return e.long?Y9e(t):X9e(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function q9e(t){if(t=String(t),!(t.length>100)){var e=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(t);if(!!e){var n=parseFloat(e[1]),i=(e[2]||"ms").toLowerCase();switch(i){case"years":case"year":case"yrs":case"yr":case"y":return n*G9e;case"days":case"day":case"d":return n*yb;case"hours":case"hour":case"hrs":case"hr":case"h":return n*vb;case"minutes":case"minute":case"mins":case"min":case"m":return n*_b;case"seconds":case"second":case"secs":case"sec":case"s":return n*gb;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}}}function X9e(t){return t>=yb?Math.round(t/yb)+"d":t>=vb?Math.round(t/vb)+"h":t>=_b?Math.round(t/_b)+"m":t>=gb?Math.round(t/gb)+"s":t+"ms"}function Y9e(t){return jS(t,yb,"day")||jS(t,vb,"hour")||jS(t,_b,"minute")||jS(t,gb,"second")||t+" ms"}function jS(t,e,n){if(!(t<e))return t<e*1.5?Math.floor(t/e)+" "+n:Math.ceil(t/e)+" "+n+"s"}(function(t,e){e=t.exports=r.debug=r.default=r,e.coerce=l,e.disable=a,e.enable=s,e.enabled=o,e.humanize=j9e,e.names=[],e.skips=[],e.formatters={};var n;function i(u){var c=0,f;for(f in u)c=(c<<5)-c+u.charCodeAt(f),c|=0;return e.colors[Math.abs(c)%e.colors.length]}function r(u){function c(){if(!!c.enabled){var f=c,h=+new Date,p=h-(n||h);f.diff=p,f.prev=n,f.curr=h,n=h;for(var m=new Array(arguments.length),y=0;y<m.length;y++)m[y]=arguments[y];
3876m[0]=e.coerce(m[0]),typeof m[0]!="string"&&m.unshift("%O");var v=0;m[0]=m[0].replace(/%([a-zA-Z%])/g,function(b,x){if(b==="%%")return b;v++;var T=e.formatters[x];if(typeof T=="function"){var E=m[v];b=T.call(f,E),m.splice(v,1),v--}return b}),e.formatArgs.call(f,m);var _=c.log||e.log||console.log.bind(console);_.apply(f,m)}}return c.namespace=u,c.enabled=e.enabled(u),c.useColors=e.useColors(),c.color=i(u),typeof e.init=="function"&&e.init(c),c}function s(u){e.save(u),e.names=[],e.skips=[];for(var c=(typeof u=="string"?u:"").split(/[\s,]+/),f=c.length,h=0;h<f;h++)!c[h]||(u=c[h].replace(/\*/g,".*?"),u[0]==="-"?e.skips.push(new RegExp("^"+u.substr(1)+"$")):e.names.push(new RegExp("^"+u+"$")))}function a(){e.enable("")}function o(u){var c,f;for(c=0,f=e.skips.length;c<f;c++)if(e.skips[c].test(u))return!1;for(c=0,f=e.names.length;c<f;c++)if(e.names[c].test(u))return!0;return!1}function l(u){return u instanceof Error?u.stack||u.message:u}})(NR,NR.exports);(function(t,e){e=t.exports=NR.exports,e.log=r,e.formatArgs=i,e.save=s,e.load=a,e.useColors=n,e.storage=typeof chrome<"u"&&typeof chrome.storage<"u"?chrome.storage.local:o(),e.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"];function n(){return typeof window<"u"&&window.process&&window.process.type==="renderer"?!0:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}e.formatters.j=function(l){try{return JSON.stringify(l)}catch(u){return"[UnexpectedJSONParseError]: "+u.message}};function i(l){var u=this.useColors;if(l[0]=(u?"%c":"")+this.namespace+(u?" %c":" ")+l[0]+(u?"%c ":" ")+"+"+e.humanize(this.diff),!!u){var c="color: "+this.color;l.splice(1,0,c,"color: inherit");var f=0,h=0;l[0].replace(/%[a-zA-Z%]/g,function(p){p!=="%%"&&(f++,p==="%c"&&(h=f))}),l.splice(h,0,c)}}function r(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function s(l){try{l==null?e.storage.removeItem("debug"):e.storage.debug=l}catch(u){}}function a(){var l;try{l=e.storage.debug}catch(u){}return!l&&typeof process<"u"&&"env"in process&&(l={}.DEBUG),l}e.enable(a());function o(){try{return window.localStorage}catch(l){}}})(FR,FR.exports);var BR={exports:{}};(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=["cueVideoById","loadVideoById","cueVideoByUrl","loadVideoByUrl","playVideo","pauseVideo","stopVideo","getVideoLoadedFraction","cuePlaylist","loadPlaylist","nextVideo","previousVideo","playVideoAt","setShuffle","setLoop","getPlaylist","getPlaylistIndex","setOption","mute","unMute","isMuted","
3876setVolume","getVolume","seekTo","getPlayerState","getPlaybackRate","setPlaybackRate","getAvailablePlaybackRates","getPlaybackQuality","setPlaybackQuality","getAvailableQualityLevels","getCurrentTime","getDuration","removeEventListener","getVideoUrl","getVideoEmbedCode","getOptions","getOption","addEventListener","destroy","setSize","getIframe"],t.exports=e.default})(BR,BR.exports);var UR={exports:{}};(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=["ready","stateChange","playbackQualityChange","playbackRateChange","error","apiChange","volumeChange"],t.exports=e.default})(UR,UR.exports);var $R={exports:{}},zR={exports:{}};(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default={BUFFERING:3,ENDED:0,PAUSED:2,PLAYING:1,UNSTARTED:-1,VIDEO_CUED:5},t.exports=e.default})(zR,zR.exports);(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var n=zR.exports,i=r(n);function r(s){return s&&s.__esModule?s:{default:s}}e.default={pauseVideo:{acceptableStates:[i.default.ENDED,i.default.PAUSED],stateChangeRequired:!1},playVideo:{acceptableStates:[i.default.ENDED,i.default.PLAYING],stateChangeRequired:!1},seekTo:{acceptableStates:[i.default.ENDED,i.default.PLAYING,i.default.PAUSED],stateChangeRequired:!0,timeout:3e3}},t.exports=e.default})($R,$R.exports);(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var n=FR.exports,i=c(n),r=BR.exports,s=c(r),a=UR.exports,o=c(a),l=$R.exports,u=c(l);function c(p){return p&&p.__esModule?p:{default:p}}var f=(0,i.default)("youtube-player"),h={};h.proxyEvents=function(p){var m={},y=function(D){var R="on"+D.slice(0,1).toUpperCase()+D.slice(1);m[R]=function(A){f('event "%s"',R,A),p.trigger(D,A)}},v=!0,_=!1,b=void 0;try{for(var x=o.default[Symbol.iterator](),T;!(v=(T=x.next()).done);v=!0){var E=T.value;y(E)}}catch(C){_=!0,b=C}finally{try{!v&&x.return&&x.return()}finally{if(_)throw b}}return m},h.promisifyPlayer=function(p){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,y={},v=function(R){m&&u.default[R]?y[R]=function(){for(var A=arguments.length,k=Array(A),F=0;F<A;F++)k[F]=arguments[F];return p.then(function(N){var U=u.default[R],$=N.getPlayerState(),G=N[R].apply(N,k);return U.stateChangeRequired||Array.isArray(U.acceptableStates)&&U.acceptableStates.indexOf($)===-1?new Promise(function(Y){var Q=function re(){var he=N.getPlayerState(),X=void 0;typeof U.timeout=="number"&&(X=setTimeout(function(){N.removeEventListener("onStateChange",re),Y()},U.timeout)),Array.isArray(U.acceptableStates)&&U.acceptableStates.indexOf(he)!==-1&&(N.removeEventListener("onStateChange",re),clearTimeout(X),Y())};N.addEventListener("onStateChange",Q)}).then(function(){return G}):G})}:y[R]=function(){for(var A=arguments.length,k=Array(A),F=0;F<A;F++)k[F]=arguments[F];return p.then(function(N){return N[R].apply(N,k)})}},_=!0,b=!1,x=void 0;try{for(var T=s.default[Symbol.iterator](),E;!(_=(E=T.next()).done);_=!0){var C=E.value;v(C)}}catch(D){b=!0,x=D}finally{try{!_&&T.return&&T.return()}finally{if(b)throw x}}return y},e.default=h,t.exports=e.default})(LR,LR.exports);(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(f){return typeof f}:function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f},i=z9e,r=u(i),s=IR.exports,a=u(s),o=LR.exports,l=u(o);function u(f){return f&&f.__esModule?f:{default:f}}var c=void 0;e.default=function(f){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,m=(0,r.default)();if(c||(c=(0,a.default)(m)),h.events)throw new Error("Event handlers cannot be overwritten.");if(typeof f=="string"&&!document.getElementById(f))throw new Error('Element "'+f+'" does not exist.');h.events=l.default.proxyEvents(m);var y=new Promise(function(_){if((typeof f>"u"?"undefined":n(f))==="object"&&f.playVideo instanceof Function){var b=f;_(b)}else c.then(function(x){var T=new x.Player(f,h);return m.on("ready",function(){_(T)}),null})}),v=l.default.promisifyPlayer(y,p);return v.on=m.on,v.off=m.off,v},t.exports=e.default}
vendor: 4,738 bytes, lines 3876-3881
3876)(kR,kR.exports);const xWe=FI(kR.exports);/*!
3877 * Chart.js v3.9.1
3878 * https://www.chartjs.org
3879 * (c) 2022 Chart.js Contributors
3880 * Released under the MIT License
3881 */function Ku(){}const K9e=function(){let t=0;return function(){return t++}}();function Cn(t){return t===null||typeof t>"u"}function pi(t){if(Array.isArray&&Array.isArray(t))return!0;const e=Object.prototype.toString.call(t);return e.slice(0,7)==="[object"&&e.slice(-6)==="Array]"}function Dn(t){return t!==null&&Object.prototype.toString.call(t)==="[object Object]"}const Ur=t=>(typeof t=="number"||t instanceof Number)&&isFinite(+t);function _o(t,e){return Ur(t)?t:e}function nn(t,e){return typeof t>"u"?e:t}const Z9e=(t,e)=>typeof t=="string"&&t.endsWith("%")?parseFloat(t)/100:t/e,Fee=(t,e)=>typeof t=="string"&&t.endsWith("%")?parseFloat(t)/100*e:+t;function Yn(t,e,n){if(t&&typeof t.call=="function")return t.apply(n,e)}function Bn(t,e,n,i){let r,s,a;if(pi(t))if(s=t.length,i)for(r=s-1;r>=0;r--)e.call(n,t[r],r);else for(r=0;r<s;r++)e.call(n,t[r],r);else if(Dn(t))for(a=Object.keys(t),s=a.length,r=0;r<s;r++)e.call(n,t[a[r]],a[r])}function wE(t,e){let n,i,r,s;if(!t||!e||t.length!==e.length)return!1;for(n=0,i=t.length;n<i;++n)if(r=t[n],s=e[n],r.datasetIndex!==s.datasetIndex||r.index!==s.index)return!1;return!0}function CE(t){if(pi(t))return t.map(CE);if(Dn(t)){const e=Object.create(null),n=Object.keys(t),i=n.length;let r=0;for(;r<i;++r)e[n[r]]=CE(t[n[r]]);return e}return t}function Nee(t){return["__proto__","prototype","constructor"].indexOf(t)===-1}function Q9e(t,e,n,i){if(!Nee(t))return;const r=e[t],s=n[t];Dn(r)&&Dn(s)?vu(r,s,i):e[t]=CE(s)}function vu(t,e,n){const i=pi(e)?e:[e],r=i.length;if(!Dn(t))return t;n=n||{};const s=n.merger||Q9e;for(let a=0;a<r;++a){if(e=i[a],!Dn(e))continue;const o=Object.keys(e);for(let l=0,u=o.length;l<u;++l)s(o[l],t,e,n)}return t}function py(t,e){return vu(t,e,{merger:J9e})}function J9e(t,e,n){if(!Nee(t))return;const i=e[t],r=n[t];Dn(i)&&Dn(r)?py(i,r):Object.prototype.hasOwnProperty.call(e,t)||(e[t]=CE(r))}const yz={"":t=>t,x:t=>t.x,y:t=>t.y};function bd(t,e){return(yz[e]||(yz[e]=e7e(e)))(t)}function e7e(t){const e=t7e(t);return n=>{for(const i of e){if(i==="")break;n=n&&n[i]}return n}}function t7e(t){const e=t.split("."),n=[];let i="";for(const r of e)i+=r,i.endsWith("\\")?i=i.slice(0,-1)+".":(n.push(i),i="");return n}function rF(t){return t.charAt(0).toUpperCase()+t.slice(1)}const Lo=t=>typeof t<"u",xd=t=>typeof t=="function",bz=(t,e)=>{if(t.size!==e.size)return!1;for(const n of t)if(!e.has(n))return!1;return!0};function n7e(t){return t.type==="mouseup"||t.type==="click"||t.type==="contextmenu"}const Ti=Math.PI,ei=2*Ti,i7e=ei+Ti,AE=Number.POSITIVE_INFINITY,r7e=Ti/180,Ui=Ti/2,iv=Ti/4,xz=Ti*2/3,To=Math.log10,uu=Math.sign;function Sz(t){const e=Math.round(t);t=my(t,e,t/1e3)?e:t;const n=Math.pow(10,Math.floor(To(t))),i=t/n;return(i<=1?1:i<=2?2:i<=5?5:10)*n}function s7e(t){const e=[],n=Math.sqrt(t);let i;for(i=1;i<n;i++)t%i===0&&(e.push(i),e.push(t/i));return n===(n|0)&&e.push(n),e.sort((r,s)=>r-s).pop(),e}function Ag(t){return!isNaN(parseFloat(t))&&isFinite(t)}function my(t,e,n){return Math.abs(t-e)<n}function a7e(t,e){const n=Math.round(t);return n-e<=t&&n+e>=t}function Bee(t,e,n){let i,r,s;for(i=0,r=t.length;i<r;i++)s=t[i][n],isNaN(s)||(e.min=Math.min(e.min,s),e.max=Math.max(e.max,s))}function ll(t){return t*(Ti/180)}function sF(t){return t*(180/Ti)}function Tz(t){if(!Ur(t))return;let e=1,n=0;for(;Math.round(t*e)/e!==t;)e*=10,n++;return n}function Uee(t,e){const n=e.x-t.x,i=e.y-t.y,r=Math.sqrt(n*n+i*i);let s=Math.atan2(i,n);return s<-.5*Ti&&(s+=ei),{angle:s,distance:r}}function HR(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function o7e(t,e){return(t-e+i7e)%ei-Ti}function Qo(t){return(t%ei+ei)%ei}function bb(t,e,n,i){const r=Qo(t),s=Qo(e),a=Qo(n),o=Qo(s-r),l=Qo(a-r),u=Qo(r-s),c=Qo(r-a);return r===s||r===a||i&&s===a||o>l&&u<c}function ts(t,e,n){return Math.max(e,Math.min(n,t))}function l7e(t){return ts(t,-32768,32767)}function Vf(t,e,n,i=1e-6){return t>=Math.min(e,n)-i&&t<=Math.max(e,n)+i}function aF(t,e,n){n=n||(a=>t[a]<e);let i=t.length-1,r=0,s;for(;i-r>1;)s=r+i>>1,n(s)?r=s:i=s;return{lo:r,hi:i}}const Dh=(t,e,n,i)=>aF(t,n,i?r=>t[r][e]<=n:r=>t[r][e]<n),u7e=(t,e,n)=>aF(t,n,i=>t[i][e]>=n);function c7e(t,e,n){let i=0,r=t.length;for(;i<r&&t[i]<e;)i++;for(;r>i&&t[r-1]>n;)r--;return i>0||r<t.length?t.slice(i,r):t}const $ee=["push","pop","shift","splice","unshift"];function f7e(t,e){if(t._chartjs){t._chartjs.listeners.push(e);return}Object.defineProperty(t,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[e]}}),$ee.forEach(n=>{const i="_onData"+rF(n),r=t[n];Object.defineProperty(t,n,{configurable:!0,enumerable:!1,value(...s){const a=r.apply(this,s);
3881return t._chartjs.listeners.forEach(o=>{typeof o[i]=="function"&&o[i](...s)}),a}})})}function Ez(t,e){const n=t._chartjs;if(!n)return;const i=n.listeners,r=i.indexOf(e);r!==-1&&i.splice(r,1),!(i.length>0)&&($ee.forEach(s=>{delete t[s]}),delete t._chartjs)}function zee(t){const e=new Set;let n,i;for(n=0,i=t.length;n<i;++n)e.add(t[n]);return e.size===i?t:Array.from(e)}const Hee=function(){return typeof window>"u"?function(t){return t()}:window.requestAnimationFrame}();function Vee(t,e,n){const i=n||(a=>Array.prototype.slice.call(a));let r=!1,s=[];return function(...a){s=i(a),r||(r=!0,Hee.call(window,()=>{r=!1,t.apply(e,s)}))}}function d7e(t,e){let n;return function(...i){return e?(clearTimeout(n),n=setTimeout(t,e,i)):t.apply(this,i),e}}const oF=t=>t==="start"?"left":t==="end"?"right":"center",jr=(t,e,n)=>t==="start"?e:t==="end"?n:(e+n)/2,h7e=(t,e,n,i)=>t===(i?"left":"right")?n:t==="center"?(e+n)/2:e;function Wee(t,e,n){const i=e.length;let r=0,s=i;if(t._sorted){const{iScale:a,_parsed:o}=t,l=a.axis,{min:u,max:c,minDefined:f,maxDefined:h}=a.getUserBounds();f&&(r=ts(Math.min(Dh(o,a.axis,u).lo,n?i:Dh(e,l,a.getPixelForValue(u)).lo),0,i-1)),h?s=ts(Math.max(Dh(o,a.axis,c,!0).hi+1,n?0:Dh(e,l,a.getPixelForValue(c),!0).hi+1),r,i)-r:s=i-r}return{start:r,count:s}}function Gee(t){const{xScale:e,yScale:n,_scaleRanges:i}=t,r={xmin:e.min,xmax:e.max,ymin:n.min,ymax:n.max};if(!i)return t._scaleRanges=r,!0;const s=i.xmin!==e.min||i.xmax!==e.max||i.ymin!==n.min||i.ymax!==n.max;return Object.assign(i,r),s}const qS=t=>t===0||t===1,wz=(t,e,n)=>-(Math.pow(2,10*(t-=1))*Math.sin((t-e)*ei/n)),Cz=(t,e,n)=>Math.pow(2,-10*t)*Math.sin((t-e)*ei/n)+1,gy={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>-t*(t-2),easeInOutQuad:t=>(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1),easeInCubic:t=>t*t*t,easeOutCubic:t=>(t-=1)*t*t+1,easeInOutCubic:t=>(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2),easeInQuart:t=>t*t*t*t,easeOutQuart:t=>-((t-=1)*t*t*t-1),easeInOutQuart:t=>(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2),easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>(t-=1)*t*t*t*t+1,easeInOutQuint:t=>(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2),easeInSine:t=>-Math.cos(t*Ui)+1,easeOutSine:t=>Math.sin(t*Ui),easeInOutSine:t=>-.5*(Math.cos(Ti*t)-1),easeInExpo:t=>t===0?0:Math.pow(2,10*(t-1)),easeOutExpo:t=>t===1?1:-Math.pow(2,-10*t)+1,easeInOutExpo:t=>qS(t)?t:t<.5?.5*Math.pow(2,10*(t*2-1)):.5*(-Math.pow(2,-10*(t*2-1))+2),easeInCirc:t=>t>=1?t:-(Math.sqrt(1-t*t)-1),easeOutCirc:t=>Math.sqrt(1-(t-=1)*t),easeInOutCirc:t=>(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1),easeInElastic:t=>qS(t)?t:wz(t,.075,.3),easeOutElastic:t=>qS(t)?t:Cz(t,.075,.3),easeInOutElastic(t){return qS(t)?t:t<.5?.5*wz(t*2,.1125,.45):.5+.5*Cz(t*2-1,.1125,.45)},easeInBack(t){return t*t*((1.70158+1)*t-1.70158)},easeOutBack(t){return(t-=1)*t*((1.70158+1)*t+1.70158)+1},easeInOutBack(t){let e=1.70158;return(t/=.5)<1?.5*(t*t*(((e*=1.525)+1)*t-e)):.5*((t-=2)*t*(((e*=1.525)+1)*t+e)+2)},easeInBounce:t=>1-gy.easeOutBounce(1-t),easeOutBounce(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},easeInOutBounce:t=>t<.5?gy.easeInBounce(t*2)*.5:gy.easeOutBounce(t*2-1)*.5+.5};/*!
3882 * @kurkle/color v0.2.1
3883 * https://github.com/kurkle/color#readme
3884 * (c) 2022 Jukka Kurkela
3885 * Released under the MIT License
3886 */function a1(t){return t+.5|0}const Wf=(t,e,n)=>Math.max(Math.min(t,n),e);function Ov(t){return Wf(a1(t*2.55),0,255)}function rd(t){return Wf(a1(t*255),0,255)}function oc(t){return Wf(a1(t/2.55)/100,0,1)}function Az(t){return Wf(a1(t*100),0,100)}const mo={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},VR=[..."0123456789ABCDEF"],p7e=t=>VR[t&15],m7e=t=>VR[(t&240)>>4]+VR[t&15],XS=t=>(t&240)>>4===(t&15),g7e=t=>XS(t.r)&&XS(t.g)&&XS(t.b)&&XS(t.a);function _7e(t){var e=t.length,n;return t[0]==="#"&&(e===4||e===5?n={r:255&mo[t[1]]*17,g:255&mo[t[2]]*17,b:255&mo[t[3]]*17,a:e===5?mo[t[4]]*17:255}:(e===7||e===9)&&(n={r:mo[t[1]]<<4|mo[t[2]],g:mo[t[3]]<<4|mo[t[4]],b:mo[t[5]]<<4|mo[t[6]],a:e===9?mo[t[7]]<<4|mo[t[8]]:255})),n}const v7e=(t,e)=>t<255?e(t):"";function y7e(t){var e=g7e(t)?p7e:m7e;return t?"#"+e(t.r)+e(t.g)+e(t.b)+v7e(t.a,e):void 0}const b7e=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function jee(t,e,n){const i=e*Math.min(n,1-n),r=(s,a=(s+t/30)%12)=>n-i*Math.max(Math.min(a-3,9-a,1),-1);return[r(0),r(8),r(4)]}function x7e(t,e,n){const i=(r,s=(r+t/60)%6)=>n-n*e*Math.max(Math.min(s,4-s,1),0);return[i(5),i(3),i(1)]}function S7e(t,e,n){const i=jee(t,1,.5);let r;for(e+n>1&&(r=1/(e+n),e*=r,n*=r),r=0;r<3;r++)i[r]*=1-e-n,i[r]+=e;return i}
vendor: 5,242 bytes, line 3886
3886function T7e(t,e,n,i,r){return t===r?(e-n)/i+(e<n?6:0):e===r?(n-t)/i+2:(t-e)/i+4}function lF(t){const n=t.r/255,i=t.g/255,r=t.b/255,s=Math.max(n,i,r),a=Math.min(n,i,r),o=(s+a)/2;let l,u,c;return s!==a&&(c=s-a,u=o>.5?c/(2-s-a):c/(s+a),l=T7e(n,i,r,c,s),l=l*60+.5),[l|0,u||0,o]}function uF(t,e,n,i){return(Array.isArray(e)?t(e[0],e[1],e[2]):t(e,n,i)).map(rd)}function cF(t,e,n){return uF(jee,t,e,n)}function E7e(t,e,n){return uF(S7e,t,e,n)}function w7e(t,e,n){return uF(x7e,t,e,n)}function qee(t){return(t%360+360)%360}function C7e(t){const e=b7e.exec(t);let n=255,i;if(!e)return;e[5]!==i&&(n=e[6]?Ov(+e[5]):rd(+e[5]));const r=qee(+e[2]),s=+e[3]/100,a=+e[4]/100;return e[1]==="hwb"?i=E7e(r,s,a):e[1]==="hsv"?i=w7e(r,s,a):i=cF(r,s,a),{r:i[0],g:i[1],b:i[2],a:n}}function A7e(t,e){var n=lF(t);n[0]=qee(n[0]+e),n=cF(n),t.r=n[0],t.g=n[1],t.b=n[2]}function M7e(t){if(!t)return;const e=lF(t),n=e[0],i=Az(e[1]),r=Az(e[2]);return t.a<255?`hsla(${n}, ${i}%, ${r}%, ${oc(t.a)})`:`hsl(${n}, ${i}%, ${r}%)`}const Mz={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},Dz={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function D7e(){const t={},e=Object.keys(Dz),n=Object.keys(Mz);let i,r,s,a,o;for(i=0;i<e.length;i++){for(a=o=e[i],r=0;r<n.length;r++)s=n[r],o=o.replace(s,Mz[s]);s=parseInt(Dz[a],16),t[o]=[s>>16&255,s>>8&255,s&255]}return t}let YS;function P7e(t){YS||(YS=D7e(),YS.transparent=[0,0,0,0]);const e=YS[t.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:e.length===4?e[3]:255}}const O7e=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function R7e(t){const e=O7e.exec(t);let n=255,i,r,s;if(!!e){if(e[7]!==i){const a=+e[7];n=e[8]?Ov(a):Wf(a*255,0,255)}return i=+e[1],r=+e[3],s=+e[5],i=255&(e[2]?Ov(i):Wf(i,0,255)),r=255&(e[4]?Ov(r):Wf(r,0,255)),s=255&(e[6]?Ov(s):Wf(s,0,255)),{r:i,g:r,b:s,a:n}}}function k7e(t){return t&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${oc(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`)}const N3=t=>t<=.0031308?t*12.92:Math.pow(t,1/2.4)*1.055-.055,z0=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function I7e(t,e,n){const i=z0(oc(t.r)),r=z0(oc(t.g)),s=z0(oc(t.b));return{r:rd(N3(i+n*(z0(oc(e.r))-i))),g:rd(N3(r+n*(z0(oc(e.g))-r))),b:rd(N3(s+n*(z0(oc(e.b))-s))),a:t.a+n*(e.a-t.a)}}function KS(t,e,n){if(t){let i=lF(t);i[e]=Math.max(0,Math.min(i[e]+i[e]*n,e===0?360:1)),i=cF(i),t.r=i[0],t.g=i[1],t.b=i[2]}}function Xee(t,e){return t&&Object.assign(e||{},t)}function Pz(t){var e={r:0,g:0,b:0,a:255};return Array.isArray(t)?t.length>=3&&(e={r:t[0],g:t[1],b:t[2],a:255},t.length>3&&(e.a=rd(t[3]))):(e=Xee(t,{r:0,g:0,b:0,a:1}),e.a=rd(e.a)),e}function L7e(t){return t.charAt(0)==="r"?R7e(t):C7e(t)}class ME{constructor(e){if(e instanceof ME)return e;const n=typeof e;let i;n==="object"?i=Pz(e):n==="string"&&(i=_7e(e)||P7e(e)||L7e(e)),this._rgb=i,this._val
3886id=!!i}get valid(){return this._valid}get rgb(){var e=Xee(this._rgb);return e&&(e.a=oc(e.a)),e}set rgb(e){this._rgb=Pz(e)}rgbString(){return this._valid?k7e(this._rgb):void 0}hexString(){return this._valid?y7e(this._rgb):void 0}hslString(){return this._valid?M7e(this._rgb):void 0}mix(e,n){if(e){const i=this.rgb,r=e.rgb;let s;const a=n===s?.5:n,o=2*a-1,l=i.a-r.a,u=((o*l===-1?o:(o+l)/(1+o*l))+1)/2;s=1-u,i.r=255&u*i.r+s*r.r+.5,i.g=255&u*i.g+s*r.g+.5,i.b=255&u*i.b+s*r.b+.5,i.a=a*i.a+(1-a)*r.a,this.rgb=i}return this}interpolate(e,n){return e&&(this._rgb=I7e(this._rgb,e._rgb,n)),this}clone(){return new ME(this.rgb)}alpha(e){return this._rgb.a=rd(e),this}clearer(e){const n=this._rgb;return n.a*=1-e,this}greyscale(){const e=this._rgb,n=a1(e.r*.3+e.g*.59+e.b*.11);return e.r=e.g=e.b=n,this}opaquer(e){const n=this._rgb;return n.a*=1+e,this}negate(){const e=this._rgb;return e.r=255-e.r,e.g=255-e.g,e.b=255-e.b,this}lighten(e){return KS(this._rgb,2,e),this}darken(e){return KS(this._rgb,2,-e),this}saturate(e){return KS(this._rgb,1,e),this}desaturate(e){return KS(this._rgb,1,-e),this}rotate(e){return A7e(this._rgb,e),this}}function Yee(t){return new ME(t)}function Kee(t){if(t&&typeof t=="object"){const e=t.toString();return e==="[object CanvasPattern]"||e==="[object CanvasGradient]"}return!1}function Oz(t){return Kee(t)?t:Yee(t)}function B3(t){return Kee(t)?t:Yee(t).saturate(.5).darken(.1).hexString()}const yp=Object.create(null),WR=Object.create(null);function _y(t,e){if(!e)return t;const n=e.split(".");for(let i=0,r=n.length;i<r;++i){const s=n[i];t=t[s]||(t[s]=Object.create(null))}return t}function U3(t,e,n){return typeof e=="string"?vu(_y(t,e),n):vu(_y(t,""),e)}class F7e{constructor(e){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=n=>n.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(n,i)=>B3(i.backgroundColor),this.hoverBorderColor=(n,i)=>B3(i.borderColor),this.hoverColor=(n,i)=>B3(i.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={}
vendor: 4,606 bytes, line 3886
3886,this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(e)}set(e,n){return U3(this,e,n)}get(e){return _y(this,e)}describe(e,n){return U3(WR,e,n)}override(e,n){return U3(yp,e,n)}route(e,n,i,r){const s=_y(this,e),a=_y(this,i),o="_"+n;Object.defineProperties(s,{[o]:{value:s[n],writable:!0},[n]:{enumerable:!0,get(){const l=this[o],u=a[r];return Dn(l)?Object.assign({},u,l):nn(l,u)},set(l){this[o]=l}}})}}var En=new F7e({_scriptable:t=>!t.startsWith("on"),_indexable:t=>t!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}});function N7e(t){return!t||Cn(t.size)||Cn(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}function DE(t,e,n,i,r){let s=e[r];return s||(s=e[r]=t.measureText(r).width,n.push(r)),s>i&&(i=s),i}function B7e(t,e,n,i){i=i||{};let r=i.data=i.data||{},s=i.garbageCollect=i.garbageCollect||[];i.font!==e&&(r=i.data={},s=i.garbageCollect=[],i.font=e),t.save(),t.font=e;let a=0;const o=n.length;let l,u,c,f,h;for(l=0;l<o;l++)if(f=n[l],f!=null&&pi(f)!==!0)a=DE(t,r,s,a,f);else if(pi(f))for(u=0,c=f.length;u<c;u++)h=f[u],h!=null&&!pi(h)&&(a=DE(t,r,s,a,h));t.restore();const p=s.length/2;if(p>n.length){for(l=0;l<p;l++)delete r[s[l]];s.splice(0,p)}return a}function ah(t,e,n){const i=t.currentDevicePixelRatio,r=n!==0?Math.max(n/2,.5):0;return Math.round((e-r)*i)/i+r}function Rz(t,e){e=e||t.getContext("2d"),e.save(),e.resetTransform(),e.clearRect(0,0,t.width,t.height),e.restore()}function GR(t,e,n,i){Zee(t,e,n,i,null)}function Zee(t,e,n,i,r){let s,a,o,l,u,c;const f=e.pointStyle,h=e.rotation,p=e.radius;let m=(h||0)*r7e;if(f&&typeof f=="object"&&(s=f.toString(),s==="[object HTMLImageElement]"||s==="[object HTMLCanvasElement]")){t.save(),t.translate(n,i),t.rotate(m),t.drawImage(f,-f.width/2,-f.height/2,f.width,f.height),t.restore();return}if(!(isNaN(p)||p<=0)){switch(t.beginPath(),f){default:r?t.ellipse(n,i,r/2,p,0,0,ei):t.arc(n,i,p,0,ei),t.closePath();break;case"triangle":t.moveTo(n+Math.sin(m)*p,i-Math.cos(m)*p),m+=xz,t.lineTo(n+Math.sin(m)*p,i-Math.cos(m)*p),m+=xz,t.lineTo(n+Math.sin(m)*p,i-Math.cos(m)*p),t.closePath();break;case"rectRounded":u=p*.516,l=p-u,a=Math.cos(m+iv)*l,o=Math.sin(m+iv)*l,t.arc(n-a,i-o,u,m-Ti,m-Ui),t.arc(n+o,i-a,u,m-Ui,m),t.arc(n+a,i+o,u,m,m+Ui),t.arc(n-o,i+a,u,m+Ui,m+Ti),t.closePath();break;case"rect":if(!h){l=Math.SQRT1_2*p,c=r?r/2:l,t.rect(n-c,i-l,2*c,2*l);break}m+=iv;case"rectRot":a=Math.cos(m)*p,o=Math.sin(m)*p,t.moveTo(n-a,i-o),t.lineTo(n+o,i-a),t.lineTo(n+a,i+o),t.lineTo(n-o,i+a),t.closePath();break;case"crossRot":m+=iv;case"cross":a=Math.cos(m)*p,o=Math.sin(m)*p,t.moveTo(n-a,i-o),t.lineTo(n+a,i+o),t.moveTo(n+o,i-a),t.lineTo(n-o,i+a);break;case"star":a=Math.cos(m)*p,o=Math.sin(m)*p,t.moveTo(n-a,i-o),t.lineTo(n+a,i+o),t.moveTo(n+o,i-a),t.lineTo(n-o,i+a),m+=iv,a=Math.cos(m)*p,o=Math.sin(m)*p,t.moveTo(n-a,i-o),t.lineTo(n+a,i+o),t.moveTo(n+o,i-a),t.lineTo(n-o,i+a);break;case"line":a=r?r/2:Math.cos(m)*p,o=Math.sin(m)*p,t.moveTo(n-a,i-o),t.lineTo(n+a,i+o);break;case"dash":t.moveTo(n,i),t.lineTo(n+Math.cos(m)*p,i+Math.sin(m)*p);break}t.fill(),e.borderWidth>0&&t.stroke()}}function xb(t,e,n){return n=n||.5,!e||t&&t.x>e.left-n&&t.x<e.right+n&&t.y>e.top-n&&t.y<e.bottom+n}function fF(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()}function dF(t){t.restore()}function U7e(t,e,n,i,r){if(!e)return t.lineTo(n.x,n.y);if(r==="middle"){const s=(e.x+n.x)/2;t.lineTo(s,e.y),t.lineTo(s,n.y)}else r==="after"!=!!i?t.lineTo(e.x,n.y):t.lineTo(n.x,e.y);t.lineTo(n.x,n.y)}function $7e(t,e,n,i){if(!e)return t.lineTo(n.x,n.y);t.bezierCurveTo(i?e.cp1x:e.cp2x,i?e.cp1y:e.cp2y,i?n.cp2x:n.cp1x,i?n.cp2y:n.cp1y,n.x,n.y)}function bp(t,e,n,i,r,s={}){const a=pi(e)?e:[e],o=s.strokeWidth>0&&s.strokeColor!=="";let l,u;for(t.save(),t.font=r.string,z7e(t,s),l=0;l<a.length;++l)u=a[l],o&&(s.strokeColor&&(t.strokeStyle=s.strokeColor),Cn(s.strokeWidth)||(t.lineWidth=s.strokeWidth),t.strokeText(u,n,i,s.maxWidth)),t.fillText(u,n,i,s.maxWidth),H7e(t,n,i,u,s),i+=r.lineHeight;t.restore()}function z7e(t,e){e.translation&&t.translate(e.translation[0],e.translation[1]),Cn(e.rotation)||t.rotate(e.rotation),e.color&&(t.fillStyle=e.color),e.textAlign&&(t.textAlign=e.textAlign),e.textBaseline&&(t.textBaseline=e.textBaseline)}function H7e(t,e,n,i,r){if(r.strikethrough||r.underline){const s=t.measureText(i),a=e-s.actualBoundingBoxLeft,o=e+s.actualBoundingBoxRight,l=n-s.actualBoundingBoxAscent,u=n+s.actualBoundingBoxDescent,c=r.strikethrough?(l+u)/2:u;t.strokeStyle=t.fillStyle,t.beginPath(),t.lineWidth=r.decorationWidth||2,t.moveTo(a,c),t.lineTo(o,c
3886),t.stroke()}}function Sb(t,e){const{x:n,y:i,w:r,h:s,radius:a}=e;t.arc(n+a.topLeft,i+a.topLeft,a.topLeft,-Ui,Ti,!0),t.lineTo(n,i+s-a.bottomLeft),t.arc(n+a.bottomLeft,i+s-a.bottomLeft,a.bottomLeft,Ti,Ui,!0),t.lineTo(n+r-a.bottomRight,i+s),t.arc(n+r-a.bottomRight,i+s-a.bottomRight,a.bottomRight,Ui,0,!0),t.lineTo(n+r,i+a.topRight),t.arc(n+r-a.topRight,i+a.topRight,a.topRight,0,-Ui,!0),t.lineTo(n+a.topLeft,i)}const V7e=new RegExp(/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/),W7e=new RegExp(/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/);function G7e(t,e){const n=(""+t).match(V7e);if(!n||n[1]==="normal")return e*1.2;switch(t=+n[2],n[3]){case"px":return t;case"%":t/=100;break}return e*t}const j7e=t=>+t||0;function hF(t,e){const n={},i=Dn(e),r=i?Object.keys(e):e,s=Dn(t)?i?a=>nn(t[a],t[e[a]]):a=>t[a]:()=>t;for(const a of r)n[a]=j7e(s(a));return n}function Qee(t){return hF(t,{top:"y",right:"x",bottom:"y",left:"x"})}function Jh(t){return hF(t,["topLeft","topRight","bottomLeft","bottomRight"])}function $r(t){const e=Qee(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function er(t,e){t=t||{},e=e||En.font;let n=nn(t.size,e.size);typeof n=="string"&&(n=parseInt(n,10));let i=nn(t.style,e.style);i&&!(""+i).match(W7e)&&(console.warn('Invalid font style specified: "'+i+'"'),i="");const r={family:nn(t.family,e.family),lineHeight:G7e(nn(t.lineHeight,e.lineHeight),n),size:n,style:i,weight:nn(t.weight,e.weight),string:""};return r.string=N7e(r),r}function vi(t,e,n,i){let r=!0,s,a,o;for(s=0,a=t.length;s<a;++s)if(o=t[s],o!==void 0&&(e!==void 0&&typeof o=="function"&&(o=o(e),r=!1),n!==void 0&&pi(o)&&(o=o[n%o.length],r=!1),o!==void 0))return i&&!r&&(i.cacheable=!1),o}function q7e(t,e,n){const{min:i,max:r}=t,s=Fee(e,(r-i)/2),a=(o,l)=>n&&o===0?0:o+l;return{min:a(i,-Math.abs(s)),max:a(r,s)}}function Pd(t,e){return Object.assign(Object.create(t),e)}function pF(t,e=[""],n=t,i,r=()=>t[0]){Lo(i)||(i=nte("_fallback",t));const s={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:n,_fallback:i,_getTarget:r,override:a=>pF([a,...t],e,n,i)};return new Proxy(s,{deleteProperty(a,o){return delete a[o],delete a._keys,delete t[0][o],!0},get(a,o){return ete(a,o,()=>t$e(o,e,t,a))},getOwnPropertyDescriptor(a,o){return Reflect.getOwnPropertyDescriptor(a._scopes[0],o)},getPrototypeOf(){return Reflect.getPrototypeOf(t[0])},has(a,o){return Iz(a).includes(o)},ownKeys(a){return Iz(a)},set(a,o,l){const u=a._storage||(a._storage=r());return a[o]=u[o]=l,delete a._keys,!0}})}function Mg(t,e,n,i){const r={_cacheable:!1,_proxy:t,_context:e,_subProxy:n,_stack:new Set,_descriptors:Jee(t,i),setContext:s=>Mg(t,s,n,i),override:s=>Mg(t.override(s),e,n,i)};return new Proxy(r,{deleteProperty(s,a){return delete s[a],delete t[a],!0},get(s,a,o){return ete(s,a,()=>Y7e(s,a,o))},getOwnPropertyDescriptor(s,a){return s._descriptors.allKeys?Reflect.has(t,a)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,a)},getPrototypeOf(){return Reflect.getPrototypeOf(t)},has(s,a){return Reflect.has(t,a)},ownKeys(){return Reflect.ownKeys(t)},set(s,a,o){return t[a]=o,delete s[a],!0}})}function Jee(t,e={scriptable:!0,indexable:!0}){const{_scriptable:n=e.scriptable,_indexable:i=e.indexable,_allKeys:r=e.allKeys}=t;return{allKeys:r,scriptable:n,indexable:i,isScriptable:xd(n)?n:()=>n,isIndexable:xd(i)?i:()=>i}}const X7e=(t,e)=>t?t+rF(e):e,mF=(t,e)=>Dn(e)&&t!=="adapters"&&(Object.getPrototypeOf(e)===null||e.constructor===Object);function ete(t,e,n){if(Object.prototype.hasOwnProperty.call(t,e))return t[e];const i=n();return t[e]=i,i}function Y7e(t,e,n){const{_proxy:i,_context:r,_subProxy:s,_descriptors:a}=t;let o=i[e];return xd(o)&&a.isScriptable(e)&&(o=K7e(e,o,t,n)),pi(o)&&o.length&&(o=Z7e(e,o,t,a.isIndexable)),mF(e,o)&&(o=Mg(o,r,s&&s[e],a)),o}function K7e(t,e,n,i){const{_proxy:r,_context:s,_subProxy:a,_stack:o}=n;if(o.has(t))throw new Error("Recursion detected: "+Array.from(o).join("->")+"->"+t);return o.add(t),e=e(s,a||i),o.delete(t),mF(t,e)&&(e=gF(r._scopes,r,t,e)),e}function Z7e(t,e,n,i){const{_proxy:r,_context:s,_subProxy:a,_descriptors:o}=n;if(Lo(s.index)&&i(t))e=e[s.index%e.length];else if(Dn(e[0])){const l=e,u=r._scopes.filter(c=>c!==l);e=[];for(const c of l){const f=gF(u,r,t,c);e.push(Mg(f,s,a&&a[t],o))}}return e}function tte(t,e,n){return xd(t)?t(e,n):t}const Q7e=(t,e)=>t===!0?e:typeof t=="string"?bd(e,t):void 0;function J7e(t,e,n,i,r){for(const s of e){const a=Q7e(n,s);if(a){t.add(a);const o=tte(a._fallback,n,r);if(Lo(o)&&o!==n&&o!==i)return o}else if(a===!1&&Lo(i)&&n!==i)return null}return!1}function gF(t,e,n,i){const r=e._rootScopes,s=tte(e._fallback,n,i),a=[...t,...r],o=new Set;o.add(i);let l=kz(o,a,n,s||n,i);return l===null||Lo(s)&&s!==n&&(l=kz(o,a,s,l,i),l===null)?!1:pF(Array.from(o),[""],r,s,()=>e$e(e,n,i))}function kz(t,e,n,i,r){for(;n;)n=J7e(t,e,n,i,r);return n}function e$e(t,e,n){const i=t._getTarget();e in i||(i[e]={});const r=i[e];return pi(r)&&Dn(n)?n:r}function t$e(t,e,n,i){let r;for(const s of e)if(r=nte(X7e(s,t),n),Lo(r))return mF(t,r)?gF(n,i,t,r):r}function nte(t,e){for(const n of e){if(!n)continue;const i=n[t];if(Lo(i))return i}}function Iz(t){let e=t._keys;return e||(e=t._keys=n$e(t._scopes)),e}function n$e(t){const e=new Set;for(const n of t)for(const i of Object.keys(n).filter(r=>!r.startsWith("_")))e.add(i);return Array.from(e)}function ite(t,e,n,i){const{iScale:r}=t,{key:s="r"}=this._parsing,a=new Array(i);let o,l,u,c;for(o=0,l=i;o<l;++o)u=o+n,c=e[u],a[o]={r:r.parse(bd(c,s),u)};return a}const i$e=Number.EPSILON||1e-14,Dg=(t,e)=>e<t.length&&!t[e].skip&&t[e],rte=t=>t==="x"?"y":"x";function r$e(t,e,n,i){const r=t.skip?e:t,s=e,a=n.skip?e:n,o=HR(s,r),l=HR(a,s);let u=o/(o+l),c=l/(o+l);u=isNaN(u)?0:u,c=isNaN(c)?0:c;const f=i*u,h=i*c;return{previous:{x:s.x-f*(a.x-r.x),y:s.y-f*(a.y-r.y)},next:{x:s.x+h*(a.x-r.x),y:s.y+h*(a.y-r.y)}}}function s$e(t,e,n){const i=t.length;let r,s,a,o,l,u=Dg(t,0);for(let c=0;c<i-1;++c)if(l=u,u=Dg(t,c+1),!(!l||!u)){if(my(e[c],0,i$e)){n[c]=n[c+1]=0;continue}r=n[c]/e[c],s=n[c+1]/e[c],o=Math.pow(r,2)+Math.pow(s,2),!(o<=9)&&(a=3/Math.sqrt(o),n[c]=r*a*e[c],n[c+1]=s*a*e[c])}}function a$e(t,e,n="x"){const i=rte(n),r=t.length;let s,a,o,l=Dg(t,0);for(let u=0;u<r;++u){if(a=o,o=l,l=Dg(t,u+1),!o)continue;const c=o[n],f=o[i];a&&(s=(c-a[n])/3,o[`cp1${n}`]=c-s,o[`cp1${i}`]=f-s*e[u]),l&&(s=(l[n]-c)/3,o[`cp2${n}`]=c+s,o[`cp2${i}`]=f+s*e[u])}}function o$e(t,e="x"){const n=rte(e),i=t.length,r=Array(i).fill(0),s=Array(i);let a,o,l,u=Dg(t,0);for(a=0;a<i;++a)if(o=l,l=u,u=Dg(t,a+1),!!l){if(u){const c=u[e]-l[e];r[a]=c!==0?(u[n]-l[n])/c:0}s[a]=o?u?uu(r[a-1])!==uu(r[a])?0:(r[a-1]+r[a])/2:r[a-1]:r[a]}s$e(t,r,s),a$e(t,s,e)}function ZS(t,e,n){return Math.max(Math.min(t,n),e)}function l$e(t,e){let n,i,r,s,a,o=xb(t[0],e);for(n=0,i=t.length;n<i;++n)a=s,s=o,o=n<i-1&&xb(t[n+1],e),s&&(r=t[n],a&&(r.cp1x=ZS(r.cp1x,e.left,e.right),r.cp1y=ZS(r.cp1y,e.top,e.bottom)),o&&(r.cp2x=ZS(r.cp2x,e.left,e.right),r.cp2y=ZS(r.cp2y,e.top,e.bottom)))}function u$e(t,e,n,i,r){let s,a,o,l;if(e.spanGaps&&(t=t.filter(u=>!u.skip)),e.cubicInterpolationMode==="monotone")o$e(t,r);else{let u=i?t[t.length-1]:t[0];for(s=0,a=t.length;s<a;++s)o=t[s],l=r$e(u,o,t[Math.min(s+1,a-(i?0:1))%a],e.tension),o.cp1x=l.previous.x,o.cp1y=l.previous.y,o.cp2x=l.next.x,o.cp2y=l.next.y,u=o}e.capBezierPoints&&l$e(t,n)}function ste(){return typeof window<"u"&&typeof document<"u"}function _F(t){let e=t.parentNode;return e&&e.toString()==="[object ShadowRoot]"&&(e=e.host),e}function PE(t,e,n){let i;return typeof t=="string"?(i=parseInt(t,10),t.indexOf("%")!==-1&&(i=i/100*e.parentNode[n])):i=t,i}const gC=t=>window.getComputedStyle(t,null);function c$e(t,e){return gC(t).getPropertyValue(e)}const f$e=["top","right","bottom","left"];function ep(t,e,n){const i={};n=n?"-"+n:"";for(let r=0;r<4;r++){const s=f$e[r];i[s]=parseFloat(t[e+"-"+s+n])||0}return i.width=i.left+i.right,i.height=i.top+i.bottom,i}const d$e=(t,e,n)=>(t>0||e>0)&&(!n||!n.shadowRoot);function h$e(t,e){const n=t.touches,i=n&&n.length?n[0]:t,{offsetX:r,offsetY:s}=i;let a=!1,o,l;if(d$e(r,s,t.target))o=r,l=s;else{const u=e.getBoundingClientRect();o=i.clientX-u.left,l=i.clientY-u.top,a=!0}return{x:o,y:l,box:a}}function mh(t,e){if("native"in t)return t;const{canvas:n,currentDevicePixelRatio:i}=e,r=gC(n),s=r.boxSizing==="border-box",a=ep(r,"padding"),o=ep(r,"border","width"),{x:l,y:u,box:c}=h$e(t,n),f=a.left+(c&&o.left),h=a.top+(c&&o.top);let{width:p,height:m}=e;return s&&(p-=a.width+o.width,m-=a.height+o.height),{x:Math.round((l-f)/p*n.width/i),y:Math.round((u-h)/m*n.height/i)}}function p$e(t,e,n){let i,r;if(e===void 0||n===void 0){const s=_F(t);if(!s)e=t.clientWidth,n=t.clientHeight;else{const a=s.getBoundingClientRect(),o=gC(s),l=ep(o,"border","width"),u=ep(o,"padding");e=a.width-u.width-l.width,n=a.height-u.height-l.height,i=PE(o.maxWidth,s,"clientWidth"),r=PE(o.maxHeight,s,"clientHeight")}}return{width:e,height:n,maxWidth:i||AE,maxHeight:r||AE}}const $3=t=>Math.round(t*10)/10;function m$e(t,e,n,i){const r=gC(t),s=ep(r,"margin"),a=PE(r.maxWidth,t,"clientWidth")||AE,o=PE(r.maxHeight,t,"clientHeight")||AE,l=p$e(t,e,n);let{width:u,height:c}=l;if(r.boxSizing==="content-box"){const f=ep(r,"border","width"),h=ep(r,"padding");u-=h.width+f.width,c-=h.height+f.height}return u=Math.max(0,u-s.width),c=Math.max(0,i?Math.floor(u/i):c-s.height),u=$3(Math.min(u,a,l.maxWidth)),c=$3(Math.min(c,o,l.maxHeight)),u&&!c&&(c=$3(u/2)),{width:u,height:c}}function Lz(t,e,n){const i=e||1,r=Math.floor(t.height*i),s=Math.floor(t.width*i);t.height=r/i,t.width=s/i;const a=t.canvas;return a.style&&(n||!a.style.height&&!a.style.width)&&(a.style.height=`${t.height}px`,a.style.width=`${t.width}px`),t.currentDevicePixelRatio!==i||a.height!==r||a.width!==s?(t.currentDevicePixelRatio=i,a.height=r,a.width=s,t.ctx.setTransform(i,0,0,i,0,0),!0):!1}const g$e=function(){let t=!1;
3886try{const e={get passive(){return t=!0,!1}};window.addEventListener("test",null,e),window.removeEventListener("test",null,e)}catch(e){}return t}();function Fz(t,e){const n=c$e(t,e),i=n&&n.match(/^(\d+)(\.\d+)?px$/);return i?+i[1]:void 0}function gh(t,e,n,i){return{x:t.x+n*(e.x-t.x),y:t.y+n*(e.y-t.y)}}function _$e(t,e,n,i){return{x:t.x+n*(e.x-t.x),y:i==="middle"?n<.5?t.y:e.y:i==="after"?n<1?t.y:e.y:n>0?e.y:t.y}}function v$e(t,e,n,i){const r={x:t.cp2x,y:t.cp2y},s={x:e.cp1x,y:e.cp1y},a=gh(t,r,n),o=gh(r,s,n),l=gh(s,e,n),u=gh(a,o,n),c=gh(o,l,n);return gh(u,c,n)}const Nz=new Map;function y$e(t,e){e=e||{};const n=t+JSON.stringify(e);let i=Nz.get(n);return i||(i=new Intl.NumberFormat(t,e),Nz.set(n,i)),i}function o1(t,e,n){return y$e(e,n).format(t)}const b$e=function(t,e){return{x(n){return t+t+e-n},setWidth(n){e=n},textAlign(n){return n==="center"?n:n==="right"?"left":"right"},xPlus(n,i){return n-i},leftForLtr(n,i){return n-i}}},x$e=function(){return{x(t){return t},setWidth(t){},textAlign(t){return t},xPlus(t,e){return t+e},leftForLtr(t,e){return t}}};function Hm(t,e,n){return t?b$e(e,n):x$e()}function ate(t,e){let n,i;(e==="ltr"||e==="rtl")&&(n=t.canvas.style,i=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",e,"important"),t.prevTextDirection=i)}function ote(t,e){e!==void 0&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}function lte(t){return t==="angle"?{between:bb,compare:o7e,normalize:Qo}:{between:Vf,compare:(e,n)=>e-n,normalize:e=>e}}function Bz({start:t,end:e,count:n,loop:i,style:r}){return{start:t%n,end:e%n,loop:i&&(e-t+1)%n===0,style:r}}function S$e(t,e,n){const{property:i,start:r,end:s}=n,{between:a,normalize:o}=lte(i),l=e.length;let{start:u,end:c,loop:f}=t,h,p;if(f){for(u+=l,c+=l,h=0,p=l;h<p&&a(o(e[u%l][i]),r,s);++h)u--,c--;u%=l,c%=l}return c<u&&(c+=l),{start:u,end:c,loop:f,style:t.style}}function T$e(t,e,n){if(!n)return[t];const{property:i,start:r,end:s}=n,a=e.length,{compare:o,between:l,normalize:u}=lte(i),{start:c,end:f,loop:h,style:p}=S$e(t,e,n),m=[];let y=!1,v=null,_,b,x;const T=()=>l(r,x,_)&&o(r,x)!==0,E=()=>o(s,_)===0||l(s,x,_),C=()=>y||T(),D=()=>!y||E();for(let R=c,A=c;R<=f;++R)b=e[R%a],!b.skip&&(_=u(b[i]),_!==x&&(y=l(_,r,s),v===null&&C()&&(v=o(_,r)===0?R:A),v!==null&&D()&&(m.push(Bz({start:v,end:R,loop:h,count:a,style:p})),v=null),A=R,x=_));return v!==null&&m.push(Bz({start:v,end:f,loop:h,count:a,style:p})),m}function E$e(t,e){const n=[],i=t.segments;for(let r=0;r<i.length;r++){const s=T$e(i[r],t.points,e);s.length&&n.push(...s)}return n}function w$e(t,e,n,i){let r=0,s=e-1;if(n&&!i)for(;r<e&&!t[r].skip;)r++;for(;r<e&&t[r].skip;)r++;for(r%=e,n&&(s+=r);s>r&&t[s%e].skip;)s--;return s%=e,{start:r,end:s}}function C$e(t,e,n,i){const r=t.length,s=[];let a=e,o=t[e],l;for(l=e+1;l<=n;++l){const u=t[l%r];u.skip||u.stop?o.skip||(i=!1,s.push({start:e%r,end:(l-1)%r,loop:i}),e=a=u.stop?l:null):(a=l,o.skip&&(e=l)),o=u}return a!==null&&s.push({start:e%r,end:a%r,loop:i}),s}function A$e(t,e){const n=t.points,i=t.options.spanGaps,r=n.length;if(!r)return[];const s=!!t._loop,{start:a,end:o}=w$e(n,r,s,i);if(i===!0)return Uz(t,[{start:a,end:o,loop:s}],n,e);const l=o<a?o+r:o,u=!!t._fullLoop&&a===0&&o===r-1;return Uz(t,C$e(n,a,l,u),n,e)}function Uz(t,e,n,i){return!i||!i.setContext||!n?e:M$e(t,e,n,i)}function M$e(t,e,n,i){const r=t._chart.getContext(),s=$z(t.options),{_datasetIndex:a,options:{spanGaps:o}}=t,l=n.length,u=[];let c=s,f=e[0].start,h=f;function p(m,y,v,_){const b=o?-1:1;if(m!==y){for(m+=l;n[m%l].skip;)m-=b;for(;n[y%l].skip;)y+=b;m%l!==y%l&&(u.push({start:m%l,end:y%l,loop:v,style:_}),c=_,f=y%l)}}for(const m of e){f=o?f:m.start;let y=n[f%l],v;for(h=f+1;h<=m.end;h++){const _=n[h%l];v=$z(i.setContext(Pd(r,{type:"segment",p0:y,p1:_,p0DataIndex:(h-1)%l,p1DataIndex:h%l,datasetIndex:a}))),D$e(v,c)&&p(f,h-1,m.loop,c),y=_,c=v}f<h-1&&p(f,h-1,m.loop,c)}return u}function $z(t){return{backgroundColor:t.backgroundColor,borderCapStyle:t.borderCapStyle,borderDash:t.borderDash,borderDashOffset:t.borderDashOffset,borderJoinStyle:t.borderJoinStyle,borderWidth:t.borderWidth,borderColor:t.borderColor}}function D$e(t,e){return e&&JSON.stringify(t)!==JSON.stringify(e)}/*!
3887 * Chart.js v3.9.1
3888 * https://www.chartjs.org
3889 * (c) 2022 Chart.js Contributors
3890 * Released under the MIT License
3891 */class P$e{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(e,n,i,r){const s=n.listeners[r],a=n.duration;
3891s.forEach(o=>o({chart:e,initial:n.initial,numSteps:a,currentStep:Math.min(i-n.start,a)}))}_refresh(){this._request||(this._running=!0,this._request=Hee.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(e=Date.now()){let n=0;this._charts.forEach((i,r)=>{if(!i.running||!i.items.length)return;const s=i.items;let a=s.length-1,o=!1,l;for(;a>=0;--a)l=s[a],l._active?(l._total>i.duration&&(i.duration=l._total),l.tick(e),o=!0):(s[a]=s[s.length-1],s.pop());o&&(r.draw(),this._notify(r,i,e,"progress")),s.length||(i.running=!1,this._notify(r,i,e,"complete"),i.initial=!1),n+=s.length}),this._lastDate=e,n===0&&(this._running=!1)}_getAnims(e){const n=this._charts;let i=n.get(e);return i||(i={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},n.set(e,i)),i}listen(e,n,i){this._getAnims(e).listeners[n].push(i)}add(e,n){!n||!n.length||this._getAnims(e).items.push(...n)}has(e){return this._getAnims(e).items.length>0}start(e){const n=this._charts.get(e);!n||(n.running=!0,n.start=Date.now(),n.duration=n.items.reduce((i,r)=>Math.max(i,r._duration),0),this._refresh())}running(e){if(!this._running)return!1;const n=this._charts.get(e);return!(!n||!n.running||!n.items.length)}stop(e){const n=this._charts.get(e);if(!n||!n.items.length)return;const i=n.items;let r=i.length-1;for(;r>=0;--r)i[r].cancel();n.items=[],this._notify(e,n,Date.now(),"complete")}remove(e){return this._charts.delete(e)}}var Ju=new P$e;const zz="transparent",O$e={boolean(t,e,n){return n>.5?e:t},color(t,e,n){const i=Oz(t||zz),r=i.valid&&Oz(e||zz);return r&&r.valid?r.mix(i,n).hexString():e},number(t,e,n){return t+(e-t)*n}};class R$e{constructor(e,n,i,r){const s=n[i];r=vi([e.to,r,s,e.from]);const a=vi([e.from,s,r]);this._active=!0,this._fn=e.fn||O$e[e.type||typeof a],this._easing=gy[e.easing]||gy.linear,this._start=Math.floor(Date.now()+(e.delay||0)),this._duration=this._total=Math.floor(e.duration),this._loop=!!e.loop,this._target=n,this._prop=i,this._from=a,this._to=r,this._promises=void 0}active(){return this._active}update(e,n,i){if(this._active){this._notify(!1);const r=this._target[this._prop],s=i-this._start,a=this._duration-s;this._start=i,this._duration=Math.floor(Math.max(a,e.duration)),this._total+=s,this._loop=!!e.loop,this._to=vi([e.to,n,r,e.from]),this._from=vi([e.from,r,n])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(e){const n=e-this._start,i=this._duration,r=this._prop,s=this._from,a=this._loop,o=this._to;let l;if(this._active=s!==o&&(a||n<i),!this._active){this._target[r]=o,this._notify(!0);return}if(n<0){this._target[r]=s;return}l=n/i%2,l=a&&l>1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[r]=this._fn(s,o,l)}wait(){const e=this._promises||(this._promises=[]);return new Promise((n,i)=>{e.push({res:n,rej:i})})}_notify(e){const n=e?"res":"rej",i=this._promises||[];for(let r=0;r<i.length;r++)i[r][n]()}}const k$e=["x","y","borderWidth","radius","tension"],I$e=["color","borderColor","backgroundColor"];En.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0});const L$e=Object.keys(En.animation);En.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>t!=="onProgress"&&t!=="onComplete"&&t!=="fn"});En.set("animations",{colors:{type:"color",properties:I$e},numbers:{type:"number",properties:k$e}});En.describe("animations",{_fallback:"animation"});En.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>t|0}}}});class ute{constructor(e,n){this._chart=e,this._properties=new Map,this.configure(n)}configure(e){if(!Dn(e))return;const n=this._properties;Object.getOwnPropertyNames(e).forEach(i=>{const r=e[i];if(!Dn(r))return;const s={};for(const a of L$e)s[a]=r[a];(pi(r.properties)&&r.properties||[i]).forEach(a=>{(a===i||!n.has(a))&&n.set(a,s)})})}_animateOptions(e,n){const i=n.options,r=N$e(e,i);if(!r)return[];const s=this._createAnimations(r,i);return i.$shared&&F$e(e.options.$animations,i).then(()=>{e.options=i},()=>{}),s}_createAnimations(e,n){const i=this._properties,r=[],s=e.$animations||(e.$animations={}),a=Object.keys(n),o=Date.now();let l;for(l=a.length-1;l>=0;--l){const u=a[l];if(u.charAt(0)==="$")continue;if(u==="options"){r.push(...this._animateOptions(e,n));continue}const c=n[u];let f=s[u];const h=i.get(u);if(f)if(h&&f.active()){f.update(h,c,o);continue}else f.cancel();if(!h||!h.duration){e[u]=c;continue}s[u]=f=new R$e(h,e,u,c),r.push(f)}return r}update(e,n){if(this._properties.size===0){Object.assign(e,n);return}const i=this._createAnimations(e,n);if(i.length)return Ju.add(this._chart,i),!0}}function F$e(t,e){const n=[],i=Object.keys(e);for(let r=0;r<i.length;r++){const s=t[i[r]];s&&s.active()&&n.push(s.wait())}return Promise.all(n)}function N$e(t,e){if(!e)return;let n=t.options;if(!n){t.options=e;return}return n.$shared&&(t.options=n=Object.assign({},n,{$shared:!1,$animations:{}})),n}function Hz(t,e){const n=t&&t.options||{},i=n.reverse,r=n.min===void 0?e:0,s=n.max===void 0?e:0;return{start:i?s:r,end:i?r:s}}function B$e(t,e,n){if(n===!1)return!1;const i=Hz(t,n),r=Hz(e,n);return{top:r.end,right:i.end,bottom:r.start,left:i.start}}function U$e(t){let e,n,i,r;return Dn(t)?(e=t.top,n=t.right,i=t.bottom,r=t.left):e=n=i=r=t,{top:e,right:n,bottom:i,left:r,disabled:t===!1}}function cte(t,e){const n=[],i=t._getSortedDatasetMetas(e);let r,s;for(r=0,s=i.length;r<s;++r)n.push(i[r].index);return n}function Vz(t,e,n,i={}){const r=t.keys,s=i.mode==="single";let a,o,l,u;if(e!==null){for(a=0,o=r.length;a<o;++a){if(l=+r[a],l===n){if(i.all)continue;break}u=t.values[l],Ur(u)&&(s||e===0||uu(e)===uu(u))&&(e+=u)}return e}}function $$e(t){const e=Object.keys(t),n=new Array(e.length);let i,r,s;for(i=0,r=e.length;i<r;++i)s=e[i],n[i]={x:s,y:t[s]};return n}function Wz(t,e){const n=t&&t.options.stacked;return n||n===void 0&&e.stack!==void 0}function z$e(t,e,n){return`${t.id}
3891.${e.id}.${n.stack||n.type}`}function H$e(t){const{min:e,max:n,minDefined:i,maxDefined:r}=t.getUserBounds();return{min:i?e:Number.NEGATIVE_INFINITY,max:r?n:Number.POSITIVE_INFINITY}}function V$e(t,e,n){const i=t[e]||(t[e]={});return i[n]||(i[n]={})}function Gz(t,e,n,i){for(const r of e.getMatchingVisibleMetas(i).reverse()){const s=t[r.index];if(n&&s>0||!n&&s<0)return r.index}return null}function jz(t,e){const{chart:n,_cachedMeta:i}=t,r=n._stacks||(n._stacks={}),{iScale:s,vScale:a,index:o}=i,l=s.axis,u=a.axis,c=z$e(s,a,i),f=e.length;let h;for(let p=0;p<f;++p){const m=e[p],{[l]:y,[u]:v}=m,_=m._stacks||(m._stacks={});h=_[u]=V$e(r,c,y),h[o]=v,h._top=Gz(h,a,!0,i.type),h._bottom=Gz(h,a,!1,i.type)}}function z3(t,e){const n=t.scales;return Object.keys(n).filter(i=>n[i].axis===e).shift()}function W$e(t,e){return Pd(t,{active:!1,dataset:void 0,datasetIndex:e,index:e,mode:"default",type:"dataset"})}function G$e(t,e,n){return Pd(t,{active:!1,dataIndex:e,parsed:void 0,raw:void 0,element:n,index:e,mode:"default",type:"data"})}function rv(t,e){const n=t.controller.index,i=t.vScale&&t.vScale.axis;if(!!i){e=e||t._parsed;for(const r of e){const s=r._stacks;if(!s||s[i]===void 0||s[i][n]===void 0)return;delete s[i][n]}}}const H3=t=>t==="reset"||t==="none",qz=(t,e)=>e?t:Object.assign({},t),j$e=(t,e,n)=>t&&!e.hidden&&e._stacked&&{keys:cte(n,!0),values:null};class xl{constructor(e,n){this.chart=e,this._ctx=e.ctx,this.index=n,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.initialize()}initialize(){const e=this._cachedMeta;this.configure(),this.linkScales(),e._stacked=Wz(e.vScale,e),this.addElements()}updateIndex(e){this.index!==e&&rv(this._cachedMeta),this.index=e}linkScales(){const e=this.chart,n=this._cachedMeta,i=this.getDataset(),r=(f,h,p,m)=>f==="x"?h:f==="r"?m:p,s=n.xAxisID=nn(i.xAxisID,z3(e,"x")),a=n.yAxisID=nn(i.yAxisID,z3(e,"y")),o=n.rAxisID=nn(i.rAxisID,z3(e,"r")),l=n.indexAxis,u=n.iAxisID=r(l,s,a,o),c=n.vAxisID=r(l,a,s,o);n.xScale=this.getScaleForId(s),n.yScale=this.getScaleForId(a),n.rScale=this.getScaleForId(o),n.iScale=this.getScaleForId(u),n.vScale=this.getScaleForId(c)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(e){return this.chart.scales[e]}_getOtherScale(e){const n=this._cachedMeta;return e===n.iScale?n.vScale:n.iScale}reset(){this._update("reset")}_destroy(){const e=this._cachedMeta;this._data&&Ez(this._data,this),e._stacked&&rv(e)}_dataCheck(){const e=this.getDataset(),n=e.data||(e.data=[]),i=this._data;if(Dn(n))this._data=$$e(n);else if(i!==n){if(i){Ez(i,this);const r=this._cachedMeta;rv(r),r._parsed=[]}n&&Object.isExtensible(n)&&f7e(n,this),this._syncList=[],this._data=n}}addElements(){const e=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(e.dataset=new this.datasetElementType)}buildOrUpdateElements(e){const n=this._cachedMeta,i=this.getDataset();let r=!1;this._dataCheck();const s=n._stacked;n._stacked=Wz(n.vScale,n),n.stack!==i.stack&&(r=!0,rv(n),n.stack=i.stack),this._resyncElements(e),(r||s!==n._stacked)&&jz(this,n._parsed)}configure(){const e=this.chart.config,n=e.datasetScopeKeys(this._type),i=e.getOptionScopes(this.getDataset(),n,!0);this.options=e.createResolver(i,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(e,n){const{_cachedMeta:i,_data:r}=this,{iScale:s,_stacked:a}=i,o=s.axis;let l=e===0&&n===r.length?!0:i._sorted,u=e>0&&i._parsed[e-1],c,f,h;if(this._parsing===!1)i._parsed=r,i._sorted=!0,h=r;else{pi(r[e])?h=this.parseArrayData(i,r,e,n):Dn(r[e])?h=this.parseObjectData(i,r,e,n):h=this.parsePrimitiveData(i,r,e,n);const p=()=>f[o]===null||u&&f[o]<u[o];for(c=0;c<n;++c)i._parsed[c+e]=f=h[c],l&&(p()&&(l=!1),u=f);i._sorted=l}a&&jz(this,h)}parsePrimitiveData(e,n,i,r){const{iScale:s,vScale:a}=e,o=s.axis,l=a.axis,u=s.getLabels(),c=s===a,f=new Array(r);let h,p,m;for(h=0,p=r;h<p;++h)m=h+i,f[h]={[o]:c||s.parse(u[m],m),[l]:a.parse(n[m],m)};return f}parseArrayData(e,n,i,r){const{xScale:s,yScale:a}=e,o=new Array(r);let l,u,c,f;for(l=0,u=r;l<u;++l)c=l+i,f=n[c],o[l]={x:s.parse(f[0],c),y:a.parse(f[1],c)};return o}parseObjectData(e,n,i,r){const{xScale:s,yScale:a}=e,{xAxisKey:o="x",yAxisKey:l="y"}=this._parsing,u=new Array(r);let c,f,h,p;for(c=0,f=r;c<f;++c)h=c+i,p=n[h],u[c]={x:s.parse(bd(p,o),h),y:a.parse(bd(p,l),h)};return u}getParsed(e){return this._cachedMeta._parsed[e]}getDataElement(e){return this._cachedMeta.data[e]}applyStack(e,n,i){const r=this.chart,s=this._cachedMeta,a=n[e.axis],o={keys:cte(r,!0),values:n._stacks[e.axis]};return Vz(o,a,s.index,{mode:i})}updateRangeFromParsed(e,n,i,r){const s=i[n.axis];let a=s===null?NaN:s;const o=r&&i._stacks[n.axis];r&&o&&(r.values=o,a=Vz(r,s,this._cachedMeta.index)),e.min=Math.min(e.min,a),e.max=Math.max(e.max,a)}getMinMax(e,n){const i=this._cachedMeta,r=i._parsed,s=i._sorted&&e===i.iScale,a=r.length,o=this._getOtherScale(e),l=j$e(n,i,this.chart),u={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:c,max:f}=H$e(o);let h,p;function m(){p=r[h];const y=p[o.axis];return!Ur(p[e.axis])||c>y||f<y}for(h=0;h<a&&!(!m()&&(this.updateRangeFromParsed(u,e,p,l),s));++h);if(s){for(h=a-1;h>=0;--h)if(!m()){this.updateRangeFromParsed(u,e,p,l);break}}return u}getAllParsedValues(e){const n=this._cachedMeta._parsed,i=[];let r,s,a;for(r=0,s=n.length;r<s;++r)a=n[r][e.axis],Ur(a)&&i.push(a);return i}getMaxOverflow(){return!1}
vendor: 6,913 bytes, line 3891
3891getLabelAndValue(e){const n=this._cachedMeta,i=n.iScale,r=n.vScale,s=this.getParsed(e);return{label:i?""+i.getLabelForValue(s[i.axis]):"",value:r?""+r.getLabelForValue(s[r.axis]):""}}_update(e){const n=this._cachedMeta;this.update(e||"default"),n._clip=U$e(nn(this.options.clip,B$e(n.xScale,n.yScale,this.getMaxOverflow())))}update(e){}draw(){const e=this._ctx,n=this.chart,i=this._cachedMeta,r=i.data||[],s=n.chartArea,a=[],o=this._drawStart||0,l=this._drawCount||r.length-o,u=this.options.drawActiveElementsOnTop;let c;for(i.dataset&&i.dataset.draw(e,s,o,l),c=o;c<o+l;++c){const f=r[c];f.hidden||(f.active&&u?a.push(f):f.draw(e,s))}for(c=0;c<a.length;++c)a[c].draw(e,s)}getStyle(e,n){const i=n?"active":"default";return e===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(i):this.resolveDataElementOptions(e||0,i)}getContext(e,n,i){const r=this.getDataset();let s;if(e>=0&&e<this._cachedMeta.data.length){const a=this._cachedMeta.data[e];s=a.$context||(a.$context=G$e(this.getContext(),e,a)),s.parsed=this.getParsed(e),s.raw=r.data[e],s.index=s.dataIndex=e}else s=this.$context||(this.$context=W$e(this.chart.getContext(),this.index)),s.dataset=r,s.index=s.datasetIndex=this.index;return s.active=!!n,s.mode=i,s}resolveDatasetElementOptions(e){return this._resolveElementOptions(this.datasetElementType.id,e)}resolveDataElementOptions(e,n){return this._resolveElementOptions(this.dataElementType.id,n,e)}_resolveElementOptions(e,n="default",i){const r=n==="active",s=this._cachedDataOpts,a=e+"-"+n,o=s[a],l=this.enableOptionSharing&&Lo(i);if(o)return qz(o,l);const u=this.chart.config,c=u.datasetElementScopeKeys(this._type,e),f=r?[`${e}Hover`,"hover",e,""]:[e,""],h=u.getOptionScopes(this.getDataset(),c),p=Object.keys(En.elements[e]),m=()=>this.getContext(i,r),y=u.resolveNamedOptions(h,p,m,f);return y.$shared&&(y.$shared=l,s[a]=Object.freeze(qz(y,l))),y}_resolveAnimations(e,n,i){const r=this.chart,s=this._cachedDataOpts,a=`animation-${n}`,o=s[a];if(o)return o;let l;if(r.options.animation!==!1){const c=this.chart.config,f=c.datasetAnimationScopeKeys(this._type,n),h=c.getOptionScopes(this.getDataset(),f);l=c.createResolver(h,this.getContext(e,i,n))}const u=new ute(r,l&&l.animations);return l&&l._cacheable&&(s[a]=Object.freeze(u)),u}getSharedOptions(e){if(!!e.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},e))}includeOptions(e,n){return!n||H3(e)||this.chart._animationsDisabled}_getSharedOptions(e,n){const i=this.resolveDataElementOptions(e,n),r=this._sharedOptions,s=this.getSharedOptions(i),a=this.includeOptions(n,s)||s!==r;return this.updateSharedOptions(s,n,i),{sharedOptions:s,includeOptions:a}}updateElement(e,n,i,r){H3(r)?Object.assign(e,i):this._resolveAnimations(n,r).update(e,i)}updateSharedOptions(e,n,i){e&&!H3(n)&&this._resolveAnimations(void 0,n).update(e,i)}_setStyle(e,n,i,r){e.active=r;const s=this.getStyle(n,r);this._resolveAnimations(n,i,r).update(e,{options:!r&&this.getSharedOptions(s)||s})}removeHoverStyle(e,n,i){this._setStyle(e,i,"active",!1)}setHoverStyle(e,n,i){this._setStyle(e,i,"active",!0)}_removeDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!1)}_setDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!0)}_resyncElements(e){const n=this._data,i=this._cachedMeta.data;for(const[o,l,u]of this._syncList)this[o](l,u);this._syncList=[];const r=i.length,s=n.length,a=Math.min(s,r);a&&this.parse(0,a),s>r?this._insertElements(r,s-r,e):s<r&&this._removeElements(s,r-s)}_insertElements(e,n,i=!0){const r=this._cachedMeta,s=r.data,a=e+n;let o;const l=u=>{for(u.length+=n,o=u.length-1;o>=a;o--)u[o]=u[o-n]};for(l(s),o=e;o<a;++o)s[o]=new this.dataElementType;this._parsing&&l(r._parsed),this.parse(e,n),i&&this.updateElements(s,e,n,"reset")}updateElements(e,n,i,r){}_removeElements(e,n){const i=this._cachedMeta;if(this._parsing){const r=i._parsed.splice(e,n);i._stacked&&rv(i,r)}i.data.splice(e,n)}_sync(e){if(this._parsing)this._syncList.push(e);else{const[n,i,r]=e;this[n](i,r)}this.chart._dataChanges.push([this.index,...e])}_onDataPush(){const e=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-e,e])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(e,n){n&&this._sync(["_removeElements",e,n]);const i=arguments.length-2;i&&this._sync(["_insertElements",e,i])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}xl.defaults={};xl.prototype.datasetElementType=null;xl.prototype.dataElementType=null;function q$e(t,e){if(!t._cache.$bar){const n=t.getMatchingVisibleMetas(e);let i=[];for(let r=0,s=n.length;r<s;r++)i=i.concat(n[r].controller.getAllParsedValues(t));t._cache.$bar=zee(i.sort((r,s)=>r-s))}return t._cache.$bar}function X$e(t){const e=t.iScale,n=q$e(e,t.type);let i=e._length,r,s,a,o;const l=()=>{a===32767||a===-32768||(Lo(o)&&(i=Math.min(i,Math.abs(a-o)||i)),o=a)};for(r=0,s=n.length;r<s;++r)a=e.getPixelForValue(n[r]),l();for(o=void 0,r=0,s=e.ticks.length;r<s;++r)a=e.getPixelForTick(r),l();return i}function Y$e(t,e,n,i){const r=n.barThickness;let s,a;return Cn(r)?(s=e.min*n.categoryPercentage,a=n.barPercentage):(s=r*i,a=1),{chunk:s/i,ratio:a,start:e.pixels[t]-s/2}}function K$e(t,e,n,i){const r=e.pixels,s=r[t];let a=t>0?r[t-1]:null,o=t<r.length-1?r[t+1]:null;const l=n.categoryPercentage;a===null&&(a=s-(o===null?e.end-e.start:o-s)),o===null&&(o=s+s-a);const u=s-(s-Math.min(a,o))/2*l;return{chunk:Math.abs(o-a)/2*l/i,ratio:n.barPercentage,start:u}}function Z$e(t,e,n,i){const r=n.parse(t[0],i),s=n.parse(t[1],i),a=Math.min(r,s),o=Math.max(r,s);let l=a,u=o;Math.abs(a)>Math.abs(o)&&(l=o,u=a),e[n.axis]=u,e._custom={barStart:l,barEnd:u,start:r,end:s,min:a,max:o}}function fte(t,e,n,i){return pi(t)?Z$e(t,e,n,i):e[n.axis]=n.parse(t,i),e}function Xz(t,e,n,i){const r=t.iScale,s=t.vScale,a=r.getLabels(),o=r===s,l=[];let u,c,f,h;for(u=n,c=n+i;u<c;++u)h=e[u],f={},f[r.axis]=o||r.parse(a[u],u),l.push(fte(h,f,s,u));return l}function V3(t){return t&&t.barStart!==void 0&&t.barEnd!==void 0}function Q$e(t,e,n){return t!==0?uu(t):(e.isHorizontal()?1:-1)*(e.min>=n?1:-1)}function J$e(t){let e,n,i,r,s;return t.horizontal?(e=t.base>t.x,n="left",i="right"):(e=t.base<t.y,n="bottom",i="top"),e?(r="end",s="start"):(r="start",s="end"),{start:n,end:i,reverse:e,top:r,bottom:s}}function eze(t,e,n,i){let r=e.borderSkipped;const s={};if(!r){t.borderSkipped=s;return}if(r===!0){t.borderSkipped={top:!0,right:!0,bottom:!0,left:!0};return}const{start:a,end:o,reverse:l,top:u,bottom:c}=J$e(t);r==="middle"&&n&&(t.enableBorderRadius=!0,(n._top||0)===i?r=u:(n._bottom||0)===i?r=c:(s[Yz(c,a,o,l)]=!0,r=u)),s[Yz(r,a,o,l)]=!0,t.borderSkipped=s}function Yz(t,e,n,i){return i?(t=tze(t,e,n),t=Kz(t,n,e)):t=Kz(t,e,n),t}function tze(t,e,n){return t===e?n:t===n?e:t}function Kz(t,e,n){return t==="start"?e:t==="end"?n:t}
vendor: 8,589 bytes, line 3891
3891function nze(t,{inflateAmount:e},n){t.inflateAmount=e==="auto"?n===1?.33:0:e}class _C extends xl{parsePrimitiveData(e,n,i,r){return Xz(e,n,i,r)}parseArrayData(e,n,i,r){return Xz(e,n,i,r)}parseObjectData(e,n,i,r){const{iScale:s,vScale:a}=e,{xAxisKey:o="x",yAxisKey:l="y"}=this._parsing,u=s.axis==="x"?o:l,c=a.axis==="x"?o:l,f=[];let h,p,m,y;for(h=i,p=i+r;h<p;++h)y=n[h],m={},m[s.axis]=s.parse(bd(y,u),h),f.push(fte(bd(y,c),m,a,h));return f}updateRangeFromParsed(e,n,i,r){super.updateRangeFromParsed(e,n,i,r);const s=i._custom;s&&n===this._cachedMeta.vScale&&(e.min=Math.min(e.min,s.min),e.max=Math.max(e.max,s.max))}getMaxOverflow(){return 0}getLabelAndValue(e){const n=this._cachedMeta,{iScale:i,vScale:r}=n,s=this.getParsed(e),a=s._custom,o=V3(a)?"["+a.start+", "+a.end+"]":""+r.getLabelForValue(s[r.axis]);return{label:""+i.getLabelForValue(s[i.axis]),value:o}}initialize(){this.enableOptionSharing=!0,super.initialize();const e=this._cachedMeta;e.stack=this.getDataset().stack}update(e){const n=this._cachedMeta;this.updateElements(n.data,0,n.data.length,e)}updateElements(e,n,i,r){const s=r==="reset",{index:a,_cachedMeta:{vScale:o}}=this,l=o.getBasePixel(),u=o.isHorizontal(),c=this._getRuler(),{sharedOptions:f,includeOptions:h}=this._getSharedOptions(n,r);for(let p=n;p<n+i;p++){const m=this.getParsed(p),y=s||Cn(m[o.axis])?{base:l,head:l}:this._calculateBarValuePixels(p),v=this._calculateBarIndexPixels(p,c),_=(m._stacks||{})[o.axis],b={horizontal:u,base:y.base,enableBorderRadius:!_||V3(m._custom)||a===_._top||a===_._bottom,x:u?y.head:v.center,y:u?v.center:y.head,height:u?v.size:Math.abs(y.size),width:u?Math.abs(y.size):v.size};h&&(b.options=f||this.resolveDataElementOptions(p,e[p].active?"active":r));const x=b.options||e[p].options;eze(b,x,_,a),nze(b,x,c.ratio),this.updateElement(e[p],p,b,r)}}_getStacks(e,n){const{iScale:i}=this._cachedMeta,r=i.getMatchingVisibleMetas(this._type).filter(l=>l.controller.options.grouped),s=i.options.stacked,a=[],o=l=>{const u=l.controller.getParsed(n),c=u&&u[l.vScale.axis];if(Cn(c)||isNaN(c))return!0};for(const l of r)if(!(n!==void 0&&o(l))&&((s===!1||a.indexOf(l.stack)===-1||s===void 0&&l.stack===void 0)&&a.push(l.stack),l.index===e))break;return a.length||a.push(void 0),a}_getStackCount(e){return this._getStacks(void 0,e).length}_getStackIndex(e,n,i){const r=this._getStacks(e,i),s=n!==void 0?r.indexOf(n):-1;return s===-1?r.length-1:s}_getRuler(){const e=this.options,n=this._cachedMeta,i=n.iScale,r=[];let s,a;for(s=0,a=n.data.length;s<a;++s)r.push(i.getPixelForValue(this.getParsed(s)[i.axis],s));const o=e.barThickness;return{min:o||X$e(n),pixels:r,start:i._startPixel,end:i._endPixel,stackCount:this._getStackCount(),scale:i,grouped:e.grouped,ratio:o?1:e.categoryPercentage*e.barPercentage}}_calculateBarValuePixels(e){const{_cachedMeta:{vScale:n,_stacked:i},options:{base:r,minBarLength:s}}=this,a=r||0,o=this.getParsed(e),l=o._custom,u=V3(l);let c=o[n.axis],f=0,h=i?this.applyStack(n,o,i):c,p,m;h!==c&&(f=h-c,h=c),u&&(c=l.barStart,h=l.barEnd-l.barStart,c!==0&&uu(c)!==uu(l.barEnd)&&(f=0),f+=c);const y=!Cn(r)&&!u?r:f;let v=n.getPixelForValue(y);if(this.chart.getDataVisibility(e)?p=n.getPixelForValue(f+h):p=v,m=p-v,Math.abs(m)<s){m=Q$e(m,n,a)*s,c===a&&(v-=m/2);const _=n.getPixelForDecimal(0),b=n.getPixelForDecimal(1),x=Math.min(_,b),T=Math.max(_,b);v=Math.max(Math.min(v,T),x),p=v+m}if(v===n.getPixelForValue(a)){const _=uu(m)*n.getLineWidthForValue(a)/2;v+=_,m-=_}return{size:m,base:v,head:p,center:p+m/2}}_calculateBarIndexPixels(e,n){const i=n.scale,r=this.options,s=r.skipNull,a=nn(r.maxBarThickness,1/0);let o,l;if(n.grouped){const u=s?this._getStackCount(e):n.stackCount,c=r.barThickness==="flex"?K$e(e,n,r,u):Y$e(e,n,r,u),f=this._getStackIndex(this.index,this._cachedMeta.stack,s?e:void 0);o=c.start+c.chunk*f+c.chunk/2,l=Math.min(a,c.chunk*c.ratio)}else o=i.getPixelForValue(this.getParsed(e)[i.axis],e),l=Math.min(a,n.min*n.ratio);return{base:o-l/2,head:o+l/2,center:o,size:l}}draw(){const e=this._cachedMeta,n=e.vScale,i=e.data,r=i.length;let s=0;for(;s<r;++s)this.getParsed(s)[n.axis]!==null&&i[s].draw(this._ctx)}}_C.id="bar";_C.defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}};_C.overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};class vF extends xl{initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(e,n,i,r){const s=super.parsePrimitiveData(e,n,i,r);for(let a=0;a<s.length;a++)s[a]._custom=this.resolveDataElementOptions(a+i).radius;return s}parseArrayData(e,n,i,r){const s=super.parseArrayData(e,n,i,r);for(let a=0;a<s.length;a++){const o=n[i+a];s[a]._custom=nn(o[2],this.resolveDataElementOptions(a+i).radius)}return s}parseObjectData(e,n,i,r){const s=super.parseObjectData(e,n,i,r);for(let a=0;a<s.length;a++){const o=n[i+a];s[a]._custom=nn(o&&o.r&&+o.r,this.resolveDataElementOptions(a+i).radius)}return s}getMaxOverflow(){const e=this._cachedMeta.data;let n=0;for(let i=e.length-1;i>=0;--i)n=Math.max(n,e[i].size(this.resolveDataElementOptions(i))/2);return n>0&&n}getLabelAndValue(e){const n=this._cachedMeta,{xScale:i,yScale:r}=n,s=this.getParsed(e),a=i.getLabelForValue(s.x),o=r.getLabelForValue(s.y),l=s._custom;return{label:n.label,value:"("+a+", "+o+(l?", "+l:"")+")"}}update(e){const n=this._cachedMeta.data;this.updateElements(n,0,n.length,e)}updateElements(e,n,i,r){const s=r==="reset",{iScale:a,vScale:o}=this._cachedMeta,{sharedOptions:l,includeOptions:u}=this._getSharedOptions(n,r),c=a.axis,f=o.axis;for(let h=n;h<n+i;h++){const p=e[h],m=!s&&this.getParsed(h),y={},v=y[c]=s?a.getPixelForDecimal(.5):a.getPixelForValue(m[c]),_=y[f]=s?o.getBasePixel():o.getPixelForValue(m[f]);y.skip=isNaN(v)||isNaN(_),u&&(y.options=l||this.resolveDataElementOptions(h,p.active?"active":r),s&&(y.options.radius=0)),this.updateElement(p,h,y,r)}}resolveDataElementOptions(e,n){const i=this.getParsed(e);let r=super.resolveDataElementOptions(e,n);r.$shared&&(r=Object.assign({},r,{$shared:!1}));const s=r.radius;return n!=="active"&&(r.radius=0),r.radius+=nn(i&&i._custom,s),r}}vF.id="bubble";vF.defaults={datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}};vF.overrides={scales:{x:{type:"linear"},y:{type:"linear"}},plugins:{tooltip:{callbacks:{title(){return""}}}}};function ize(t,e,n){let i=1,r=1,s=0,a=0;if(e<ei){const o=t,l=o+e,u=Math.cos(o),c=Math.sin(o),f=Math.cos(l),h=Math.sin(l),p=(x,T,E)=>bb(x,o,l,!0)?1:Math.max(T,T*n,E,E*n),m=(x,T,E)=>bb(x,o,l,!0)?-1:Math.min(T,T*n,E,E*n),y=p(0,u,f),v=p(Ui,c,h),_=m(Ti,u,f),b=m(Ti+Ui,c,h);i=(y-_)/2,r=(v-b)/2,s=-(y+_)/2,a=-(v+b)/2}return{ratioX:i,ratioY:r,offsetX:s,offsetY:a}}class n_ extends xl{constructor(e,n){super(e,n),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(e,n){const i=this.getDataset().data,r=this._cachedMeta;if(this._parsing===!1)r._parsed=i;else{let s=l=>+i[l];if(Dn(i[e])){const{key:l="value"}=this._parsing;s=u=>+bd(i[u],l)}let a,o;for(a=e,o=e+n;a<o;++a)r._parsed[a]=s(a)}}_getRotation(){return ll(this.options.rotation-90)}_getCircumference(){return ll(this.options.circumference)}_getRotationExtents(){let e=ei,n=-ei;for(let i=0;i<this.chart.data.datasets.length;++i)if(this.chart.isDatasetVisible(i)){const r=this.chart.getDatasetMeta(i).controller,s=r._getRotation(),a=r._getCircumference();e=Math.min(e,s),n=Math.max(n,s+a)}return{rotation:e,circumference:n-e}}update(e){const n=this.chart,{chartArea:i}=n,r=this._cachedMeta,s=r.data,a=this.getMaxBorderWidth()+this.getMaxOffset(s)+this.options.spacing,o=Math.max((Math.min(i.width,i.height)-a)/2,0),l=Math.min(Z9e(this.options.cutout,o),1),u=this._getRingWeight(this.index),{circumference:c,rotation:f}=this._getRotationExtents(),{ratioX:h,ratioY:p,offsetX:m,offsetY:y}=ize(f,c,l),v=(i.width-a)/h,_=(i.height-a)/p,b=Math.max(Math.min(v,_)/2,0),x=Fee(this.options.radius,b),T=Math.max(x*l,0),E=(x-T)/this._getVisibleDatasetWeightTotal();this.offsetX=m*x,this.offsetY=y*x,r.total=this.calculateTotal(),this.outerRadius=x-E*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-E*u,0),this.updateElements(s,0,s.length,e)}_circumference(e,n){const i=this.options,r=this._cachedMeta,s=this._getCircumference();return n&&i.animation.animateRotate||!this.chart.getDataVisibility(e)||r._parsed[e]===null||r.data[e].hidden?0:this.calculateCircumference(r._parsed[e]*s/ei
vendor: 7,309 bytes, line 3891
3891)}updateElements(e,n,i,r){const s=r==="reset",a=this.chart,o=a.chartArea,u=a.options.animation,c=(o.left+o.right)/2,f=(o.top+o.bottom)/2,h=s&&u.animateScale,p=h?0:this.innerRadius,m=h?0:this.outerRadius,{sharedOptions:y,includeOptions:v}=this._getSharedOptions(n,r);let _=this._getRotation(),b;for(b=0;b<n;++b)_+=this._circumference(b,s);for(b=n;b<n+i;++b){const x=this._circumference(b,s),T=e[b],E={x:c+this.offsetX,y:f+this.offsetY,startAngle:_,endAngle:_+x,circumference:x,outerRadius:m,innerRadius:p};v&&(E.options=y||this.resolveDataElementOptions(b,T.active?"active":r)),_+=x,this.updateElement(T,b,E,r)}}calculateTotal(){const e=this._cachedMeta,n=e.data;let i=0,r;for(r=0;r<n.length;r++){const s=e._parsed[r];s!==null&&!isNaN(s)&&this.chart.getDataVisibility(r)&&!n[r].hidden&&(i+=Math.abs(s))}return i}calculateCircumference(e){const n=this._cachedMeta.total;return n>0&&!isNaN(e)?ei*(Math.abs(e)/n):0}getLabelAndValue(e){const n=this._cachedMeta,i=this.chart,r=i.data.labels||[],s=o1(n._parsed[e],i.options.locale);return{label:r[e]||"",value:s}}getMaxBorderWidth(e){let n=0;const i=this.chart;let r,s,a,o,l;if(!e){for(r=0,s=i.data.datasets.length;r<s;++r)if(i.isDatasetVisible(r)){a=i.getDatasetMeta(r),e=a.data,o=a.controller;break}}if(!e)return 0;for(r=0,s=e.length;r<s;++r)l=o.resolveDataElementOptions(r),l.borderAlign!=="inner"&&(n=Math.max(n,l.borderWidth||0,l.hoverBorderWidth||0));return n}getMaxOffset(e){let n=0;for(let i=0,r=e.length;i<r;++i){const s=this.resolveDataElementOptions(i);n=Math.max(n,s.offset||0,s.hoverOffset||0)}return n}_getRingWeightOffset(e){let n=0;for(let i=0;i<e;++i)this.chart.isDatasetVisible(i)&&(n+=this._getRingWeight(i));return n}_getRingWeight(e){return Math.max(nn(this.chart.data.datasets[e].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}n_.id="doughnut";n_.defaults={datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"};n_.descriptors={_scriptable:t=>t!=="spacing",_indexable:t=>t!=="spacing"};n_.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:n}}=t.legend.options;return e.labels.map((i,r)=>{const a=t.getDatasetMeta(0).controller.getStyle(r);return{text:i,fillStyle:a.backgroundColor,strokeStyle:a.borderColor,lineWidth:a.borderWidth,pointStyle:n,hidden:!t.getDataVisibility(r),index:r}})}return[]}},onClick(t,e,n){n.chart.toggleDataVisibility(e.index),n.chart.update()}},tooltip:{callbacks:{title(){return""},label(t){let e=t.label;const n=": "+t.formattedValue;return pi(e)?(e=e.slice(),e[0]+=n):e+=n,e}}}}};class vC extends xl{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(e){const n=this._cachedMeta,{dataset:i,data:r=[],_dataset:s}=n,a=this.chart._animationsDisabled;let{start:o,count:l}=Wee(n,r,a);this._drawStart=o,this._drawCount=l,Gee(n)&&(o=0,l=r.length),i._chart=this.chart,i._datasetIndex=this.index,i._decimated=!!s._decimated,i.points=r;const u=this.resolveDatasetElementOptions(e);this.options.showLine||(u.borderWidth=0),u.segment=this.options.segment,this.updateElement(i,void 0,{animated:!a,options:u},e),this.updateElements(r,o,l,e)}updateElements(e,n,i,r){const s=r==="reset",{iScale:a,vScale:o,_stacked:l,_dataset:u}=this._cachedMeta,{sharedOptions:c,includeOptions:f}=this._getSharedOptions(n,r),h=a.axis,p=o.axis,{spanGaps:m,segment:y}=this.options,v=Ag(m)?m:Number.POSITIVE_INFINITY,_=this.chart._animationsDisabled||s||r==="none";let b=n>0&&this.getParsed(n-1);for(let x=n;x<n+i;++x){const T=e[x],E=this.getParsed(x),C=_?T:{},D=Cn(E[p]),R=C[h]=a.getPixelForValue(E[h],x),A=C[p]=s||D?o.getBasePixel():o.getPixelForValue(l?this.applyStack(o,E,l):E[p],x);C.skip=isNaN(R)||isNaN(A)||D,C.stop=x>0&&Math.abs(E[h]-b[h])>v,y&&(C.parsed=E,C.raw=u.data[x]),f&&(C.options=c||this.resolveDataElementOptions(x,T.active?"active":r)),_||this.updateElement(T,x,C,r),b=E}}getMaxOverflow(){const e=this._cachedMeta,n=e.dataset,i=n.options&&n.options.borderWidth||0,r=e.data||[];if(!r.length)return i;const s=r[0].size(this.resolveDataElementOptions(0)),a=r[r.length-1].size(this.resolveDataElementOptions(r.length-1));return Math.max(i,s,a)/2}draw(){const e=this._cachedMeta;e.dataset.updateControlPoints(this.chart.chartArea,e.iScale.axis),super.draw()}}vC.id="line";vC.defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1};vC.overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};class yF extends xl{constructor(e,n){super(e,n),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(e){const n=this._cachedMeta,i=this.chart,r=i.data.labels||[],s=o1(n._parsed[e].r,i.options.locale);return{label:r[e]||"",value:s}}parseObjectData(e,n,i,r){return ite.bind(this)(e,n,i,r)}update(e){const n=this._cachedMeta.data;this._updateRadius(),this.updateElements(n,0,n.length,e)}getMinMax(){const e=this._cachedMeta,n={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return e.data.forEach((i,r)=>{const s=this.getParsed(r).r;!isNaN(s)&&this.chart.getDataVisibility(r)&&(s<n.min&&(n.min=s),s>n.max&&(n.max=s))}),n}_updateRadius(){const e=this.chart,n=e.chartArea,i=e.options,r=Math.min(n.right-n.left,n.bottom-n.top),s=Math.max(r/2,0),a=Math.max(i.cutoutPercentage?s/100*i.cutoutPercentage:1,0),o=(s-a)/e.getVisibleDatasetCount();this.outerRadius=s-o*this.index,this.innerRadius=this.outerRadius-o}updateElements(e,n,i,r){const s=r==="reset",a=this.chart,l=a.options.animation,u=this._cachedMeta.rScale,c=u.xCenter,f=u.yCenter,h=u.getIndexAngle(0)-.5*Ti;let p=h,m;const y=360/this.countVisibleElements();for(m=0;m<n;++m)p+=this._computeAngle(m,r,y);for(m=n;m<n+i;m++){const v=e[m];let _=p,b=p+this._computeAngle(m,r,y),x=a.getDataVisibility(m)?u.getDistanceFromCenterForValue(this.getParsed(m).r):0;p=b,s&&(l.animateScale&&(x=0),l.animateRotate&&(_=b=h));const T={x:c,y:f,innerRadius:0,outerRadius:x,startAngle:_,endAngle:b,options:this.resolveDataElementOptions(m,v.active?"active":r)};this.updateElement(v,m,T,r)}}countVisibleElements(){const e=this._cachedMeta;let n=0;return e.data.forEach((i,r)=>{!isNaN(this.getParsed(r).r)&&this.chart.getDataVisibility(r)&&n++}),n}_computeAngle(e,n,i){return this.chart.getDataVisibility(e)?ll(this.resolveDataElementOptions(e,n).angle||i):0}}yF.id="polarArea";yF.defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0};yF.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:n}}=t.legend.options;return e.labels.map((i,r)=>{const a=t.getDatasetMeta(0).controller.getStyle(r);return{text:i,fillStyle:a.backgroundColor,strokeStyle:a.borderColor,lineWidth:a.borderWidth,pointStyle:n,hidden:!t.getDataVisibility(r),index:r}})}return[]}},onClick(t,e,n){n.chart.toggleDataVisibility(e.index),n.chart.update(
3891)}},tooltip:{callbacks:{title(){return""},label(t){return t.chart.data.labels[t.dataIndex]+": "+t.formattedValue}}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}};class bF extends n_{}bF.id="pie";bF.defaults={cutout:0,rotation:0,circumference:360,radius:"100%"};class xF extends xl{getLabelAndValue(e){const n=this._cachedMeta.vScale,i=this.getParsed(e);return{label:n.getLabels()[e],value:""+n.getLabelForValue(i[n.axis])}}parseObjectData(e,n,i,r){return ite.bind(this)(e,n,i,r)}update(e){const n=this._cachedMeta,i=n.dataset,r=n.data||[],s=n.iScale.getLabels();if(i.points=r,e!=="resize"){const a=this.resolveDatasetElementOptions(e);this.options.showLine||(a.borderWidth=0);const o={_loop:!0,_fullLoop:s.length===r.length,options:a};this.updateElement(i,void 0,o,e)}this.updateElements(r,0,r.length,e)}updateElements(e,n,i,r){const s=this._cachedMeta.rScale,a=r==="reset";for(let o=n;o<n+i;o++){const l=e[o],u=this.resolveDataElementOptions(o,l.active?"active":r),c=s.getPointPositionForValue(o,this.getParsed(o).r),f=a?s.xCenter:c.x,h=a?s.yCenter:c.y,p={x:f,y:h,angle:c.angle,skip:isNaN(f)||isNaN(h),options:u};this.updateElement(l,o,p,r)}}}xF.id="radar";xF.defaults={datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}};xF.overrides={aspectRatio:1,scales:{r:{type:"radialLinear"}}};class Sl{constructor(){this.x=void 0,this.y=void 0,this.active=!1,this.options=void 0,this.$animations=void 0}tooltipPosition(e){const{x:n,y:i}=this.getProps(["x","y"],e);return{x:n,y:i}}hasValue(){return Ag(this.x)&&Ag(this.y)}getProps(e,n){const i=this.$animations;if(!n||!i)return this;const r={};return e.forEach(s=>{r[s]=i[s]&&i[s].active()?i[s]._to:this[s]}),r}}Sl.defaults={};Sl.defaultRoutes=void 0;const dte={values(t){return pi(t)?t:""+t},numeric(t,e,n){if(t===0)return"0";const i=this.chart.options.locale;let r,s=t;if(n.length>1){const u=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(u<1e-4||u>1e15)&&(r="scientific"),s=rze(t,n)}const a=To(Math.abs(s)),o=Math.max(Math.min(-1*Math.floor(a),20),0),l={notation:r,minimumFractionDigits:o,maximumFractionDigits:o};return Object.assign(l,this.options.ticks.format),o1(t,i,l)},logarithmic(t,e,n){if(t===0)return"0";const i=t/Math.pow(10,Math.floor(To(t)));return i===1||i===2||i===5?dte.numeric.call(this,t,e,n):""}};function rze(t,e){let n=e.length>3?e[2].value-e[1].value:e[1].value-e[0].value;return Math.abs(n)>=1&&t!==Math.floor(t)&&(n=t-Math.floor(t)),n}var yC={formatters:dte};En.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",grace:0,grid:{display:!0,lineWidth:1,drawBorder:!0,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,e)=>e.lineWidth,tickColor:(t,e)=>e.color,offset:!1,borderDash:[],borderDashOffset:0,borderWidth:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:yC.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}});En.route("scale.ticks","color","","color");En.route("scale.grid","color","","borderColor");En.route("scale.grid","borderColor","","borderColor");En.route("scale.title","color","","color");En.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&t!=="callback"&&t!=="parser",_indexable:t=>t!=="borderDash"&&t!=="tickBorderDash"});En.describe("scales",{_fallback:"scale"});En.describe("scale.ticks",{_scriptable:t=>t!=="backdropPadding"&&t!=="callback",_indexable:t=>t!=="backdropPadding"});function sze(t,e){const n=t.options.ticks,i=n.maxTicksLimit||aze(t),r=n.major.enabled?lze(e):[],s=r.length,a=r[0],o=r[s-1],l=[];if(s>i)return uze(e,l,r,s/i),l;const u=oze(r,e,i);if(s>0){let c,f;const h=s>1?Math.round((o-a)/(s-1)):null;for(QS(e,l,u,Cn(h)?0:a-h,a),c=0,f=s-1;c<f;c++)QS(e,l,u,r[c],r[c+1]);return QS(e,l,u,o,Cn(h)?e.length:o+h),l}return QS(e,l,u),l}function aze(t){const e=t.options.offset,n=t._tickSize(),i=t._length/n+(e?0:1),r=t._maxLength/n;return Math.floor(Math.min(i,r))}function oze(t,e,n){const i=cze(t),r=e.length/n;if(!i)return Math.max(r,1);const s=s7e(i);for(let a=0,o=s.length-1;a<o;a++){const l=s[a];if(l>r)return l}return Math.max(r,1)}function lze(t){const e=[];let n,i;for(n=0,i=t.length;n<i;n++)t[n].major&&e.push(n);return e}function uze(t,e,n,i){let r=0,s=n[0],a;for(i=Math.ceil(i),a=0;a<t.length;a++)a===s&&(e.push(t[a]),r++,s=n[r*i])}function QS(t,e,n,i,r){const s=nn(i,0),a=Math.min(nn(r,t.length),t.length);let o=0,l,u,c;for(n=Math.ceil(n),r&&(l=r-i,n=l/Math.floor(l/n)),c=s;c<0;)o++,c=Math.round(s+o*n);for(u=Math.max(s,0);u<a;u++)u===c&&(e.push(t[u]),o++,c=Math.round(s+o*n))}function cze(t){const e=t.length;let n,i;if(e<2)return!1;for(i=t[0],n=1;n<e;++n)if(t[n]-t[n-1]!==i)return!1;return i}const fze=t=>
vendor: 15,643 bytes, line 3891
3891t==="left"?"right":t==="right"?"left":t,Zz=(t,e,n)=>e==="top"||e==="left"?t[e]+n:t[e]-n;function Qz(t,e){const n=[],i=t.length/e,r=t.length;let s=0;for(;s<r;s+=i)n.push(t[Math.floor(s)]);return n}function dze(t,e,n){const i=t.ticks.length,r=Math.min(e,i-1),s=t._startPixel,a=t._endPixel,o=1e-6;let l=t.getPixelForTick(r),u;if(!(n&&(i===1?u=Math.max(l-s,a-l):e===0?u=(t.getPixelForTick(1)-l)/2:u=(l-t.getPixelForTick(r-1))/2,l+=r<e?u:-u,l<s-o||l>a+o)))return l}function hze(t,e){Bn(t,n=>{const i=n.gc,r=i.length/2;let s;if(r>e){for(s=0;s<r;++s)delete n.data[i[s]];i.splice(0,r)}})}function sv(t){return t.drawTicks?t.tickLength:0}function Jz(t,e){if(!t.display)return 0;const n=er(t.font,e),i=$r(t.padding);return(pi(t.text)?t.text.length:1)*n.lineHeight+i.height}function pze(t,e){return Pd(t,{scale:e,type:"scale"})}function mze(t,e,n){return Pd(t,{tick:n,index:e,type:"tick"})}function gze(t,e,n){let i=oF(t);return(n&&e!=="right"||!n&&e==="right")&&(i=fze(i)),i}function _ze(t,e,n,i){const{top:r,left:s,bottom:a,right:o,chart:l}=t,{chartArea:u,scales:c}=l;let f=0,h,p,m;const y=a-r,v=o-s;if(t.isHorizontal()){if(p=jr(i,s,o),Dn(n)){const _=Object.keys(n)[0],b=n[_];m=c[_].getPixelForValue(b)+y-e}else n==="center"?m=(u.bottom+u.top)/2+y-e:m=Zz(t,n,e);h=o-s}else{if(Dn(n)){const _=Object.keys(n)[0],b=n[_];p=c[_].getPixelForValue(b)-v+e}else n==="center"?p=(u.left+u.right)/2-v+e:p=Zz(t,n,e);m=jr(i,a,r),f=n==="left"?-Ui:Ui}return{titleX:p,titleY:m,maxWidth:h,rotation:f}}class Lp extends Sl{constructor(e){super(),this.id=e.id,this.type=e.type,this.options=void 0,this.ctx=e.ctx,this.chart=e.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(e){this.options=e.setContext(this.getContext()),this.axis=e.axis,this._userMin=this.parse(e.min),this._userMax=this.parse(e.max),this._suggestedMin=this.parse(e.suggestedMin),this._suggestedMax=this.parse(e.suggestedMax)}parse(e,n){return e}getUserBounds(){let{_userMin:e,_userMax:n,_suggestedMin:i,_suggestedMax:r}=this;return e=_o(e,Number.POSITIVE_INFINITY),n=_o(n,Number.NEGATIVE_INFINITY),i=_o(i,Number.POSITIVE_INFINITY),r=_o(r,Number.NEGATIVE_INFINITY),{min:_o(e,i),max:_o(n,r),minDefined:Ur(e),maxDefined:Ur(n)}}getMinMax(e){let{min:n,max:i,minDefined:r,maxDefined:s}=this.getUserBounds(),a;if(r&&s)return{min:n,max:i};const o=this.getMatchingVisibleMetas();for(let l=0,u=o.length;l<u;++l)a=o[l].controller.getMinMax(this,e),r||(n=Math.min(n,a.min)),s||(i=Math.max(i,a.max));return n=s&&n>i?i:n,i=r&&n>i?n:i,{min:_o(n,_o(i,n)),max:_o(i,_o(n,i))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const e=this.chart.data;return this.options.labels||(this.isHorizontal()?e.xLabels:e.yLabels)||e.labels||[]}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){Yn(this.options.beforeUpdate,[this])}update(e,n,i){const{beginAtZero:r,grace:s,ticks:a}=this.options,o=a.sampleSize;this.beforeUpdate(),this.maxWidth=e,this.maxHeight=n,this._margins=i=Object.assign({left:0,right:0,top:0,bottom:0},i),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+i.left+i.right:this.height+i.top+i.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=q7e(this,s,r),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=o<this.ticks.length;this._convertTicksToLabels(l?Qz(this.ticks,o):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),a.display&&(a.autoSkip||a.source==="auto")&&(this.ticks=sze(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),l&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let e=this.options.reverse,n,i;this.isHorizontal()?(n=this.left,i=this.right):(n=this.top,i=this.bottom,e=!e),this._startPixel=n,this._endPixel=i,this._reversePixels=e,this._length=i-n,this._alignToPixels=this.options.alignToPixels}afterUpdate(){Yn(this.options.afterUpdate,[this])}beforeSetDimensions(){Yn(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){Yn(this.options.afterSetDimensions,[this])}_callHooks(e){this.chart.notifyPlugins(e,this.getContext()),Yn(this.options[e],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){Yn(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(e){const n=this.options.ticks;let i,r,s;for(i=0,r=e.length;i<r;i++)s=e[i],s.label=Yn(n.callback,[s.value,i,e],this)}afterTickToLabelConversion(){Yn(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){Yn(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const e=this.options,n=e.ticks,i=this.ticks.length,r=n.minRotation||0,s=n.maxRotation;let a=r,o,l,u;if(!this._isVisible()||!n.display||r>=s||i<=1||!this.isHorizontal()){this.labelRotation=r;return}const c=this._getLabelSizes(),f=c.widest.width,h=c.highest.height,p=ts(this.chart.width-f,0,this.maxWidth);o=e.offset?this.maxWidth/i:p/(i-1),f+6>o&&(o=p/(i-(e.offset?.5:1)),l=this.maxHeight-sv(e.grid)-n.padding-Jz(e.title,this.chart.options.font),u=Math.sqrt(f*f+h*h),a=sF(Math.min(Math.asin(ts((c.highest.height+6)/o,-1,1)),Math.asin(ts(l/u,-1,1))-Math.asin(ts(h/u,-1,1)))),a=Math.max(r,Math.min(s,a))),this.labelRotation=a}afterCalculateLabelRotation(){Yn(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){Yn(this.options.beforeFit,[this])}fit(){const e={width:0,height:0},{chart:n,options:{ticks:i,title:r,grid:s}}=this,a=this._isVisible(),o=this.isHorizontal();if(a){const l=Jz(r,n.options.font);if(o?(e.width=this.maxWidth,e.height=sv(s)+l):(e.height=this.maxHeight,e.width=sv(s)+l),i.display&&this.ticks.length){const{first:u,last:c,widest:f,highest:h}=this._getLabelSizes(),p=i.padding*2,m=ll(this.labelRotation),y=Math.cos(m),v=Math.sin(m);if(o){const _=i.mirror?0:v*f.width+y*h.height;e.height=Math.min(this.maxHeight,e.height+_+p)}else{const _=i.mirror?0:y*f.width+v*h.height;e.width=Math.min(this.maxWidth,e.width+_+p)}this._calculatePadding(u,c,v,y)}}this._handleMargins(),o?(this.width=this._length=n.width-this._margins.left-this._margins.right,this.height=e.height):(this.width=e.width,this.height=this._length=n.height-this._margins.top-this._margins.bottom)}_calculatePadding(e,n,i,r){const{ticks:{align:s,padding:a},position:o}=this.options,l=this.labelRotation!==0,u=o!=="top"&&this.axis==="x";if(this.isHorizontal()){const c=this.getPixelForTick(0)-this.left,f=this.right-this.getPixelForTick(this.ticks.length-1);let h=0,p=0;l?u?(h=r*e.width,p=i*n.height):(h=i*e.height,p=r*n.width):s==="start"?p=n.width:s==="end"?h=e.width:s!=="inner"&&(h=e.width/2,p=n.width/2),this.paddingLeft=Math.max((h-c+a)*this.width/(this.width-c),0),this.paddingRight=Math.max((p-f+a)*this.width/(this.width-f),0)}else{let c=n.height/2,f=e.height/2;s==="start"?(c=0,f=e.height):s==="end"&&(c=n.height,f=0),this.paddingTop=c+a,this.paddingBottom=f+a}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){Yn(this.options.afterFit,[this])}isHorizontal(){const{axis:e,position:n}=this.options;return n==="top"||n==="bottom"||e==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(e){this.beforeTickToLabelConversion(),this.generateTickLabels(e);let n,i;for(n=0,i=e.length;n<i;n++)Cn(e[n].label)&&(e.splice(n,1),i--,n--);this.afterTickToLabelConversion()}_getLabelSizes(){let e=this._labelSizes;if(!e){const n=this.options.ticks.sampleSize;let i=this.ticks;n<i.length&&(i=Qz(i,n)),this._labelSizes=e=this._computeLabelSizes(i,i.length)}return e}_computeLabelSizes(e,n){const{ctx:i,_longestTextCache:r}=this,s=[],a=[];let o=0,l=0,u,c,f,h,p,m,y,v,_,b,x;for(u=0;u<n;++u){if(h=e[u].label,p=this._resolveTickFontOptions(u),i.font=m=p.string,y=r[m]=r[m]||{data:{},gc:[]},v=p.lineHeight,_=b=0,!Cn(h)&&!pi(h))_=DE(i,y.data,y.gc,_,h),b=v;else if(pi(h))for(c=0,f=h.length;c<f;++c)x=h[c],!Cn(x)&&!pi(x)&&(_=DE(i,y.data,y.gc,_,x),b+=v);s.push(_),a.push(b),o=Math.max(_,o),l=Math.max(b,l)}hze(r,n);const T=s.indexOf(o),E=a.indexOf(l),C=D=>({width:s[D]||0,height:a[D]||0});return{first:C(0),last:C(n-1),widest:C(T),highest:C(E),widths:s,heights:a}}getLabelForValue(e){return e}getPixelForValue(e,n){return NaN}getValueForPixel(e){}getPixelForTick(e){const n=this.ticks;return e<0||e>n.length-1?null:this.getPixelForValue(n[e].value)}getPixelForDecimal(e){this._reversePixels&&(e=1-e);const n=this._startPixel+e*this._length;return l7e(this._alignToPixels?ah(this.chart,n,0):n)}getDecimalForPixel(e){const n=(e-this._startPixel)/this._length;return this._reversePixels?1-n:n}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:e,max:n}=this;return e<0&&n<0?n:e>0&&n>0?e:0}getContext(e){const n=this.ticks||[];if(e>=0&&e<n.length){const i=n[e];return i.$context||(i.$context=mze(this.getContext(),e,i))}return this.$context||(this.$context=pze(this.chart.getContext(),this))}_tickSize(){const e=this.options.ticks,n=ll(this.labelRotation),i=Math.abs(Math.cos(n)),r=Math.abs(Math.sin(n)),s=this._getLabelSizes(),a=e.autoSkipPadding||0,o=s?s.widest.width+a:0,l=s?s.highest.height+a:0;return this.isHorizontal()?l*i>o*r?o/i:l/r:l*r<o*i?l/i:o/r}_isVisible(){const e=this.options.display;return e!=="auto"?!!e:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(e){const n=this.axis,i=this.chart,r=this.options,{grid:s,position:a}=r,o=s.offset,l=this.isHorizontal(),c=this.ticks.length+(o?1:0),f=sv(s),h=[],p=s.setContext(this.getContext()),m=p.drawBorder?p.borderWidth:0,y=m/2,v=function(G){return ah(i,G,m)};let _,b,x,T,E,C,D,R,A,k,F,N;if(a==="top")_=v(this.bottom),C=this.bottom-f,R=_-y,k=v(e.top)+y,N=e.bottom;else if(a==="bottom")_=v(this.top),k=e.top,N=v(e.bottom)-y,C=_+y,R=this.top+f;else if(a==="left")_=v(this.right),E=this.right-f,D=_-y,A=v(e.left)+y,F=e.right;else if(a==="right")_=v(this.left),A=e.left,F=v(e.right)-y,E=_+y,D=this.left+f;else if(n==="x"){if(a==="center")_=v((e.top+e.bottom)/2+.5);else if(Dn(a)){const G=Object.keys(a)[0],Y=a[G];_=v(this.chart.scales[G].getPixelForValue(Y))}k=e.top,N=e.bottom,C=_+y,R=C+f}else if(n==="y"){if(a==="center")_=v((e.left+e.right)/2);else if(Dn(a)){const G=Object.keys(a)[0],Y=a[G];_=v(this.chart.scales[G].getPixelForValue(Y))}E=_-y,D=E-f,A=e.left,F=e.right}const U=nn(r.ticks.maxTicksLimit,c),$=Math.max(1,Math.ceil(c/U));for(b=0;b<c;b+=$){const G=s.setContext(this.getContext(b)),Y=G.lineWidth,Q=G.color,re=G.borderDash||[],he=G.borderDashOffset,X=G.tickWidth,ae=G.tickColor,de=G.tickBorderDash||[],Re=G.tickBorderDashOffset;x=dze(this,b,o),x!==void 0&&(T=ah(i,x,Y),l?E=D=A=F=T:C=R=k=N=T,h.push({tx1:E,ty1:C,tx2:D,ty2:R,x1:A,y1:k,x2:F,y2:N,width:Y,color:Q,borderDash:re,borderDashOffset:he,tickWidth:X,tickColor:ae,tickBorderDash:de,tickBorderDashOffset:Re}))}return this._ticksLength=c,this._borderValue=_,h}_computeLabelItems(e){const n=this.axis,i=this.options,{position:r,ticks:s}=i,a=this.isHorizontal(),o=this.ticks,{align:l,crossAlign:u,padding:c,mirror:f}=s,h=sv(i.grid),p=h+c,m=f?-c:p,y=-ll(this.labelRotation),v=[];let _,b,x,T,E,C,D,R,A,k,F,N,U="middle";if(r==="top")C=this.bottom-m,D=this._getXAxisLabelAlignment();else if(r==="bottom")C=this.top+m,D=this._getXAxisLabelAlignment();else if(r==="left"){const G=this._getYAxisLabelAlignment(h);D=G.textAlign,E=G.x}else if(r==="right"){const G=this._getYAxisLabelAlignment(h);D=G.textAlign,E=G.x}else if(n==="x"){if(r==="center")C=(e.top+e.bottom)/2+p;else if(Dn(r)){const G=Object.keys(r)[0],Y=r[G];C=this.chart.scales[G].getPixelForValue(Y)+p}D=this._getXAxisLabelAlignment()}else if(n==="y"){if(r==="center")E=(e.left+e.right)/2-p;else if(Dn(r)){const G=Object.keys(r)[0],Y=r[G];E=this.chart.scales[G].getPixelForValue(Y)}D=this._getYAxisLabelAlignment(h).textAlign}n==="y"&&(l==="start"?U="top":l==="end"&&(U="bottom"));const $=this._getLabelSizes();for(_=0,b=o.length;_<b;++_){x=o[_],T=x.label;const G=s.setContext(this.getContext(_));R=this.getPixelForTick(_)+s.labelOffset,A=this._resolveTickFontOptions(_),k=A.lineHeight,F=pi(T)?T.length:1;const Y=F/2,Q=G.color,re=G.textStrokeColor,he=G.textStrokeWidth;let X=D;a?(E=R,D==="inner"&&(_===b-1?X=this.options.reverse?"left":"right":_===0?X=this.options.reverse?"right":"left":X="center"),r==="top"?u==="near"||y!==0?N=-F*k+k/2:u==="center"?N=-$.highest.height/2-Y*k+k:N=-$.highest.height+k/2:u==="near"||y!==0?N=k/2:u==="center"?N=$.highest.height/2-Y*k:N=$.highest.height-F*k,f&&(N*=-1)):(C=R,N=(1-F)*k/2);let ae;if(G.showLabelBackdrop){const de=$r(G.backdropPadding),Re=$.heights[_],_e=$.widths[_];let xe=C+N-de.top,we=E-de.left;switch(U){case"middle":xe-=Re/2;break;case"bottom":xe-=Re;break}switch(D){case"center":we-=_e/2;break;case"right":we-=_e;break}ae={left:we,top:xe,width:_e+de.width,height:Re+de.height,color:G.backdropColor}}v.push({rotation:y,label:T,font:A,color:Q,strokeColor:re,strokeWidth:he,textOffset:N,textAlign:X,textBaseline:U,translation:[E,C],backdrop:ae})}return v}_getXAxisLabelAlignment(){const{position:e,ticks:n}=this.options;if(-ll(this.labelRotation))return e==="top"?"left":"right";let r="center";return n.align==="start"?r="left":n.align==="end"?r="right":n.align==="inner"&&(r="inner"),r}_getYAxisLabelAlignment(e){const{position:n,ticks:{crossAlign:i,mirror:r,padding:s}}=this.options,a=this._getLabelSizes(),o=e+s,l=a.widest.width;let u,c;return n==="left"?r?(c=this.right+s,i==="near"?u="left":i==="center"?(u="center",c+=l/2):(u="right",c+=l)):(c=this.right-o,i==="near"?u="right":i==="center"?(u="center",c-=l/2):(u="left",c=this.left)):n==="right"?r?(c=this.left+s,i==="near"?u="right":i==="center"?(u="center",c-=l/2):(u="left",c-=l)):(c=this.left+o,i==="near"?u="left":i==="center"?(u="center",c+=l/2):(u="right",c=this.right)):u="right",{textAlign:u,x:c}}_computeLabelArea(){if(this.options.ticks.mirror)return;const e=this.chart,n=this.options.position;if(n==="left"||n==="right")return{top:0,left:this.left,bottom:e.height,right:this.right};
3891if(n==="top"||n==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:e.width}}drawBackground(){const{ctx:e,options:{backgroundColor:n},left:i,top:r,width:s,height:a}=this;n&&(e.save(),e.fillStyle=n,e.fillRect(i,r,s,a),e.restore())}getLineWidthForValue(e){const n=this.options.grid;if(!this._isVisible()||!n.display)return 0;const r=this.ticks.findIndex(s=>s.value===e);return r>=0?n.setContext(this.getContext(r)).lineWidth:0}drawGrid(e){const n=this.options.grid,i=this.ctx,r=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(e));let s,a;const o=(l,u,c)=>{!c.width||!c.color||(i.save(),i.lineWidth=c.width,i.strokeStyle=c.color,i.setLineDash(c.borderDash||[]),i.lineDashOffset=c.borderDashOffset,i.beginPath(),i.moveTo(l.x,l.y),i.lineTo(u.x,u.y),i.stroke(),i.restore())};if(n.display)for(s=0,a=r.length;s<a;++s){const l=r[s];n.drawOnChartArea&&o({x:l.x1,y:l.y1},{x:l.x2,y:l.y2},l),n.drawTicks&&o({x:l.tx1,y:l.ty1},{x:l.tx2,y:l.ty2},{color:l.tickColor,width:l.tickWidth,borderDash:l.tickBorderDash,borderDashOffset:l.tickBorderDashOffset})}}drawBorder(){const{chart:e,ctx:n,options:{grid:i}}=this,r=i.setContext(this.getContext()),s=i.drawBorder?r.borderWidth:0;if(!s)return;const a=i.setContext(this.getContext(0)).lineWidth,o=this._borderValue;let l,u,c,f;this.isHorizontal()?(l=ah(e,this.left,s)-s/2,u=ah(e,this.right,a)+a/2,c=f=o):(c=ah(e,this.top,s)-s/2,f=ah(e,this.bottom,a)+a/2,l=u=o),n.save(),n.lineWidth=r.borderWidth,n.strokeStyle=r.borderColor,n.beginPath(),n.moveTo(l,c),n.lineTo(u,f),n.stroke(),n.restore()}drawLabels(e){if(!this.options.ticks.display)return;const i=this.ctx,r=this._computeLabelArea();r&&fF(i,r);const s=this._labelItems||(this._labelItems=this._computeLabelItems(e));let a,o;for(a=0,o=s.length;a<o;++a){const l=s[a],u=l.font,c=l.label;l.backdrop&&(i.fillStyle=l.backdrop.color,i.fillRect(l.backdrop.left,l.backdrop.top,l.backdrop.width,l.backdrop.height));let f=l.textOffset;bp(i,c,0,f,u,l)}r&&dF(i)}drawTitle(){const{ctx:e,options:{position:n,title:i,reverse:r}}=this;if(!i.display)return;const s=er(i.font),a=$r(i.padding),o=i.align;let l=s.lineHeight/2;n==="bottom"||n==="center"||Dn(n)?(l+=a.bottom,pi(i.text)&&(l+=s.lineHeight*(i.text.length-1))):l+=a.top;const{titleX:u,titleY:c,maxWidth:f,rotation:h}=_ze(this,l,n,o);bp(e,i.text,0,0,s,{color:i.color,maxWidth:f,rotation:h,textAlign:gze(o,n,r),textBaseline:"middle",translation:[u,c]})}draw(e){!this._isVisible()||(this.drawBackground(),this.drawGrid(e),this.drawBorder(),this.drawTitle(),this.drawLabels(e))}_layers(){const e=this.options,n=e.ticks&&e.ticks.z||0,i=nn(e.grid&&e.grid.z,-1);return!this._isVisible()||this.draw!==Lp.prototype.draw?[{z:n,draw:r=>{this.draw(r)}}]:[{z:i,draw:r=>{this.drawBackground(),this.drawGrid(r),this.drawTitle()}},{z:i+1,draw:()=>{this.drawBorder()}},{z:n,draw:r=>{this.drawLabels(r)}}]}getMatchingVisibleMetas(e){const n=this.chart.getSortedVisibleDatasetMetas(),i=this.axis+"AxisID",r=[];let s,a;for(s=0,a=n.length;s<a;++s){const o=n[s];o[i]===this.id&&(!e||o.type===e)&&r.push(o)}return r}_resolveTickFontOptions(e){const n=this.options.ticks.setContext(this.getContext(e));return er(n.font)}_maxDigits(){const e=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/e}}class JS{constructor(e,n,i){this.type=e,this.scope=n,this.override=i,this.items=Object.create(null)}isForType(e){return Object.prototype.isPrototypeOf.call(this.type.prototype,e.prototype)}register(e){const n=Object.getPrototypeOf(e);let i;bze(n)&&(i=this.register(n));const r=this.items,s=e.id,a=this.scope+"."+s;if(!s)throw new Error("class does not have id: "+e);return s in r||(r[s]=e,vze(e,a,i),this.override&&En.override(e.id,e.overrides)),a}get(e){return this.items[e]}unregister(e){const n=this.items,i=e.id,r=this.scope;i in n&&delete n[i],r&&i in En[r]&&(delete En[r][i],this.override&&delete yp[i])}}function vze(t,e,n){const i=vu(Object.create(null),[n?En.get(n):{},En.get(e),t.defaults]);En.set(e,i),t.defaultRoutes&&yze(e,t.defaultRoutes),t.descriptors&&En.describe(e,t.descriptors)}function yze(t,e){Object.keys(e).forEach(n=>{const i=n.split("."),r=i.pop(),s=[t].concat(i).join("."),a=e[n].split("."),o=a.pop(),l=a.join(".");En.route(s,r,l,o)})}function bze(t){return"id"in t&&"defaults"in t}class xze{constructor(){this.controllers=new JS(xl,"datasets",!0),this.elements=new JS(Sl,"elements"),this.plugins=new JS(Object,"plugins"),this.scales=new JS(Lp,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...e){this._each("register",e)}remove(...e){this._each("unregister",e)}addControllers(...e){this._each("register",e,this.controllers)}addElements(...e){this._each("register",e,this.elements)}addPlugins(...e){this._each("register",e,this.plugins)}addScales(...e){this._each("register",e,this.scales)}getController(e){return this._get(e,this.controllers,"controller")}getElement(e){return this._get(e,this.elements,"element")}getPlugin(e){return this._get(e,this.plugins,"plugin")}getScale(e){return this._get(e,this.scales,"scale")}
3891removeControllers(...e){this._each("unregister",e,this.controllers)}removeElements(...e){this._each("unregister",e,this.elements)}removePlugins(...e){this._each("unregister",e,this.plugins)}removeScales(...e){this._each("unregister",e,this.scales)}_each(e,n,i){[...n].forEach(r=>{const s=i||this._getRegistryForType(r);i||s.isForType(r)||s===this.plugins&&r.id?this._exec(e,s,r):Bn(r,a=>{const o=i||this._getRegistryForType(a);this._exec(e,o,a)})})}_exec(e,n,i){const r=rF(e);Yn(i["before"+r],[],i),n[e](i),Yn(i["after"+r],[],i)}_getRegistryForType(e){for(let n=0;n<this._typedRegistries.length;n++){const i=this._typedRegistries[n];if(i.isForType(e))return i}return this.plugins}_get(e,n,i){const r=n.get(e);if(r===void 0)throw new Error('"'+e+'" is not a registered '+i+".");return r}}var eu=new xze;class SF extends xl{update(e){const n=this._cachedMeta,{data:i=[]}=n,r=this.chart._animationsDisabled;let{start:s,count:a}=Wee(n,i,r);if(this._drawStart=s,this._drawCount=a,Gee(n)&&(s=0,a=i.length),this.options.showLine){const{dataset:o,_dataset:l}=n;o._chart=this.chart,o._datasetIndex=this.index,o._decimated=!!l._decimated,o.points=i;const u=this.resolveDatasetElementOptions(e);u.segment=this.options.segment,this.updateElement(o,void 0,{animated:!r,options:u},e)}this.updateElements(i,s,a,e)}addElements(){const{showLine:e}=this.options;!this.datasetElementType&&e&&(this.datasetElementType=eu.getElement("line")),super.addElements()}updateElements(e,n,i,r){const s=r==="reset",{iScale:a,vScale:o,_stacked:l,_dataset:u}=this._cachedMeta,c=this.resolveDataElementOptions(n,r),f=this.getSharedOptions(c),h=this.includeOptions(r,f),p=a.axis,m=o.axis,{spanGaps:y,segment:v}=this.options,_=Ag(y)?y:Number.POSITIVE_INFINITY,b=this.chart._animationsDisabled||s||r==="none";let x=n>0&&this.getParsed(n-1);for(let T=n;T<n+i;++T){const E=e[T],C=this.getParsed(T),D=b?E:{},R=Cn(C[m]),A=D[p]=a.getPixelForValue(C[p],T),k=D[m]=s||R?o.getBasePixel():o.getPixelForValue(l?this.applyStack(o,C,l):C[m],T);D.skip=isNaN(A)||isNaN(k)||R,D.stop=T>0&&Math.abs(C[p]-x[p])>_,v&&(D.parsed=C,D.raw=u.data[T]),h&&(D.options=f||this.resolveDataElementOptions(T,E.active?"active":r)),b||this.updateElement(E,T,D,r),x=C}this.updateSharedOptions(f,r,c)}getMaxOverflow(){const e=this._cachedMeta,n=e.data||[];if(!this.options.showLine){let o=0;for(let l=n.length-1;l>=0;--l)o=Math.max(o,n[l].size(this.resolveDataElementOptions(l))/2);return o>0&&o}const i=e.dataset,r=i.options&&i.options.borderWidth||0;if(!n.length)return r;const s=n[0].size(this.resolveDataElementOptions(0)),a=n[n.length-1].size(this.resolveDataElementOptions(n.length-1));return Math.max(r,s,a)/2}}SF.id="scatter";SF.defaults={datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1};SF.overrides={interaction:{mode:"point"},plugins:{tooltip:{callbacks:{title(){return""},label(t){return"("+t.label+", "+t.formattedValue+")"}}}},scales:{x:{type:"linear"},y:{type:"linear"}}};function oh(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class jR{constructor(e){this.options=e||{}}init(e){}formats(){return oh()}parse(e,n){return oh()}format(e,n){return oh()}add(e,n,i){return oh()}diff(e,n,i){return oh()}startOf(e,n,i){return oh()}endOf(e,n){return oh()}}jR.override=function(t){Object.assign(jR.prototype,t)};var Sze={_date:jR};function Tze(t,e,n,i){const{controller:r,data:s,_sorted:a}=t,o=r._cachedMeta.iScale;if(o&&e===o.axis&&e!=="r"&&a&&s.length){const l=o._reversePixels?u7e:Dh;if(i){if(r._sharedOptions){const u=s[0],c=typeof u.getRange=="function"&&u.getRange(e);if(c){const f=l(s,e,n-c),h=l(s,e,n+c);return{lo:f.lo,hi:h.hi}}}}else return l(s,e,n)}return{lo:0,hi:s.length-1}}function l1(t,e,n,i,r){const s=t.getSortedVisibleDatasetMetas(),a=n[e];for(let o=0,l=s.length;o<l;++o){const{index:u,data:c}=s[o],{lo:f,hi:h}=Tze(s[o],e,a,r);for(let p=f;p<=h;++p){const m=c[p];m.skip||i(m,u,p)}}}function Eze(t){const e=t.indexOf("x")!==-1,n=t.indexOf("y")!==-1;return function(i,r){const s=e?Math.abs(i.x-r.x):0,a=n?Math.abs(i.y-r.y):0;return Math.sqrt(Math.pow(s,2)+Math.pow(a,2))}}function W3(t,e,n,i,r){const s=[];return!r&&!t.isPointInArea(e)||l1(t,n,e,function(o,l,u){!r&&!xb(o,t.chartArea,0)||o.inRange(e.x,e.y,i)&&s.push({element:o,datasetIndex:l,index:u})},!0),s}function wze(t,e,n,i){let r=[];function s(a,o,l){const{startAngle:u,endAngle:c}=a.getProps(["startAngle","endAngle"],i),{angle:f}=Uee(a,{x:e.x,y:e.y});bb(f,u,c)&&r.push({element:a,datasetIndex:o,index:l})}return l1(t,n,e,s),r}function Cze(t,e,n,i,r,s){let a=[];const o=Eze(n);let l=Number.POSITIVE_INFINITY;function u(c,f,h){const p=c.inRange(e.x,e.y,r);if(i&&!p)return;const m=c.getCenterPoint(r);if(!(!!s||t.isPointInArea(m))&&!p)return;const v=o(e,m);v<l?(a=[{element:c,datasetIndex:f,index:h}],l=v):v===l&&a.push({element:c,datasetIndex:f,index:h})}return l1(t,n,e,u),a}function G3(t,e,n,i,r,s){return!s&&!t.isPointInArea(e)?[]:n==="r"&&!i?wze(t,e,n,r):Cze(t,e,n,i,r,s)}function eH(t,e,n,i,r){const s=[],a=n==="x"?"inXRange":"inYRange";let o=!1;return l1(t,n,e,(l,u,c)=>{l[a](e[n],r)&&(s.push({element:l,datasetIndex:u,index:c}),o=o||l.inRange(e.x,e.y,r))}),i&&!o?[]:s}var Aze={evaluateInteractionItems:l1,modes:{index(t,e,n,i){const r=mh(e,t),s=n.axis||"x",a=n.includeInvisible||!1,o=n.intersect?W3(t,r,s,i,a):G3(t,r,s,!1,i,a),l=[];
vendor: 4,107 bytes, line 3891
3891return o.length?(t.getSortedVisibleDatasetMetas().forEach(u=>{const c=o[0].index,f=u.data[c];f&&!f.skip&&l.push({element:f,datasetIndex:u.index,index:c})}),l):[]},dataset(t,e,n,i){const r=mh(e,t),s=n.axis||"xy",a=n.includeInvisible||!1;let o=n.intersect?W3(t,r,s,i,a):G3(t,r,s,!1,i,a);if(o.length>0){const l=o[0].datasetIndex,u=t.getDatasetMeta(l).data;o=[];for(let c=0;c<u.length;++c)o.push({element:u[c],datasetIndex:l,index:c})}return o},point(t,e,n,i){const r=mh(e,t),s=n.axis||"xy",a=n.includeInvisible||!1;return W3(t,r,s,i,a)},nearest(t,e,n,i){const r=mh(e,t),s=n.axis||"xy",a=n.includeInvisible||!1;return G3(t,r,s,n.intersect,i,a)},x(t,e,n,i){const r=mh(e,t);return eH(t,r,"x",n.intersect,i)},y(t,e,n,i){const r=mh(e,t);return eH(t,r,"y",n.intersect,i)}}};const hte=["left","top","right","bottom"];function av(t,e){return t.filter(n=>n.pos===e)}function tH(t,e){return t.filter(n=>hte.indexOf(n.pos)===-1&&n.box.axis===e)}function ov(t,e){return t.sort((n,i)=>{const r=e?i:n,s=e?n:i;return r.weight===s.weight?r.index-s.index:r.weight-s.weight})}function Mze(t){const e=[];let n,i,r,s,a,o;for(n=0,i=(t||[]).length;n<i;++n)r=t[n],{position:s,options:{stack:a,stackWeight:o=1}}=r,e.push({index:n,box:r,pos:s,horizontal:r.isHorizontal(),weight:r.weight,stack:a&&s+a,stackWeight:o});return e}function Dze(t){const e={};for(const n of t){const{stack:i,pos:r,stackWeight:s}=n;if(!i||!hte.includes(r))continue;const a=e[i]||(e[i]={count:0,placed:0,weight:0,size:0});a.count++,a.weight+=s}return e}function Pze(t,e){const n=Dze(t),{vBoxMaxWidth:i,hBoxMaxHeight:r}=e;let s,a,o;for(s=0,a=t.length;s<a;++s){o=t[s];const{fullSize:l}=o.box,u=n[o.stack],c=u&&o.stackWeight/u.weight;o.horizontal?(o.width=c?c*i:l&&e.availableWidth,o.height=r):(o.width=i,o.height=c?c*r:l&&e.availableHeight)}return n}function Oze(t){const e=Mze(t),n=ov(e.filter(u=>u.box.fullSize),!0),i=ov(av(e,"left"),!0),r=ov(av(e,"right")),s=ov(av(e,"top"),!0),a=ov(av(e,"bottom")),o=tH(e,"x"),l=tH(e,"y");return{fullSize:n,leftAndTop:i.concat(s),rightAndBottom:r.concat(l).concat(a).concat(o),chartArea:av(e,"chartArea"),vertical:i.concat(r).concat(l),horizontal:s.concat(a).concat(o)}}function nH(t,e,n,i){return Math.max(t[n],e[n])+Math.max(t[i],e[i])}function pte(t,e){t.top=Math.max(t.top,e.top),t.left=Math.max(t.left,e.left),t.bottom=Math.max(t.bottom,e.bottom),t.right=Math.max(t.right,e.right)}function Rze(t,e,n,i){const{pos:r,box:s}=n,a=t.maxPadding;if(!Dn(r)){n.size&&(t[r]-=n.size);const f=i[n.stack]||{size:0,count:1};f.size=Math.max(f.size,n.horizontal?s.height:s.width),n.size=f.size/f.count,t[r]+=n.size}s.getPadding&&pte(a,s.getPadding());const o=Math.max(0,e.outerWidth-nH(a,t,"left","right")),l=Math.max(0,e.outerHeight-nH(a,t,"top","bottom")),u=o!==t.w,c=l!==t.h;return t.w=o,t.h=l,n.horizontal?{same:u,other:c}:{same:c,other:u}}function kze(t){const e=t.maxPadding;function n(i){const r=Math.max(e[i]-t[i],0);return t[i]+=r,r}t.y+=n("top"),t.x+=n("left"),n("right"),n("bottom")}function Ize(t,e){const n=e.maxPadding;function i(r){const s={left:0,top:0,right:0,bottom:0};return r.forEach(a=>{s[a]=Math.max(e[a],n[a])}),s}return i(t?["left","right"]:["top","bottom"])}function Rv(t,e,n,i){const r=[];let s,a,o,l,u,c;for(s=0,a=t.length,u=0;s<a;++s){o=t[s],l=o.box,l.update(o.width||e.w,o.height||e.h,Ize(o.horizontal,e));const{same:f,other:h}=Rze(e,n,o,i);u|=f&&r.length,c=c||h,l.fullSize||r.push(o)}return u&&Rv(r,e,n,i)||c}function eT(t,e,n,i,r){t.top=n,t.left=e,t.right=e+i,t.bottom=n+r,t.width=i,t.height=r}function iH(t,e,n,i){const r=n.padding;let{x:s,y:a}=e;for(const o of t){const l=o.box,u=i[o.stack]||{count:1,placed:0,weight:1},c=o.stackWeight/u.weight||1;if(o.horizontal){const f=e.w*c,h=u.size||l.height;Lo(u.start)&&(a=u.start),l.fullSize?eT(l,r.left,a,n.outerWidth-r.right-r.left,h):eT(l,e.left+u.placed,a,f,h),u.start=a,u.placed+=f,a=l.bottom}else{const f=e.h*c,h=u.size||l.width;Lo(u.start)&&(s=u.start),l.fullSize?eT(l,s,r.top,h,n.outerHeight-r.bottom-r.top):eT(l,s,e.top+u.placed,h,f),u.start=s,u.placed+=f,s=l.right}}e.x=s,e.y=a}En.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}});
3891var ns={addBox(t,e){t.boxes||(t.boxes=[]),e.fullSize=e.fullSize||!1,e.position=e.position||"top",e.weight=e.weight||0,e._layers=e._layers||function(){return[{z:0,draw(n){e.draw(n)}}]},t.boxes.push(e)},removeBox(t,e){const n=t.boxes?t.boxes.indexOf(e):-1;n!==-1&&t.boxes.splice(n,1)},configure(t,e,n){e.fullSize=n.fullSize,e.position=n.position,e.weight=n.weight},update(t,e,n,i){if(!t)return;const r=$r(t.options.layout.padding),s=Math.max(e-r.width,0),a=Math.max(n-r.height,0),o=Oze(t.boxes),l=o.vertical,u=o.horizontal;Bn(t.boxes,y=>{typeof y.beforeLayout=="function"&&y.beforeLayout()});const c=l.reduce((y,v)=>v.box.options&&v.box.options.display===!1?y:y+1,0)||1,f=Object.freeze({outerWidth:e,outerHeight:n,padding:r,availableWidth:s,availableHeight:a,vBoxMaxWidth:s/2/c,hBoxMaxHeight:a/2}),h=Object.assign({},r);pte(h,$r(i));const p=Object.assign({maxPadding:h,w:s,h:a,x:r.left,y:r.top},r),m=Pze(l.concat(u),f);Rv(o.fullSize,p,f,m),Rv(l,p,f,m),Rv(u,p,f,m)&&Rv(l,p,f,m),kze(p),iH(o.leftAndTop,p,f,m),p.x+=p.w,p.y+=p.h,iH(o.rightAndBottom,p,f,m),t.chartArea={left:p.left,top:p.top,right:p.left+p.w,bottom:p.top+p.h,height:p.h,width:p.w},Bn(o.chartArea,y=>{const v=y.box;Object.assign(v,t.chartArea),v.update(p.w,p.h,{left:0,top:0,right:0,bottom:0})})}};class mte{acquireContext(e,n){}releaseContext(e){return!1}addEventListener(e,n,i){}removeEventListener(e,n,i){}getDevicePixelRatio(){return 1}getMaximumSize(e,n,i,r){return n=Math.max(0,n||e.width),i=i||e.height,{width:n,height:Math.max(0,r?Math.floor(n/r):i)}}isAttached(e){return!0}updateConfig(e){}}class Lze extends mte{acquireContext(e){return e&&e.getContext&&e.getContext("2d")||null}updateConfig(e){e.options.animation=!1}}const qT="$chartjs",Fze={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},rH=t=>t===null||t==="";function Nze(t,e){const n=t.style,i=t.getAttribute("height"),r=t.getAttribute("width");if(t[qT]={initial:{height:i,width:r,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",rH(r)){const s=Fz(t,"width");s!==void 0&&(t.width=s)}if(rH(i))if(t.style.height==="")t.height=t.width/(e||2);else{const s=Fz(t,"height");s!==void 0&&(t.height=s)}return t}const gte=g$e?{passive:!0}:!1;function Bze(t,e,n){t.addEventListener(e,n,gte)}function Uze(t,e,n){t.canvas.removeEventListener(e,n,gte)}function $ze(t,e){const n=Fze[t.type]||t.type,{x:i,y:r}=mh(t,e);return{type:n,chart:e,native:t,x:i!==void 0?i:null,y:r!==void 0?r:null}}function OE(t,e){for(const n of t)if(n===e||n.contains(e))return!0}function zze(t,e,n){const i=t.canvas,r=new MutationObserver(s=>{let a=!1;for(const o of s)a=a||OE(o.addedNodes,i),a=a&&!OE(o.removedNodes,i);a&&n()});return r.observe(document,{childList:!0,subtree:!0}),r}function Hze(t,e,n){const i=t.canvas,r=new MutationObserver(s=>{let a=!1;for(const o of s)a=a||OE(o.removedNodes,i),a=a&&!OE(o.addedNodes,i);a&&n()});return r.observe(document,{childList:!0,subtree:!0}),r}const Tb=new Map;let sH=0;function _te(){const t=window.devicePixelRatio;t!==sH&&(sH=t,Tb.forEach((e,n)=>{n.currentDevicePixelRatio!==t&&e()}))}function Vze(t,e){Tb.size||window.addEventListener("resize",_te),Tb.set(t,e)}function Wze(t){Tb.delete(t),Tb.size||window.removeEventListener("resize",_te)}function Gze(t,e,n){const i=t.canvas,r=i&&_F(i);if(!r)return;const s=Vee((o,l)=>{const u=r.clientWidth;n(o,l),u<r.clientWidth&&n()},window),a=new ResizeObserver(o=>{const l=o[0],u=l.contentRect.width,c=l.contentRect.height;u===0&&c===0||s(u,c)});return a.observe(r),Vze(t,s),a}function j3(t,e,n){n&&n.disconnect(),e==="resize"&&Wze(t)}function jze(t,e,n){const i=t.canvas,r=Vee(s=>{t.ctx!==null&&n($ze(s,t))},t,s=>{const a=s[0];return[a,a.offsetX,a.offsetY]});return Bze(i,e,r),r}class qze extends mte{acquireContext(e,n){const i=e&&e.getContext&&e.getContext("2d");return i&&i.canvas===e?(Nze(e,n),i):null}releaseContext(e){const n=e.canvas;if(!n[qT])return!1;const i=n[qT].initial;["height","width"].forEach(s=>{const a=i[s];Cn(a)?n.removeAttribute(s):n.setAttribute(s,a)});const r=i.style||{};return Object.keys(r).forEach(s=>
3891{n.style[s]=r[s]}),n.width=n.width,delete n[qT],!0}addEventListener(e,n,i){this.removeEventListener(e,n);const r=e.$proxies||(e.$proxies={}),a={attach:zze,detach:Hze,resize:Gze}[n]||jze;r[n]=a(e,n,i)}removeEventListener(e,n){const i=e.$proxies||(e.$proxies={}),r=i[n];if(!r)return;({attach:j3,detach:j3,resize:j3}[n]||Uze)(e,n,r),i[n]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(e,n,i,r){return m$e(e,n,i,r)}isAttached(e){const n=_F(e);return!!(n&&n.isConnected)}}function Xze(t){return!ste()||typeof OffscreenCanvas<"u"&&t instanceof OffscreenCanvas?Lze:qze}class Yze{constructor(){this._init=[]}notify(e,n,i,r){n==="beforeInit"&&(this._init=this._createDescriptors(e,!0),this._notify(this._init,e,"install"));const s=r?this._descriptors(e).filter(r):this._descriptors(e),a=this._notify(s,e,n,i);return n==="afterDestroy"&&(this._notify(s,e,"stop"),this._notify(this._init,e,"uninstall")),a}_notify(e,n,i,r){r=r||{};for(const s of e){const a=s.plugin,o=a[i],l=[n,r,s.options];if(Yn(o,l,a)===!1&&r.cancelable)return!1}return!0}invalidate(){Cn(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(e){if(this._cache)return this._cache;const n=this._cache=this._createDescriptors(e);return this._notifyStateChanges(e),n}_createDescriptors(e,n){const i=e&&e.config,r=nn(i.options&&i.options.plugins,{}),s=Kze(i);return r===!1&&!n?[]:Qze(e,s,r,n)}_notifyStateChanges(e){const n=this._oldCache||[],i=this._cache,r=(s,a)=>s.filter(o=>!a.some(l=>o.plugin.id===l.plugin.id));this._notify(r(n,i),e,"stop"),this._notify(r(i,n),e,"start")}}function Kze(t){const e={},n=[],i=Object.keys(eu.plugins.items);for(let s=0;s<i.length;s++)n.push(eu.getPlugin(i[s]));const r=t.plugins||[];for(let s=0;s<r.length;s++){const a=r[s];n.indexOf(a)===-1&&(n.push(a),e[a.id]=!0)}return{plugins:n,localIds:e}}function Zze(t,e){return!e&&t===!1?null:t===!0?{}:t}function Qze(t,{plugins:e,localIds:n},i,r){const s=[],a=t.getContext();for(const o of e){const l=o.id,u=Zze(i[l],r);u!==null&&s.push({plugin:o,options:Jze(t.config,{plugin:o,local:n[l]},u,a)})}return s}function Jze(t,{plugin:e,local:n},i,r){const s=t.pluginScopeKeys(e),a=t.getOptionScopes(i,s);return n&&e.defaults&&a.push(e.defaults),t.createResolver(a,r,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function qR(t,e){const n=En.datasets[t]||{};return((e.datasets||{})[t]||{}).indexAxis||e.indexAxis||n.indexAxis||"x"}function eHe(t,e){let n=t;return t==="_index_"?n=e:t==="_value_"&&(n=e==="x"?"y":"x"),n}function tHe(t,e){return t===e?"_index_":"_value_"}function nHe(t){if(t==="top"||t==="bottom")return"x";if(t==="left"||t==="right")return"y"}function XR(t,e){return t==="x"||t==="y"?t:e.axis||nHe(e.position)||t.charAt(0).toLowerCase()}function iHe(t,e){const n=yp[t.type]||{scales:{}},i=e.scales||{},r=qR(t.type,e),s=Object.create(null),a=Object.create(null);
3891return Object.keys(i).forEach(o=>{const l=i[o];if(!Dn(l))return console.error(`Invalid scale configuration for scale: ${o}`);if(l._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${o}`);const u=XR(o,l),c=tHe(u,r),f=n.scales||{};s[u]=s[u]||o,a[o]=py(Object.create(null),[{axis:u},l,f[u],f[c]])}),t.data.datasets.forEach(o=>{const l=o.type||t.type,u=o.indexAxis||qR(l,e),f=(yp[l]||{}).scales||{};Object.keys(f).forEach(h=>{const p=eHe(h,u),m=o[p+"AxisID"]||s[p]||p;a[m]=a[m]||Object.create(null),py(a[m],[{axis:p},i[m],f[h]])})}),Object.keys(a).forEach(o=>{const l=a[o];py(l,[En.scales[l.type],En.scale])}),a}function vte(t){const e=t.options||(t.options={});e.plugins=nn(e.plugins,{}),e.scales=iHe(t,e)}function yte(t){return t=t||{},t.datasets=t.datasets||[],t.labels=t.labels||[],t}function rHe(t){return t=t||{},t.data=yte(t.data),vte(t),t}const aH=new Map,bte=new Set;function tT(t,e){let n=aH.get(t);return n||(n=e(),aH.set(t,n),bte.add(n)),n}const lv=(t,e,n)=>{const i=bd(e,n);i!==void 0&&t.add(i)};class sHe{constructor(e){this._config=rHe(e),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(e){this._config.type=e}get data(){return this._config.data}set data(e){this._config.data=yte(e)}get options(){return this._config.options}set options(e){this._config.options=e}get plugins(){return this._config.plugins}update(){const e=this._config;this.clearCache(),vte(e)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(e){return tT(e,()=>[[`datasets.${e}`,""]])}datasetAnimationScopeKeys(e,n){return tT(`${e}.transition.${n}`,()=>[[`datasets.${e}.transitions.${n}`,`transitions.${n}`],[`datasets.${e}`,""]])}datasetElementScopeKeys(e,n){return tT(`${e}-${n}`,()=>[[`datasets.${e}.elements.${n}`,`datasets.${e}`,`elements.${n}`,""]])}pluginScopeKeys(e){const n=e.id,i=this.type;return tT(`${i}-plugin-${n}`,()=>[[`plugins.${n}`,...e.additionalOptionScopes||[]]])}_cachedScopes(e,n){const i=this._scopeCache;let r=i.get(e);return(!r||n)&&(r=new Map,i.set(e,r)),r}getOptionScopes(e,n,i){const{options:r,type:s}=this,a=this._cachedScopes(e,i),o=a.get(n);if(o)return o;const l=new Set;n.forEach(c=>{e&&(l.add(e),c.forEach(f=>lv(l,e,f))),c.forEach(f=>lv(l,r,f)),c.forEach(f=>lv(l,yp[s]||{},f)),c.forEach(f=>lv(l,En,f)),c.forEach(f=>lv(l,WR,f))});const u=Array.from(l);return u.length===0&&u.push(Object.create(null)),bte.has(n)&&a.set(n,u),u}chartOptionScopes(){const{options:e,type:n}=this;return[e,yp[n]||{},En.datasets[n]||{},{type:n},En,WR]}resolveNamedOptions(e,n,i,r=[""]){const s={$shared:!0},{resolver:a,subPrefixes:o}=oH(this._resolverCache,e,r);let l=a;if(oHe(a,n)){s.$shared=!1,i=xd(i)?i():i;const u=this.createResolver(e,i,o);l=Mg(a,i,u)}for(const u of n)s[u]=l[u];return s}createResolver(e,n,i=[""],r){const{resolver:s}=oH(this._resolverCache,e,i);return Dn(n)?Mg(s,n,void 0,r):s}}function oH(t,e,n){let i=t.get(e);i||(i=new Map,t.set(e,i));const r=n.join();let s=i.get(r);return s||(s={resolver:pF(e,n),subPrefixes:n.filter(o=>!o.toLowerCase().includes("hover"))},i.set(r,s)),s}const aHe=t=>Dn(t)&&Object.getOwnPropertyNames(t).reduce((e,n)=>e||xd(t[n]),!1);function oHe(t,e){const{isScriptable:n,isIndexable:i}=Jee(t);for(const r of e){const s=n(r),a=i(r),o=(a||s)&&t[r];if(s&&(xd(o)||aHe(o))||a&&pi(o))return!0}return!1}var lHe="3.9.1";const uHe=["top","bottom","left","right","chartArea"];function lH(t,e){return t==="top"||t==="bottom"||uHe.indexOf(t)===-1&&e==="x"}function uH(t,e){return function(n,i){return n[t]===i[t]?n[e]-i[e]:n[t]-i[t]}}function cH(t){const e=t.chart,n=e.options.animation;e.notifyPlugins("afterRender"),Yn(n&&n.onComplete,[t],e)}function cHe(t){const e=t.chart,n=e.options.animation;Yn(n&&n.onProgress,[t],e)}function xte(t){return ste()&&typeof t=="string"?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const RE={},Ste=t=>{const e=xte(t);return Object.values(RE).filter(n=>n.canvas===e).pop()};function fHe(t,e,n){const i=Object.keys(t);for(const r of i){const s=+r;if(s>=e){const a=t[r];delete t[r],(n>0||s>e)&&(t[s+n]=a)}}}function dHe(t,e,n,i){return!n||t.type==="mouseout"?null:i?e:t}class kE{constructor(e,n){const i=this.config=new sHe(n),r=xte(e),s=Ste(r);if(s)throw new Error("Canvas is already in use. Chart with ID '"+s.id+"' must be destroyed before the canvas with ID '"+s.canvas.id+"' can be reused.");const a=i.createResolver(i.chartOptionScopes(),this.getContext());this.platform=new(i.platform||Xze(r)),this.platform.updateConfig(i);const o=this.platform.acquireContext(r,a.aspectRatio),l=o&&o.canvas,u=l&&l.height,c=l&&l.width;if(this.id=K9e(),this.ctx=o,this.canvas=l,this.width=c,this.height=u,this._options=a,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new Yze,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=d7e(f=>this.update(f),a.resizeDelay||0),this._dataChanges=[],RE[this.id]=this,!o||!l){console.error("Failed to create chart: can't acquire context from the given item");return}Ju.listen(this,"complete",cH),Ju.listen(this,"progress",cHe),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:e,maintainAspectRatio:n},width:i,height:r,_aspectRatio:s}=this;return Cn(e)?n&&s?s:r?i/r:null:e}get data(){return this.config.data}set data(e){this.config.data=e}get options(){return this._options}set options(e){this.config.options=e}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():Lz(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return Rz(this.canvas,this.ctx),this}stop(){return Ju.stop(this),this}resize(e,n){Ju.running(this)?this._resizeBeforeDraw={width:e,height:n}:this._resize(e,n)}_resize(e,n){const i=this.options,r=this.canvas,s=i.maintainAspectRatio&&this.aspectRatio,a=this.platform.getMaximumSize(r,e,n,s),o=i.devicePixelRatio||this.platform.getDevicePixelRatio(),l=this.width?"resize":"attach";this.width=a.width,this.height=a.height,this._aspectRatio=this.aspectRatio,Lz(this,o,!0)&&(this.notifyPlugins("resize",{size:a}),Yn(i.onResize,[this,a],this),this.attached&&this._doResize(l)&&this.render())}ensureScalesHaveIDs(){const n=this.options.scales||{};Bn(n,(i,r)=>{i.id=r})}buildOrUpdateScales(){const e=this.options,n=e.scales,i=this.scales,r=Object.keys(i).reduce((a,o)=>(a[o]=!1,a),{});let s=[];n&&(s=s.concat(Object.keys(n).map(a=>{const o=n[a],l=XR(a,o),u=l==="r",c=l==="x";return{options:o,dposition:u?"chartArea":c?"bottom":"left",dtype:u?"radialLinear":c?"category":"linear"}}))),Bn(s,a=>{const o=a.options,l=o.id,u=XR(l,o),c=nn(o.type,a.dtype);(o.position===void 0||lH(o.position,u)!==lH(a.dposition))&&(o.position=a.dposition),r[l]=!0;let f=null;if(l in i&&i[l].type===c)f=i[l];else{const h=eu.getScale(c);
3891f=new h({id:l,type:c,ctx:this.ctx,chart:this}),i[f.id]=f}f.init(o,e)}),Bn(r,(a,o)=>{a||delete i[o]}),Bn(i,a=>{ns.configure(this,a,a.options),ns.addBox(this,a)})}_updateMetasets(){const e=this._metasets,n=this.data.datasets.length,i=e.length;if(e.sort((r,s)=>r.index-s.index),i>n){for(let r=n;r<i;++r)this._destroyDatasetMeta(r);e.splice(n,i-n)}this._sortedMetasets=e.slice(0).sort(uH("order","index"))}_removeUnreferencedMetasets(){const{_metasets:e,data:{datasets:n}}=this;e.length>n.length&&delete this._stacks,e.forEach((i,r)=>{n.filter(s=>s===i._dataset).length===0&&this._destroyDatasetMeta(r)})}buildOrUpdateControllers(){const e=[],n=this.data.datasets;let i,r;for(this._removeUnreferencedMetasets(),i=0,r=n.length;i<r;i++){const s=n[i];let a=this.getDatasetMeta(i);const o=s.type||this.config.type;if(a.type&&a.type!==o&&(this._destroyDatasetMeta(i),a=this.getDatasetMeta(i)),a.type=o,a.indexAxis=s.indexAxis||qR(o,this.options),a.order=s.order||0,a.index=i,a.label=""+s.label,a.visible=this.isDatasetVisible(i),a.controller)a.controller.updateIndex(i),a.controller.linkScales();else{const l=eu.getController(o),{datasetElementType:u,dataElementType:c}=En.datasets[o];Object.assign(l.prototype,{dataElementType:eu.getElement(c),datasetElementType:u&&eu.getElement(u)}),a.controller=new l(this,i),e.push(a.controller)}}return this._updateMetasets(),e}_resetElements(){Bn(this.data.datasets,(e,n)=>{this.getDatasetMeta(n).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(e){const n=this.config;n.update();const i=this._options=n.createResolver(n.chartOptionScopes(),this.getContext()),r=this._animationsDisabled=!i.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:e,cancelable:!0})===!1)return;const s=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let a=0;for(let u=0,c=this.data.datasets.length;u<c;u++){const{controller:f}=this.getDatasetMeta(u),h=!r&&s.indexOf(f)===-1;f.buildOrUpdateElements(h),a=Math.max(+f.getMaxOverflow(),a)}a=this._minPadding=i.layout.autoPadding?a:0,this._updateLayout(a),r||Bn(s,u=>{u.reset()}),this._updateDatasets(e),this.notifyPlugins("afterUpdate",{mode:e}),this._layers.sort(uH("z","_idx"));const{_active:o,_lastEvent:l}=this;l?this._eventHandler(l,!0):o.length&&this._updateHoverStyles(o,o,!0),this.render()}_updateScales(){Bn(this.scales,e=>{ns.removeBox(this,e)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const e=this.options,n=new Set(Object.keys(this._listeners)),i=new Set(e.events);(!bz(n,i)||!!this._responsiveListeners!==e.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:e}=this,n=this._getUniformDataChanges()||[];for(const{method:i,start:r,count:s}of n){const a=i==="_removeElements"?-s:s;fHe(e,r,a)}}_getUniformDataChanges(){const e=this._dataChanges;if(!e||!e.length)return;this._dataChanges=[];const n=this.data.datasets.length,i=s=>new Set(e.filter(a=>a[0]===s).map((a,o)=>o+","+a.splice(1).join(","))),r=i(0);for(let s=1;s<n;s++)if(!bz(r,i(s)))return;return Array.from(r).map(s=>s.split(",")).map(s=>({method:s[1],start:+s[2],count:+s[3]}))}_updateLayout(e){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;ns.update(this,this.width,this.height,e);const n=this.chartArea,i=n.width<=0||n.height<=0;this._layers=[],Bn(this.boxes,r=>{i&&r.position==="chartArea"||(r.configure&&r.configure(),this._layers.push(...r._layers()))},this),this._layers.forEach((r,s)=>{r._idx=s}),this.notifyPlugins("afterLayout")}_updateDatasets(e){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:e,cancelable:!0})!==!1){for(let n=0,i=this.data.datasets.length;n<i;++n)this.getDatasetMeta(n).controller.configure();for(let n=0,i=this.data.datasets.length;n<i;++n)this._updateDataset(n,xd(e)?e({datasetIndex:n}):e);this.notifyPlugins("afterDatasetsUpdate",{mode:e})}}_updateDataset(e,n){const i=this.getDatasetMeta(e),r={meta:i,index:e,mode:n,cancelable:!0};this.notifyPlugins("beforeDatasetUpdate",r)!==!1&&(i.controller._update(n),r.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",r))}render(){this.notifyPlugins("beforeRender",{cancelable:!0})!==!1&&(Ju.has(this)?this.attached&&!Ju.running(this)&&Ju.start(this):(this.draw(),cH({chart:this})))}draw(){let e;if(this._resizeBeforeDraw){const{width:i,height:r}=this._resizeBeforeDraw;this._resize(i,r),this._resizeBeforeDraw=null}if(this.clear(),this.width<=0||this.height<=0||this.notifyPlugins("beforeDraw",{cancelable:!0})===!1)return;const n=this._layers;for(e=0;e<n.length&&n[e].z<=0;++e)n[e].draw(this.chartArea);for(this._drawDatasets();e<n.length;++e)n[e].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(e){const n=this._sortedMetasets,i=[];let r,s;for(r=0,s=n.length;r<s;++r){const a=n[r];(!e||a.visible)&&i.push(a)}return i}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})===!1)return;const e=this.getSortedVisibleDatasetMetas();for(let n=e.length-1;n>=0;--n)this._drawDataset(e[n]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(e){const n=this.ctx,i=e._clip,r=!i.disabled,s=this.chartArea,a={meta:e,index:e.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",a)!==!1&&(r&&fF(n,{left:i.left
3891===!1?0:s.left-i.left,right:i.right===!1?this.width:s.right+i.right,top:i.top===!1?0:s.top-i.top,bottom:i.bottom===!1?this.height:s.bottom+i.bottom}),e.controller.draw(),r&&dF(n),a.cancelable=!1,this.notifyPlugins("afterDatasetDraw",a))}isPointInArea(e){return xb(e,this.chartArea,this._minPadding)}getElementsAtEventForMode(e,n,i,r){const s=Aze.modes[n];return typeof s=="function"?s(this,e,i,r):[]}getDatasetMeta(e){const n=this.data.datasets[e],i=this._metasets;let r=i.filter(s=>s&&s._dataset===n).pop();return r||(r={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:n&&n.order||0,index:e,_dataset:n,_parsed:[],_sorted:!1},i.push(r)),r}getContext(){return this.$context||(this.$context=Pd(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(e){const n=this.data.datasets[e];if(!n)return!1;const i=this.getDatasetMeta(e);return typeof i.hidden=="boolean"?!i.hidden:!n.hidden}setDatasetVisibility(e,n){const i=this.getDatasetMeta(e);i.hidden=!n}toggleDataVisibility(e){this._hiddenIndices[e]=!this._hiddenIndices[e]}getDataVisibility(e){return!this._hiddenIndices[e]}_updateVisibility(e,n,i){const r=i?"show":"hide",s=this.getDatasetMeta(e),a=s.controller._resolveAnimations(void 0,r);Lo(n)?(s.data[n].hidden=!i,this.update()):(this.setDatasetVisibility(e,i),a.update(s,{visible:i}),this.update(o=>o.datasetIndex===e?r:void 0))}hide(e,n){this._updateVisibility(e,n,!1)}show(e,n){this._updateVisibility(e,n,!0)}_destroyDatasetMeta(e){const n=this._metasets[e];n&&n.controller&&n.controller._destroy(),delete this._metasets[e]}_stop(){let e,n;for(this.stop(),Ju.remove(this),e=0,n=this.data.datasets.length;e<n;++e)this._destroyDatasetMeta(e)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:e,ctx:n}=this;this._stop(),this.config.clearCache(),e&&(this.unbindEvents(),Rz(e,n),this.platform.releaseContext(n),this.canvas=null,this.ctx=null),this.notifyPlugins("destroy"),delete RE[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...e){return this.canvas.toDataURL(...e)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const e=this._listeners,n=this.platform,i=(s,a)=>{n.addEventListener(this,s,a),e[s]=a},r=(s,a,o)=>{s.offsetX=a,s.offsetY=o,this._eventHandler(s)};Bn(this.options.events,s=>i(s,r))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const e=this._responsiveListeners,n=this.platform,i=(l,u)=>{n.addEventListener(this,l,u),e[l]=u},r=(l,u)=>{e[l]&&(n.removeEventListener(this,l,u),delete e[l])},s=(l,u)=>{this.canvas&&this.resize(l,u)};let a;const o=()=>{r("attach",o),this.attached=!0,this.resize(),i("resize",s),i("detach",a)};a=()=>{this.attached=!1,r("resize",s),this._stop(),this._resize(0,0),i("attach",o)},n.isAttached(this.canvas)?o():a()}unbindEvents(){Bn(this._listeners,(e,n)=>{this.platform.removeEventListener(this,n,e)}),this._listeners={},Bn(this._responsiveListeners,(e,n)=>{this.platform.removeEventListener(this,n,e)}),this._responsiveListeners=void 0}updateHoverStyle(e,n,i){const r=i?"set":"remove";let s,a,o,l;for(n==="dataset"&&(s=this.getDatasetMeta(e[0].datasetIndex),s.controller["_"+r+"DatasetHoverStyle"]()),o=0,l=e.length;o<l;++o){a=e[o];const u=a&&this.getDatasetMeta(a.datasetIndex).controller;u&&u[r+"HoverStyle"](a.element,a.datasetIndex,a.index)}}getActiveElements(){return this._active||[]}setActiveElements(e){const n=this._active||[],i=e.map(({datasetIndex:s,index:a})=>{const o=this.getDatasetMeta(s);if(!o)throw new Error("No dataset found at index "+s);return{datasetIndex:s,element:o.data[a],index:a}});!wE(i,n)&&(this._active=i,this._lastEvent=null,this._updateHoverStyles(i,n))}notifyPlugins(e,n,i){return this._plugins.notify(this,e,n,i)}_updateHoverStyles(e,n,i){const r=this.options.hover,s=(l,u)=>l.filter(c=>!u.some(f=>c.datasetIndex===f.datasetIndex&&c.index===f.index)),a=s(n,e),o=i?e:s(e,n);a.length&&this.updateHoverStyle(a,r.mode,!1),o.length&&r.mode&&this.updateHoverStyle(o,r.mode,!0)}_eventHandler(e,n){const i={event:e,replay:n,cancelable:!0,inChartArea:this.isPointInArea(e)},r=a=>(a.options.events||this.options.events).includes(e.native.type);if(this.notifyPlugins("beforeEvent",i,r)===!1)return;const s=this._handleEvent(e,n,i.inChartArea);return i.cancelable=!1,this.notifyPlugins("afterEvent",i,r),(s||i.changed)&&this.render(),this}_handleEvent(e,n,i){const{_active:r=[],options:s}=this,a=n,o=this._getActiveElements(e,r,i,a),l=n7e(e),u=dHe(e,this._lastEvent,i,l);i&&(this._lastEvent=null,Yn(s.onHover,[e,o,this],this),l&&Yn(s.onClick,[e,o,this],this));const c=!wE(o,r);return(c||n)&&(this._active=o,this._updateHoverStyles(o,r,n)),this._lastEvent=u,c}_getActiveElements(e,n,i,r){if(e.type==="mouseout")return[];if(!i)return n;const s=this.options.hover;return this.getElementsAtEventForMode(e,s.mode,s,r)}}const fH=()=>Bn(kE.instances,t=>t._plugins.invalidate()),Sf=!0;Object.defineProperties(kE,{defaults:{enumerable:Sf,value:En},instances:{enumerable:Sf,value:RE},overrides:{enumerable:Sf,value:yp},registry:{enumerable:Sf,value:eu},version:{enumerable:Sf,value:lHe},getChart:{enumerable:Sf,value:Ste},register:{enumerable:Sf,value:(...t)=>{eu.add(...t),fH()}},unregister:{enumerable:Sf,value:(...t)=>{eu.remove(...t),fH()}}});function Tte(t,e,n){const{startAngle:i,pixelMargin:r,x:s,y:a,outerRadius:o,innerRadius:l}=e;let u=r/o;t.beginPath(),t.arc(s,a,o,i-u,n+u),l>r?(u=r/l,t.arc(s,a,l,n+u,i-u,!0)):t.arc(s,a,r,n+Ui,i-Ui),t.closePath(),t.clip()}function hHe(t){return hF(t,["outerStart","outerEnd","innerStart","innerEnd"])}function pHe(t,e,n,i){const r=hHe(t.options.borderRadius),s=(n-e)/2,a=Math.min(s,i*e/2),o=l=>{const u=(n-Math.min(s,l))*i/2;return ts(l,0,Math.min(s,u))};return{outerStart:o(r.outerStart),outerEnd:o(r.outerEnd),innerStart:ts(r.innerStart,0,a),innerEnd:ts(r.innerEnd,0,a)}}function H0(t,e,n,i){return{x:n+t*Math.cos(e),y:i+t*Math.sin(e)}}function YR(t,e,n,i,r,s){const{x:a,y:o,startAngle:l,pixelMargin:u,innerRadius:c}=e,f=Math.max(e.outerRadius+i+n-u,0),h=c>0?c+i+n+u:0;let p=0;const m=r-l;if(i){const G=c>0?c-i:0,Y=f>0?f-i:0,Q=(G+Y)/2,re=Q!==0?m*Q/(Q+i):m;p=(m-re)/2}const y=Math.max(.001,m*f-n/Ti)/f,v=(m-y)/2,_=l+v+p,b=r-v-p,{outerStart:x,outerEnd:T,innerStart:E,innerEnd:C}
3891=pHe(e,h,f,b-_),D=f-x,R=f-T,A=_+x/D,k=b-T/R,F=h+E,N=h+C,U=_+E/F,$=b-C/N;if(t.beginPath(),s){if(t.arc(a,o,f,A,k),T>0){const Q=H0(R,k,a,o);t.arc(Q.x,Q.y,T,k,b+Ui)}const G=H0(N,b,a,o);if(t.lineTo(G.x,G.y),C>0){const Q=H0(N,$,a,o);t.arc(Q.x,Q.y,C,b+Ui,$+Math.PI)}if(t.arc(a,o,h,b-C/h,_+E/h,!0),E>0){const Q=H0(F,U,a,o);t.arc(Q.x,Q.y,E,U+Math.PI,_-Ui)}const Y=H0(D,_,a,o);if(t.lineTo(Y.x,Y.y),x>0){const Q=H0(D,A,a,o);t.arc(Q.x,Q.y,x,_-Ui,A)}}else{t.moveTo(a,o);const G=Math.cos(A)*f+a,Y=Math.sin(A)*f+o;t.lineTo(G,Y);const Q=Math.cos(k)*f+a,re=Math.sin(k)*f+o;t.lineTo(Q,re)}t.closePath()}function mHe(t,e,n,i,r){const{fullCircles:s,startAngle:a,circumference:o}=e;let l=e.endAngle;if(s){YR(t,e,n,i,a+ei,r);for(let u=0;u<s;++u)t.fill();isNaN(o)||(l=a+o%ei,o%ei===0&&(l+=ei))}return YR(t,e,n,i,l,r),t.fill(),l}function gHe(t,e,n){const{x:i,y:r,startAngle:s,pixelMargin:a,fullCircles:o}=e,l=Math.max(e.outerRadius-a,0),u=e.innerRadius+a;let c;for(n&&Tte(t,e,s+ei),t.beginPath(),t.arc(i,r,u,s+ei,s,!0),c=0;c<o;++c)t.stroke();for(t.beginPath(),t.arc(i,r,l,s,s+ei),c=0;c<o;++c)t.stroke()}function _He(t,e,n,i,r,s){const{options:a}=e,{borderWidth:o,borderJoinStyle:l}=a,u=a.borderAlign==="inner";!o||(u?(t.lineWidth=o*2,t.lineJoin=l||"round"):(t.lineWidth=o,t.lineJoin=l||"bevel"),e.fullCircles&&gHe(t,e,u),u&&Tte(t,e,r),YR(t,e,n,i,r,s),t.stroke())}class bC extends Sl{constructor(e){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,e&&Object.assign(this,e)}inRange(e,n,i){const r=this.getProps(["x","y"],i),{angle:s,distance:a}=Uee(r,{x:e,y:n}),{startAngle:o,endAngle:l,innerRadius:u,outerRadius:c,circumference:f}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],i),h=this.options.spacing/2,m=nn(f,l-o)>=ei||bb(s,o,l),y=Vf(a,u+h,c+h);return m&&y}getCenterPoint(e){const{x:n,y:i,startAngle:r,endAngle:s,innerRadius:a,outerRadius:o}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius","circumference"],e),{offset:l,spacing:u}=this.options,c=(r+s)/2,f=(a+o+u+l)/2;return{x:n+Math.cos(c)*f,y:i+Math.sin(c)*f}}tooltipPosition(e){return this.getCenterPoint(e)}draw(e){const{options:n,circumference:i}=this,r=(n.offset||0)/2,s=(n.spacing||0)/2,a=n.circular;if(this.pixelMargin=n.borderAlign==="inner"?.33:0,this.fullCircles=i>ei?Math.floor(i/ei):0,i===0||this.innerRadius<0||this.outerRadius<0)return;e.save();let o=0;if(r){o=r/2;const u=(this.startAngle+this.endAngle)/2;e.translate(Math.cos(u)*o,Math.sin(u)*o),this.circumference>=Ti&&(o=r)}e.fillStyle=n.backgroundColor,e.strokeStyle=n.borderColor;const l=mHe(e,this,o,s,a);_He(e,this,o,s,l,a),e.restore()}}bC.id="arc";bC.defaults={borderAlign:"center",borderColor:"#fff",borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0};bC.defaultRoutes={backgroundColor:"backgroundColor"};function Ete(t,e,n=e){t.lineCap=nn(n.borderCapStyle,e.borderCapStyle),t.setLineDash(nn(n.borderDash,e.borderDash)),t.lineDashOffset=nn(n.borderDashOffset,e.borderDashOffset),t.lineJoin=nn(n.borderJoinStyle,e.borderJoinStyle),t.lineWidth=nn(n.borderWidth,e.borderWidth),t.strokeStyle=nn(n.borderColor,e.borderColor)}function vHe(t,e,n){t.lineTo(n.x,n.y)}function yHe(t){return t.stepped?U7e:t.tension||t.cubicInterpolationMode==="monotone"?$7e:vHe}function wte(t,e,n={}){const i=t.length,{start:r=0,end:s=i-1}=n,{start:a,end:o}=e,l=Math.max(r,a),u=Math.min(s,o),c=r<a&&s<a||r>o&&s>o;return{count:i,start:l,loop:e.loop,ilen:u<l&&!c?i+u-l:u-l}}function bHe(t,e,n,i){const{points:r,options:s}=e,{count:a,start:o,loop:l,ilen:u}=wte(r,n,i),c=yHe(s);let{move:f=!0,reverse:h}=i||{},p,m,y;for(p=0;p<=u;++p)m=r[(o+(h?u-p:p))%a],!m.skip&&(f?(t.moveTo(m.x,m.y),f=!1):c(t,y,m,h,s.stepped),y=m);return l&&(m=r[(o+(h?u:0))%a],c(t,y,m,h,s.stepped)),!!l}function xHe(t,e,n,i){const r=e.points,{count:s,start:a,ilen:o}=wte(r,n,i),{move:l=!0,reverse:u}=i||{};let c=0,f=0,h,p,m,y,v,_;const b=T=>(a+(u?o-T:T))%s,x=()=>{y!==v&&(t.lineTo(c,v),t.lineTo(c,y),t.lineTo(c,_))};for(l&&(p=r[b(0)],t.moveTo(p.x,p.y)),h=0;h<=o;++h){if(p=r[b(h)],p.skip)continue;const T=p.x,E=p.y,C=T|0;C===m?(E<y?y=E:E>v&&(v=E),c=(f*c+T)/++f):(x(),t.lineTo(T,E),m=C,f=0,y=v=E),_=E}x()}function KR(t){const e=t.options,n=e.borderDash&&e.borderDash.length;return!t._decimated&&!t._loop&&!e.tension&&e.cubicInterpolationMode!=="monotone"&&!e.stepped&&!n?xHe:bHe}function SHe(t){return t.stepped?_$e:t.tension||t.cubicInterpolationMode==="monotone"?v$e:gh}function THe(t,e,n,i){let r=e._path;r||(r=e._path=new Path2D,e.path(r,n,i)&&r.closePath()),Ete(t,e.options),t.stroke(r)}function EHe(t,e,n,i){const{segments:r,options:s}=e,a=KR(e);for(const o of r)Ete(t,s,o.style),t.beginPath(),a(t,e,o,{start:n,end:n+i-1})&&t.closePath(),t.stroke()}const wHe=typeof Path2D=="function";function CHe(t,e,n,i){wHe&&!e.options.segment?THe(t,e,n,i):EHe(t,e,n,i)}class xC extends Sl{constructor(e){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,e&&Object.assign(this,e)}
vendor: 9,338 bytes, line 3891
3891updateControlPoints(e,n){const i=this.options;if((i.tension||i.cubicInterpolationMode==="monotone")&&!i.stepped&&!this._pointsUpdated){const r=i.spanGaps?this._loop:this._fullLoop;u$e(this._points,i,e,r,n),this._pointsUpdated=!0}}set points(e){this._points=e,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=A$e(this,this.options.segment))}first(){const e=this.segments,n=this.points;return e.length&&n[e[0].start]}last(){const e=this.segments,n=this.points,i=e.length;return i&&n[e[i-1].end]}interpolate(e,n){const i=this.options,r=e[n],s=this.points,a=E$e(this,{property:n,start:r,end:r});if(!a.length)return;const o=[],l=SHe(i);let u,c;for(u=0,c=a.length;u<c;++u){const{start:f,end:h}=a[u],p=s[f],m=s[h];if(p===m){o.push(p);continue}const y=Math.abs((r-p[n])/(m[n]-p[n])),v=l(p,m,y,i.stepped);v[n]=e[n],o.push(v)}return o.length===1?o[0]:o}pathSegment(e,n,i){return KR(this)(e,this,n,i)}path(e,n,i){const r=this.segments,s=KR(this);let a=this._loop;n=n||0,i=i||this.points.length-n;for(const o of r)a&=s(e,this,o,{start:n,end:n+i-1});return!!a}draw(e,n,i,r){const s=this.options||{};(this.points||[]).length&&s.borderWidth&&(e.save(),CHe(e,this,i,r),e.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}xC.id="line";xC.defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0};xC.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};xC.descriptors={_scriptable:!0,_indexable:t=>t!=="borderDash"&&t!=="fill"};function dH(t,e,n,i){const r=t.options,{[n]:s}=t.getProps([n],i);return Math.abs(e-s)<r.radius+r.hitRadius}class SC extends Sl{constructor(e){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,e&&Object.assign(this,e)}inRange(e,n,i){const r=this.options,{x:s,y:a}=this.getProps(["x","y"],i);return Math.pow(e-s,2)+Math.pow(n-a,2)<Math.pow(r.hitRadius+r.radius,2)}inXRange(e,n){return dH(this,e,"x",n)}inYRange(e,n){return dH(this,e,"y",n)}getCenterPoint(e){const{x:n,y:i}=this.getProps(["x","y"],e);return{x:n,y:i}}size(e){e=e||this.options||{};let n=e.radius||0;n=Math.max(n,n&&e.hoverRadius||0);const i=n&&e.borderWidth||0;return(n+i)*2}draw(e,n){const i=this.options;this.skip||i.radius<.1||!xb(this,n,this.size(i)/2)||(e.strokeStyle=i.borderColor,e.lineWidth=i.borderWidth,e.fillStyle=i.backgroundColor,GR(e,i,this.x,this.y))}getRange(){const e=this.options||{};return e.radius+e.hitRadius}}SC.id="point";SC.defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0};SC.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};function Cte(t,e){const{x:n,y:i,base:r,width:s,height:a}=t.getProps(["x","y","base","width","height"],e);let o,l,u,c,f;return t.horizontal?(f=a/2,o=Math.min(n,r),l=Math.max(n,r),u=i-f,c=i+f):(f=s/2,o=n-f,l=n+f,u=Math.min(i,r),c=Math.max(i,r)),{left:o,top:u,right:l,bottom:c}}function Gf(t,e,n,i){return t?0:ts(e,n,i)}function AHe(t,e,n){const i=t.options.borderWidth,r=t.borderSkipped,s=Qee(i);return{t:Gf(r.top,s.top,0,n),r:Gf(r.right,s.right,0,e),b:Gf(r.bottom,s.bottom,0,n),l:Gf(r.left,s.left,0,e)}}function MHe(t,e,n){const{enableBorderRadius:i}=t.getProps(["enableBorderRadius"]),r=t.options.borderRadius,s=Jh(r),a=Math.min(e,n),o=t.borderSkipped,l=i||Dn(r);return{topLeft:Gf(!l||o.top||o.left,s.topLeft,0,a),topRight:Gf(!l||o.top||o.right,s.topRight,0,a),bottomLeft:Gf(!l||o.bottom||o.left,s.bottomLeft,0,a),bottomRight:Gf(!l||o.bottom||o.right,s.bottomRight,0,a)}}function DHe(t){const e=Cte(t),n=e.right-e.left,i=e.bottom-e.top,r=AHe(t,n/2,i/2),s=MHe(t,n/2,i/2);return{outer:{x:e.left,y:e.top,w:n,h:i,radius:s},inner:{x:e.left+r.l,y:e.top+r.t,w:n-r.l-r.r,h:i-r.t-r.b,radius:{topLeft:Math.max(0,s.topLeft-Math.max(r.t,r.l)),topRight:Math.max(0,s.topRight-Math.max(r.t,r.r)),bottomLeft:Math.max(0,s.bottomLeft-Math.max(r.b,r.l)),bottomRight:Math.max(0,s.bottomRight-Math.max(r.b,r.r))}}}}function q3(t,e,n,i){const r=e===null,s=n===null,o=t&&!(r&&s)&&Cte(t,i);return o&&(r||Vf(e,o.left,o.right))&&(s||Vf(n,o.top,o.bottom))}function PHe(t){return t.topLeft||t.topRight||t.bottomLeft||t.bottomRight}function OHe(t,e){t.rect(e.x,e.y,e.w,e.h)}function X3(t,e,n={}){const i=t.x!==n.x?-e:0,r=t.y!==n.y?-e:0,s=(t.x+t.w!==n.x+n.w?e:0)-i,a=(t.y+t.h!==n.y+n.h?e:0)-r;return{x:t.x+i,y:t.y+r,w:t.w+s,h:t.h+a,radius:t.radius}}class TC extends Sl{constructor(e){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,e&&Object.assign(this,e)}draw(e){const{inflateAmount:n,options:{borderColor:i,backgroundColor:r}}=this,{inner:s,outer:a}=DHe(this),o=PHe(a.radius)?Sb:OHe;e.save(),(a.w!==s.w||a.h!==s.h)&&(e.beginPath(),o(e,X3(a,n,s)),e.clip(),o(e,X3(s,-n,a)),e.fillStyle=i,e.fill("evenodd")),e.beginPath(),o(e,X3(s,n)),e.fillStyle=r,e.fill(),e.restore()}inRange(e,n,i){return q3(this,e,n,i)}inXRange(e,n){return q3(this,e,null,n)}inYRange(e,n){return q3(this,null,e,n)}getCenterPoint(e){const{x:n,y:i,base:r,horizontal:s}=this.getProps(["x","y","base","horizontal"],e);return{x:s?(n+r)/2:n,y:s?i:(i+r)/2}}getRange(e){return e==="x"?this.width/2:this.height/2}}TC.id="bar";TC.defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0};TC.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};const hH=(t,e)=>{let{boxHeight:n=e,boxWidth:i=e}=t;return t.usePointStyle&&(n=Math.min(n,e),i=t.pointStyleWidth||Math.min(i,e)),{boxWidth:i,boxHeight:n,itemHeight:Math.max(e,n)}},RHe=(t,e)=>t!==null&&e!==null&&t.datasetIndex===e.datasetIndex&&t.index===e.index;class pH extends Sl{constructor(e){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,n,i){this.maxWidth=e,this.maxHeight=n,this._margins=i,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const e=this.options.labels||{};let n=Yn(e.generateLabels,[this.chart],this)||[];e.filter&&(n=n.filter(i=>e.filter(i,this.chart.data))),e.sort&&(n=n.sort((i,r)=>e.sort(i,r,this.chart.data))),this.options.reverse&&n.reverse(),this.legendItems=n}fit(){const{options:e,ctx:n}=this;if(!e.display){this.width=this.height=0;return}const i=e.labels,r=er(i.font),s=r.size,a=this._computeTitleHeight(),{boxWidth:o,itemHeight:l}=hH(i,s);let u,c;n.font=r.string,this.isHorizontal()?(u=this.maxWidth,c=this._fitRows(a,s,o,l)+10):(c=this.maxHeight,u=this._fitCols(a,s,o,l)+10),this.width=Math.min(u,e.maxWidth||this.maxWidth),this.height=Math.min(c,e.maxHeight||this.maxHeight)}_fitRows(e,n,i,r){const{ctx:s,maxWidth:a,options:{labels:{padding:o}}}=this,l=this.legendHitBoxes=[],u=this.lineWidths=[0],c=r+o;let f=e;s.textAlign="left",s.textBaseline="middle";let h=-1,p=-c;return this.legendItems.forEach((m,y)=>{const v=i+n/2+s.measureText(m.text).width;(y===0||u[u.length-1]+v+2*o>a)&&(f+=c,u[u.length-(y>0?0:1)]=0,p+=c,h++),l[y]={left:0,top:p,row:h,width:v,height:r},u[u.length-1]+=v+o}),f}_fitCols(e,n,i,r){const{ctx:s,maxHeight:a,options:{labels:{padding:o}}}=this,l=this.legendHitBoxes=[],u=this.columnSizes=[],c=a-e;let f=o,h=0,p=0,m=0,y=0;return this.legendItems.forEach((v,_)=>{const b=i+n/2+s.measureText(v.text).width;_>0&&p+r+2*o>c&&(f+=h+o,u.push({width:h,height:p}),m+=h+o,y++,h=p=0),l[_]={left:m,top:p,col:y,width:b,height:r},h=Math.max(h,b),p+=r+o}),f+=h,u.push({width:h,height:p}),f}adjustHitBoxes(){if(!this.options.display)return;const e=this._computeTitleHeight(),{legendHitBoxes:n,options:{align:i,labels:{padding:r},rtl:s}}=this,a=Hm(s,this.left,this.width);if(this.isHorizontal()){let o=0,l=jr(i,this.left+r,this.right-this.lineWidths[o]);for(const u of n)o!==u.row&&(o=u.row,l=jr(i,this.left+r,this.right-this.lineWidths[o])),u.top+=this.top+e+r,u.left=a.leftForLtr(a.x(l),u.width),l+=u.width+r}else{let o=0,l=jr(i,this.top+e+r,this.bottom-this.columnSizes[o].height);for(const u of n)u.col!==o&&(o=u.col,l=jr(i,this.top+e+r,this.bottom-this.columnSizes[o].height)),u.top=l,u.left+=this.left+r,u.left=a.leftForLtr(a.x(u.left),u.width),l+=u.height+r}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const e=this.ctx;fF(e,this),this._draw(),dF(e)}}_draw(){const{options:e,columnSizes:n,lineWidths:i,ctx:r}=this,{align:s,labels:a}=e,o=En.color,l=Hm(e.rtl,this.left,this.width),u=er(a.font),{color:c,padding:f}=a,h=u.size,p=h/2;let m;this.drawTitle(),r.textAlign=l.textAlign("left"),r.textBaseline="middle",r.lineWidth=.5,r.font=u.string;const{boxWidth:y,boxHeight:v,itemHeight:_}=hH(a,h),b=function(D,R,A){if(isNaN(y)||y<=0||isNaN(v)||v<0)return;
vendor: 2,923 bytes, line 3891
3891r.save();const k=nn(A.lineWidth,1);if(r.fillStyle=nn(A.fillStyle,o),r.lineCap=nn(A.lineCap,"butt"),r.lineDashOffset=nn(A.lineDashOffset,0),r.lineJoin=nn(A.lineJoin,"miter"),r.lineWidth=k,r.strokeStyle=nn(A.strokeStyle,o),r.setLineDash(nn(A.lineDash,[])),a.usePointStyle){const F={radius:v*Math.SQRT2/2,pointStyle:A.pointStyle,rotation:A.rotation,borderWidth:k},N=l.xPlus(D,y/2),U=R+p;Zee(r,F,N,U,a.pointStyleWidth&&y)}else{const F=R+Math.max((h-v)/2,0),N=l.leftForLtr(D,y),U=Jh(A.borderRadius);r.beginPath(),Object.values(U).some($=>$!==0)?Sb(r,{x:N,y:F,w:y,h:v,radius:U}):r.rect(N,F,y,v),r.fill(),k!==0&&r.stroke()}r.restore()},x=function(D,R,A){bp(r,A.text,D,R+_/2,u,{strikethrough:A.hidden,textAlign:l.textAlign(A.textAlign)})},T=this.isHorizontal(),E=this._computeTitleHeight();T?m={x:jr(s,this.left+f,this.right-i[0]),y:this.top+f+E,line:0}:m={x:this.left+f,y:jr(s,this.top+E+f,this.bottom-n[0].height),line:0},ate(this.ctx,e.textDirection);const C=_+f;this.legendItems.forEach((D,R)=>{r.strokeStyle=D.fontColor||c,r.fillStyle=D.fontColor||c;const A=r.measureText(D.text).width,k=l.textAlign(D.textAlign||(D.textAlign=a.textAlign)),F=y+p+A;let N=m.x,U=m.y;l.setWidth(this.width),T?R>0&&N+F+f>this.right&&(U=m.y+=C,m.line++,N=m.x=jr(s,this.left+f,this.right-i[m.line])):R>0&&U+C>this.bottom&&(N=m.x=N+n[m.line].width+f,m.line++,U=m.y=jr(s,this.top+E+f,this.bottom-n[m.line].height));const $=l.x(N);b($,U,D),N=h7e(k,N+y+p,T?N+F:this.right,e.rtl),x(l.x(N),U,D),T?m.x+=F+f:m.y+=C}),ote(this.ctx,e.textDirection)}drawTitle(){const e=this.options,n=e.title,i=er(n.font),r=$r(n.padding);if(!n.display)return;const s=Hm(e.rtl,this.left,this.width),a=this.ctx,o=n.position,l=i.size/2,u=r.top+l;let c,f=this.left,h=this.width;if(this.isHorizontal())h=Math.max(...this.lineWidths),c=this.top+u,f=jr(e.align,f,this.right-h);else{const m=this.columnSizes.reduce((y,v)=>Math.max(y,v.height),0);c=u+jr(e.align,this.top,this.bottom-m-e.labels.padding-this._computeTitleHeight())}const p=jr(o,f,f+h);a.textAlign=s.textAlign(oF(o)),a.textBaseline="middle",a.strokeStyle=n.color,a.fillStyle=n.color,a.font=i.string,bp(a,n.text,p,c,i)}_computeTitleHeight(){const e=this.options.title,n=er(e.font),i=$r(e.padding);return e.display?n.lineHeight+i.height:0}_getLegendItemAt(e,n){let i,r,s;if(Vf(e,this.left,this.right)&&Vf(n,this.top,this.bottom)){for(s=this.legendHitBoxes,i=0;i<s.length;++i)if(r=s[i],Vf(e,r.left,r.left+r.width)&&Vf(n,r.top,r.top+r.height))return this.legendItems[i]}return null}handleEvent(e){const n=this.options;if(!kHe(e.type,n))return;const i=this._getLegendItemAt(e.x,e.y);if(e.type==="mousemove"||e.type==="mouseout"){const r=this._hoveredItem,s=RHe(r,i);r&&!s&&Yn(n.onLeave,[e,r,this],this),this._hoveredItem=i,i&&!s&&Yn(n.onHover,[e,i,this],this)}else i&&Yn(n.onClick,[e,i,this],this)}}function kHe(t,e){return!!((t==="mousemove"||t==="mouseout")&&(e.onHover||e.onLeave)||e.onClick&&(t==="click"||t==="mouseup"))}
vendor: 5,130 bytes, lines 3891-3893
3891var SWe={id:"legend",_element:pH,start(t,e,n){const i=t.legend=new pH({ctx:t.ctx,options:n,chart:t});ns.configure(t,i,n),ns.addBox(t,i)},stop(t){ns.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,e,n){const i=t.legend;ns.configure(t,i,n),i.options=n},afterUpdate(t){const e=t.legend;e.buildLabels(),e.adjustHitBoxes()},afterEvent(t,e){e.replay||t.legend.handleEvent(e.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(t,e,n){const i=e.datasetIndex,r=n.chart;r.isDatasetVisible(i)?(r.hide(i),e.hidden=!0):(r.show(i),e.hidden=!1)},onHover:null,onLeave:null,labels:{color:t=>t.chart.options.color,boxWidth:40,padding:10,generateLabels(t){const e=t.data.datasets,{labels:{usePointStyle:n,pointStyle:i,textAlign:r,color:s}}=t.legend.options;return t._getSortedDatasetMetas().map(a=>{const o=a.controller.getStyle(n?0:void 0),l=$r(o.borderWidth);return{text:e[a.index].label,fillStyle:o.backgroundColor,fontColor:s,hidden:!a.visible,lineCap:o.borderCapStyle,lineDash:o.borderDash,lineDashOffset:o.borderDashOffset,lineJoin:o.borderJoinStyle,lineWidth:(l.width+l.height)/4,strokeStyle:o.borderColor,pointStyle:i||o.pointStyle,rotation:o.rotation,textAlign:r||o.textAlign,borderRadius:0,datasetIndex:a.index}},this)}},title:{color:t=>t.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:t=>!t.startsWith("on"),labels:{_scriptable:t=>!["generateLabels","filter","sort"].includes(t)}}};class TF extends Sl{constructor(e){super(),this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,n){const i=this.options;if(this.left=0,this.top=0,!i.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=e,this.height=this.bottom=n;const r=pi(i.text)?i.text.length:1;this._padding=$r(i.padding);const s=r*er(i.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=s:this.width=s}isHorizontal(){const e=this.options.position;return e==="top"||e==="bottom"}_drawArgs(e){const{top:n,left:i,bottom:r,right:s,options:a}=this,o=a.align;let l=0,u,c,f;return this.isHorizontal()?(c=jr(o,i,s),f=n+e,u=s-i):(a.position==="left"?(c=i+e,f=jr(o,r,n),l=Ti*-.5):(c=s-e,f=jr(o,n,r),l=Ti*.5),u=r-n),{titleX:c,titleY:f,maxWidth:u,rotation:l}}draw(){const e=this.ctx,n=this.options;if(!n.display)return;const i=er(n.font),s=i.lineHeight/2+this._padding.top,{titleX:a,titleY:o,maxWidth:l,rotation:u}=this._drawArgs(s);bp(e,n.text,0,0,i,{color:n.color,maxWidth:l,rotation:u,textAlign:oF(n.align),textBaseline:"middle",translation:[a,o]})}}function IHe(t,e){const n=new TF({ctx:t.ctx,options:e,chart:t});ns.configure(t,n,e),ns.addBox(t,n),t.titleBlock=n}var TWe={id:"title",_element:TF,start(t,e,n){IHe(t,n)},stop(t){const e=t.titleBlock;ns.removeBox(t,e),delete t.titleBlock},beforeUpdate(t,e,n){const i=t.titleBlock;ns.configure(t,i,n),i.options=n},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const nT=new WeakMap;var EWe={id:"subtitle",start(t,e,n){const i=new TF({ctx:t.ctx,options:n,chart:t});ns.configure(t,i,n),ns.addBox(t,i),nT.set(t,i)},stop(t){ns.removeBox(t,nT.get(t)),nT.delete(t)},beforeUpdate(t,e,n){const i=nT.get(t);ns.configure(t,i,n),i.options=n},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const vy={average(t){if(!t.length)return!1;let e,n,i=0,r=0,s=0;for(e=0,n=t.length;e<n;++e){const a=t[e].element;if(a&&a.hasValue()){const o=a.tooltipPosition();i+=o.x,r+=o.y,++s}}return{x:i/s,y:r/s}},nearest(t,e){if(!t.length)return!1;let n=e.x,i=e.y,r=Number.POSITIVE_INFINITY,s,a,o;for(s=0,a=t.length;s<a;++s){const l=t[s].element;if(l&&l.hasValue()){const u=l.getCenterPoint(),c=HR(e,u);c<r&&(r=c,o=l)}}if(o){const l=o.tooltipPosition();n=l.x,i=l.y}return{x:n,y:i}}};function Il(t,e){return e&&(pi(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function ec(t){return(typeof t=="string"||t instanceof String)&&t.indexOf(`
3892`)>-1?t.split(`
3893`):t}function LHe(t,e){const{element:n,datasetIndex:i,index:r}=e,s=t.getDatasetMeta(i).controller,{label:a,value:o}=s.getLabelAndValue(r);return{chart:t,label:a,parsed:s.getParsed(r),raw:t.data.datasets[i].data[r],formattedValue:o,dataset:s.getDataset(),dataIndex:r,datasetIndex:i,element:n}}function mH(t,e){const n=t.chart.ctx,{body:i,footer:r,title:s}=t,{boxWidth:a,boxHeight:o}=e,l=er(e.bodyFont),u=er(e.titleFont),c=er(e.footerFont),f=s.length,h=r.length,p=i.length,m=$r(e.padding);let y=m.height,v=0,_=i.reduce((T,E)=>T+E.before.length+E.lines.length+E.after.length,0);if(_+=t.beforeBody.length+t.afterBody.length,f&&(y+=f*u.lineHeight+(f-1)*e.titleSpacing+e.titleMarginBottom),_){const T=e.displayColors?Math.max(o,l.lineHeight):l.lineHeight;y+=p*T+(_-p)*l.lineHeight+(_-1)*e.bodySpacing}
3893h&&(y+=e.footerMarginTop+h*c.lineHeight+(h-1)*e.footerSpacing);let b=0;const x=function(T){v=Math.max(v,n.measureText(T).width+b)};return n.save(),n.font=u.string,Bn(t.title,x),n.font=l.string,Bn(t.beforeBody.concat(t.afterBody),x),b=e.displayColors?a+2+e.boxPadding:0,Bn(i,T=>{Bn(T.before,x),Bn(T.lines,x),Bn(T.after,x)}),b=0,n.font=c.string,Bn(t.footer,x),n.restore(),v+=m.width,{width:v,height:y}}function FHe(t,e){const{y:n,height:i}=e;return n<i/2?"top":n>t.height-i/2?"bottom":"center"}function NHe(t,e,n,i){const{x:r,width:s}=i,a=n.caretSize+n.caretPadding;if(t==="left"&&r+s+a>e.width||t==="right"&&r-s-a<0)return!0}function BHe(t,e,n,i){const{x:r,width:s}=n,{width:a,chartArea:{left:o,right:l}}=t;let u="center";return i==="center"?u=r<=(o+l)/2?"left":"right":r<=s/2?u="left":r>=a-s/2&&(u="right"),NHe(u,t,e,n)&&(u="center"),u}function gH(t,e,n){const i=n.yAlign||e.yAlign||FHe(t,n);return{xAlign:n.xAlign||e.xAlign||BHe(t,e,n,i),yAlign:i}}function UHe(t,e){let{x:n,width:i}=t;return e==="right"?n-=i:e==="center"&&(n-=i/2),n}function $He(t,e,n){let{y:i,height:r}=t;return e==="top"?i+=n:e==="bottom"?i-=r+n:i-=r/2,i}function _H(t,e,n,i){const{caretSize:r,caretPadding:s,cornerRadius:a}=t,{xAlign:o,yAlign:l}=n,u=r+s,{topLeft:c,topRight:f,bottomLeft:h,bottomRight:p}=Jh(a);let m=UHe(e,o);const y=$He(e,l,u);return l==="center"?o==="left"?m+=u:o==="right"&&(m-=u):o==="left"?m-=Math.max(c,h)+r:o==="right"&&(m+=Math.max(f,p)+r),{x:ts(m,0,i.width-e.width),y:ts(y,0,i.height-e.height)}}function iT(t,e,n){const i=$r(n.padding);return e==="center"?t.x+t.width/2:e==="right"?t.x+t.width-i.right:t.x+i.left}function vH(t){return Il([],ec(t))}function zHe(t,e,n){return Pd(t,{tooltip:e,tooltipItems:n,type:"tooltip"})}function yH(t,e){const n=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return n?t.override(n):t}class ZR extends Sl{constructor(e){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=e.chart||e._chart,this._chart=this.chart,this.options=e.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(e){this.options=e,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const e=this._cachedAnimations;if(e)return e;const n=this.chart,i=this.options.setContext(this.getContext()),r=i.enabled&&n.options.animation&&i.animations,s=new ute(this.chart,r);return r._cacheable&&(this._cachedAnimations=Object.freeze(s)),s}getContext(){return this.$context||(this.$context=zHe(this.chart.getContext(),this,this._tooltipItems))}getTitle(e,n){const{callbacks:i}=n,r=i.beforeTitle.apply(this,[e]),s=i.title.apply(this,[e]),a=i.afterTitle.apply(this,[e]);let o=[];return o=Il(o,ec(r)),o=Il(o,ec(s)),o=Il(o,ec(a)),o}getBeforeBody(e,n){return vH(n.callbacks.beforeBody.apply(this,[e]))}getBody(e,n){const{callbacks:i}=n,r=[];return Bn(e,s=>{const a={before:[],lines:[],after:[]},o=yH(i,s);Il(a.before,ec(o.beforeLabel.call(this,s))),Il(a.lines,o.label.call(this,s)),Il(a.after,ec(o.afterLabel.call(this,s))),r.push(a)}),r}getAfterBody(e,n){return vH(n.callbacks.afterBody.apply(this,[e]))}getFooter(e,n){const{callbacks:i}=n,r=i.beforeFooter.apply(this,[e]),s=i.footer.apply(this,[e]),a=i.afterFooter.apply(this,[e]);let o=[];return o=Il(o,ec(r)),o=Il(o,ec(s)),o=Il(o,ec(a)),o}_createItems(e){const n=this._active,i=this.chart.data,r=[],s=[],a=[];let o=[],l,u;for(l=0,u=n.length;l<u;++l)o.push(LHe(this.chart,n[l]));return e.filter&&(o=o.filter((c,f,h)=>e.filter(c,f,h,i))),e.itemSort&&(o=o.sort((c,f)=>e.itemSort(c,f,i))),Bn(o,c=>{const f=yH(e.callbacks,c);r.push(f.labelColor.call(this,c)),s.push(f.labelPointStyle.call(this,c)),a.push(f.labelTextColor.call(this,c))}),this.labelColors=r,this.labelPointStyles=s,this.labelTextColors=a,this.dataPoints=o,o}update(e,n){const i=this.options.setContext(this.getContext()),r=this._active;let s,a=[];if(!r.length)this.opacity!==0&&(s={opacity:0}
vendor: 5,398 bytes, line 3893
3893);else{const o=vy[i.position].call(this,r,this._eventPosition);a=this._createItems(i),this.title=this.getTitle(a,i),this.beforeBody=this.getBeforeBody(a,i),this.body=this.getBody(a,i),this.afterBody=this.getAfterBody(a,i),this.footer=this.getFooter(a,i);const l=this._size=mH(this,i),u=Object.assign({},o,l),c=gH(this.chart,i,u),f=_H(i,u,c,this.chart);this.xAlign=c.xAlign,this.yAlign=c.yAlign,s={opacity:1,x:f.x,y:f.y,width:l.width,height:l.height,caretX:o.x,caretY:o.y}}this._tooltipItems=a,this.$context=void 0,s&&this._resolveAnimations().update(this,s),e&&i.external&&i.external.call(this,{chart:this.chart,tooltip:this,replay:n})}drawCaret(e,n,i,r){const s=this.getCaretPosition(e,i,r);n.lineTo(s.x1,s.y1),n.lineTo(s.x2,s.y2),n.lineTo(s.x3,s.y3)}getCaretPosition(e,n,i){const{xAlign:r,yAlign:s}=this,{caretSize:a,cornerRadius:o}=i,{topLeft:l,topRight:u,bottomLeft:c,bottomRight:f}=Jh(o),{x:h,y:p}=e,{width:m,height:y}=n;let v,_,b,x,T,E;return s==="center"?(T=p+y/2,r==="left"?(v=h,_=v-a,x=T+a,E=T-a):(v=h+m,_=v+a,x=T-a,E=T+a),b=v):(r==="left"?_=h+Math.max(l,c)+a:r==="right"?_=h+m-Math.max(u,f)-a:_=this.caretX,s==="top"?(x=p,T=x-a,v=_-a,b=_+a):(x=p+y,T=x+a,v=_+a,b=_-a),E=x),{x1:v,x2:_,x3:b,y1:x,y2:T,y3:E}}drawTitle(e,n,i){const r=this.title,s=r.length;let a,o,l;if(s){const u=Hm(i.rtl,this.x,this.width);for(e.x=iT(this,i.titleAlign,i),n.textAlign=u.textAlign(i.titleAlign),n.textBaseline="middle",a=er(i.titleFont),o=i.titleSpacing,n.fillStyle=i.titleColor,n.font=a.string,l=0;l<s;++l)n.fillText(r[l],u.x(e.x),e.y+a.lineHeight/2),e.y+=a.lineHeight+o,l+1===s&&(e.y+=i.titleMarginBottom-o)}}_drawColorBox(e,n,i,r,s){const a=this.labelColors[i],o=this.labelPointStyles[i],{boxHeight:l,boxWidth:u,boxPadding:c}=s,f=er(s.bodyFont),h=iT(this,"left",s),p=r.x(h),m=l<f.lineHeight?(f.lineHeight-l)/2:0,y=n.y+m;if(s.usePointStyle){const v={radius:Math.min(u,l)/2,pointStyle:o.pointStyle,rotation:o.rotation,borderWidth:1},_=r.leftForLtr(p,u)+u/2,b=y+l/2;e.strokeStyle=s.multiKeyBackground,e.fillStyle=s.multiKeyBackground,GR(e,v,_,b),e.strokeStyle=a.borderColor,e.fillStyle=a.backgroundColor,GR(e,v,_,b)}else{e.lineWidth=Dn(a.borderWidth)?Math.max(...Object.values(a.borderWidth)):a.borderWidth||1,e.strokeStyle=a.borderColor,e.setLineDash(a.borderDash||[]),e.lineDashOffset=a.borderDashOffset||0;const v=r.leftForLtr(p,u-c),_=r.leftForLtr(r.xPlus(p,1),u-c-2),b=Jh(a.borderRadius);Object.values(b).some(x=>x!==0)?(e.beginPath(),e.fillStyle=s.multiKeyBackground,Sb(e,{x:v,y,w:u,h:l,radius:b}),e.fill(),e.stroke(),e.fillStyle=a.backgroundColor,e.beginPath(),Sb(e,{x:_,y:y+1,w:u-2,h:l-2,radius:b}),e.fill()):(e.fillStyle=s.multiKeyBackground,e.fillRect(v,y,u,l),e.strokeRect(v,y,u,l),e.fillStyle=a.backgroundColor,e.fillRect(_,y+1,u-2,l-2))}e.fillStyle=this.labelTextColors[i]}drawBody(e,n,i){const{body:r}=this,{bodySpacing:s,bodyAlign:a,displayColors:o,boxHeight:l,boxWidth:u,boxPadding:c}=i,f=er(i.bodyFont);let h=f.lineHeight,p=0;const m=Hm(i.rtl,this.x,this.width),y=function(R){n.fillText(R,m.x(e.x+p),e.y+h/2),e.y+=h+s},v=m.textAlign(a);let _,b,x,T,E,C,D;for(n.textAlign=a,n.textBaseline="middle",n.font=f.string,e.x=iT(this,v,i),n.fillStyle=i.bodyColor,Bn(this.beforeBody,y),p=o&&v!=="right"?a==="center"?u/2+c:u+2+c:0,T=0,C=r.length;T<C;++T){for(_=r[T],b=this.labelTextColors[T],n.fillStyle=b,Bn(_.before,y),x=_.lines,o&&x.length&&(this._drawColorBox(n,e,T,m,i),h=Math.max(f.lineHeight,l)),E=0,D=x.length;E<D;++E)y(x[E]),h=f.lineHeight;Bn(_.after,y)}p=0,h=f.lineHeight,Bn(this.afterBody,y),e.y-=s}drawFooter(e,n,i){const r=this.footer,s=r.length;let a,o;if(s){const l=Hm(i.rtl,this.x,this.width);for(e.x=iT(this,i.footerAlign,i),e.y+=i.footerMarginTop,n.textAlign=l.textAlign(i.footerAlign),n.textBaseline="middle",a=er(i.footerFont),n.fillStyle=i.footerColor,n.font=a.string,o=0;o<s;++o)n.fillText(r[o],l.x(e.x),e.y+a.lineHeight/2),e.y+=a.lineHeight+i.footerSpacing}}drawBackground(e,n,i,r){const{xAlign:s,yAlign:a}=this,{x:o,y:l}=e,{width:u,height:c}=i,{topLeft:f,topRight:h,bottomLeft:p,bottomRight:m}=Jh(r.cornerRadius);n.fillStyle=r.backgroundColor,n.strokeStyle=r.borderColor,n.lineWidth=r.borderWidth,n.beginPath(),n.moveTo(o+f,l),a==="top"&&this.drawCaret(e,n,i,r),n.lineTo(o+u-h,l),n.quadraticCurveTo(o+u,l,o+u,l+h),a==="center"&&s==="right"&&this.drawCaret(e,n,i,r),n.lineTo(o+u,l+c-m),n.quadraticCurveTo(o+u,l+c,o+u-m,l+c),a==="bottom"&&this.drawCaret(e,n,i,r),n.lineTo(o+p,l+c),n.quadraticCurveTo(o,l+c,o,l+c-p),a==="center"&&s==="left"&&this.drawCaret(e,n,i,r),n.lineTo(o,l+f),n.quadraticCurveTo(o,l,o+f,l),n.closePath(),n.fill(),r.borderWidth>0&&n.stroke()}_updateAnimationTarget(e){const n=this.chart,i=this.$animations,r=i&&i.x,s=i&&i.y;if(r||s){const a=vy[e.position].call(this,this._active,this._eventPosition);if(!a)return;const o=this._size=mH(this,e),l=Object.assign({},a,this._size),u=gH(n,e,l),c=_H(e,l,u,n);(r._to!==c.x||s._to!==c.y)&&(this.xAlign=u.xAlign,this.yAlign=u.yAlign,this.width=o.width,this.height=o.height,this.caretX=a.x,this.caretY=a.y,this._resolveAnimations().update(this,c))}}_willRender(){return!!this.opacity}draw(e){const n=this.options.setContext(this.getContext());let i=this.opacity;if(!i)return;this._updateAnimationTarget(n);const r={width:this.width,height:this.height},s={x:this.x,y:this.y};i=Math.abs(i)<.001?0:i;const a=$r(n.padding),o=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;
3893n.enabled&&o&&(e.save(),e.globalAlpha=i,this.drawBackground(s,e,r,n),ate(e,n.textDirection),s.y+=a.top,this.drawTitle(s,e,n),this.drawBody(s,e,n),this.drawFooter(s,e,n),ote(e,n.textDirection),e.restore())}getActiveElements(){return this._active||[]}setActiveElements(e,n){const i=this._active,r=e.map(({datasetIndex:o,index:l})=>{const u=this.chart.getDatasetMeta(o);if(!u)throw new Error("Cannot find a dataset at index "+o);return{datasetIndex:o,element:u.data[l],index:l}}),s=!wE(i,r),a=this._positionChanged(r,n);(s||a)&&(this._active=r,this._eventPosition=n,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(e,n,i=!0){if(n&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const r=this.options,s=this._active||[],a=this._getActiveElements(e,s,n,i),o=this._positionChanged(a,e),l=n||!wE(a,s)||o;return l&&(this._active=a,(r.enabled||r.external)&&(this._eventPosition={x:e.x,y:e.y},this.update(!0,n))),l}_getActiveElements(e,n,i,r){const s=this.options;if(e.type==="mouseout")return[];if(!r)return n;const a=this.chart.getElementsAtEventForMode(e,s.mode,s,i);return s.reverse&&a.reverse(),a}_positionChanged(e,n){const{caretX:i,caretY:r,options:s}=this,a=vy[s.position].call(this,e,n);return a!==!1&&(i!==a.x||r!==a.y)}}ZR.positioners=vy;var wWe={id:"tooltip",_element:ZR,positioners:vy,afterInit(t,e,n){n&&(t.tooltip=new ZR({chart:t,options:n}))},beforeUpdate(t,e,n){t.tooltip&&t.tooltip.initialize(n)},reset(t,e,n){t.tooltip&&t.tooltip.initialize(n)},afterDraw(t){const e=t.tooltip;if(e&&e._willRender()){const n={tooltip:e};if(t.notifyPlugins("beforeTooltipDraw",n)===!1)return;e.draw(t.ctx),t.notifyPlugins("afterTooltipDraw",n)}},afterEvent(t,e){if(t.tooltip){const n=e.replay;t.tooltip.handleEvent(e.event,n,e.inChartArea)&&(e.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(t,e)=>e.bodyFont.size,boxWidth:(t,e)=>e.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:{beforeTitle:Ku,title(t){if(t.length>0){const e=t[0],n=e.chart.data.labels,i=n?n.length:0;if(this&&this.options&&this.options.mode==="dataset")return e.dataset.label||"";if(e.label)return e.label;if(i>0&&e.dataIndex<i)return n[e.dataIndex]}return""},afterTitle:Ku,beforeBody:Ku,beforeLabel:Ku,label(t){if(this&&this.options&&this.options.mode==="dataset")return t.label+": "+t.formattedValue||t.formattedValue;let e=t.dataset.label||"";e&&(e+=": ");const n=t.formattedValue;return Cn(n)||(e+=n),e},labelColor(t){const n=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{borderColor:n.borderColor,backgroundColor:n.backgroundColor,borderWidth:n.borderWidth,borderDash:n.borderDash,borderDashOffset:n.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(t){const n=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{pointStyle:n.pointStyle,rotation:n.rotation}},afterLabel:Ku,afterBody:Ku,beforeFooter:Ku,footer:Ku,afterFooter:Ku}},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:t=>t!=="filter"&&t!=="itemSort"&&t!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};const HHe=(t,e,n,i)=>(typeof e=="string"?(n=t.push(e)-1,i.unshift({index:n,label:e})):isNaN(e)&&(n=null),n);function VHe(t,e,n,i){const r=t.indexOf(e);if(r===-1)return HHe(t,e,n,i);const s=t.lastIndexOf(e);return r!==s?n:r}const WHe=(t,e)=>t===null?null:ts(Math.round(t),0,e);class QR extends Lp{constructor(e){super(e),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(e){const n=this._addedLabels;if(n.length){const i=this.getLabels();for(const{index:r,label:s}of n)i[r]===s&&i.splice(r,1);this._addedLabels=[]}super.init(e)}parse(e,n){if(Cn(e))return null;const i=this.getLabels();return n=isFinite(n)&&i[n]===e?n:VHe(i,e,nn(n,e),this._addedLabels),WHe(n,i.length-1)}determineDataLimits(){const{minDefined:e,maxDefined:n}=this.getUserBounds();let{min:i,max:r}=this.getMinMax(!0);this.options.bounds==="ticks"&&(e||(i=0),n||(r=this.getLabels().length-1)),this.min=i,this.max=r}buildTicks(){const e=this.min,n=this.max,i=this.options.offset,r=[];let s=this.getLabels();s=e===0&&n===s.length-1?s:s.slice(e,n+1),this._valueRange=Math.max(s.length-(i?0:1),1),this._startValue=this.min-(i?.5:0);for(let a=e;a<=n;a++)r.push({value:a});return r}getLabelForValue(e){const n=this.getLabels();return e>=0&&e<n.length?n[e]:e}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(e){return typeof e!="number"&&(e=this.parse(e)),e===null?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getPixelForTick(e){const n=this.ticks;return e<0||e>n.length-1?null:this.getPixelForValue(n[e].value)}getValueForPixel(e){return Math.round(this._startValue+this.getDecimalForPixel(e)*this._valueRange)}getBasePixel(){return this.bottom}}QR.id="category";QR.defaults={ticks:{callback:QR.prototype.getLabelForValue}};function GHe(t,e){const n=[],{bounds:r,step:s,min:a,max:o,precision:l,count:u,maxTicks:c,maxDigits:f,includeBounds:h}=t,p=s||1,m=c-1,{min:y,max:v}=e,_=!Cn(a),b=!Cn(o),x=!Cn(u),T=(v-y)/(f+1);let E=Sz((v-y)/m/p)*p,C,D,R,A;if(E<1e-14&&!_&&!b)return[{value:y},{value:v}];A=Math.ceil(v/E)-Math.floor(y/E),A>m&&(E=Sz(A*E/m/p)*p),Cn(l)||(C=Math.pow(10,l),E=Math.ceil(E*C)/C),r==="ticks"?(D=Math.floor(y/E)*E,R=Math.ceil(v/E)*E):(D=y,R=v),_&&b&&s&&a7e((o-a)/s,E/1e3)?(A=Math.round(Math.min((o-a)/E,c)),E=(o-a)/A,D=a,R=o):x?(D=_?a:D,R=b?o:R,A=u-1,E=(R-D)/A):(A=(R-D)/E,my(A,Math.round(A),E/1e3)?A=Math.round(A):A=Math.ceil(A));
3893const k=Math.max(Tz(E),Tz(D));C=Math.pow(10,Cn(l)?k:l),D=Math.round(D*C)/C,R=Math.round(R*C)/C;let F=0;for(_&&(h&&D!==a?(n.push({value:a}),D<a&&F++,my(Math.round((D+F*E)*C)/C,a,bH(a,T,t))&&F++):D<a&&F++);F<A;++F)n.push({value:Math.round((D+F*E)*C)/C});return b&&h&&R!==o?n.length&&my(n[n.length-1].value,o,bH(o,T,t))?n[n.length-1].value=o:n.push({value:o}):(!b||R===o)&&n.push({value:R}),n}function bH(t,e,{horizontal:n,minRotation:i}){const r=ll(i),s=(n?Math.sin(r):Math.cos(r))||.001,a=.75*e*(""+t).length;return Math.min(e/s,a)}class IE extends Lp{constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(e,n){return Cn(e)||(typeof e=="number"||e instanceof Number)&&!isFinite(+e)?null:+e}handleTickRangeOptions(){const{beginAtZero:e}=this.options,{minDefined:n,maxDefined:i}=this.getUserBounds();let{min:r,max:s}=this;const a=l=>r=n?r:l,o=l=>s=i?s:l;if(e){const l=uu(r),u=uu(s);l<0&&u<0?o(0):l>0&&u>0&&a(0)}if(r===s){let l=1;(s>=Number.MAX_SAFE_INTEGER||r<=Number.MIN_SAFE_INTEGER)&&(l=Math.abs(s*.05)),o(s+l),e||a(r-l)}this.min=r,this.max=s}getTickLimit(){const e=this.options.ticks;let{maxTicksLimit:n,stepSize:i}=e,r;return i?(r=Math.ceil(this.max/i)-Math.floor(this.min/i)+1,r>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${i} would result generating up to ${r} ticks. Limiting to 1000.`),r=1e3)):(r=this.computeTickLimit(),n=n||11),n&&(r=Math.min(n,r)),r}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const e=this.options,n=e.ticks;let i=this.getTickLimit();i=Math.max(2,i);const r={maxTicks:i,bounds:e.bounds,min:e.min,max:e.max,precision:n.precision,step:n.stepSize,count:n.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:n.minRotation||0,includeBounds:n.includeBounds!==!1},s=this._range||this,a=GHe(r,s);return e.bounds==="ticks"&&Bee(a,this,"value"),e.reverse?(a.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),a}configure(){const e=this.ticks;let n=this.min,i=this.max;if(super.configure(),this.options.offset&&e.length){const r=(i-n)/Math.max(e.length-1,1)/2;n-=r,i+=r}this._startValue=n,this._endValue=i,this._valueRange=i-n}getLabelForValue(e){return o1(e,this.chart.options.locale,this.options.ticks.format)}}class Ate extends IE{determineDataLimits(){const{min:e,max:n}=this.getMinMax(!0);this.min=Ur(e)?e:0,this.max=Ur(n)?n:1,this.handleTickRangeOptions()}computeTickLimit(){const e=this.isHorizontal(),n=e?this.width:this.height,i=ll(this.options.ticks.minRotation),r=(e?Math.sin(i):Math.cos(i))||.001,s=this._resolveTickFontOptions(0);return Math.ceil(n/Math.min(40,s.lineHeight/r))}getPixelForValue(e){return e===null?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getValueForPixel(e){return this._startValue+this.getDecimalForPixel(e)*this._valueRange}}Ate.id="linear";Ate.defaults={ticks:{callback:yC.formatters.numeric}};function xH(t){return t/Math.pow(10,Math.floor(To(t)))===1}function jHe(t,e){const n=Math.floor(To(e.max)),i=Math.ceil(e.max/Math.pow(10,n)),r=[];let s=_o(t.min,Math.pow(10,Math.floor(To(e.min)))),a=Math.floor(To(s)),o=Math.floor(s/Math.pow(10,a)),l=a<0?Math.pow(10,Math.abs(a)):1;do r.push({value:s,major:xH(s)}),++o,o===10&&(o=1,++a,l=a>=0?1:l),s=Math.round(o*Math.pow(10,a)*l)/l;while(a<n||a===n&&o<i);const u=_o(t.max,s);return r.push({value:u,major:xH(s)}),r}class Mte extends Lp{constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(e,n){const i=IE.prototype.parse.apply(this,[e,n]);if(i===0){this._zero=!0;return}return Ur(i)&&i>0?i:null}determineDataLimits(){const{min:e,max:n}=this.getMinMax(!0);this.min=Ur(e)?Math.max(0,e):null,this.max=Ur(n)?Math.max(0,n):null,this.options.beginAtZero&&(this._zero=!0),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:e,maxDefined:n}=this.getUserBounds();let i=this.min,r=this.max;const s=l=>i=e?i:l,a=l=>r=n?r:l,o=(l,u)=>Math.pow(10,Math.floor(To(l))+u);i===r&&(i<=0?(s(1),a(10)):(s(o(i,-1)),a(o(r,1)))),i<=0&&s(o(r,-1)),r<=0&&a(o(i,1)),this._zero&&this.min!==this._suggestedMin&&i===o(this.min,0)&&s(o(i,-1)),this.min=i,this.max=r}buildTicks(){const e=this.options,n={min:this._userMin,max:this._userMax},i=jHe(n,this);
3893return e.bounds==="ticks"&&Bee(i,this,"value"),e.reverse?(i.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),i}getLabelForValue(e){return e===void 0?"0":o1(e,this.chart.options.locale,this.options.ticks.format)}configure(){const e=this.min;super.configure(),this._startValue=To(e),this._valueRange=To(this.max)-To(e)}getPixelForValue(e){return(e===void 0||e===0)&&(e=this.min),e===null||isNaN(e)?NaN:this.getPixelForDecimal(e===this.min?0:(To(e)-this._startValue)/this._valueRange)}getValueForPixel(e){const n=this.getDecimalForPixel(e);return Math.pow(10,this._startValue+n*this._valueRange)}}Mte.id="logarithmic";Mte.defaults={ticks:{callback:yC.formatters.logarithmic,major:{enabled:!0}}};function JR(t){const e=t.ticks;if(e.display&&t.display){const n=$r(e.backdropPadding);return nn(e.font&&e.font.size,En.font.size)+n.height}return 0}function qHe(t,e,n){return n=pi(n)?n:[n],{w:B7e(t,e.string,n),h:n.length*e.lineHeight}}function SH(t,e,n,i,r){return t===i||t===r?{start:e-n/2,end:e+n/2}:t<i||t>r?{start:e-n,end:e}:{start:e,end:e+n}}function XHe(t){const e={l:t.left+t._padding.left,r:t.right-t._padding.right,t:t.top+t._padding.top,b:t.bottom-t._padding.bottom},n=Object.assign({},e),i=[],r=[],s=t._pointLabels.length,a=t.options.pointLabels,o=a.centerPointLabels?Ti/s:0;for(let l=0;l<s;l++){const u=a.setContext(t.getPointLabelContext(l));r[l]=u.padding;const c=t.getPointPosition(l,t.drawingArea+r[l],o),f=er(u.font),h=qHe(t.ctx,f,t._pointLabels[l]);i[l]=h;const p=Qo(t.getIndexAngle(l)+o),m=Math.round(sF(p)),y=SH(m,c.x,h.w,0,180),v=SH(m,c.y,h.h,90,270);YHe(n,e,p,y,v)}t.setCenterPoint(e.l-n.l,n.r-e.r,e.t-n.t,n.b-e.b),t._pointLabelItems=KHe(t,i,r)}function YHe(t,e,n,i,r){const s=Math.abs(Math.sin(n)),a=Math.abs(Math.cos(n));let o=0,l=0;i.start<e.l?(o=(e.l-i.start)/s,t.l=Math.min(t.l,e.l-o)):i.end>e.r&&(o=(i.end-e.r)/s,t.r=Math.max(t.r,e.r+o)),r.start<e.t?(l=(e.t-r.start)/a,t.t=Math.min(t.t,e.t-l)):r.end>e.b&&(l=(r.end-e.b)/a,t.b=Math.max(t.b,e.b+l))}function KHe(t,e,n){const i=[],r=t._pointLabels.length,s=t.options,a=JR(s)/2,o=t.drawingArea,l=s.pointLabels.centerPointLabels?Ti/r:0;for(let u=0;u<r;u++){const c=t.getPointPosition(u,o+a+n[u],l),f=Math.round(sF(Qo(c.angle+Ui))),h=e[u],p=JHe(c.y,h.h,f),m=ZHe(f),y=QHe(c.x,h.w,m);i.push({x:c.x,y:p,textAlign:m,left:y,top:p,right:y+h.w,bottom:p+h.h})}return i}function ZHe(t){return t===0||t===180?"center":t<180?"left":"right"}function QHe(t,e,n){return n==="right"?t-=e:n==="center"&&(t-=e/2),t}function JHe(t,e,n){return n===90||n===270?t-=e/2:(n>270||n<90)&&(t-=e),t}function eVe(t,e){const{ctx:n,options:{pointLabels:i}}=t;for(let r=e-1;r>=0;r--){const s=i.setContext(t.getPointLabelContext(r)),a=er(s.font),{x:o,y:l,textAlign:u,left:c,top:f,right:h,bottom:p}=t._pointLabelItems[r],{backdropColor:m}=s;if(!Cn(m)){const y=Jh(s.borderRadius),v=$r(s.backdropPadding);n.fillStyle=m;const _=c-v.left,b=f-v.top,x=h-c+v.width,T=p-f+v.height;Object.values(y).some(E=>
vendor: 4,430 bytes, line 3893
3893E!==0)?(n.beginPath(),Sb(n,{x:_,y:b,w:x,h:T,radius:y}),n.fill()):n.fillRect(_,b,x,T)}bp(n,t._pointLabels[r],o,l+a.lineHeight/2,a,{color:s.color,textAlign:u,textBaseline:"middle"})}}function Dte(t,e,n,i){const{ctx:r}=t;if(n)r.arc(t.xCenter,t.yCenter,e,0,ei);else{let s=t.getPointPosition(0,e);r.moveTo(s.x,s.y);for(let a=1;a<i;a++)s=t.getPointPosition(a,e),r.lineTo(s.x,s.y)}}function tVe(t,e,n,i){const r=t.ctx,s=e.circular,{color:a,lineWidth:o}=e;!s&&!i||!a||!o||n<0||(r.save(),r.strokeStyle=a,r.lineWidth=o,r.setLineDash(e.borderDash),r.lineDashOffset=e.borderDashOffset,r.beginPath(),Dte(t,n,s,i),r.closePath(),r.stroke(),r.restore())}function nVe(t,e,n){return Pd(t,{label:n,index:e,type:"pointLabel"})}class EC extends IE{constructor(e){super(e),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){const e=this._padding=$r(JR(this.options)/2),n=this.width=this.maxWidth-e.width,i=this.height=this.maxHeight-e.height;this.xCenter=Math.floor(this.left+n/2+e.left),this.yCenter=Math.floor(this.top+i/2+e.top),this.drawingArea=Math.floor(Math.min(n,i)/2)}determineDataLimits(){const{min:e,max:n}=this.getMinMax(!1);this.min=Ur(e)&&!isNaN(e)?e:0,this.max=Ur(n)&&!isNaN(n)?n:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/JR(this.options))}generateTickLabels(e){IE.prototype.generateTickLabels.call(this,e),this._pointLabels=this.getLabels().map((n,i)=>{const r=Yn(this.options.pointLabels.callback,[n,i],this);return r||r===0?r:""}).filter((n,i)=>this.chart.getDataVisibility(i))}fit(){const e=this.options;e.display&&e.pointLabels.display?XHe(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(e,n,i,r){this.xCenter+=Math.floor((e-n)/2),this.yCenter+=Math.floor((i-r)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(e,n,i,r))}getIndexAngle(e){const n=ei/(this._pointLabels.length||1),i=this.options.startAngle||0;return Qo(e*n+ll(i))}getDistanceFromCenterForValue(e){if(Cn(e))return NaN;const n=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-e)*n:(e-this.min)*n}getValueForDistanceFromCenter(e){if(Cn(e))return NaN;const n=e/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-n:this.min+n}getPointLabelContext(e){const n=this._pointLabels||[];if(e>=0&&e<n.length){const i=n[e];return nVe(this.getContext(),e,i)}}getPointPosition(e,n,i=0){const r=this.getIndexAngle(e)-Ui+i;return{x:Math.cos(r)*n+this.xCenter,y:Math.sin(r)*n+this.yCenter,angle:r}}getPointPositionForValue(e,n){return this.getPointPosition(e,this.getDistanceFromCenterForValue(n))}getBasePosition(e){return this.getPointPositionForValue(e||0,this.getBaseValue())}getPointLabelPosition(e){const{left:n,top:i,right:r,bottom:s}=this._pointLabelItems[e];return{left:n,top:i,right:r,bottom:s}}drawBackground(){const{backgroundColor:e,grid:{circular:n}}=this.options;if(e){const i=this.ctx;i.save(),i.beginPath(),Dte(this,this.getDistanceFromCenterForValue(this._endValue),n,this._pointLabels.length),i.closePath(),i.fillStyle=e,i.fill(),i.restore()}}drawGrid(){const e=this.ctx,n=this.options,{angleLines:i,grid:r}=n,s=this._pointLabels.length;let a,o,l;if(n.pointLabels.display&&eVe(this,s),r.display&&this.ticks.forEach((u,c)=>{if(c!==0){o=this.getDistanceFromCenterForValue(u.value);const f=r.setContext(this.getContext(c-1));tVe(this,f,o,s)}}),i.display){for(e.save(),a=s-1;a>=0;a--){const u=i.setContext(this.getPointLabelContext(a)),{color:c,lineWidth:f}=u;!f||!c||(e.lineWidth=f,e.strokeStyle=c,e.setLineDash(u.borderDash),e.lineDashOffset=u.borderDashOffset,o=this.getDistanceFromCenterForValue(n.ticks.reverse?this.min:this.max),l=this.getPointPosition(a,o),e.beginPath(),e.moveTo(this.xCenter,this.yCenter),e.lineTo(l.x,l.y),e.stroke())}e.restore()}}drawBorder(){}drawLabels(){const e=this.ctx,n=this.options,i=n.ticks;if(!i.display)return;const r=this.getIndexAngle(0);let s,a;e.save(),e.translate(this.xCenter,this.yCenter),e.rotate(r),e.textAlign="center",e.textBaseline="middle",this.ticks.forEach((o,l)=>{if(l===0&&!n.reverse)return;const u=i.setContext(this.getContext(l)),c=er(u.font);if(s=this.getDistanceFromCenterForValue(this.ticks[l].value),u.showLabelBackdrop){e.font=c.string,a=e.measureText(o.label).width,e.fillStyle=u.backdropColor;const f=$r(u.backdropPadding);e.fillRect(-a/2-f.left,-s-c.size/2-f.top,a+f.width,c.size+f.height)}bp(e,o.label,0,-s,c,{color:u.color})}
3893),e.restore()}drawTitle(){}}EC.id="radialLinear";EC.defaults={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:yC.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(t){return t},padding:5,centerPointLabels:!1}};EC.defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"};EC.descriptors={angleLines:{_fallback:"grid"}};const wC={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},Ks=Object.keys(wC);function iVe(t,e){return t-e}function TH(t,e){if(Cn(e))return null;const n=t._adapter,{parser:i,round:r,isoWeekday:s}=t._parseOpts;let a=e;return typeof i=="function"&&(a=i(a)),Ur(a)||(a=typeof i=="string"?n.parse(a,i):n.parse(a)),a===null?null:(r&&(a=r==="week"&&(Ag(s)||s===!0)?n.startOf(a,"isoWeek",s):n.startOf(a,r)),+a)}function EH(t,e,n,i){const r=Ks.length;for(let s=Ks.indexOf(t);s<r-1;++s){const a=wC[Ks[s]],o=a.steps?a.steps:Number.MAX_SAFE_INTEGER;if(a.common&&Math.ceil((n-e)/(o*a.size))<=i)return Ks[s]}return Ks[r-1]}function rVe(t,e,n,i,r){for(let s=Ks.length-1;s>=Ks.indexOf(n);s--){const a=Ks[s];if(wC[a].common&&t._adapter.diff(r,i,a)>=e-1)return a}return Ks[n?Ks.indexOf(n):0]}function sVe(t){for(let e=Ks.indexOf(t)+1,n=Ks.length;e<n;++e)if(wC[Ks[e]].common)return Ks[e]}function wH(t,e,n){if(!n)t[e]=!0;else if(n.length){const{lo:i,hi:r}=aF(n,e),s=n[i]>=e?n[i]:n[r];t[s]=!0}}function aVe(t,e,n,i){const r=t._adapter,s=+r.startOf(e[0].value,i),a=e[e.length-1].value;let o,l;for(o=s;o<=a;o=+r.add(o,1,i))l=n[o],l>=0&&(e[l].major=!0);return e}function CH(t,e,n){const i=[],r={},s=e.length;let a,o;for(a=0;a<s;++a)o=e[a],r[o]=a,i.push({value:o,major:!1});return s===0||!n?i:aVe(t,i,r,n)}class CC extends Lp{constructor(e){super(e),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(e,n){const i=e.time||(e.time={}),r=this._adapter=new Sze._date(e.adapters.date);r.init(n),py(i.displayFormats,r.formats()),this._parseOpts={parser:i.parser,round:i.round,isoWeekday:i.isoWeekday},super.init(e),this._normalized=n.normalized}parse(e,n){return e===void 0?null:TH(this,e)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const e=this.options,n=this._adapter,i=e.time.unit||"day";let{min:r,max:s,minDefined:a,maxDefined:o}=this.getUserBounds();function l(u){!a&&!isNaN(u.min)&&(r=Math.min(r,u.min)),!o&&!isNaN(u.max)&&(s=Math.max(s,u.max))}(!a||!o)&&(l(this._getLabelBounds()),(e.bounds!=="ticks"||e.ticks.source!=="labels")&&l(this.getMinMax(!1))),r=Ur(r)&&!isNaN(r)?r:+n.startOf(Date.now(),i),s=Ur(s)&&!isNaN(s)?s:+n.endOf(Date.now(),i)+1,this.min=Math.min(r,s-1),this.max=Math.max(r+1,s)}_getLabelBounds(){const e=this.getLabelTimestamps();let n=Number.POSITIVE_INFINITY,i=Number.NEGATIVE_INFINITY;return e.length&&(n=e[0],i=e[e.length-1]),{min:n,max:i}}buildTicks(){const e=this.options,n=e.time,i=e.ticks,r=i.source==="labels"?this.getLabelTimestamps():this._generate();
vendor: 5,120 bytes, line 3893
3893e.bounds==="ticks"&&r.length&&(this.min=this._userMin||r[0],this.max=this._userMax||r[r.length-1]);const s=this.min,a=this.max,o=c7e(r,s,a);return this._unit=n.unit||(i.autoSkip?EH(n.minUnit,this.min,this.max,this._getLabelCapacity(s)):rVe(this,o.length,n.minUnit,this.min,this.max)),this._majorUnit=!i.major.enabled||this._unit==="year"?void 0:sVe(this._unit),this.initOffsets(r),e.reverse&&o.reverse(),CH(this,o,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(e=>+e.value))}initOffsets(e){let n=0,i=0,r,s;this.options.offset&&e.length&&(r=this.getDecimalForValue(e[0]),e.length===1?n=1-r:n=(this.getDecimalForValue(e[1])-r)/2,s=this.getDecimalForValue(e[e.length-1]),e.length===1?i=s:i=(s-this.getDecimalForValue(e[e.length-2]))/2);const a=e.length<3?.5:.25;n=ts(n,0,a),i=ts(i,0,a),this._offsets={start:n,end:i,factor:1/(n+1+i)}}_generate(){const e=this._adapter,n=this.min,i=this.max,r=this.options,s=r.time,a=s.unit||EH(s.minUnit,n,i,this._getLabelCapacity(n)),o=nn(s.stepSize,1),l=a==="week"?s.isoWeekday:!1,u=Ag(l)||l===!0,c={};let f=n,h,p;if(u&&(f=+e.startOf(f,"isoWeek",l)),f=+e.startOf(f,u?"day":a),e.diff(i,n,a)>1e5*o)throw new Error(n+" and "+i+" are too far apart with stepSize of "+o+" "+a);const m=r.ticks.source==="data"&&this.getDataTimestamps();for(h=f,p=0;h<i;h=+e.add(h,o,a),p++)wH(c,h,m);return(h===i||r.bounds==="ticks"||p===1)&&wH(c,h,m),Object.keys(c).sort((y,v)=>y-v).map(y=>+y)}getLabelForValue(e){const n=this._adapter,i=this.options.time;return i.tooltipFormat?n.format(e,i.tooltipFormat):n.format(e,i.displayFormats.datetime)}_tickFormatFunction(e,n,i,r){const s=this.options,a=s.time.displayFormats,o=this._unit,l=this._majorUnit,u=o&&a[o],c=l&&a[l],f=i[n],h=l&&c&&f&&f.major,p=this._adapter.format(e,r||(h?c:u)),m=s.ticks.callback;return m?Yn(m,[p,n,i],this):p}generateTickLabels(e){let n,i,r;for(n=0,i=e.length;n<i;++n)r=e[n],r.label=this._tickFormatFunction(r.value,n,e)}getDecimalForValue(e){return e===null?NaN:(e-this.min)/(this.max-this.min)}getPixelForValue(e){const n=this._offsets,i=this.getDecimalForValue(e);return this.getPixelForDecimal((n.start+i)*n.factor)}getValueForPixel(e){const n=this._offsets,i=this.getDecimalForPixel(e)/n.factor-n.end;return this.min+i*(this.max-this.min)}_getLabelSize(e){const n=this.options.ticks,i=this.ctx.measureText(e).width,r=ll(this.isHorizontal()?n.maxRotation:n.minRotation),s=Math.cos(r),a=Math.sin(r),o=this._resolveTickFontOptions(0).size;return{w:i*s+o*a,h:i*a+o*s}}_getLabelCapacity(e){const n=this.options.time,i=n.displayFormats,r=i[n.unit]||i.millisecond,s=this._tickFormatFunction(e,0,CH(this,[e],this._majorUnit),r),a=this._getLabelSize(s),o=Math.floor(this.isHorizontal()?this.width/a.w:this.height/a.h)-1;return o>0?o:1}getDataTimestamps(){let e=this._cache.data||[],n,i;if(e.length)return e;const r=this.getMatchingVisibleMetas();if(this._normalized&&r.length)return this._cache.data=r[0].controller.getAllParsedValues(this);for(n=0,i=r.length;n<i;++n)e=e.concat(r[n].controller.getAllParsedValues(this));return this._cache.data=this.normalize(e)}getLabelTimestamps(){const e=this._cache.labels||[];let n,i;if(e.length)return e;const r=this.getLabels();for(n=0,i=r.length;n<i;++n)e.push(TH(this,r[n]));return this._cache.labels=this._normalized?e:this.normalize(e)}normalize(e){return zee(e.sort(iVe))}}CC.id="time";CC.defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",major:{enabled:!1}}};function rT(t,e,n){let i=0,r=t.length-1,s,a,o,l;n?(e>=t[i].pos&&e<=t[r].pos&&({lo:i,hi:r}=Dh(t,"pos",e)),{pos:s,time:o}=t[i],{pos:a,time:l}=t[r]):(e>=t[i].time&&e<=t[r].time&&({lo:i,hi:r}=Dh(t,"time",e)),{time:s,pos:o}=t[i],{time:a,pos:l}=t[r]);const u=a-s;return u?o+(l-o)*(e-s)/u:o}class Pte extends CC{constructor(e){super(e),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const e=this._getTimestampsForTable(),n=this._table=this.buildLookupTable(e);this._minPos=rT(n,this.min),this._tableRange=rT(n,this.max)-this._minPos,super.initOffsets(e)}buildLookupTable(e){const{min:n,max:i}=this,r=[],s=[];let a,o,l,u,c;for(a=0,o=e.length;a<o;++a)u=e[a],u>=n&&u<=i&&r.push(u);if(r.length<2)return[{time:n,pos:0},{time:i,pos:1}];for(a=0,o=r.length;a<o;++a)c=r[a+1],l=r[a-1],u=r[a],Math.round((c+l)/2)!==u&&s.push({time:u,pos:a/(o-1)});return s}_getTimestampsForTable(){let e=this._cache.all||[];if(e.length)return e;const n=this.getDataTimestamps(),i=this.getLabelTimestamps();return n.length&&i.length?e=this.normalize(n.concat(i)):e=n.length?n:i,e=this._cache.all=e,e}getDecimalForValue(e){return(rT(this._table,e)-this._minPos)/this._tableRange}getValueForPixel(e){const n=this._offsets,i=this.getDecimalForPixel(e)/n.factor-n.end;return rT(this._table,i*this._tableRange+this._minPos,!0)}}Pte.id="timeseries";Pte.defaults=CC.defaults;var Pg;(function(t){t.ChartRendered="chart:rendered",t.ChartUpdated="chart:updated",t.ChartDestroyed="chart:destroyed",t.LabelsUpdated="labels:updated"})(Pg||(Pg={}));function sT(t,e,n,i){t(e,n),i!==void 0&&i.emit(Pg.ChartRendered)}
3893function oVe(t,e){t.update(),e!==void 0&&e.emit(Pg.ChartUpdated)}function aT(t,e){t.destroy(),e!==void 0&&e.emit(Pg.ChartDestroyed)}function lVe(t,e){const n={labels:typeof t.labels>"u"?[]:[...t.labels],datasets:[]};return Ote(n,{...t},e),n}function Ote(t,e,n){const i=[];t.datasets=e.datasets.map(r=>{const s=t.datasets.find(a=>a[n]===r[n]);return!s||!r.data||i.includes(s)?{...r}:(i.push(s),Object.assign(s,r),s)})}function uVe(t,e,n){t.data.labels=e,n!==void 0&&n.emit(Pg.LabelsUpdated)}function cVe(t,e){t.options={...e}}function fVe(t,e){const n=t.datasets.map(r=>r.label),i=e.datasets.map(r=>r.label);return e.datasets.length===t.datasets.length&&n.every((r,s)=>r===i[s])}const dVe="Please remove the <template></template> tags from your chart component. See https://vue-chartjs.org/guide/#vue-single-file-components",hVe="Update ERROR: chart instance not found",AC=(t,e,n)=>wp({props:{chartData:{type:Object,required:!0},chartOptions:{type:Object,default:()=>{}},datasetIdKey:{type:String,default:"label"},chartId:{type:String,default:t},width:{type:Number,default:400},height:{type:Number,default:400}
3893,cssClasses:{type:String,default:""},styles:{type:Object,default:()=>{}},plugins:{type:Array,default:()=>[]}},setup(i,r){kE.register(n);const s=Ty(null),a=tn(null);function o(f,h){if(s.value!==null&&aT($t(s.value),r),a.value===null)throw new Error(dVe);{const p=lVe(f,i.datasetIdKey),m=a.value.getContext("2d");m!==null&&(s.value=new kE(m,{type:e,data:vm(f)?new Proxy(p,{}):p,options:h,plugins:i.plugins}))}}function l(f,h){const p=vm(f)?$t(f):{...f},m=vm(h)?$t(h):{...h};if(Object.keys(m).length>0){const y=$t(s.value);fVe(p,m)&&y!==null?(Ote(y==null?void 0:y.data,p,i.datasetIdKey),p.labels!==void 0&&uVe(y,p.labels,r),c()):(y!==null&&aT(y,r),sT(o,i.chartData,i.chartOptions,r))}else s.value!==null&&aT($t(s.value),r),sT(o,i.chartData,i.chartOptions,r)}function u(f){const h=$t(s.value);h!==null?(cVe(h,f),c()):sT(o,i.chartData,i.chartOptions,r)}function c(){const f=$t(s.value);f!==null?oVe(f,r):console.error(hVe)}return or(()=>i.chartData,(f,h)=>l(f,h),{deep:!0}),or(()=>i.chartOptions,f=>u(f),{deep:!0}),yu(()=>{"datasets"in i.chartData&&i.chartData.datasets.length>0&&sT(o,i.chartData,i.chartOptions,r)}),Cp(()=>{s.value!==null&&aT($t(s.value),r)}),r.expose({chart:s,updateChart:c}),()=>kr("div",{style:i.styles,class:i.cssClasses},[kr("canvas",{id:i.chartId,width:i.width,height:i.height,ref:a})])}}),CWe=AC("bar-chart","bar",_C),AWe=AC("doughnut-chart","doughnut",n_),MWe=AC("line-chart","line",vC),DWe=AC("pie-chart","pie",bF);var ek={exports:{}};/**
3894 * @license
3895 * Lodash <https://lodash.com/>
3896 * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
3897 * Released under MIT license <https://lodash.com/license>
3898 * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
3899 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
3900 */(function(t,e){(function(){var n,i="4.17.21",r=200,s="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",a="Expected a function",o="Invalid `variable` option passed into `_.template`",l="__lodash_hash_undefined__",u=500,c="__lodash_placeholder__",f=1,h=2,p=4,m=1,y=2,v=1,_=2,b=4,x=8,T=16,E=32,C=64,D=128,R=256,A=512,k=30,F="...",N=800,U=16,$=1,G=2,Y=3,Q=1/0,re=9007199254740991,he=17976931348623157e292,X=0/0,ae=4294967295,de=ae-1,Re=ae>>>1,_e=[["ary",D],["bind",v],["bindKey",_],["curry",x],["curryRight",T],["flip",A],["partial",E],["partialRight",C],["rearg",R]],xe="[object Arguments]",we="[object Array]",ve="[object AsyncFunction]",De="[object Boolean]",We="[object Date]",lt="[object DOMException]",Ze="[object Error]",z="[object Function]",J="[object GeneratorFunction]",te="[object Map]",pe="[object Number]",me="[object Null]",ne="[object Object]",Le="[object Promise]",Pe="[object Proxy]",Ce="[object RegExp]",Te="[object Set]",et="[object String]",j="[object Symbol]",V="[object Undefined]",oe="[object WeakMap]",Ne="[object WeakSet]",Ae="[object ArrayBuffer]",Ue="[object DataView]",tt="[object Float32Array]",qe="[object Float64Array]",ke="[object Int8Array]",ie="[object Int16Array]",Ve="[object Int32Array]",rt="[object Uint8Array]",Je="[object Uint8ClampedArray]",nt="[object Uint16Array]",Tt="[object Uint32Array]",Mt=/\b__p \+= '';/g,ce=/\b(__p \+=) '' \+/g,ot=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Oe=/&(?:amp|lt|gt|quot|#39);/g,Qe=/[&<>"']/g,st=RegExp(Oe.source),Rt=RegExp(Qe.source),Vt=/<%-([\s\S]+?)%>/g,Wt=/<%([\s\S]+?)%>/g,Vn=/<%=([\s\S]+?)%>/g,ht=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Et=/^\w*$/,It=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ft=/[\\^$.*+?()[\]{}|]/g,Ot=RegExp(ft.source),bt=/^\s+/,Dt=/\s/,sn=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ht=/\{\n\/\* \[wrapped with (.+)\] \*/,Wn=/,? & /,li=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,vn=/[()=,{}\[\]\/\s]/,Pn=/\\(\\)?/g,q=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Me=/\w*$/,Fe=/^[-+]0x[0-9a-f]+$/i,Se=/^0b[01]+$/i,He=/^\[object .+?Constructor\]$/,ut=/^0o[0-7]+$/i,at=/^(?:0|[1-9]\d*)$/,xt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u01
vendor: 70,628 bytes, lines 3900-3919
39007f]/g,At=/($^)/,Gt=/['\n\r\u2028\u2029\\]/g,vt="\\ud800-\\udfff",Ct="\\u0300-\\u036f",hn="\\ufe20-\\ufe2f",In="\\u20d0-\\u20ff",ki=Ct+hn+In,$i="\\u2700-\\u27bf",yn="a-z\\xdf-\\xf6\\xf8-\\xff",jt="\\xac\\xb1\\xd7\\xf7",os="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",bn="\\u2000-\\u206f",Qa=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Bo="A-Z\\xc0-\\xd6\\xd8-\\xde",Os="\\ufe0e\\ufe0f",Ja=jt+os+bn+Qa,ui="['\u2019]",Uo="["+vt+"]",Eu="["+Ja+"]",qi="["+ki+"]",Uc="\\d+",eo="["+$i+"]",Tl="["+yn+"]",f1="[^"+vt+Ja+Uc+$i+yn+Bo+"]",Od="\\ud83c[\\udffb-\\udfff]",i_="(?:"+qi+"|"+Od+")",Rs="[^"+vt+"]",r_="(?:\\ud83c[\\udde6-\\uddff]){2}",$c="[\\ud800-\\udbff][\\udc00-\\udfff]",to="["+Bo+"]",Rd="\\u200d",wu="(?:"+Tl+"|"+f1+")",s_="(?:"+to+"|"+f1+")",a_="(?:"+ui+"(?:d|ll|m|re|s|t|ve))?",Fp="(?:"+ui+"(?:D|LL|M|RE|S|T|VE))?",d1=i_+"?",h1="["+Os+"]?",DC="(?:"+Rd+"(?:"+[Rs,r_,$c].join("|")+")"+h1+d1+")*",Np="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",p1="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",m1=h1+d1+DC,g1="(?:"+[eo,r_,$c].join("|")+")"+m1,PC="(?:"+[Rs+qi+"?",qi,r_,$c,Uo].join("|")+")",_1=RegExp(ui,"g"),OC=RegExp(qi,"g"),zc=RegExp(Od+"(?="+Od+")|"+PC+m1,"g"),kd=RegExp([to+"?"+Tl+"+"+a_+"(?="+[Eu,to,"$"].join("|")+")",s_+"+"+Fp+"(?="+[Eu,to+wu,"$"].join("|")+")",to+"?"+wu+"+"+a_,to+"+"+Fp,p1,Np,Uc,g1].join("|"),"g"),v1=RegExp("["+Rd+vt+ki+Os+"]"),RC=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,kC=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],y1=-1,Gn={};Gn[tt]=Gn[qe]=Gn[ke]=Gn[ie]=Gn[Ve]=Gn[rt]=Gn[Je]=Gn[nt]=Gn[Tt]=!0,Gn[xe]=Gn[we]=Gn[Ae]=Gn[De]=Gn[Ue]=Gn[We]=Gn[Ze]=Gn[z]=Gn[te]=Gn[pe]=Gn[ne]=Gn[Ce]=Gn[Te]=Gn[et]=Gn[oe]=!1;var jn={};jn[xe]=jn[we]=jn[Ae]=jn[Ue]=jn[De]=jn[We]=jn[tt]=jn[qe]=jn[ke]=jn[ie]=jn[Ve]=jn[te]=jn[pe]=jn[ne]=jn[Ce]=jn[Te]=jn[et]=jn[j]=jn[rt]=jn[Je]=jn[nt]=jn[Tt]=!0,jn[Ze]=jn[z]=jn[oe]=!1;var b1={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},IC={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},LC={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},FC={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},NC=parseFloat,BC=parseInt,x1=typeof si=="object"&&si&&si.Object===Object&&si,o_=typeof self=="object"&&self&&self.Object===Object&&self,nr=x1||o_||Function("return this")(),Bp=e&&!e.nodeType&&e,no=Bp&&!0&&t&&!t.nodeType&&t,S1=no&&no.exports===Bp,l_=S1&&x1.process,ks=function(){try{var ye=no&&no.require&&no.require("util").types;return ye||l_&&l_.binding&&l_.binding("util")}catch(Ge){}}(),T1=ks&&ks.isArrayBuffer,E1=ks&&ks.isDate,Id=ks&&ks.isMap,Hc=ks&&ks.isRegExp,Vc=ks&&ks.isSet,Ld=ks&&ks.isTypedArray;function ci(ye,Ge,ze){switch(ze.length){case 0:return ye.call(Ge);case 1:return ye.call(Ge,ze[0]);case 2:return ye.call(Ge,ze[0],ze[1]);case 3:return ye.call(Ge,ze[0],ze[1],ze[2])}return ye.apply(Ge,ze)}function $o(ye,Ge,ze,yt){for(var qt=-1,xn=ye==null?0:ye.length;++qt<xn;){var fi=ye[qt];Ge(yt,fi,ze(fi),ye)}return yt}function Mr(ye,Ge){for(var ze=-1,yt=ye==null?0:ye.length;++ze<yt&&Ge(ye[ze],ze,ye)!==!1;);return ye}function w1(ye,Ge){for(var ze=ye==null?0:ye.length;ze--&&Ge(ye[ze],ze,ye)!==!1;);return ye}function C1(ye,Ge){for(var ze=-1,yt=ye==null?0:ye.length;++ze<yt;)if(!Ge(ye[ze],ze,ye))return!1;return!0}function El(ye,Ge){for(var ze=-1,yt=ye==null?0:ye.length,qt=0,xn=[];++ze<yt;){var fi=ye[ze];Ge(fi,ze,ye)&&(xn[qt++]=fi)}return xn}function Up(ye,Ge){var ze=ye==null?0:ye.length;return!!ze&&qc(ye,Ge,0)>-1}function u_(ye,Ge,ze){for(var yt=-1,qt=ye==null?0:ye.length;++yt<qt;)if(ze(Ge,ye[yt]))return!0;return!1}function qn(ye,Ge){for(var ze=-1,yt=ye==null?0:ye.length,qt=Array(yt);++ze<yt;)qt[ze]=Ge(ye[ze],ze,ye);return qt}function io(ye,Ge){for(var ze=-1,yt=Ge.length,qt=ye.length;++ze<yt;)ye[qt+ze]=Ge[ze];return ye}function Cu(ye,Ge,ze,yt){var qt=-1,xn=ye==null?0:ye.length;for(yt&&xn&&(ze=ye[++qt]);++qt<xn;)ze=Ge(ze,ye[qt],qt,ye);return ze}function Wc(ye,Ge,ze,yt){var qt=ye==null?0:ye.length;for(yt&&qt&&(ze=ye[--qt]);qt--;)ze=Ge(ze,ye[qt],qt,ye);return ze}function Gc(ye,Ge){for(var ze=-1,yt=ye==null?0:ye.length;++ze<yt;)if(Ge(ye[ze],ze,ye))return!0;return!1}var Au=f_("length");function UC(ye){return ye.split("")}function A1(ye){return ye.match(li)||[]}function c_(ye,Ge,ze){var yt;return ze(ye,function(qt,xn,fi){if(Ge(qt,xn,fi))return yt=xn,!1}),yt}function jc(ye,Ge,ze,yt){for(var qt=ye.length,xn=ze+(yt?1:-1);yt?xn--:++xn<qt;)if(Ge(ye[xn],xn,ye))return xn;return-1}function qc(ye,Ge,ze){return Ge===Ge?qC(ye,Ge,ze):jc(ye,M1,ze)}function $C(ye,Ge,ze,yt){for(var qt=ze-1,xn=ye.length;++qt<xn;)if(yt(ye[qt],Ge))return qt;return-1}function M1(ye){return ye!==ye}function Fd(ye,Ge){var ze=ye==null?0:ye.length;return ze?zp(ye,Ge)/ze:X}function f_(ye){return function(Ge){return Ge==null?n:Ge[ye]}}function $p(ye){return function(Ge){return ye==null?n:ye[Ge]}}function D1(ye,Ge,ze,yt,qt){return qt(ye,function(xn,fi,Ut){ze=yt?(yt=!1,xn):Ge(ze,xn,fi,Ut)}),ze}function zC(ye,Ge){var ze=ye.length;for(ye.sort(Ge);ze--;)ye[ze]=ye[ze].value;return ye}function zp(ye,Ge){for(var ze,yt=-1,qt=ye.length;++yt<qt;){var xn=Ge(ye[yt]);xn!==n&&(ze=ze===n?xn:ze+xn)}return ze}function Hp(ye,Ge){for(var ze=-1,yt=Array(ye);++ze<ye;)yt[ze]=Ge(ze);return yt}function HC(ye,Ge){return qn(Ge,function(ze){return[ze,ye[ze]]})}function P1(ye){return ye&&ye.slice(0,F1(ye)+1).replace(bt,"")}function ls(ye){return function(Ge){return ye(Ge)}}function Vp(ye,Ge){return qn(Ge,function(ze){return ye[ze]})}function Nd(ye,Ge){return ye.has(Ge)}function O1(ye,Ge){for(var ze=-1,yt=ye.length;++ze<yt&&qc(Ge,ye[ze],0)>-1;);return ze}function d_(ye,Ge){for(var ze=ye.length;ze--&&qc(Ge,ye[ze],0)>-1;);return ze}function VC(ye,Ge){for(var ze=ye.length,yt=0;ze--;)ye[ze]===Ge&&++yt;return yt}var R1=$p(b1),WC=$p(IC);function k1(ye){return"\\"+FC[ye]}function Bd(ye,Ge){return ye==null?n:ye[Ge]}function Mu(ye){return v1.test(ye)}function GC(ye){return RC.test(ye)}function jC(ye){for(var Ge,ze=[];!(Ge=ye.next()).done;)ze.push(Ge.value);return ze}function Du(ye){var Ge=-1,ze=Array(ye.size);return ye.forEach(function(yt,qt){ze[++Ge]=[qt,yt]}),ze}function I1(ye,Ge){return function(ze){return ye(Ge(ze))}}function wl(ye,Ge){for(var ze=-1,yt=ye.length,qt=0,xn=[];++ze<yt;){var fi=ye[ze];(fi===Ge||fi===c)&&(ye[ze]=c,xn[qt++]=ze)}return xn}function Wp(ye){var Ge=-1,ze=Array(ye.size);return ye.forEach(function(yt){ze[++Ge]=yt}),ze}function L1(ye){var Ge=-1,ze=Array(ye.size);return ye.forEach(function(yt){ze[++Ge]=[yt,yt]}),ze}function qC(ye,Ge,ze){for(var yt=ze-1,qt=ye.length;++yt<qt;)if(ye[yt]===Ge)return yt;return-1}function XC(ye,Ge,ze){for(var yt=ze+1;yt--;)if(ye[yt]===Ge)return yt;return yt}function Xc(ye){return Mu(ye)?KC(ye):Au(ye)}function pa(ye){return Mu(ye)?ZC(ye):UC(ye)}function F1(ye){for(var Ge=ye.length;Ge--&&Dt.test(ye.charAt(Ge)););return Ge}var YC=$p(LC);function KC(ye){for(var Ge=zc.lastIndex=0;zc.test(ye);)++Ge;return Ge}function ZC(ye){return ye.match(zc)||[]}function QC(ye){return ye.match(kd)||[]}var Gp=function ye(Ge){Ge=Ge==null?nr:Yc.defaults(nr.Object(),Ge,Yc.pick(nr,kC));var ze=Ge.Array,yt=Ge.Date,qt=Ge.Error,xn=Ge.Function,fi=Ge.Math,Ut=Ge.Object,Cl=Ge.RegExp,h_=Ge.String,Is=Ge.TypeError,jp=ze.prototype,JC=xn.prototype,Kc=Ut.prototype,Ud=Ge["__core-js_shared__"],$d=JC.toString,Rn=Kc.hasOwnProperty,N1=0,p_=function(){var d=/[^.]+$/.exec(Ud&&Ud.keys&&Ud.keys.IE_PROTO||"");return d?"Symbol(src)_1."+d:""}(),Zc=Kc.toString,B1=$d.call(Ut),m_=nr._,eA=Cl("^"+$d.call(Rn).replace(ft,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Qc=S1?Ge.Buffer:n,ro=Ge.Symbol,zd=Ge.Uint8Array,Hd=Qc?Qc.allocUnsafe:n,Pu=I1(Ut.getPrototypeOf,Ut),U1=Ut.create,$1=Kc.propertyIsEnumerable,qp=jp.splice,z1=ro?ro.isConcatSpreadable:n,Vd=ro?ro.iterator:n,zo=ro?ro.toStringTag:n,Xp=function(){try{var d=qd(Ut,"defineProperty");return d({},"",{}),d}catch(g){}}(),tA=Ge.clearTimeout!==nr.clearTimeout&&Ge.clearTimeout,H1=yt&&yt.now!==nr.Date.now&&yt.now,Jc=Ge.setTimeout!==nr.setTimeout&&Ge.setTimeout,Mn=fi.ceil,so=fi.floor,ir=Ut.getOwnPropertySymbols,ao=Qc?Qc.isBuffer:n,V1=Ge.isFinite,W1=jp.join,nA=I1(Ut.keys,Ut),zi=fi.max,fr=fi.min,iA=yt.now,rA=Ge.parseInt,G1=fi.random,sA=jp.reverse,Yp=qd(Ge,"DataView"),S=qd(Ge,"Map"),M=qd(Ge,"Promise"),O=qd(Ge,"Set"),P=qd(Ge,"WeakMap"),I=qd(Ut,"create"),B=P&&new P,Z={},ee=Xd(Yp),se=Xd(S),fe=Xd(M),be=Xd(O),$e=Xd(P),dt=ro?ro.prototype:n,Xe=dt?dt.valueOf:n,kt=dt?dt.toString:n;function W(d){if(Ii(d)&&!Zt(d)&&!(d instanceof un)){if(d instanceof Xi)return d;if(Rn.call(d,"__wrapped__"))return MN(d)}return new Xi(d)}var ti=function(){function d(){}return function(g){if(!wi(g))return{};if(U1)return U1(g);d.prototype=g;var w=new d;return d.prototype=n,w}}();function Dr(){}function Xi(d,g){this.__wrapped__=d,this.__actions__=[],this.__chain__=!!g,this.__index__=0,this.__values__=n}W.templateSettings={escape:Vt,evaluate:Wt,interpolate:Vn,variable:"",imports:{_:W}},W.prototype=Dr.prototype,W.prototype.constructor=W,Xi.prototype=ti(Dr.prototype),Xi.prototype.constructor=Xi;function un(d){this.__wrapped__=d,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=ae,this.__views__=[]}function j1(){var d=new un(this.__wrapped__);return d.__actions__=Ls(this.__actions__),d.__dir__=this.__dir__,d.__filtered__=this.__filtered__,d.__iteratees__=Ls(this.__iteratees__),d.__takeCount__=this.__takeCount__,d.__views__=Ls(this.__views__),d}function q1(){if(this.__filtered__){var d=new un(this);d.__dir__=-1,d.__filtered__=!0}else d=this.clone(),d.__dir__*=-1;return d}function g_(){var d=this.__wrapped__.value(),g=this.__dir__,w=Zt(d),L=g<0,H=w?d.length:0,K=eie(0,H,this.__views__),le=K.start,ge=K.end,Ee=ge-le,Ye=L?ge:le-1,Ke=this.__iteratees__,it=Ke.length,gt=0,Pt=fr(Ee,this.__takeCount__);if(!w||!L&&H==Ee&&Pt==Ee)return ZF(d,this.__actions__);var Nt=[];e:for(;Ee--&&gt<Pt;){Ye+=g;for(var an=-1,Bt=d[Ye];++an<it;){var _n=Ke[an],wn=_n.iteratee,_a=_n.type,fs=wn(Bt);if(_a==G)Bt=fs;else if(!fs){if(_a==$)continue e;break e}}Nt[gt++]=Bt}return Nt}un.prototype=ti(Dr.prototype),un.prototype.constructor=un;function Al(d){var g=-1,w=d==null?0:d.length;for(this.clear();++g<w;){var L=d[g];this.set(L[0],L[1])}}function Ei(){this.__data__=I?I(null):{},this.size=0}function X1(d){var g=this.has(d)&&delete this.__data__[d];return this.size-=g?1:0,g}function Ou(d){var g=this.__data__;if(I){var w=g[d];return w===l?n:w}return Rn.call(g,d)?g[d]:n}function jte(d){var g=this.__data__;return I?g[d]!==n:Rn.call(g,d)}function qte(d,g){var w=this.__data__;return this.size+=this.has(d)?0:1,w[d]=I&&g===n?l:g,this}Al.prototype.clear=Ei,Al.prototype.delete=X1,Al.prototype.get=Ou,Al.prototype.has=jte,Al.prototype.set=qte;function Ru(d){var g=-1,w=d==null?0:d.length;for(this.clear();++g<w;){var L=d[g];this.set(L[0],L[1])}}function Xte(){this.__data__=[],this.size=0}function Yte(d){var g=this.__data__,w=Y1(g,d);if(w<0)return!1;var L=g.length-1;return w==L?g.pop():qp.call(g,w,1),--this.size,!0}function Kte(d){var g=this.__data__,w=Y1(g,d);return w<0?n:g[w][1]}function Zte(d){return Y1(this.__data__,d)>-1}function Qte(d,g){var w=this.__data__,L=Y1(w,d);return L<0?(++this.size,w.push([d,g])):w[L][1]=g,this}Ru.prototype.clear=Xte,Ru.prototype.delete=Yte,Ru.prototype.get=Kte,Ru.prototype.has=Zte,Ru.prototype.set=Qte;function ku(d){var g=-1,w=d==null?0:d.length;for(this.clear();++g<w;){var L=d[g];this.set(L[0],L[1])}}function Jte(){this.size=0,this.__data__={hash:new Al,map:new(S||Ru),string:new Al}}function ene(d){var g=ox(this,d).delete(d);return this.size-=g?1:0,g}function tne(d){return ox(this,d).get(d)}function nne(d){return ox(this,d).has(d)}function ine(d,g){var w=ox(this,d),L=w.size;return w.set(d,g),this.size+=w.size==L?0:1,this}ku.prototype.clear=Jte,ku.prototype.delete=ene,ku.prototype.get=tne,ku.prototype.has=nne,ku.prototype.set=ine;function Wd(d){var g=-1,w=d==null?0:d.length;for(this.__data__=new ku;++g<w;)this.add(d[g])}function rne(d){return this.__data__.set(d,l),this}function sne(d){return this.__data__.has(d)}Wd.prototype.add=Wd.prototype.push=rne,Wd.prototype.has=sne;function Ho(d){var g=this.__data__=new Ru(d);this.size=g.size}function ane(){this.__data__=new Ru,this.size=0}function one(d){var g=this.__data__,w=g.delete(d);return this.size=g.size,w}function lne(d){return this.__data__.get(d)}function une(d){return this.__data__.has(d)}function cne(d,g){var w=this.__data__;if(w instanceof Ru){var L=w.__data__;if(!S||L.length<r-1)return L.push([d,g]),this.size=++w.size,this;w=this.__data__=new ku(L)}return w.set(d,g),this.size=w.size,this}Ho.prototype.clear=ane,Ho.prototype.delete=one,Ho.prototype.get=lne,Ho.prototype.has=une,Ho.prototype.set=cne;function MF(d,g){var w=Zt(d),L=!w&&Yd(d),H=!w&&!L&&sf(d),K=!w&&!L&&!H&&Jp(d),le=w||L||H||K,ge=le?Hp(d.length,h_):[],Ee=ge.length;for(var Ye in d)(g||Rn.call(d,Ye))&&!(le&&(Ye=="length"||H&&(Ye=="offset"||Ye=="parent")||K&&(Ye=="buffer"||Ye=="byteLength"||Ye=="byteOffset")||Nu(Ye,Ee)))&&ge.push(Ye);return ge}function DF(d){var g=d.length;return g?d[gA(0,g-1)]:n}function fne(d,g){return lx(Ls(d),Gd(g,0,d.length))}function dne(d){return lx(Ls(d))}function aA(d,g,w){(w!==n&&!Vo(d[g],w)||w===n&&!(g in d))&&Iu(d,g,w)}function __(d,g,w){var L=d[g];(!(Rn.call(d,g)&&Vo(L,w))||w===n&&!(g in d))&&Iu(d,g,w)}function Y1(d,g){for(var w=d.length;w--;)if(Vo(d[w][0],g))return w;return-1}function hne(d,g,w,L){return ef(d,function(H,K,le){g(L,H,w(H),le)}),L}function PF(d,g){return d&&Dl(g,dr(g),d)}function pne(d,g){return d&&Dl(g,Ns(g),d)}function Iu(d,g,w){g=="__proto__"&&Xp?Xp(d,g,{configurable:!0,enumerable:!0,value:w,writable:!0}):d[g]=w}function oA(d,g){for(var w=-1,L=g.length,H=ze(L),K=d==null;++w<L;)H[w]=K?n:zA(d,g[w]);return H}function Gd(d,g,w){return d===d&&(w!==n&&(d=d<=w?d:w),g!==n&&(d=d>=g?d:g)),d}function oo(d,g,w,L,H,K){var le,ge=g&f,Ee=g&h,Ye=g&p;if(w&&(le=H?w(d,L,H,K):w(d)),le!==n)return le;if(!wi(d))return d;var Ke=Zt(d);if(Ke){if(le=nie(d),!ge)return Ls(d,le)}else{var it=Hr(d),gt=it==z||it==J;if(sf(d))return eN(d,ge);if(it==ne||it==xe||gt&&!H){if(le=Ee||gt?{}:yN(d),!ge)return Ee?Gne(d,pne(le,d)):Wne(d,PF(le,d))}else{if(!jn[it])return H?d:{};le=iie(d,it,ge)}}K||(K=new Ho);var Pt=K.get(d);if(Pt)return Pt;K.set(d,le),XN(d)?d.forEach(function(Bt){le.add(oo(Bt,g,w,Bt,d,K))}):jN(d)&&d.forEach(function(Bt,_n){le.set(_n,oo(Bt,g,w,_n,d,K))});var Nt=Ye?Ee?AA:CA:Ee?Ns:dr,an=Ke?n:Nt(d);return Mr(an||d,function(Bt,_n){an&&(_n=Bt,Bt=d[_n]),__(le,_n,oo(Bt,g,w,_n,d,K))}),le}function mne(d){var g=dr(d);return function(w){return OF(w,d,g)}}function OF(d,g,w){var L=w.length;if(d==null)return!L;for(d=Ut(d);L--;){var H=w[L],K=g[H],le=d[H];if(le===n&&!(H in d)||!K(le))return!1}return!0}function RF(d,g,w){if(typeof d!="function")throw new Is(a);return E_(function(){d.apply(n,w)},g)}function v_(d,g,w,L){var H=-1,K=Up,le=!0,ge=d.length,Ee=[],Ye=g.length;if(!ge)return Ee;w&&(g=qn(g,ls(w))),L?(K=u_,le=!1):g.length>=r&&(K=Nd,le=!1,g=new Wd(g));e:for(;++H<ge;){var Ke=d[H],it=w==null?Ke:w(Ke);if(Ke=L||Ke!==0?Ke:0,le&&it===it){for(var gt=Ye;gt--;)if(g[gt]===it)continue e;Ee.push(Ke)}else K(g,it,L)||Ee.push(Ke)}return Ee}var ef=sN(Ml),kF=sN(uA,!0);function gne(d,g){var w=!0;return ef(d,function(L,H,K){return w=!!g(L,H,K),w}),w}function K1(d,g,w){for(var L=-1,H=d.length;++L<H;){var K=d[L],le=g(K);if(le!=null&&(ge===n?le===le&&!ga(le):w(le,ge)))var ge=le,Ee=K}return Ee}function _ne(d,g,w,L){var H=d.length;for(w=en(w),w<0&&(w=-w>H?0:H+w),L=L===n||L>H?H:en(L),L<0&&(L+=H),L=w>L?0:KN(L);w<L;)d[w++]=g;return d}function IF(d,g){var w=[];return ef(d,function(L,H,K){g(L,H,K)&&w.push(L)}),w}function Pr(d,g,w,L,H){var K=-1,le=d.length;for(w||(w=sie),H||(H=[]);++K<le;){var ge=d[K];g>0&&w(ge)?g>1?Pr(ge,g-1,w,L,H):io(H,ge):L||(H[H.length]=ge)}return H}var lA=aN(),LF=aN(!0);function Ml(d,g){return d&&lA(d,g,dr)}function uA(d,g){return d&&LF(d,g,dr)}function Z1(d,g){return El(g,function(w){return Bu(d[w])})}function jd(d,g){g=nf(g,d);for(var w=0,L=g.length;d!=null&&w<L;)d=d[Pl(g[w++])];return w&&w==L?d:n}function FF(d,g,w){var L=g(d);return Zt(d)?L:io(L,w(d))}function us(d){return d==null?d===n?V:me:zo&&zo in Ut(d)?Jne(d):die(d)}function cA(d,g){return d>g}function vne(d,g){return d!=null&&Rn.call(d,g)}function yne(d,g){return d!=null&&g in Ut(d)}function bne(d,g,w){return d>=fr(g,w)&&d<zi(g,w)}function fA(d,g,w){for(var L=w?u_:Up,H=d[0].length,K=d.length,le=K,ge=ze(K),Ee=1/0,Ye=[];le--;){var Ke=d[le];le&&g&&(Ke=qn(Ke,ls(g))),Ee=fr(Ke.length,Ee),ge[le]=!w&&(g||H>=120&&Ke.length>=120)?new Wd(le&&Ke):n}Ke=d[0];var it=-1,gt=ge[0];e:for(;++it<H&&Ye.length<Ee;){var Pt=Ke[it],Nt=g?g(Pt):Pt;if(Pt=w||Pt!==0?Pt:0,!(gt?Nd(gt,Nt):L(Ye,Nt,w))){for(le=K;--le;){var an=ge[le];if(!(an?Nd(an,Nt):L(d[le],Nt,w)))continue e}gt&&gt.push(Nt),Ye.push(Pt)}}return Ye}function xne(d,g,w,L){return Ml(d,function(H,K,le){g(L,w(H),K,le)}),L}function y_(d,g,w){g=nf(g,d),d=TN(d,g);var L=d==null?d:d[Pl(uo(g))];return L==null?n:ci(L,d,w)}function NF(d){return Ii(d)&&us(d)==xe}function Sne(d){return Ii(d)&&us(d)==Ae}function Tne(d){return Ii(d)&&us(d)==We}function b_(d,g,w,L,H){return d===g?!0:d==null||g==null||!Ii(d)&&!Ii(g)?d!==d&&g!==g:Ene(d,g,w,L,b_,H)}function Ene(d,g,w,L,H,K){var le=Zt(d),ge=Zt(g),Ee=le?we:Hr(d),Ye=ge?we:Hr(g);Ee=Ee==xe?ne:Ee,Ye=Ye==xe?ne:Ye;var Ke=Ee==ne,it=Ye==ne,gt=Ee==Ye;if(gt&&sf(d)){if(!sf(g))return!1;le=!0,Ke=!1}if(gt&&!Ke)return K||(K=new Ho),le||Jp(d)?gN(d,g,w,L,H,K):Zne(d,g,Ee,w,L,H,K);if(!(w&m)){var Pt=Ke&&Rn.call(d,"__wrapped__"),Nt=it&&Rn.call(g,"__wrapped__");if(Pt||Nt){var an=Pt?d.value():d,Bt=Nt?g.value():g;return K||(K=new Ho),H(an,Bt,w,L,K)}}return gt?(K||(K=new Ho),Qne(d,g,w,L,H,K)):!1}function wne(d){return Ii(d)&&Hr(d)==te}function dA(d,g,w,L){var H=w.length,K=H,le=!L;if(d==null)return!K;for(d=Ut(d);H--;){var ge=w[H];if(le&&ge[2]?ge[1]!==d[ge[0]]:!(ge[0]in d))return!1}for(;++H<K;){ge=w[H];var Ee=ge[0],Ye=d[Ee],Ke=ge[1];if(le&&ge[2]){if(Ye===n&&!(Ee in d))return!1}else{var it=new Ho;if(L)var gt=L(Ye,Ke,Ee,d,g,it);if(!(gt===n?b_(Ke,Ye,m|y,L,it):gt))return!1}}return!0}function BF(d){if(!wi(d)||oie(d))return!1;var g=Bu(d)?eA:He;return g.test(Xd(d))}function Cne(d){return Ii(d)&&us(d)==Ce}function Ane(d){return Ii(d)&&Hr(d)==Te}function Mne(d){return Ii(d)&&px(d.length)&&!!Gn[us(d)]}function UF(d){return typeof d=="function"?d:d==null?Bs:typeof d=="object"?Zt(d)?HF(d[0],d[1]):zF(d):o6(d)}function hA(d){if(!T_(d))return nA(d);var g=[];for(var w in Ut(d))Rn.call(d,w)&&w!="constructor"&&g.push(w);return g}function Dne(d){if(!wi(d))return fie(d);var g=T_(d),w=[];for(var L in d)L=="constructor"&&(g||!Rn.call(d,L))||w.push(L);return w}function pA(d,g){return d<g}function $F(d,g){var w=-1,L=Fs(d)?ze(d.length):[];return ef(d,function(H,K,le){L[++w]=g(H,K,le)}),L}function zF(d){var g=DA(d);return g.length==1&&g[0][2]?xN(g[0][0],g[0][1]):function(w){return w===d||dA(w,d,g)}}function HF(d,g){return OA(d)&&bN(g)?xN(Pl(d),g):function(w){var L=zA(w,d);return L===n&&L===g?HA(w,d):b_(g,L,m|y)}}function Q1(d,g,w,L,H){d!==g&&lA(g,function(K,le){if(H||(H=new Ho),wi(K))Pne(d,g,le,w,Q1,L,H);else{var ge=L?L(kA(d,le),K,le+"",d,g,H):n;ge===n&&(ge=K),aA(d,le,ge)}},Ns)}function Pne(d,g,w,L,H,K,le){var ge=kA(d,w),Ee=kA(g,w),Ye=le.get(Ee);if(Ye){aA(d,w,Ye);return}var Ke=K?K(ge,Ee,w+"",d,g,le):n,it=Ke===n;if(it){var gt=Zt(Ee),Pt=!gt&&sf(Ee),Nt=!gt&&!Pt&&Jp(Ee);Ke=Ee,gt||Pt||Nt?Zt(ge)?Ke=ge:Hi(ge)?Ke=Ls(ge):Pt?(it=!1,Ke=eN(Ee,!0)):Nt?(it=!1,Ke=tN(Ee,!0)):Ke=[]:w_(Ee)||Yd(Ee)?(Ke=ge,Yd(ge)?Ke=ZN(ge):(!wi(ge)||Bu(ge))&&(Ke=yN(Ee))):it=!1}it&&(le.set(Ee,Ke),H(Ke,Ee,L,K,le),le.delete(Ee)),aA(d,w,Ke)}function VF(d,g){var w=d.length;if(!!w)return g+=g<0?w:0,Nu(g,w)?d[g]:n}function WF(d,g,w){g.length?g=qn(g,function(K){return Zt(K)?function(le){return jd(le,K.length===1?K[0]:K)}:K}):g=[Bs];var L=-1;g=qn(g,ls(Ft()));var H=$F(d,function(K,le,ge){var Ee=qn(g,function(Ye){return Ye(K)});return{criteria:Ee,index:++L,value:K}});return zC(H,function(K,le){return Vne(K,le,w)})}function One(d,g){return GF(d,g,function(w,L){return HA(d,L)})}function GF(d,g,w){for(var L=-1,H=g.length,K={};++L<H;){var le=g[L],ge=jd(d,le);w(ge,le)&&x_(K,nf(le,d),ge)}return K}function Rne(d){return function(g){return jd(g,d)}}function mA(d,g,w,L){var H=L?$C:qc,K=-1,le=g.length,ge=d;for(d===g&&(g=Ls(g)),w&&(ge=qn(d,ls(w)));++K<le;)for(var Ee=0,Ye=g[K],Ke=w?w(Ye):Ye;(Ee=H(ge,Ke,Ee,L))>-1;)ge!==d&&qp.call(ge,Ee,1),qp.call(d,Ee,1);return d}function jF(d,g){for(var w=d?g.length:0,L=w-1;w--;){var H=g[w];if(w==L||H!==K){var K=H;Nu(H)?qp.call(d,H,1):yA(d,H)}}return d}function gA(d,g){return d+so(G1()*(g-d+1))}function kne(d,g,w,L){for(var H=-1,K=zi(Mn((g-d)/(w||1)),0),le=ze(K);K--;)le[L?K:++H]=d,d+=w;return le}function _A(d,g){var w="";if(!d||g<1||g>re)return w;do g%2&&(w+=d),g=so(g/2),g&&(d+=d);while(g);return w}function cn(d,g){return IA(SN(d,g,Bs),d+"")}function Ine(d){return DF(e0(d))}function Lne(d,g){var w=e0(d);return lx(w,Gd(g,0,w.length))}function x_(d,g,w,L){if(!wi(d))return d;g=nf(g,d);for(var H=-1,K=g.length,le=K-1,ge=d;ge!=null&&++H<K;){var Ee=Pl(g[H]),Ye=w;if(Ee==="__proto__"||Ee==="constructor"||Ee==="prototype")return d;if(H!=le){var Ke=ge[Ee];Ye=L?L(Ke,Ee,ge):n,Ye===n&&(Ye=wi(Ke)?Ke:Nu(g[H+1])?[]:{})}__(ge,Ee,Ye),ge=ge[Ee]}return d}var qF=B?function(d,g){return B.set(d,g),d}:Bs,Fne=Xp?function(d,g){return Xp(d,"toString",{configurable:!0,enumerable:!1,value:WA(g),writable:!0})}:Bs;function Nne(d){return lx(e0(d))}function lo(d,g,w){var L=-1,H=d.length;g<0&&(g=-g>H?0:H+g),w=w>H?H:w,w<0&&(w+=H),H=g>w?0:w-g>>>0,g>>>=0;for(var K=ze(H);++L<H;)K[L]=d[L+g];return K}function Bne(d,g){var w;return ef(d,function(L,H,K){return w=g(L,H,K),!w}),!!w}function J1(d,g,w){var L=0,H=d==null?L:d.length;if(typeof g=="number"&&g===g&&H<=Re){for(;L<H;){var K=L+H>>>1,le=d[K];le!==null&&!ga(le)&&(w?le<=g:le<g)?L=K+1:H=K}return H}return vA(d,g,Bs,w)}function vA(d,g,w,L){var H=0,K=d==null?0:d.length;if(K===0)return 0;g=w(g);for(var le=g!==g,ge=g===null,Ee=ga(g),Ye=g===n;H<K;){var Ke=so((H+K)/2),it=w(d[Ke]),gt=it!==n,Pt=it===null,Nt=it===it,an=ga(it);if(le)var Bt=L||Nt;else Ye?Bt=Nt&&(L||gt):ge?Bt=Nt&&gt&&(L||!Pt):Ee?Bt=Nt&&gt&&!Pt&&(L||!an):Pt||an?Bt=!1:Bt=L?it<=g:it<g;Bt?H=Ke+1:K=Ke}return fr(K,de)}function XF(d,g){for(var w=-1,L=d.length,H=0,K=[];++w<L;){var le=d[w],ge=g?g(le):le;if(!w||!Vo(ge,Ee)){var Ee=ge;K[H++]=le===0?0:le}}return K}function YF(d){return typeof d=="number"?d:ga(d)?X:+d}function ma(d){if(typeof d=="string")return d;if(Zt(d))return qn(d,ma)+"";if(ga(d))return kt?kt.call(d):"";var g=d+"";return g=="0"&&1/d==-Q?"-0":g}function tf(d,g,w){var L=-1,H=Up,K=d.length,le=!0,ge=[],Ee=ge;if(w)le=!1,H=u_;else if(K>=r){var Ye=g?null:Yne(d);if(Ye)return Wp(Ye);le=!1,H=Nd,Ee=new Wd}else Ee=g?[]:ge;e:for(;++L<K;){var Ke=d[L],it=g?g(Ke):Ke;if(Ke=w||Ke!==0?Ke:0,le&&it===it){for(var gt=Ee.length;gt--;)if(Ee[gt]===it)continue e;g&&Ee.push(it),ge.push(Ke)}else H(Ee,it,w)||(Ee!==ge&&Ee.push(it),ge.push(Ke))}return ge}function yA(d,g){return g=nf(g,d),d=TN(d,g),d==null||delete d[Pl(uo(g))]}function KF(d,g,w,L){return x_(d,g,w(jd(d,g)),L)}function ex(d,g,w,L){for(var H=d.length,K=L?H:-1;(L?K--:++K<H)&&g(d[K],K,d););return w?lo(d,L?0:K,L?K+1:H):lo(d,L?K+1:0,L?H:K)}function ZF(d,g){var w=d;return w instanceof un&&(w=w.value()),Cu(g,function(L,H){return H.func.apply(H.thisArg,io([L],H.args))},w)}function bA(d,g,w){var L=d.length;if(L<2)return L?tf(d[0]):[];for(var H=-1,K=ze(L);++H<L;)for(var le=d[H],ge=-1;++ge<L;)ge!=H&&(K[H]=v_(K[H]||le,d[ge],g,w));return tf(Pr(K,1),g,w)}function QF(d,g,w){for(var L=-1,H=d.length,K=g.length,le={};++L<H;){var ge=L<K?g[L]:n;w(le,d[L],ge)}return le}function xA(d){return Hi(d)?d:[]}function SA(d){return typeof d=="function"?d:Bs}function nf(d,g){return Zt(d)?d:OA(d,g)?[d]:AN(Fn(d))}var Une=cn;function rf(d,g,w){var L=d.length;return w=w===n?L:w,!g&&w>=L?d:lo(d,g,w)}var JF=tA||function(d){return nr.clearTimeout(d)};function eN(d,g){if(g)return d.slice();var w=d.length,L=Hd?Hd(w):new d.constructor(w);return d.copy(L),L}function TA(d){var g=new d.constructor(d.byteLength);return new zd(g).set(new zd(d)),g}function $ne(d,g){var w=g?TA(d.buffer):d.buffer;return new d.constructor(w,d.byteOffset,d.byteLength)}function zne(d){var g=new d.constructor(d.source,Me.exec(d));return g.lastIndex=d.lastIndex,g}function Hne(d){return Xe?Ut(Xe.call(d)):{}}function tN(d,g){var w=g?TA(d.buffer):d.buffer;return new d.constructor(w,d.byteOffset,d.length)}function nN(d,g){if(d!==g){var w=d!==n,L=d===null,H=d===d,K=ga(d),le=g!==n,ge=g===null,Ee=g===g,Ye=ga(g);if(!ge&&!Ye&&!K&&d>g||K&&le&&Ee&&!ge&&!Ye||L&&le&&Ee||!w&&Ee||!H)return 1;if(!L&&!K&&!Ye&&d<g||Ye&&w&&H&&!L&&!K||ge&&w&&H||!le&&H||!Ee)return-1}return 0}function Vne(d,g,w){for(var L=-1,H=d.criteria,K=g.criteria,le=H.length,ge=w.length;++L<le;){var Ee=nN(H[L],K[L]);if(Ee){if(L>=ge)return Ee;var Ye=w[L];return Ee*(Ye=="desc"?-1:1)}}return d.index-g.index}function iN(d,g,w,L){for(var H=-1,K=d.length,le=w.length,ge=-1,Ee=g.length,Ye=zi(K-le,0),Ke=ze(Ee+Ye),it=!L;++ge<Ee;)Ke[ge]=g[ge];for(;++H<le;)(it||H<K)&&(Ke[w[H]]=d[H]);for(;Ye--;)Ke[ge++]=d[H++];return Ke}function rN(d,g,w,L){for(var H=-1,K=d.length,le=-1,ge=w.length,Ee=-1,Ye=g.length,Ke=zi(K-ge,0),it=ze(Ke+Ye),gt=!L;++H<Ke;)it[H]=d[H];for(var Pt=H;++Ee<Ye;)it[Pt+Ee]=g[Ee];for(;++le<ge;)(gt||H<K)&&(it[Pt+w[le]]=d[H++]);return it}function Ls(d,g){var w=-1,L=d.length;for(g||(g=ze(L));++w<L;)g[w]=d[w];return g}function Dl(d,g,w,L){var H=!w;w||(w={});for(var K=-1,le=g.length;++K<le;){var ge=g[K],Ee=L?L(w[ge],d[ge],ge,w,d):n;Ee===n&&(Ee=d[ge]),H?Iu(w,ge,Ee):__(w,ge,Ee)}return w}function Wne(d,g){return Dl(d,PA(d),g)}function Gne(d,g){return Dl(d,_N(d),g)}function tx(d,g){return function(w,L){var H=Zt(w)?$o:hne,K=g?g():{};return H(w,d,Ft(L,2),K)}}function Kp(d){return cn(function(g,w){var L=-1,H=w.length,K=H>1?w[H-1]:n,le=H>2?w[2]:n;for(K=d.length>3&&typeof K=="function"?(H--,K):n,le&&cs(w[0],w[1],le)&&(K=H<3?n:K,H=1),g=Ut(g);++L<H;){var ge=w[L];ge&&d(g,ge,L,K)}return g})}function sN(d,g){return function(w,L){if(w==null)return w;if(!Fs(w))return d(w,L);for(var H=w.length,K=g?H:-1,le=Ut(w);(g?K--:++K<H)&&L(le[K],K,le)!==!1;);return w}}function aN(d){return function(g,w,L){for(var H=-1,K=Ut(g),le=L(g),ge=le.length;ge--;){var Ee=le[d?ge:++H];if(w(K[Ee],Ee,K)===!1)break}return g}}function jne(d,g,w){var L=g&v,H=S_(d);function K(){var le=this&&this!==nr&&this instanceof K?H:d;return le.apply(L?w:this,arguments)}return K}function oN(d){return function(g){g=Fn(g);var w=Mu(g)?pa(g):n,L=w?w[0]:g.charAt(0),H=w?rf(w,1).join(""):g.slice(1);return L[d]()+H}}function Zp(d){return function(g){return Cu(s6(r6(g).replace(_1,"")),d,"")}}function S_(d){return function(){var g=arguments;switch(g.length){case 0:return new d;case 1:return new d(g[0]);case 2:return new d(g[0],g[1]);case 3:return new d(g[0],g[1],g[2]);case 4:return new d(g[0],g[1],g[2],g[3]);case 5:return new d(g[0],g[1],g[2],g[3],g[4]);case 6:return new d(g[0],g[1],g[2],g[3],g[4],g[5]);case 7:return new d(g[0],g[1],g[2],g[3],g[4],g[5],g[6])}var w=ti(d.prototype),L=d.apply(w,g);return wi(L)?L:w}}function qne(d,g,w){var L=S_(d);function H(){for(var K=arguments.length,le=ze(K),ge=K,Ee=Qp(H);ge--;)le[ge]=arguments[ge];var Ye=K<3&&le[0]!==Ee&&le[K-1]!==Ee?[]:wl(le,Ee);if(K-=Ye.length,K<w)return dN(d,g,nx,H.placeholder,n,le,Ye,n,n,w-K);var Ke=this&&this!==nr&&this instanceof H?L:d;return ci(Ke,this,le)}return H}function lN(d){return function(g,w,L){var H=Ut(g);if(!Fs(g)){var K=Ft(w,3);g=dr(g),w=function(ge){return K(H[ge],ge,H)}}var le=d(g,w,L);return le>-1?H[K?g[le]:le]:n}}function uN(d){return Fu(function(g){var w=g.length,L=w,H=Xi.prototype.thru;for(d&&g.reverse();L--;){var K=g[L];if(typeof K!="function")throw new Is(a);if(H&&!le&&ax(K)=="wrapper")var le=new Xi([],!0)}for(L=le?L:w;++L<w;){K=g[L];var ge=ax(K),Ee=ge=="wrapper"?MA(K):n;Ee&&RA(Ee[0])&&Ee[1]==(D|x|E|R)&&!Ee[4].length&&Ee[9]==1?le=le[ax(Ee[0])].apply(le,Ee[3]):le=K.length==1&&RA(K)?le[ge]():le.thru(K)}return function(){var Ye=arguments,Ke=Ye[0];if(le&&Ye.length==1&&Zt(Ke))return le.plant(Ke).value();for(var it=0,gt=w?g[it].apply(this,Ye):Ke;++it<w;)gt=g[it].call(this,gt);return gt}})}function nx(d,g,w,L,H,K,le,ge,Ee,Ye){var Ke=g&D,it=g&v,gt=g&_,Pt=g&(x|T),Nt=g&A,an=gt?n:S_(d);function Bt(){for(var _n=arguments.length,wn=ze(_n),_a=_n;_a--;)wn[_a]=arguments[_a];if(Pt)var fs=Qp(Bt),va=VC(wn,fs);if(L&&(wn=iN(wn,L,H,Pt)),K&&(wn=rN(wn,K,le,Pt)),_n-=va,Pt&&_n<Ye){var Vi=wl(wn,fs);return dN(d,g,nx,Bt.placeholder,w,wn,Vi,ge,Ee,Ye-_n)}var Wo=it?w:this,$u=gt?Wo[d]:d;return _n=wn.length,ge?wn=hie(wn,ge):Nt&&_n>1&&wn.reverse(),Ke&&Ee<_n&&(wn.length=Ee),this&&this!==nr&&this instanceof Bt&&($u=an||S_($u)),$u.apply(Wo,wn)}return Bt}function cN(d,g){return function(w,L){return xne(w,d,g(L),{})}}function ix(d,g){return function(w,L){var H;if(w===n&&L===n)return g;if(w!==n&&(H=w),L!==n){if(H===n)return L;typeof w=="string"||typeof L=="string"?(w=ma(w),L=ma(L)):(w=YF(w),L=YF(L)),H=d(w,L)}return H}}function EA(d){return Fu(function(g){return g=qn(g,ls(Ft())),cn(function(w){var L=this;return d(g,function(H){return ci(H,L,w)})})})}function rx(d,g){g=g===n?" ":ma(g);var w=g.length;if(w<2)return w?_A(g,d):g;var L=_A(g,Mn(d/Xc(g)));return Mu(g)?rf(pa(L),0,d).join(""):L.slice(0,d)}function Xne(d,g,w,L){var H=g&v,K=S_(d);function le(){for(var ge=-1,Ee=arguments.length,Ye=-1,Ke=L.length,it=ze(Ke+Ee),gt=this&&this!==nr&&this instanceof le?K:d;++Ye<Ke;)it[Ye]=L[Ye];for(;Ee--;)it[Ye++]=arguments[++ge];return ci(gt,H?w:this,it)}return le}function fN(d){return function(g,w,L){return L&&typeof L!="number"&&cs(g,w,L)&&(w=L=n),g=Uu(g),w===n?(w=g,g=0):w=Uu(w),L=L===n?g<w?1:-1:Uu(L),kne(g,w,L,d)}}function sx(d){return function(g,w){return typeof g=="string"&&typeof w=="string"||(g=co(g),w=co(w)),d(g,w)}}function dN(d,g,w,L,H,K,le,ge,Ee,Ye){var Ke=g&x,it=Ke?le:n,gt=Ke?n:le,Pt=Ke?K:n,Nt=Ke?n:K;g|=Ke?E:C,g&=~(Ke?C:E),g&b||(g&=~(v|_));var an=[d,g,H,Pt,it,Nt,gt,ge,Ee,Ye],Bt=w.apply(n,an);return RA(d)&&EN(Bt,an),Bt.placeholder=L,wN(Bt,d,g)}function wA(d){var g=fi[d];return function(w,L){if(w=co(w),L=L==null?0:fr(en(L),292),L&&V1(w)){var H=(Fn(w)+"e").split("e"),K=g(H[0]+"e"+(+H[1]+L));return H=(Fn(K)+"e").split("e"),+(H[0]+"e"+(+H[1]-L))}return g(w)}}var Yne=O&&1/Wp(new O([,-0]))[1]==Q?function(d){return new O(d)}:qA;function hN(d){return function(g){var w=Hr(g);return w==te?Du(g):w==Te?L1(g):HC(g,d(g))}}function Lu(d,g,w,L,H,K,le,ge){var Ee=g&_;if(!Ee&&typeof d!="function")throw new Is(a);var Ye=L?L.length:0;if(Ye||(g&=~(E|C),L=H=n),le=le===n?le:zi(en(le),0),ge=ge===n?ge:en(ge),Ye-=H?H.length:0,g&C){var Ke=L,it=H;L=H=n}var gt=Ee?n:MA(d),Pt=[d,g,w,L,H,Ke,it,K,le,ge];if(gt&&cie(Pt,gt),d=Pt[0],g=Pt[1],w=Pt[2],L=Pt[3],H=Pt[4],ge=Pt[9]=Pt[9]===n?Ee?0:d.length:zi(Pt[9]-Ye,0),!ge&&g&(x|T)&&(g&=~(x|T)),!g||g==v)var Nt=jne(d,g,w);else g==x||g==T?Nt=qne(d,g,ge):(g==E||g==(v|E))&&!H.length?Nt=Xne(d,g,w,L):Nt=nx.apply(n,Pt);var an=gt?qF:EN;return wN(an(Nt,Pt),d,g)}function pN(d,g,w,L){return d===n||Vo(d,Kc[w])&&!Rn.call(L,w)?g:d}function mN(d,g,w,L,H,K){return wi(d)&&wi(g)&&(K.set(g,d),Q1(d,g,n,mN,K),K.delete(g)),d}function Kne(d){return w_(d)?n:d}function gN(d,g,w,L,H,K){var le=w&m,ge=d.length,Ee=g.length;if(ge!=Ee&&!(le&&Ee>ge))return!1;var Ye=K.get(d),Ke=K.get(g);if(Ye&&Ke)return Ye==g&&Ke==d;var it=-1,gt=!0,Pt=w&y?new Wd:n;for(K.set(d,g),K.set(g,d);++it<ge;){var Nt=d[it],an=g[it];if(L)var Bt=le?L(an,Nt,it,g,d,K):L(Nt,an,it,d,g,K);if(Bt!==n){if(Bt)continue;gt=!1;break}if(Pt){if(!Gc(g,function(_n,wn){if(!Nd(Pt,wn)&&(Nt===_n||H(Nt,_n,w,L,K)))return Pt.push(wn)})){gt=!1;break}}else if(!(Nt===an||H(Nt,an,w,L,K))){gt=!1;break}}return K.delete(d),K.delete(g),gt}function Zne(d,g,w,L,H,K,le){switch(w){case Ue:if(d.byteLength!=g.byteLength||d.byteOffset!=g.byteOffset)return!1;d=d.buffer,g=g.buffer;case Ae:return!(d.byteLength!=g.byteLength||!K(new zd(d),new zd(g)));case De:case We:case pe:return Vo(+d,+g);case Ze:return d.name==g.name&&d.message==g.message;case Ce:case et:return d==g+"";case te:var ge=Du;case Te:var Ee=L&m;if(ge||(ge=Wp),d.size!=g.size&&!Ee)return!1;var Ye=le.get(d);if(Ye)return Ye==g;L|=y,le.set(d,g);var Ke=gN(ge(d),ge(g),L,H,K,le);return le.delete(d),Ke;case j:if(Xe)return Xe.call(d)==Xe.call(g)}return!1}function Qne(d,g,w,L,H,K){var le=w&m,ge=CA(d),Ee=ge.length,Ye=CA(g),Ke=Ye.length;if(Ee!=Ke&&!le)return!1;for(var it=Ee;it--;){var gt=ge[it];if(!(le?gt in g:Rn.call(g,gt)))return!1}var Pt=K.get(d),Nt=K.get(g);if(Pt&&Nt)return Pt==g&&Nt==d;var an=!0;K.set(d,g),K.set(g,d);for(var Bt=le;++it<Ee;){gt=ge[it];var _n=d[gt],wn=g[gt];if(L)var _a=le?L(wn,_n,gt,g,d,K):L(_n,wn,gt,d,g,K);if(!(_a===n?_n===wn||H(_n,wn,w,L,K):_a)){an=!1;break}Bt||(Bt=gt=="constructor")}if(an&&!Bt){var fs=d.constructor,va=g.constructor;fs!=va&&"constructor"in d&&"constructor"in g&&!(typeof fs=="function"&&fs instanceof fs&&typeof va=="function"&&va instanceof va)&&(an=!1)}return K.delete(d),K.delete(g),an}function Fu(d){return IA(SN(d,n,ON),d+"")}function CA(d){return FF(d,dr,PA)}function AA(d){return FF(d,Ns,_N)}var MA=B?function(d){return B.get(d)}:qA;function ax(d){for(var g=d.name+"",w=Z[g],L=Rn.call(Z,g)?w.length:0;L--;){var H=w[L],K=H.func;if(K==null||K==d)return H.name}return g}function Qp(d){var g=Rn.call(W,"placeholder")?W:d;return g.placeholder}function Ft(){var d=W.iteratee||GA;return d=d===GA?UF:d,arguments.length?d(arguments[0],arguments[1]):d}function ox(d,g){var w=d.__data__;return aie(g)?w[typeof g=="string"?"string":"hash"]:w.map}function DA(d){for(var g=dr(d),w=g.length;w--;){var L=g[w],H=d[L];g[w]=[L,H,bN(H)]}return g}function qd(d,g){var w=Bd(d,g);return BF(w)?w:n}function Jne(d){var g=Rn.call(d,zo),w=d[zo];try{d[zo]=n;var L=!0}catch(K){}var H=Zc.call(d);return L&&(g?d[zo]=w:delete d[zo]),H}var PA=ir?function(d){return d==null?[]:(d=Ut(d),El(ir(d),function(g){return $1.call(d,g)}))}:XA,_N=ir?function(d){for(var g=[];d;)io(g,PA(d)),d=Pu(d);return g}:XA,Hr=us;(Yp&&Hr(new Yp(new ArrayBuffer(1)))!=Ue||S&&Hr(new S)!=te||M&&Hr(M.resolve())!=Le||O&&Hr(new O)!=Te||P&&Hr(new P)!=oe)&&(Hr=function(d){var g=us(d),w=g==ne?d.constructor:n,L=w?Xd(w):"";if(L)switch(L){case ee:return Ue;case se:return te;case fe:return Le;case be:return Te;case $e:return oe}return g});function eie(d,g,w){for(var L=-1,H=w.length;++L<H;){var K=w[L],le=K.size;switch(K.type){case"drop":d+=le;break;case"dropRight":g-=le;break;case"take":g=fr(g,d+le);break;case"takeRight":d=zi(d,g-le);break}}return{start:d,end:g}}function tie(d){var g=d.match(Ht);return g?g[1].split(Wn):[]}function vN(d,g,w){g=nf(g,d);for(var L=-1,H=g.length,K=!1;++L<H;){var le=Pl(g[L]);if(!(K=d!=null&&w(d,le)))break;d=d[le]}return K||++L!=H?K:(H=d==null?0:d.length,!!H&&px(H)&&Nu(le,H)&&(Zt(d)||Yd(d)))}function nie(d){var g=d.length,w=new d.constructor(g);return g&&typeof d[0]=="string"&&Rn.call(d,"index")&&(w.index=d.index,w.input=d.input),w}function yN(d){return typeof d.constructor=="function"&&!T_(d)?ti(Pu(d)):{}}function iie(d,g,w){var L=d.constructor;switch(g){case Ae:return TA(d);case De:case We:return new L(+d);case Ue:return $ne(d,w);case tt:case qe:case ke:case ie:case Ve:case rt:case Je:case nt:case Tt:return tN(d,w);case te:return new L;case pe:case et:return new L(d);case Ce:return zne(d);case Te:return new L;case j:return Hne(d)}}function rie(d,g){var w=g.length;if(!w)return d;var L=w-1;return g[L]=(w>1?"& ":"")+g[L],g=g.join(w>2?", ":" "),d.replace(sn,`{
3901/* [wrapped with `+g+`] */
3902`)}function sie(d){return Zt(d)||Yd(d)||!!(z1&&d&&d[z1])}function Nu(d,g){var w=typeof d;return g=g==null?re:g,!!g&&(w=="number"||w!="symbol"&&at.test(d))&&d>-1&&d%1==0&&d<g}function cs(d,g,w){if(!wi(w))return!1;var L=typeof g;return(L=="number"?Fs(w)&&Nu(g,w.length):L=="string"&&g in w)?Vo(w[g],d):!1}function OA(d,g){if(Zt(d))return!1;var w=typeof d;return w=="number"||w=="symbol"||w=="boolean"||d==null||ga(d)?!0:Et.test(d)||!ht.test(d)||g!=null&&d in Ut(g)}function aie(d){var g=typeof d;return g=="string"||g=="number"||g=="symbol"||g=="boolean"?d!=="__proto__":d===null}function RA(d){var g=ax(d),w=W[g];if(typeof w!="function"||!(g in un.prototype))return!1;if(d===w)return!0;var L=MA(w);return!!L&&d===L[0]}function oie(d){return!!p_&&p_ in d}var lie=Ud?Bu:YA;function T_(d){var g=d&&d.constructor,w=typeof g=="function"&&g.prototype||Kc;return d===w}function bN(d){return d===d&&!wi(d)}function xN(d,g){return function(w){return w==null?!1:w[d]===g&&(g!==n||d in Ut(w))}}function uie(d){var g=dx(d,function(L){return w.size===u&&w.clear(),L}),w=g.cache;return g}function cie(d,g){var w=d[1],L=g[1],H=w|L,K=H<(v|_|D),le=L==D&&w==x||L==D&&w==R&&d[7].length<=g[8]||L==(D|R)&&g[7].length<=g[8]&&w==x;if(!(K||le))return d;L&v&&(d[2]=g[2],H|=w&v?0:b);var ge=g[3];if(ge){var Ee=d[3];d[3]=Ee?iN(Ee,ge,g[4]):ge,d[4]=Ee?wl(d[3],c):g[4]}return ge=g[5],ge&&(Ee=d[5],d[5]=Ee?rN(Ee,ge,g[6]):ge,d[6]=Ee?wl(d[5],c):g[6]),ge=g[7],ge&&(d[7]=ge),L&D&&(d[8]=d[8]==null?g[8]:fr(d[8],g[8])),d[9]==null&&(d[9]=g[9]),d[0]=g[0],d[1]=H,d}function fie(d){var g=[];if(d!=null)for(var w in Ut(d))g.push(w);return g}function die(d){return Zc.call(d)}function SN(d,g,w){return g=zi(g===n?d.length-1:g,0),function(){for(var L=arguments,H=-1,K=zi(L.length-g,0),le=ze(K);++H<K;)le[H]=L[g+H];H=-1;for(var ge=ze(g+1);++H<g;)ge[H]=L[H];return ge[g]=w(le),ci(d,this,ge)}}function TN(d,g){return g.length<2?d:jd(d,lo(g,0,-1))}function hie(d,g){for(var w=d.length,L=fr(g.length,w),H=Ls(d);L--;){var K=g[L];d[L]=Nu(K,w)?H[K]:n}return d}function kA(d,g){if(!(g==="constructor"&&typeof d[g]=="function")&&g!="__proto__")return d[g]}var EN=CN(qF),E_=Jc||function(d,g){return nr.setTimeout(d,g)},IA=CN(Fne);function wN(d,g,w){var L=g+"";return IA(d,rie(L,pie(tie(L),w)))}function CN(d){var g=0,w=0;return function(){var L=iA(),H=U-(L-w);if(w=L,H>0){if(++g>=N)return arguments[0]}else g=0;return d.apply(n,arguments)}}function lx(d,g){var w=-1,L=d.length,H=L-1;for(g=g===n?L:g;++w<g;){var K=gA(w,H),le=d[K];d[K]=d[w],d[w]=le}return d.length=g,d}var AN=uie(function(d){var g=[];return d.charCodeAt(0)===46&&g.push(""),d.replace(It,function(w,L,H,K){g.push(H?K.replace(Pn,"$1"):L||w)}),g});function Pl(d){if(typeof d=="string"||ga(d))return d;var g=d+"";return g=="0"&&1/d==-Q?"-0":g}function Xd(d){if(d!=null){try{return $d.call(d)}catch(g){}try{return d+""}catch(g){}}return""}function pie(d,g){return Mr(_e,function(w){var L="_."+w[0];g&w[1]&&!Up(d,L)&&d.push(L)}),d.sort()}function MN(d){if(d instanceof un)return d.clone();var g=new Xi(d.__wrapped__,d.__chain__);return g.__actions__=Ls(d.__actions__),g.__index__=d.__index__,g.__values__=d.__values__,g}function mie(d,g,w){(w?cs(d,g,w):g===n)?g=1:g=zi(en(g),0);var L=d==null?0:d.length;if(!L||g<1)return[];for(var H=0,K=0,le=ze(Mn(L/g));H<L;)le[K++]=lo(d,H,H+=g);return le}function gie(d){for(var g=-1,w=d==null?0:d.length,L=0,H=[];++g<w;){var K=d[g];K&&(H[L++]=K)}return H}function _ie(){var d=arguments.length;if(!d)return[];for(var g=ze(d-1),w=arguments[0],L=d;L--;)g[L-1]=arguments[L];return io(Zt(w)?Ls(w):[w],Pr(g,1))}var vie=cn(function(d,g){return Hi(d)?v_(d,Pr(g,1,Hi,!0)):[]}),yie=cn(function(d,g){var w=uo(g);return Hi(w)&&(w=n),Hi(d)?v_(d,Pr(g,1,Hi,!0),Ft(w,2)):[]}),bie=cn(function(d,g){var w=uo(g);return Hi(w)&&(w=n),Hi(d)?v_(d,Pr(g,1,Hi,!0),n,w):[]});function xie(d,g,w){var L=d==null?0:d.length;return L?(g=w||g===n?1:en(g),lo(d,g<0?0:g,L)):[]}function Sie(d,g,w){var L=d==null?0:d.length;return L?(g=w||g===n?1:en(g),g=L-g,lo(d,0,g<0?0:g)):[]}function Tie(d,g){return d&&d.length?ex(d,Ft(g,3),!0,!0):[]}function Eie(d,g){return d&&d.length?ex(d,Ft(g,3),!0):[]}function wie(d,g,w,L){var H=d==null?0:d.length;return H?(w&&typeof w!="number"&&cs(d,g,w)&&(w=0,L=H),_ne(d,g,w,L)):[]}function DN(d,g,w){var L=d==null?0:d.length;if(!L)return-1;var H=w==null?0:en(w);return H<0&&(H=zi(L+H,0)),jc(d,Ft(g,3),H)}function PN(d,g,w){var L=d==null?0:d.length;if(!L)return-1;var H=L-1;return w!==n&&(H=en(w),H=w<0?zi(L+H,0):fr(H,L-1)),jc(d,Ft(g,3),H,!0)}function ON(d){var g=d==null?0:d.length;return g?Pr(d,1):[]}function Cie(d){var g=d==null?0:d.length;return g?Pr(d,Q):[]}function Aie(d,g){var w=d==null?0:d.length;return w?(g=g===n?1:en(g),Pr(d,g)):[]}function Mie(d){for(var g=-1,w=d==null?0:d.length,L={};++g<w;){var H=d[g];L[H[0]]=H[1]}return L}function RN(d){return d&&d.length?d[0]:n}function Die(d,g,w){var L=d==null?0:d.length;if(!L)return-1;var H=w==null?0:en(w);return H<0&&(H=zi(L+H,0)),qc(d,g,H)}function Pie(d){var g=d==null?0:d.length;return g?lo(d,0,-1):[]}var Oie=cn(function(d){var g=qn(d,xA);return g.length&&g[0]===d[0]?fA(g):[]}),Rie=cn(function(d){var g=uo(d),w=qn(d,xA);return g===uo(w)?g=n:w.pop(),w.length&&w[0]===d[0]?fA(w,Ft(g,2)):[]}),kie=cn(function(d){var g=uo(d),w=qn(d,xA);return g=typeof g=="function"?g:n,g&&w.pop(),w.length&&w[0]===d[0]?fA(w,n,g):[]});function Iie(d,g){return d==null?"":W1.call(d,g)}function uo(d){var g=d==null?0:d.length;return g?d[g-1]:n}function Lie(d,g,w){var L=d==null?0:d.length;if(!L)return-1;var H=L;return w!==n&&(H=en(w),H=H<0?zi(L+H,0):fr(H,L-1)),g===g?XC(d,g,H):jc(d,M1,H,!0)}function Fie(d,g){return d&&d.length?VF(d,en(g)):n}var Nie=cn(kN);function kN(d,g){return d&&d.length&&g&&g.length?mA(d,g):d}function Bie(d,g,w){return d&&d.length&&g&&g.length?mA(d,g,Ft(w,2)):d}function Uie(d,g,w){return d&&d.length&&g&&g.length?mA(d,g,n,w):d}var $ie=Fu(function(d,g){var w=d==null?0:d.length,L=oA(d,g);return jF(d,qn(g,function(H){return Nu(H,w)?+H:H}).sort(nN)),L});function zie(d,g){var w=[];if(!(d&&d.length))return w;var L=-1,H=[],K=d.length;for(g=Ft(g,3);++L<K;){var le=d[L];g(le,L,d)&&(w.push(le),H.push(L))}return jF(d,H),w}function LA(d){return d==null?d:sA.call(d)}function Hie(d,g,w){var L=d==null?0:d.length;return L?(w&&typeof w!="number"&&cs(d,g,w)?(g=0,w=L):(g=g==null?0:en(g),w=w===n?L:en(w)),lo(d,g,w)):[]}function Vie(d,g){return J1(d,g)}function Wie(d,g,w){return vA(d,g,Ft(w,2))}function Gie(d,g){var w=d==null?0:d.length;if(w){var L=J1(d,g);if(L<w&&Vo(d[L],g))return L}return-1}function jie(d,g){return J1(d,g,!0)}function qie(d,g,w){return vA(d,g,Ft(w,2),!0)}function Xie(d,g){var w=d==null?0:d.length;if(w){var L=J1(d,g,!0)-1;if(Vo(d[L],g))return L}return-1}function Yie(d){return d&&d.length?XF(d):[]}function Kie(d,g){return d&&d.length?XF(d,Ft(g,2)):[]}function Zie(d){var g=d==null?0:d.length;return g?lo(d,1,g):[]}function Qie(d,g,w){return d&&d.length?(g=w||g===n?1:en(g),lo(d,0,g<0?0:g)):[]}function Jie(d,g,w){var L=d==null?0:d.length;return L?(g=w||g===n?1:en(g),g=L-g,lo(d,g<0?0:g,L)):[]}function ere(d,g){return d&&d.length?ex(d,Ft(g,3),!1,!0):[]}function tre(d,g){return d&&d.length?ex(d,Ft(g,3)):[]}var nre=cn(function(d){return tf(Pr(d,1,Hi,!0))}),ire=cn(function(d){var g=uo(d);return Hi(g)&&(g=n),tf(Pr(d,1,Hi,!0),Ft(g,2))}),rre=cn(function(d){var g=uo(d);return g=typeof g=="function"?g:n,tf(Pr(d,1,Hi,!0),n,g)});function sre(d){return d&&d.length?tf(d):[]}function are(d,g){return d&&d.length?tf(d,Ft(g,2)):[]}function ore(d,g){return g=typeof g=="function"?g:n,d&&d.length?tf(d,n,g):[]}function FA(d){if(!(d&&d.length))return[];var g=0;return d=El(d,function(w){if(Hi(w))return g=zi(w.length,g),!0}),Hp(g,function(w){return qn(d,f_(w))})}function IN(d,g){if(!(d&&d.length))return[];var w=FA(d);return g==null?w:qn(w,function(L){return ci(g,n,L)})}var lre=cn(function(d,g){return Hi(d)?v_(d,g):[]}),ure=cn(function(d){return bA(El(d,Hi))}),cre=cn(function(d){var g=uo(d);return Hi(g)&&(g=n),bA(El(d,Hi),Ft(g,2))}),fre=cn(function(d){var g=uo(d);return g=typeof g=="function"?g:n,bA(El(d,Hi),n,g)}),dre=cn(FA);function hre(d,g){return QF(d||[],g||[],__)}function pre(d,g){return QF(d||[],g||[],x_)}var mre=cn(function(d){var g=d.length,w=g>1?d[g-1]:n;return w=typeof w=="function"?(d.pop(),w):n,IN(d,w)});function LN(d){var g=W(d);return g.__chain__=!0,g}function gre(d,g){return g(d),d}function ux(d,g){return g(d)}var _re=Fu(function(d){var g=d.length,w=g?d[0]:0,L=this.__wrapped__,H=function(K){return oA(K,d)};return g>1||this.__actions__.length||!(L instanceof un)||!Nu(w)?this.thru(H):(L=L.slice(w,+w+(g?1:0)),L.__actions__.push({func:ux,args:[H],thisArg:n}),new Xi(L,this.__chain__).thru(function(K){return g&&!K.length&&K.push(n),K}))});function vre(){return LN(this)}function yre(){return new Xi(this.value(),this.__chain__)}function bre(){this.__values__===n&&(this.__values__=YN(this.value()));var d=this.__index__>=this.__values__.length,g=d?n:this.__values__[this.__index__++];return{done:d,value:g}}function xre(){return this}function Sre(d){for(var g,w=this;w instanceof Dr;){var L=MN(w);L.__index__=0,L.__values__=n,g?H.__wrapped__=L:g=L;var H=L;w=w.__wrapped__}return H.__wrapped__=d,g}function Tre(){var d=this.__wrapped__;if(d instanceof un){var g=d;return this.__actions__.length&&(g=new un(this)),g=g.reverse(),g.__actions__.push({func:ux,args:[LA],thisArg:n}),new Xi(g,this.__chain__)}return this.thru(LA)}function Ere(){return ZF(this.__wrapped__,this.__actions__)}var wre=tx(function(d,g,w){Rn.call(d,w)?++d[w]:Iu(d,w,1)});function Cre(d,g,w){var L=Zt(d)?C1:gne;return w&&cs(d,g,w)&&(g=n),L(d,Ft(g,3))}function Are(d,g){var w=Zt(d)?El:IF;return w(d,Ft(g,3))}var Mre=lN(DN),Dre=lN(PN);function Pre(d,g){return Pr(cx(d,g),1)}function Ore(d,g){return Pr(cx(d,g),Q)}function Rre(d,g,w){return w=w===n?1:en(w),Pr(cx(d,g),w)}function FN(d,g){var w=Zt(d)?Mr:ef;return w(d,Ft(g,3))}function NN(d,g){var w=Zt(d)?w1:kF;return w(d,Ft(g,3))}var kre=tx(function(d,g,w){Rn.call(d,w)?d[w].push(g):Iu(d,w,[g])});function Ire(d,g,w,L){d=Fs(d)?d:e0(d),w=w&&!L?en(w):0;var H=d.length;return w<0&&(w=zi(H+w,0)),mx(d)?w<=H&&d.indexOf(g,w)>-1:!!H&&qc(d,g,w)>-1}var Lre=cn(function(d,g,w){var L=-1,H=typeof g=="function",K=Fs(d)?ze(d.length):[];return ef(d,function(le){K[++L]=H?ci(g,le,w):y_(le,g,w)}),K}),Fre=tx(function(d,g,w){Iu(d,w,g)});function cx(d,g){var w=Zt(d)?qn:$F;return w(d,Ft(g,3))}function Nre(d,g,w,L){return d==null?[]:(Zt(g)||(g=g==null?[]:[g]),w=L?n:w,Zt(w)||(w=w==null?[]:[w]),WF(d,g,w))}var Bre=tx(function(d,g,w){d[w?0:1].push(g)},function(){return[[],[]]});function Ure(d,g,w){var L=Zt(d)?Cu:D1,H=arguments.length<3;return L(d,Ft(g,4),w,H,ef)}function $re(d,g,w){var L=Zt(d)?Wc:D1,H=arguments.length<3;return L(d,Ft(g,4),w,H,kF)}function zre(d,g){var w=Zt(d)?El:IF;return w(d,hx(Ft(g,3)))}function Hre(d){var g=Zt(d)?DF:Ine;return g(d)}function Vre(d,g,w){(w?cs(d,g,w):g===n)?g=1:g=en(g);var L=Zt(d)?fne:Lne;return L(d,g)}function Wre(d){var g=Zt(d)?dne:Nne;return g(d)}function Gre(d){if(d==null)return 0;if(Fs(d))return mx(d)?Xc(d):d.length;var g=Hr(d);return g==te||g==Te?d.size:hA(d).length}function jre(d,g,w){var L=Zt(d)?Gc:Bne;return w&&cs(d,g,w)&&(g=n),L(d,Ft(g,3))}var qre=cn(function(d,g){if(d==null)return[];var w=g.length;return w>1&&cs(d,g[0],g[1])?g=[]:w>2&&cs(g[0],g[1],g[2])&&(g=[g[0]]),WF(d,Pr(g,1),[])}),fx=H1||function(){return nr.Date.now()};function Xre(d,g){if(typeof g!="function")throw new Is(a);return d=en(d),function(){if(--d<1)return g.apply(this,arguments)}}function BN(d,g,w){return g=w?n:g,g=d&&g==null?d.length:g,Lu(d,D,n,n,n,n,g)}function UN(d,g){var w;if(typeof g!="function")throw new Is(a);return d=en(d),function(){return--d>0&&(w=g.apply(this,arguments)),d<=1&&(g=n),w}}var NA=cn(function(d,g,w){var L=v;if(w.length){var H=wl(w,Qp(NA));L|=E}return Lu(d,L,g,w,H)}),$N=cn(function(d,g,w){var L=v|_;if(w.length){var H=wl(w,Qp($N));L|=E}return Lu(g,L,d,w,H)});function zN(d,g,w){g=w?n:g;var L=Lu(d,x,n,n,n,n,n,g);return L.placeholder=zN.placeholder,L}function HN(d,g,w){g=w?n:g;var L=Lu(d,T,n,n,n,n,n,g);return L.placeholder=HN.placeholder,L}function VN(d,g,w){var L,H,K,le,ge,Ee,Ye=0,Ke=!1,it=!1,gt=!0;if(typeof d!="function")throw new Is(a);g=co(g)||0,wi(w)&&(Ke=!!w.leading,it="maxWait"in w,K=it?zi(co(w.maxWait)||0,g):K,gt="trailing"in w?!!w.trailing:gt);function Pt(Vi){var Wo=L,$u=H;return L=H=n,Ye=Vi,le=d.apply($u,Wo),le}function Nt(Vi){return Ye=Vi,ge=E_(_n,g),Ke?Pt(Vi):le}function an(Vi){var Wo=Vi-Ee,$u=Vi-Ye,l6=g-Wo;return it?fr(l6,K-$u):l6}function Bt(Vi){var Wo=Vi-Ee,$u=Vi-Ye;return Ee===n||Wo>=g||Wo<0||it&&$u>=K}function _n(){var Vi=fx();if(Bt(Vi))return wn(Vi);ge=E_(_n,an(Vi))}function wn(Vi){return ge=n,gt&&L?Pt(Vi):(L=H=n,le)}function _a(){ge!==n&&JF(ge),Ye=0,L=Ee=H=ge=n}function fs(){return ge===n?le:wn(fx())}function va(){var Vi=fx(),Wo=Bt(Vi);if(L=arguments,H=this,Ee=Vi,Wo){if(ge===n)return Nt(Ee);if(it)return JF(ge),ge=E_(_n,g),Pt(Ee)}return ge===n&&(ge=E_(_n,g)),le}return va.cancel=_a,va.flush=fs,va}var Yre=cn(function(d,g){return RF(d,1,g)}),Kre=cn(function(d,g,w){return RF(d,co(g)||0,w)});function Zre(d){return Lu(d,A)}function dx(d,g){if(typeof d!="function"||g!=null&&typeof g!="function")throw new Is(a);var w=function(){var L=arguments,H=g?g.apply(this,L):L[0],K=w.cache;if(K.has(H))return K.get(H);var le=d.apply(this,L);return w.cache=K.set(H,le)||K,le};return w.cache=new(dx.Cache||ku),w}dx.Cache=ku;function hx(d){if(typeof d!="function")throw new Is(a);return function(){var g=arguments;switch(g.length){case 0:return!d.call(this);case 1:return!d.call(this,g[0]);case 2:return!d.call(this,g[0],g[1]);case 3:return!d.call(this,g[0],g[1],g[2])}return!d.apply(this,g)}}function Qre(d){return UN(2,d)}var Jre=Une(function(d,g){g=g.length==1&&Zt(g[0])?qn(g[0],ls(Ft())):qn(Pr(g,1),ls(Ft()));var w=g.length;return cn(function(L){for(var H=-1,K=fr(L.length,w);++H<K;)L[H]=g[H].call(this,L[H]);return ci(d,this,L)})}),BA=cn(function(d,g){var w=wl(g,Qp(BA));return Lu(d,E,n,g,w)}),WN=cn(function(d,g){var w=wl(g,Qp(WN));return Lu(d,C,n,g,w)}),ese=Fu(function(d,g){return Lu(d,R,n,n,n,g)});function tse(d,g){if(typeof d!="function")throw new Is(a);return g=g===n?g:en(g),cn(d,g)}function nse(d,g){if(typeof d!="function")throw new Is(a);return g=g==null?0:zi(en(g),0),cn(function(w){var L=w[g],H=rf(w,0,g);return L&&io(H,L),ci(d,this,H)})}function ise(d,g,w){var L=!0,H=!0;if(typeof d!="function")throw new Is(a);return wi(w)&&(L="leading"in w?!!w.leading:L,H="trailing"in w?!!w.trailing:H),VN(d,g,{leading:L,maxWait:g,trailing:H})}function rse(d){return BN(d,1)}function sse(d,g){return BA(SA(g),d)}function ase(){if(!arguments.length)return[];var d=arguments[0];return Zt(d)?d:[d]}function ose(d){return oo(d,p)}function lse(d,g){return g=typeof g=="function"?g:n,oo(d,p,g)}function use(d){return oo(d,f|p)}function cse(d,g){return g=typeof g=="function"?g:n,oo(d,f|p,g)}function fse(d,g){return g==null||OF(d,g,dr(g))}function Vo(d,g){return d===g||d!==d&&g!==g}var dse=sx(cA),hse=sx(function(d,g){return d>=g}),Yd=NF(function(){return arguments}())?NF:function(d){return Ii(d)&&Rn.call(d,"callee")&&!$1.call(d,"callee")},Zt=ze.isArray,pse=T1?ls(T1):Sne;function Fs(d){return d!=null&&px(d.length)&&!Bu(d)}function Hi(d){return Ii(d)&&Fs(d)}function mse(d){return d===!0||d===!1||Ii(d)&&us(d)==De}var sf=ao||YA,gse=E1?ls(E1):Tne;function _se(d){return Ii(d)&&d.nodeType===1&&!w_(d)}function vse(d){if(d==null)return!0;if(Fs(d)&&(Zt(d)||typeof d=="string"||typeof d.splice=="function"||sf(d)||Jp(d)||Yd(d)))return!d.length;var g=Hr(d);if(g==te||g==Te)return!d.size;if(T_(d))return!hA(d).length;for(var w in d)if(Rn.call(d,w))return!1;return!0}function yse(d,g){return b_(d,g)}function bse(d,g,w){w=typeof w=="function"?w:n;var L=w?w(d,g):n;return L===n?b_(d,g,n,w):!!L}function UA(d){if(!Ii(d))return!1;var g=us(d);return g==Ze||g==lt||typeof d.message=="string"&&typeof d.name=="string"&&!w_(d)}function xse(d){return typeof d=="number"&&V1(d)}function Bu(d){if(!wi(d))return!1;var g=us(d);return g==z||g==J||g==ve||g==Pe}function GN(d){return typeof d=="number"&&d==en(d)}function px(d){return typeof d=="number"&&d>-1&&d%1==0&&d<=re}function wi(d){var g=typeof d;return d!=null&&(g=="object"||g=="function")}function Ii(d){return d!=null&&typeof d=="object"}var jN=Id?ls(Id):wne;function Sse(d,g){return d===g||dA(d,g,DA(g))}function Tse(d,g,w){return w=typeof w=="function"?w:n,dA(d,g,DA(g),w)}function Ese(d){return qN(d)&&d!=+d}function wse(d){if(lie(d))throw new qt(s);return BF(d)}function Cse(d){return d===null}function Ase(d){return d==null}function qN(d){return typeof d=="number"||Ii(d)&&us(d)==pe}function w_(d){if(!Ii(d)||us(d)!=ne)return!1;var g=Pu(d);if(g===null)return!0;var w=Rn.call(g,"constructor")&&g.constructor;return typeof w=="function"&&w instanceof w&&$d.call(w)==B1}var $A=Hc?ls(Hc):Cne;function Mse(d){return GN(d)&&d>=-re&&d<=re}var XN=Vc?ls(Vc):Ane;function mx(d){return typeof d=="string"||!Zt(d)&&Ii(d)&&us(d)==et}function ga(d){return typeof d=="symbol"||Ii(d)&&us(d)==j}var Jp=Ld?ls(Ld):Mne;function Dse(d){return d===n}function Pse(d){return Ii(d)&&Hr(d)==oe}function Ose(d){return Ii(d)&&us(d)==Ne}var Rse=sx(pA),kse=sx(function(d,g){return d<=g});function YN(d){if(!d)return[];if(Fs(d))return mx(d)?pa(d):Ls(d);if(Vd&&d[Vd])return jC(d[Vd]());var g=Hr(d),w=g==te?Du:g==Te?Wp:e0;return w(d)}function Uu(d){if(!d)return d===0?d:0;if(d=co(d),d===Q||d===-Q){var g=d<0?-1:1;return g*he}return d===d?d:0}function en(d){var g=Uu(d),w=g%1;return g===g?w?g-w:g:0}function KN(d){return d?Gd(en(d),0,ae):0}function co(d){if(typeof d=="number")return d;if(ga(d))return X;if(wi(d)){var g=typeof d.valueOf=="function"?d.valueOf():d;d=wi(g)?g+"":g}if(typeof d!="string")return d===0?d:+d;d=P1(d);var w=Se.test(d);return w||ut.test(d)?BC(d.slice(2),w?2:8):Fe.test(d)?X:+d}function ZN(d){return Dl(d,Ns(d))}function Ise(d){return d?Gd(en(d),-re,re):d===0?d:0}function Fn(d){return d==null?"":ma(d)}var Lse=Kp(function(d,g){if(T_(g)||Fs(g)){Dl(g,dr(g),d);return}for(var w in g)Rn.call(g,w)&&__(d,w,g[w])}),QN=Kp(function(d,g){Dl(g,Ns(g),d)}),gx=Kp(function(d,g,w,L){Dl(g,Ns(g),d,L)}),Fse=Kp(function(d,g,w,L){Dl(g,dr(g),d,L)}),Nse=Fu(oA);function Bse(d,g){var w=ti(d);return g==null?w:PF(w,g)}var Use=cn(function(d,g){d=Ut(d);var w=-1,L=g.length,H=L>2?g[2]:n;for(H&&cs(g[0],g[1],H)&&(L=1);++w<L;)for(var K=g[w],le=Ns(K),ge=-1,Ee=le.length;++ge<Ee;){var Ye=le[ge],Ke=d[Ye];(Ke===n||Vo(Ke,Kc[Ye])&&!Rn.call(d,Ye))&&(d[Ye]=K[Ye])}return d}),$se=cn(function(d){return d.push(n,mN),ci(JN,n,d)});function zse(d,g){return c_(d,Ft(g,3),Ml)}function Hse(d,g){return c_(d,Ft(g,3),uA)}function Vse(d,g){return d==null?d:lA(d,Ft(g,3),Ns)}function Wse(d,g){return d==null?d:LF(d,Ft(g,3),Ns)}function Gse(d,g){return d&&Ml(d,Ft(g,3))}function jse(d,g){return d&&uA(d,Ft(g,3))}function qse(d){return d==null?[]:Z1(d,dr(d))}function Xse(d){return d==null?[]:Z1(d,Ns(d))}function zA(d,g,w){var L=d==null?n:jd(d,g);return L===n?w:L}function Yse(d,g){return d!=null&&vN(d,g,vne)}function HA(d,g){return d!=null&&vN(d,g,yne)}var Kse=cN(function(d,g,w){g!=null&&typeof g.toString!="function"&&(g=Zc.call(g)),d[g]=w},WA(Bs)),Zse=cN(function(d,g,w){g!=null&&typeof g.toString!="function"&&(g=Zc.call(g)),Rn.call(d,g)?d[g].push(w):d[g]=[w]},Ft),Qse=cn(y_);function dr(d){return Fs(d)?MF(d):hA(d)}function Ns(d){return Fs(d)?MF(d,!0):Dne(d)}function Jse(d,g){var w={};return g=Ft(g,3),Ml(d,function(L,H,K){Iu(w,g(L,H,K),L)}),w}function eae(d,g){var w={};return g=Ft(g,3),Ml(d,function(L,H,K){Iu(w,H,g(L,H,K))}),w}var tae=Kp(function(d,g,w){Q1(d,g,w)}),JN=Kp(function(d,g,w,L){Q1(d,g,w,L)}),nae=Fu(function(d,g){var w={};if(d==null)return w;var L=!1;g=qn(g,function(K){return K=nf(K,d),L||(L=K.length>1),K}),Dl(d,AA(d),w),L&&(w=oo(w,f|h|p,Kne));for(var H=g.length;H--;)yA(w,g[H]);return w});function iae(d,g){return e6(d,hx(Ft(g)))}var rae=Fu(function(d,g){return d==null?{}:One(d,g)});function e6(d,g){if(d==null)return{};var w=qn(AA(d),function(L){return[L]});return g=Ft(g),GF(d,w,function(L,H){return g(L,H[0])})}function sae(d,g,w){g=nf(g,d);var L=-1,H=g.length;for(H||(H=1,d=n);++L<H;){var K=d==null?n:d[Pl(g[L])];K===n&&(L=H,K=w),d=Bu(K)?K.call(d):K}return d}function aae(d,g,w){return d==null?d:x_(d,g,w)}function oae(d,g,w,L){return L=typeof L=="function"?L:n,d==null?d:x_(d,g,w,L)}var t6=hN(dr),n6=hN(Ns);function lae(d,g,w){var L=Zt(d),H=L||sf(d)||Jp(d);if(g=Ft(g,4),w==null){var K=d&&d.constructor;H?w=L?new K:[]:wi(d)?w=Bu(K)?ti(Pu(d)):{}:w={}}return(H?Mr:Ml)(d,function(le,ge,Ee){return g(w,le,ge,Ee)}),w}function uae(d,g){return d==null?!0:yA(d,g)}function cae(d,g,w){return d==null?d:KF(d,g,SA(w))}function fae(d,g,w,L){return L=typeof L=="function"?L:n,d==null?d:KF(d,g,SA(w),L)}function e0(d){return d==null?[]:Vp(d,dr(d))}function dae(d){return d==null?[]:Vp(d,Ns(d))}function hae(d,g,w){return w===n&&(w=g,g=n),w!==n&&(w=co(w),w=w===w?w:0),g!==n&&(g=co(g),g=g===g?g:0),Gd(co(d),g,w)}function pae(d,g,w){return g=Uu(g),w===n?(w=g,g=0):w=Uu(w),d=co(d),bne(d,g,w)}function mae(d,g,w){if(w&&typeof w!="boolean"&&cs(d,g,w)&&(g=w=n),w===n&&(typeof g=="boolean"?(w=g,g=n):typeof d=="boolean"&&(w=d,d=n)),d===n&&g===n?(d=0,g=1):(d=Uu(d),g===n?(g=d,d=0):g=Uu(g)),d>g){var L=d;d=g,g=L}if(w||d%1||g%1){var H=G1();return fr(d+H*(g-d+NC("1e-"+((H+"").length-1))),g)}return gA(d,g)}var gae=Zp(function(d,g,w){return g=g.toLowerCase(),d+(w?i6(g):g)});function i6(d){return VA(Fn(d).toLowerCase())}function r6(d){return d=Fn(d),d&&d.replace(xt,R1).replace(OC,"")}function _ae(d,g,w){d=Fn(d),g=ma(g);var L=d.length;w=w===n?L:Gd(en(w),0,L);var H=w;return w-=g.length,w>=0&&d.slice(w,H)==g}function vae(d){return d=Fn(d),d&&Rt.test(d)?d.replace(Qe,WC):d}function yae(d){return d=Fn(d),d&&Ot.test(d)?d.replace(ft,"\\$&"):d}var bae=Zp(function(d,g,w){return d+(w?"-":"")+g.toLowerCase()}),xae=Zp(function(d,g,w){return d+(w?" ":"")+g.toLowerCase()}),Sae=oN("toLowerCase");function Tae(d,g,w){d=Fn(d),g=en(g);var L=g?Xc(d):0;if(!g||L>=g)return d;var H=(g-L)/2;return rx(so(H),w)+d+rx(Mn(H),w)}function Eae(d,g,w){d=Fn(d),g=en(g);var L=g?Xc(d):0;return g&&L<g?d+rx(g-L,w):d}function wae(d,g,w){d=Fn(d),g=en(g);var L=g?Xc(d):0;return g&&L<g?rx(g-L,w)+d:d}function Cae(d,g,w){return w||g==null?g=0:g&&(g=+g),rA(Fn(d).replace(bt,""),g||0)}function Aae(d,g,w){return(w?cs(d,g,w):g===n)?g=1:g=en(g),_A(Fn(d),g)}function Mae(){var d=arguments,g=Fn(d[0]);return d.length<3?g:g.replace(d[1],d[2])}var Dae=Zp(function(d,g,w){return d+(w?"_":"")+g.toLowerCase()});function Pae(d,g,w){return w&&typeof w!="number"&&cs(d,g,w)&&(g=w=n),w=w===n?ae:w>>>0,w?(d=Fn(d),d&&(typeof g=="string"||g!=null&&!$A(g))&&(g=ma(g),!g&&Mu(d))?rf(pa(d),0,w):d.split(g,w)):[]}var Oae=Zp(function(d,g,w){return d+(w?" ":"")+VA(g)});function Rae(d,g,w){return d=Fn(d),w=w==null?0:Gd(en(w),0,d.length),g=ma(g),d.slice(w,w+g.length)==g}function kae(d,g,w){var L=W.templateSettings;w&&cs(d,g,w)&&(g=n),d=Fn(d),g=gx({},g,L,pN);var H=gx({},g.imports,L.imports,pN),K=dr(H),le=Vp(H,K),ge,Ee,Ye=0,Ke=g.interpolate||At,it="__p += '",gt=Cl((g.escape||At).source+"|"+Ke.source+"|"+(Ke===Vn?q:At).source+"|"+(g.evaluate||At).source+"|$","g"),Pt="//# sourceURL="+(Rn.call(g,"sourceURL")?(g.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++y1+"]")+`
3903`;d.replace(gt,function(Bt,_n,wn,_a,fs,va){return wn||(wn=_a),it+=d.slice(Ye,va).replace(Gt,k1),_n&&(ge=!0,it+=`' +
3904__e(`+_n+`) +
3905'`),fs&&(Ee=!0,it+=`';
3906`+fs+`;
3907__p += '`),wn&&(it+=`' +
3908((__t = (`+wn+`)) == null ? '' : __t) +
3909'`),Ye=va+Bt.length,Bt}),it+=`';
3910`;var Nt=Rn.call(g,"variable")&&g.variable;if(!Nt)it=`with (obj) {
3911`+it+`
3912}
3913`;else if(vn.test(Nt))throw new qt(o);it=(Ee?it.replace(Mt,""):it).replace(ce,"$1").replace(ot,"$1;"),it="function("+(Nt||"obj")+`) {
3914`+(Nt?"":`obj || (obj = {});
3915`)+"var __t, __p = ''"+(ge?", __e = _.escape":"")+(Ee?`, __j = Array.prototype.join;
3916function print() { __p += __j.call(arguments, '') }
3917`:`;
3918`)+it+`return __p
3919}`;var an=a6(function(){return xn(K,Pt+"return "+it).apply(n,le)});if(an.source=it,UA(an))throw an;return an}function Iae(d){return Fn(d).toLowerCase()}function Lae(d){return Fn(d).toUpperCase()}function Fae(d,g,w){if(d=Fn(d),d&&(w||g===n))return P1(d);if(!d||!(g=ma(g)))return d;var L=pa(d),H=pa(g),K=O1(L,H),le=d_(L,H)+1;return rf(L,K,le).join("")}function Nae(d,g,w){if(d=Fn(d),d&&(w||g===n))return d.slice(0,F1(d)+1);if(!d||!(g=ma(g)))return d;var L=pa(d),H=d_(L,pa(g))+1;return rf(L,0,H).join("")}function Bae(d,g,w){if(d=Fn(d),d&&(w||g===n))return d.replace(bt,"");if(!d||!(g=ma(g)))return d;var L=pa(d),H=O1(L,pa(g));return rf(L,H).join("")}function Uae(d,g){var w=k,L=F;if(wi(g)){var H="separator"in g?g.separator:H;w="length"in g?en(g.length):w,L="omission"in g?ma(g.omission):L}d=Fn(d);var K=d.length;if(Mu(d)){var le=pa(d);K=le.length}if(w>=K)return d;var ge=w-Xc(L);if(ge<1)return L;var Ee=le?rf(le,0,ge).join(""):d.slice(0,ge);if(H===n)return Ee+L;if(le&&(ge+=Ee.length-ge),$A(H)){if(d.slice(ge).search(H)){var Ye,Ke=Ee;for(H.global||(H=Cl(H.source,Fn(Me.exec(H))+"g")),H.lastIndex=0;Ye=H.exec(Ke);)var it=Ye.index;Ee=Ee.slice(0,it===n?ge:it)}}else if(d.indexOf(ma(H),ge)!=ge){var gt=Ee.lastIndexOf(H);gt>-1&&(Ee=Ee.slice(0,gt))}return Ee+L}function $ae(d){return d=Fn(d),d&&st.test(d)?d.replace(Oe,YC):d}var zae=Zp(function(d,g,w){return d+(w?" ":"")+g.toUpperCase()}),VA=oN("toUpperCase");function s6(d,g,w){return d=Fn(d),g=w?n:g,g===n?GC(d)?QC(d):A1(d):d.match(g)||[]}var a6=cn(function(d,g){try{return ci(d,n,g)}catch(w){return UA(w)?w:new qt(w)}}),Hae=Fu(function(d,g){return Mr(g,function(w){w=Pl(w),Iu(d,w,NA(d[w],d))}),d});function Vae(d){var g=d==null?0:d.length,w=Ft();return d=g?qn(d,function(L){if(typeof L[1]!="function")throw new Is(a);return[w(L[0]),L[1]]}):[],cn(function(L){for(var H=-1;++H<g;){var K=d[H];if(ci(K[0],this,L))return ci(K[1],this,L)}})}function Wae(d){return mne(oo(d,f))}function WA(d){return function(){return d}}function Gae(d,g){return d==null||d!==d?g:d}var jae=uN(),qae=uN(!0);function Bs(d){return d}function GA(d){return UF(typeof d=="function"?d:oo(d,f))}function Xae(d){return zF(oo(d,f))}function Yae(d,g){return HF(d,oo(g,f))}var Kae=cn(function(d,g){return function(w){return y_(w,d,g)}}),Zae=cn(function(d,g){return function(w){return y_(d,w,g)}});function jA(d,g,w){var L=dr(g),H=Z1(g,L);w==null&&!(wi(g)&&(H.length||!L.length))&&(w=g,g=d,d=this,H=Z1(g,dr(g)));var K=!(wi(w)&&"chain"in w)||!!w.chain,le=Bu(d);return Mr(H,function(ge){var Ee=g[ge];d[ge]=Ee,le&&(d.prototype[ge]=function(){var Ye=this.__chain__;if(K||Ye){var Ke=d(this.__wrapped__),it=Ke.__actions__=Ls(this.__actions__);return it.push({func:Ee,args:arguments,thisArg:d}),Ke.__chain__=Ye,Ke}return Ee.apply(d,io([this.value()],arguments))})}),d}function Qae(){return nr._===this&&(nr._=m_),this}function qA(){}function Jae(d){return d=en(d),cn(function(g){return VF(g,d)})}var eoe=EA(qn),toe=EA(C1),noe=EA(Gc);function o6(d){return OA(d)?f_(Pl(d)):Rne(d)}function ioe(d){return function(g){return d==null?n:jd(d,g)}}var roe=fN(),soe=fN(!0);function XA(){return[]}function YA(){return!1}function aoe(){return{}}function ooe(){return""}function loe(){return!0}function uoe(d,g){if(d=en(d),d<1||d>re)return[];var w=ae,L=fr(d,ae);g=Ft(g),d-=ae;for(var H=Hp(L,g);++w<d;)g(w);return H}function coe(d){return Zt(d)?qn(d,Pl):ga(d)?[d]:Ls(AN(Fn(d)))}function foe(d){var g=++N1;return Fn(d)+g}var doe=ix(function(d,g){return d+g},0),hoe=wA("ceil"),poe=ix(function(d,g){return d/g},1),moe=wA("floor");function goe(d){return d&&d.length?K1(d,Bs,cA):n}function _oe(d,g){return d&&d.length?K1(d,Ft(g,2),cA):n}function voe(d){return Fd(d,Bs)}function yoe(d,g){return Fd(d,Ft(g,2))}function boe(d){return d&&d.length?K1(d,Bs,pA):n}function xoe(d,g){return d&&d.length?K1(d,Ft(g,2),pA):n}var Soe=ix(function(d,g){return d*g},1),Toe=wA("round"),Eoe=ix(function(d,g){return d-g},0);function woe(d){return d&&d.length?zp(d,Bs):0}function Coe(d,g){return d&&d.length?zp(d,Ft(g,2)):0}return W.after=Xre,W.ary=BN,W.assign=Lse,W.assignIn=QN,W.assignInWith=gx,W.assignWith=Fse,W.at=Nse,W.before=UN,W.bind=NA,W.bindAll=Hae,W.bindKey=$N,W.castArray=ase,W.chain=LN,W.chunk=mie,W.compact=gie,W.concat=_ie,W.cond=Vae,W.conforms=Wae,W.constant=WA,W.countBy=wre,W.create=Bse,W.curry=zN,W.curryRight=HN,W.debounce=VN,W.defaults=Use,W.defaultsDeep=$se,W.defer=Yre,W.delay=Kre,W.difference=vie,W.differenceBy=yie,W.differenceWith=bie,W.drop=xie,W.dropRight=Sie,W.dropRightWhile=Tie,W.dropWhile=Eie,W.fill=wie,W.filter=Are,W.flatMap=Pre,W.flatMapDeep=Ore,W.flatMapDepth=Rre,W.flatten=ON,W.flattenDeep=Cie,W.flattenDepth=Aie,W.flip=Zre,W.flow=jae,W.flowRight=qae,W.fromPairs=Mie,W.functions=qse,W.functionsIn=Xse,W.groupBy=kre,W.initial=Pie,W.intersection=Oie,W.intersectionBy=Rie,W.intersectionWith=kie,W.invert=Kse,W.invertBy=Zse,W.invokeMap=Lre,W.iteratee=GA,W.keyBy=Fre,W.keys=dr,W.keysIn=Ns,W.map=cx,W.mapKeys=Jse,W.mapValues=eae,W.matches=Xae,W.matchesProperty=Yae,W.memoize=dx,W.merge=tae,W.mergeWith=JN,W.method=Kae,W.methodOf=Zae,W.mixin=jA,W.negate=hx,W.nthArg=Jae,W.omit=nae,W.omitBy=iae,W.once=Qre,W.orderBy=Nre,W.over=eoe,W.overArgs=Jre,W.overEvery=toe,W.overSome=noe,W.partial=BA,W.partialRight=WN,W.partition=Bre,W.pick=rae,W.pickBy=e6,W.property=o6,W.propertyOf=ioe,W.pull=Nie,W.pullAll=kN,W.pullAllBy=Bie,W.pullAllWith=Uie,W.pullAt=$ie,W.range=roe,W.rangeRight=soe,W.rearg=ese,W.reject=zre,W.remove=zie,W.rest=tse,W.reverse=LA,W.sampleSize=Vre,W.set=aae,W.setWith=oae,W.shuffle=Wre,W.slice=Hie,W.sortBy=qre,W.sortedUniq=Yie,W.sortedUniqBy=Kie,W.split=Pae,W.spread=nse,W.tail=Zie,W.take=Qie,W.takeRight=Jie,W.takeRightWhile=ere,W.takeWhile=tre,W.tap=gre,W.throttle=ise,W.thru=ux,W.toArray=YN,W.toPairs=t6,W.toPairsIn=n6,W.toPath=coe,W.toPlainObject=ZN,W.transform=lae,W.unary=rse,W.union=nre,W.unionBy=ire,W.unionWith=rre,W.uniq=sre,W.uniqBy=are,W.uniqWith=ore,W.unset=uae,W.unzip=FA,W.unzipWith=IN,W.update=cae,W.updateWith=fae,W.values=e0,W.valuesIn=dae,W.without=lre,W.words=s6,W.wrap=sse,W.xor=ure,W.xorBy=cre,W.xorWith=fre,W.zip=dre,W.zipObject=hre,W.zipObjectDeep=pre,W.zipWith=mre,W.entries=t6,W.entriesIn=n6,W.extend=QN,W.extendWith=gx,jA(W,W),W.add=doe,W.attempt=a6,W.camelCase=gae,W.capitalize=i6,W.ceil=hoe,W.clamp=hae,W.clone=ose,W.cloneDeep=use,W.cloneDeepWith=cse,W.cloneWith=lse,W.conformsTo=fse,W.deburr=r6,W.defaultTo=Gae,W.divide=poe,W.endsWith=_ae,W.eq=Vo,W.escape=vae,W.escapeRegExp=yae,W.every=Cre,W.find=Mre,W.findIndex=DN,W.findKey=zse,W.findLast=Dre,W.findLastIndex=PN,W.findLastKey=Hse,W.floor=moe,W.forEach=FN,W.forEachRight=NN,W.forIn=Vse,W.forInRight=Wse,W.forOwn=Gse,W.forOwnRight=jse,W.get=zA,W.gt=dse,W.gte=hse,W.has=Yse,W.hasIn=HA,W.head=RN,W.identity=Bs,W.includes=Ire,W.indexOf=Die,W.inRange=pae,W.invoke=Qse,W.isArguments=Yd,W.isArray=Zt,W.isArrayBuffer=pse,W.isArrayLike=Fs,W.isArrayLikeObject=Hi,W.isBoolean=mse,W.isBuffer=sf,W.isDate=gse,W.isElement=_se,W.isEmpty=vse,W.isEqual=yse,W.isEqualWith=bse,W.isError=UA,W.isFinite=xse,W.isFunction=Bu,W.isInteger=GN,W.isLength=px,W.isMap=jN,W.isMatch=Sse,W.isMatchWith=Tse,W.isNaN=Ese,W.isNative=wse,W.isNil=Ase,W.isNull=Cse,W.isNumber=qN,W.isObject=wi,W.isObjectLike=Ii,W.isPlainObject=w_,W.isRegExp=$A,W.isSafeInteger=Mse,W.isSet=XN,W.isString=mx,W.isSymbol=ga,W.isTypedArray=Jp,W.isUndefined=Dse,W.isWeakMap=Pse,W.isWeakSet=Ose,W.join=Iie,W.kebabCase=bae,W.last=uo,W.lastIndexOf=Lie,W.lowerCase=xae,W.lowerFirst=Sae,W.lt=Rse,W.lte=kse,W.max=goe,W.maxBy=_oe,W.mean=voe,W.meanBy=yoe,W.min=boe,W.minBy=xoe,W.stubArray=XA,W.stubFalse=YA,W.stubObject=aoe,W.stubString=ooe,W.stubTrue=loe,W.multiply=Soe,W.nth=Fie,W.noConflict=Qae,W.noop=qA,W.now=fx,W.pad=Tae,W.padEnd=Eae,W.padStart=wae,W.parseInt=Cae,W.random=mae,W.reduce=Ure,W.reduceRight=$re,W.repeat=Aae,W.replace=Mae,W.result=sae,W.round=Toe,W.runInContext=ye,W.sample=Hre,W.size=Gre,W.snakeCase=Dae,W.some=jre,W.sortedIndex=Vie,W.sortedIndexBy=Wie,W.sortedIndexOf=Gie,W.sortedLastIndex=jie,W.sortedLastIndexBy=qie,W.sortedLastIndexOf=Xie,W.startCase=Oae,W.startsWith=Rae,W.subtract=Eoe,W.sum=woe,W.sumBy=Coe,W.template=kae,W.times=uoe,W.toFinite=Uu,W.toInteger=en,W.toLength=KN,W.toLower=Iae,W.toNumber=co,W.toSafeInteger=Ise,W.toString=Fn,W.toUpper=Lae,W.trim=Fae,W.trimEnd=Nae,W.trimStart=Bae,W.truncate=Uae,W.unescape=$ae,W.uniqueId=foe,W.upperCase=zae,W.upperFirst=VA,W.each=FN,W.eachRight=NN,W.first=RN,jA(W,function(){var d={};return Ml(W,function(g,w){Rn.call(W.prototype,w)||(d[w]=g)}),d}(),{chain:!1}),W.VERSION=i,Mr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(d){W[d].placeholder=W}),Mr(["drop","take"],function(d,g){un.prototype[d]=function(w){w=w===n?1:zi(en(w),0);var L=this.__filtered__&&!g?new un(this):this.clone();return L.__filtered__?L.__takeCount__=fr(w,L.__takeCount__):L.__views__.push({size:fr(w,ae),type:d+(L.__dir__<0?"Right":"")}),L},un.prototype[d+"Right"]=function(w){return this.reverse()[d](w).reverse()}}),Mr(["filter","map","takeWhile"],function(d,g){var w=g+1,L=w==$||w==Y;un.prototype[d]=function(H){var K=this.clone();return K.__iteratees__.push({iteratee:Ft(H,3),type:w}),K.__filtered__=K.__filtered__||L,K}}),Mr(["head","last"],function(d,g){var w="take"+(g?"Right":"");
3919un.prototype[d]=function(){return this[w](1).value()[0]}}),Mr(["initial","tail"],function(d,g){var w="drop"+(g?"":"Right");un.prototype[d]=function(){return this.__filtered__?new un(this):this[w](1)}}),un.prototype.compact=function(){return this.filter(Bs)},un.prototype.find=function(d){return this.filter(d).head()},un.prototype.findLast=function(d){return this.reverse().find(d)},un.prototype.invokeMap=cn(function(d,g){return typeof d=="function"?new un(this):this.map(function(w){return y_(w,d,g)})}),un.prototype.reject=function(d){return this.filter(hx(Ft(d)))},un.prototype.slice=function(d,g){d=en(d);var w=this;return w.__filtered__&&(d>0||g<0)?new un(w):(d<0?w=w.takeRight(-d):d&&(w=w.drop(d)),g!==n&&(g=en(g),w=g<0?w.dropRight(-g):w.take(g-d)),w)},un.prototype.takeRightWhile=function(d){return this.reverse().takeWhile(d).reverse()},un.prototype.toArray=function(){return this.take(ae)},Ml(un.prototype,function(d,g){var w=/^(?:filter|find|map|reject)|While$/.test(g),L=/^(?:head|last)$/.test(g),H=W[L?"take"+(g=="last"?"Right":""):g],K=L||/^find/.test(g);!H||(W.prototype[g]=function(){var le=this.__wrapped__,ge=L?[1]:arguments,Ee=le instanceof un,Ye=ge[0],Ke=Ee||Zt(le),it=function(_n){var wn=H.apply(W,io([_n],ge));return L&&gt?wn[0]:wn};Ke&&w&&typeof Ye=="function"&&Ye.length!=1&&(Ee=Ke=!1);var gt=this.__chain__,Pt=!!this.__actions__.length,Nt=K&&!gt,an=Ee&&!Pt;if(!K&&Ke){le=an?le:new un(this);var Bt=d.apply(le,ge);return Bt.__actions__.push({func:ux,args:[it],thisArg:n}),new Xi(Bt,gt)}return Nt&&an?d.apply(this,ge):(Bt=this.thru(it),Nt?L?Bt.value()[0]:Bt.value():Bt)})}),Mr(["pop","push","shift","sort","splice","unshift"],function(d){var g=jp[d],w=/^(?:push|sort|unshift)$/.test(d)?"tap":"thru",L=/^(?:pop|shift)$/.test(d);W.prototype[d]=function(){var H=arguments;if(L&&!this.__chain__){var K=this.value();return g.apply(Zt(K)?K:[],H)}return this[w](function(le){return g.apply(Zt(le)?le:[],H)})}}),Ml(un.prototype,function(d,g){var w=W[g];if(w){var L=w.name+"";Rn.call(Z,L)||(Z[L]=[]),Z[L].push({name:g,func:w})}}),Z[nx(n,_).name]=[{name:"wrapper",func:n}],un.prototype.clone=j1,un.prototype.reverse=q1,un.prototype.value=g_,W.prototype.at=_re,W.prototype.chain=vre,W.prototype.commit=yre,W.prototype.next=bre,W.prototype.plant=Sre,W.prototype.reverse=Tre,W.prototype.toJSON=W.prototype.valueOf=W.prototype.value=Ere,W.prototype.first=W.prototype.head,Vd&&(W.prototype[Vd]=xre),W},Yc=Gp();no?((no.exports=Yc)._=Yc,Bp._=Yc):nr._=Yc}).call(si)})(ek,ek.exports);const PWe=ek.exports;/*!
3920 * chartjs-plugin-datalabels v2.2.0
3921 * https://chartjs-plugin-datalabels.netlify.app
3922 * (c) 2017-2022 chartjs-plugin-datalabels contributors
3923 * Released under the MIT license
3924 */var AH=function(){if(typeof window<"u"){if(window.devicePixelRatio)return window.devicePixelRatio;var t=window.screen;if(t)return(t.deviceXDPI||1)/(t.logicalXDPI||1)}return 1}(),yy={toTextLines:function(t){var e=[],n;for(t=[].concat(t);t.length;)n=t.pop(),typeof n=="string"?e.unshift.apply(e,n.split(`
3925`)):Array.isArray(n)?t.push.apply(t,n):Cn(t)||e.unshift(""+n);return e},textSize:function(t,e,n){var i=[].concat(e),r=i.length,s=t.font,a=0,o;for(t.font=n.string,o=0;o<r;++o)a=Math.max(t.measureText(i[o]).width,a);return t.font=s,{height:r*n.lineHeight,width:a}},bound:function(t,e,n){return Math.max(t,Math.min(e,n))},arrayDiff:function(t,e){var n=t.slice(),i=[],r,s,a,o;for(r=0,a=e.length;r<a;++r)o=e[r],s=n.indexOf(o),s===-1?i.push([o,1]):n.splice(s,1);for(r=0,a=n.length;r<a;++r)i.push([n[r],-1]);return i},rasterize:function(t){return Math.round(t*AH)/AH}};function Y3(t,e){var n=e.x,i=e.y;if(n===null)return{x:0,y:-1};if(i===null)return{x:1,y:0};var r=t.x-n,s=t.y-i,a=Math.sqrt(r*r+s*s);return{x:a?r/a:0,y:a?s/a:-1}}function pVe(t,e,n,i,r){switch(r){case"center":n=i=0;break;case"bottom":n=0,i=1;break;case"right":n=1,i=0;break;case"left":n=-1,i=0;break;case"top":n=0,i=-1;break;case"start":n=-n,i=-i;break;case"end":break;default:r*=Math.PI/180,n=Math.cos(r),i=Math.sin(r);break}return{x:t,y:e,vx:n,vy:i}}var mVe=0,Rte=1,kte=2,Ite=4,Lte=8;function oT(t,e,n){var i=mVe;return t<n.left?i|=Rte:t>n.right&&(i|=kte),e<n.top?i|=Lte:e>n.bottom&&(i|=Ite),i}function gVe(t,e){for(var n=t.x0,i=t.y0,r=t.x1,s=t.y1,a=oT(n,i,e),o=oT(r,s,e),l,u,c;!(!(a|o)||a&o);)l=a||o,l&Lte?(u=n+(r-n)*(e.top-i)/(s-i),c=e.top):l&Ite?(u=n+(r-n)*(e.bottom-i)/(s-i),c=e.bottom):l&kte?(c=i+(s-i)*(e.right-n)/(r-n),u=e.right):l&Rte&&(c=i+(s-i)*(e.left-n)/(r-n),u=e.left),l===a?(n=u,i=c,a=oT(n,i,e)):(r=u,s=c,o=oT(r,s,e));return{x0:n,x1:r,y0:i,y1:s}}function lT(t,e){var n=e.anchor,i=t,r,s;return e.clamp&&(i=gVe(i,e.area)),n==="start"?(r=i.x0,s=i.y0):n==="end"?(r=i.x1,s=i.y1):(r=(i.x0+i.x1)/2,s=(i.y0+i.y1)/2),pVe(r,s,t.vx,t.vy,e.align)}var uT={arc:function(t,e){var n=(t.startAngle+t.endAngle)/2,i=Math.cos(n),r=Math.sin(n),s=t.innerRadius,a=t.outerRadius;return lT({x0:t.x+i*s,y0:t.y+r*s,x1:t.x+i*a,y1:t.y+r*a,vx:i,vy:r},e)},point:function(t,e){var n=Y3(t,e.origin),i=n.x*t.options.radius,r=n.y*t.options.radius;return lT({x0:t.x-i,y0:t.y-r,x1:t.x+i,y1:t.y+r,vx:n.x,vy:n.y},e)},bar:function(t,e){var n=Y3(t,e.origin),i=t.x,r=t.y,s=0,a=0;return t.horizontal?(i=Math.min(t.x,t.base),s=Math.abs(t.base-t.x)):(r=Math.min(t.y,t.base),a=Math.abs(t.base-t.y)),lT({x0:i,y0:r+a,x1:i+s,y1:r,vx:n.x,vy:n.y},e)},fallback:function(t,e){var n=Y3(t,e.origin);return lT({x0:t.x,y0:t.y,x1:t.x+(t.width||0),y1:t.y+(t.height||0),vx:n.x,vy:n.y},e)}},vc=yy.rasterize;function _Ve(t){var e=t.borderWidth||0,n=t.padding,i=t.size.height,r=t.size.width,s=-r/2,a=-i/2;return{frame:{x:s-n.left-e,y:a-n.top-e,w:r+n.width+e*2,h:i+n.height+e*2},text:{x:s,y:a,w:r,h:i}}}function vVe(t,e){var n=e.chart.getDatasetMeta(e.datasetIndex).vScale;if(!n)return null;if(n.xCenter!==void 0&&n.yCenter!==void 0)return{x:n.xCenter,y:n.yCenter};var i=n.getBasePixel();return t.horizontal?{x:i,y:null}:{x:null,y:i}}function yVe(t){return t instanceof bC?uT.arc:t instanceof SC?uT.point:t instanceof TC?uT.bar:uT.fallback}function bVe(t,e,n,i,r,s){var a=Math.PI/2;if(s){var o=Math.min(s,r/2,i/2),l=e+o,u=n+o,c=e+i-o,f=n+r-o;t.moveTo(e,u),l<c&&u<f?(t.arc(l,u,o,-Math.PI,-a),t.arc(c,u,o,-a,0),t.arc(c,f,o,0,a),t.arc(l,f,o,a,Math.PI)):l<c?(t.moveTo(l,n),t.arc(c,u,o,-a,a),t.arc(l,u,o,a,Math.PI+a)):u<f?(t.arc(l,u,o,-Math.PI,0),t.arc(l,f,o,0,Math.PI)):t.arc(l,u,o,-Math.PI,Math.PI),t.closePath(),t.moveTo(e,n)}else t.rect(e,n,i,r)}function xVe(t,e,n){var i=n.backgroundColor,r=n.borderColor,s=n.borderWidth;!i&&(!r||!s)||(t.beginPath(),bVe(t,vc(e.x)+s/2,vc(e.y)+s/2,vc(e.w)-s,vc(e.h)-s,n.borderRadius),t.closePath(),i&&(t.fillStyle=i,t.fill()),r&&s&&(t.strokeStyle=r,t.lineWidth=s,t.lineJoin="miter",t.stroke()))}function SVe(t,e,n){var i=n.lineHeight,r=t.w,s=t.x,a=t.y+i/2;return e==="center"?s+=r/2:(e==="end"||e==="right")&&(s+=r),{h:i,w:r,x:s,y:a}}function TVe(t,e,n){var i=t.shadowBlur,r=n.stroked,s=vc(n.x),a=vc(n.y),o=vc(n.w);r&&t.strokeText(e,s,a,o),n.filled&&(i&&r&&(t.shadowBlur=0),t.fillText(e,s,a,o),i&&r&&(t.shadowBlur=i))}function EVe(t,e,n,i){var r=i.textAlign,s=i.color,a=!!s,o=i.font,l=e.length,u=i.textStrokeColor,c=i.textStrokeWidth,f=u&&c,h;if(!(!l||!a&&!f))for(n=SVe(n,r,o),t.font=o.string,t.textAlign=r,t.textBaseline="middle",t.shadowBlur=i.textShadowBlur,t.shadowColor=i.textShadowColor,a&&(t.fillStyle=s),f&&(t.lineJoin="round",t.lineWidth=c,t.strokeStyle=u),h=0,l=e.length;h<l;++h)TVe(t,e[h],{stroked:f,filled:a,w:n.w,x:n.x,y:n.y+n.h*h})}var Fte=function(t,e,n,i){var r=this;r._config=t,r._index=i,r._model=null,r._rects=null,r._ctx=e,r._el=n};vu(Fte.prototype,{_modelize:function(t,e,n,i){var r=this,s=r._index,a=er(vi([n.font,{}
3925],i,s)),o=vi([n.color,En.color],i,s);return{align:vi([n.align,"center"],i,s),anchor:vi([n.anchor,"center"],i,s),area:i.chart.chartArea,backgroundColor:vi([n.backgroundColor,null],i,s),borderColor:vi([n.borderColor,null],i,s),borderRadius:vi([n.borderRadius,0],i,s),borderWidth:vi([n.borderWidth,0],i,s),clamp:vi([n.clamp,!1],i,s),clip:vi([n.clip,!1],i,s),color:o,display:t,font:a,lines:e,offset:vi([n.offset,4],i,s),opacity:vi([n.opacity,1],i,s),origin:vVe(r._el,i),padding:$r(vi([n.padding,4],i,s)),positioner:yVe(r._el),rotation:vi([n.rotation,0],i,s)*(Math.PI/180),size:yy.textSize(r._ctx,e,a),textAlign:vi([n.textAlign,"start"],i,s),textShadowBlur:vi([n.textShadowBlur,0],i,s),textShadowColor:vi([n.textShadowColor,o],i,s),textStrokeColor:vi([n.textStrokeColor,o],i,s),textStrokeWidth:vi([n.textStrokeWidth,0],i,s)}},update:function(t){var e=this,n=null,i=null,r=e._index,s=e._config,a,o,l,u=vi([s.display,!0],t,r);u&&(a=t.dataset.data[r],o=nn(Yn(s.formatter,[a,t]),a),l=Cn(o)?[]:yy.toTextLines(o),l.length&&(n=e._modelize(u,l,s,t),i=_Ve(n))),e._model=n,e._rects=i},geometry:function(){return this._rects?this._rects.frame:{}},rotation:function(){return this._model?this._model.rotation:0},visible:function(){return this._model&&this._model.opacity},model:function(){return this._model},draw:function(t,e){var n=this,i=t.ctx,r=n._model,s=n._rects,a;!this.visible()||(i.save(),r.clip&&(a=r.area,i.beginPath(),i.rect(a.left,a.top,a.right-a.left,a.bottom-a.top),i.clip()),i.globalAlpha=yy.bound(0,r.opacity,1),i.translate(vc(e.x),vc(e.y)),i.rotate(r.rotation),xVe(i,s.frame,r),EVe(i,r.lines,s.text,r),i.restore())}});var wVe=Number.MIN_SAFE_INTEGER||-9007199254740991,CVe=Number.MAX_SAFE_INTEGER||9007199254740991;function uv(t,e,n){var i=Math.cos(n),r=Math.sin(n),s=e.x,a=e.y;return{x:s+i*(t.x-s)-r*(t.y-a),y:a+r*(t.x-s)+i*(t.y-a)}}function MH(t,e){var n=CVe,i=wVe,r=e.origin,s,a,o,l,u;for(s=0;s<t.length;++s)a=t[s],o=a.x-r.x,l=a.y-r.y,u=e.vx*o+e.vy*l,n=Math.min(n,u),i=Math.max(i,u);return{min:n,max:i}}function cT(t,e){var n=e.x-t.x,i=e.y-t.y,r=Math.sqrt(n*n+i*i);return{vx:(e.x-t.x)/r,vy:(e.y-t.y)/r,origin:t,ln:r}}var Nte=function(){this._rotation=0,this._rect={x:0,y:0,w:0,h:0}};vu(Nte.prototype,{center:function(){var t=this._rect;return{x:t.x+t.w/2,y:t.y+t.h/2}},update:function(t,e,n){this._rotation=n,this._rect={x:e.x+t.x,y:e.y+t.y,w:e.w,h:e.h}},contains:function(t){var e=this,n=1,i=e._rect;return t=uv(t,e.center(),-e._rotation),!(t.x<i.x-n||t.y<i.y-n||t.x>i.x+i.w+n*2||t.y>i.y+i.h+n*2)},intersects:function(t){var e=this._points(),n=t._points(),i=[cT(e[0],e[1]),cT(e[0],e[3])],r,s,a;for(this._rotation!==t._rotation&&i.push(cT(n[0],n[1]),cT(n[0],n[3])),r=0;r<i.length;++r)if(s=MH(e,i[r]),a=MH(n,i[r]),s.max<a.min||a.max<s.min)return!1;return!0},_points:function(){var t=this,e=t._rect,n=t._rotation,i=t.center();return[uv({x:e.x,y:e.y},i,n),uv({x:e.x+e.w,y:e.y},i,n),uv({x:e.x+e.w,y:e.y+e.h},i,n),uv({x:e.x,y:e.y+e.h},i,n)]}});function Bte(t,e,n){var i=e.positioner(t,e),r=i.vx,s=i.vy;if(!r&&!s)return{x:i.x,y:i.y};var a=n.w,o=n.h,l=e.rotation,u=Math.abs(a/2*Math.cos(l))+Math.abs(o/2*Math.sin(l)),c=Math.abs(a/2*Math.sin(l))+Math.abs(o/2*Math.cos(l)),f=1/Math.max(Math.abs(r),Math.abs(s));return u*=r*f,c*=s*f,u+=e.offset*r,c+=e.offset*s,{x:i.x+u,y:i.y+c}}function AVe(t,e){var n,i,r,s;for(n=t.length-1;n>=0;--n)for(r=t[n].$layout,i=n-1;i>=0&&r._visible;--i)s=t[i].$layout,s._visible&&r._box.intersects(s._box)&&e(r,s);return t}function MVe(t){var e,n,i,r,s,a,o;for(e=0,n=t.length;e<n;++e)i=t[e],r=i.$layout,r._visible&&(o=new Proxy(i._el,{get:(l,u)=>l.getProps([u],!0)[u]}),s=i.geometry(),a=Bte(o,i.model(),s),r._box.update(a,s,i.rotation()));return AVe(t,function(l,u){var c=l._hidable,f=u._hidable;c&&f||f?u._visible=!1:c&&(l._visible=!1)})}var by={prepare:function(t){var e=[],n,i,r,s,a;for(n=0,r=t.length;n<r;++n)for(i=0,s=t[n].length;i<s;++i)a=t[n][i],e.push(a),a.$layout={_box:new Nte,_hidable:!1,_visible:!0,_set:n,_idx:a._index};return e.sort(function(o,l){var u=o.$layout,c=l.$layout;return u._idx===c._idx?c._set-u._set:c._idx-u._idx}),this.update(e),e},update:function(t){var e=!1,n,i,r,s,a;for(n=0,i=t.length;n<i;++n)r=t[n],s=r.model(),a=r.$layout,a._hidable=s&&s.display==="auto",a._visible=r.visible(),e|=a._hidable;e&&MVe(t)},lookup:function(t,e){var n,i;for(n=t.length-1;n>=0;--n)if(i=t[n].$layout,i&&i._visible&&i._box.contains(e))return t[n];return null},draw:function(t,e){var n,i,r,s,a,o;for(n=0,i=e.length;n<i;++n)r=e[n],s=r.$layout,s._visible&&(a=r.geometry(),o=Bte(r._el,r.model(),a),s._box.update(o,a,r.rotation()),r.draw(t,o))}},DVe=function(t){if(Cn(t))return null;var e=t,n,i,r;if(Dn(t))if(!Cn(t.label))e=t.label;else if(!Cn(t.r))e=t.r;else for(e="",n=Object.keys(t),r=0,i=n.length;r<i;++r)e+=(r!==0?", ":"")+n[r]+": "+t[n[r]];return""+e},PVe={align:"center",anchor:"center",backgroundColor:null,borderColor:null,borderRadius:0,borderWidth:0,clamp:!1,clip:!1,color:void 0,display:!0,font:{family:void 0,lineHeight:1.2,size:void 0,style:void 0,weight:null},formatter:DVe,labels:void 0,listeners:{},offset:4,opacity:1,padding:{top:4,right:4,bottom:4,left:4},rotation:0,textAlign:"start",textStrokeColor:void 0,textStrokeWidth:0,textShadowBlur:0,textShadowColor:void 0},zs="$datalabels",Ute="$default";function OVe(t,e){var n=t.datalabels,i={},r=[],s,a;return n===!1?null:(n===!0&&(n={}),e=vu({},[e,n]),s=e.labels||{},a=Object.keys(s),delete e.labels,a.length?a.forEach(function(o){s[o]&&r.push(vu({},[e,s[o],{_key:o}]))}):r.push(e),i=r.reduce(function(o,l){return Bn(l.listeners||{},function(u,c){o[c]=o[c]||{},o[c][l._key||Ute]=u}),delete l.listeners,o},{}),{labels:r,listeners:i})}function tk(t,e,n,i){if(!!e){var r=n.$context,s=n.$groups,a;!e[s._set]||(a=e[s._set][s._key],!!a&&Yn(a,[r,i])===!0&&(t[zs]._dirty=!0,n.update(r)))}}function RVe(t,e,n,i,r){var s,a;!n&&!i||(n?i?n!==i&&(a=s=!0):a=!0:s=!0,a&&tk(t,e.leave,n,r),s&&tk(t,e.enter,i,r))}function kVe(t,e){var n=t[zs],i=n._listeners,r,s;if(!(!i.enter&&!i.leave)){if(e.type==="mousemove")s=by.lookup(n._labels,e);else if(e.type!=="mouseout")return;
3925r=n._hovered,n._hovered=s,RVe(t,i,r,s,e)}}function IVe(t,e){var n=t[zs],i=n._listeners.click,r=i&&by.lookup(n._labels,e);r&&tk(t,i,r,e)}var OWe={id:"datalabels",defaults:PVe,beforeInit:function(t){t[zs]={_actives:[]}},beforeUpdate:function(t){var e=t[zs];e._listened=!1,e._listeners={},e._datasets=[],e._labels=[]},afterDatasetUpdate:function(t,e,n){var i=e.index,r=t[zs],s=r._datasets[i]=[],a=t.isDatasetVisible(i),o=t.data.datasets[i],l=OVe(o,n),u=e.meta.data||[],c=t.ctx,f,h,p,m,y,v,_,b;for(c.save(),f=0,p=u.length;f<p;++f)if(_=u[f],_[zs]=[],a&&_&&t.getDataVisibility(f)&&!_.skip)for(h=0,m=l.labels.length;h<m;++h)y=l.labels[h],v=y._key,b=new Fte(y,c,_,f),b.$groups={_set:i,_key:v||Ute},b.$context={active:!1,chart:t,dataIndex:f,dataset:o,datasetIndex:i},b.update(b.$context),_[zs].push(b),s.push(b);c.restore(),vu(r._listeners,l.listeners,{merger:function(x,T,E){T[x]=T[x]||{},T[x][e.index]=E[x],r._listened=!0}})},afterUpdate:function(t){t[zs]._labels=by.prepare(t[zs]._datasets)},afterDatasetsDraw:function(t){by.draw(t,t[zs]._labels)},beforeEvent:function(t,e){if(t[zs]._listened){var n=e.event;switch(n.type){case"mousemove":case"mouseout":kVe(t,n);break;case"click":IVe(t,n);break}}},afterEvent:function(t){var e=t[zs],n=e._actives,i=e._actives=t.getActiveElements(),r=yy.arrayDiff(n,i),s,a,o,l,u,c,f;for(s=0,a=r.length;s<a;++s)if(u=r[s],u[1])for(f=u[0].element[zs]||[],o=0,l=f.length;o<l;++o)c=f[o],c.$context.active=u[1]===1,c.update(c.$context);(e._dirty||r.length)&&(by.update(e._labels),t.render()),delete e._dirty}};let $te=-1;const u1=t=>{addEventListener("pageshow",e=>{e.persisted&&($te=e.timeStamp,t(e))},!0)},Sd=(t,e,n,i)=>{let r,s;return a=>{e.value>=0&&(a||i)&&(s=e.value-(r!=null?r:0),(s||r===void 0)&&(r=e.value,e.delta=s,e.rating=((o,l)=>o>l[1]?"poor":o>l[0]?"needs-improvement":"good")(e.value,n),t(e)))}},EF=t=>{requestAnimationFrame(()=>requestAnimationFrame(()=>t()))},zte=()=>{const t=performance.getEntriesByType("navigation")[0];if(t&&t.responseStart>0&&t.responseStart<performance.now())return t},MC=()=>{var e;const t=zte();return(e=t==null?void 0:t.activationStart)!=null?e:0},Td=(t,e=-1)=>{const n=zte();let i="navigate";return $te>=0?i="back-forward-cache":n&&(document.prerendering||MC()>0?i="prerender":document.wasDiscarded?i="restore":n.type&&(i=n.type.replace(/_/g,"-"))),{name:t,value:e,rating:"good",delta:0,entries:[],id:`v5-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`,navigationType:i}},K3=new WeakMap;function wF(t,e){return K3.get(t)||K3.set(t,new e),K3.get(t)}class LVe{constructor(){zu(this,"t");zu(this,"i",0);zu(this,"o",[])}h(e){var r;if(e.hadRecentInput)return;const n=this.o[0],i=this.o.at(-1);this.i&&n&&i&&e.startTime-i.startTime<1e3&&e.startTime-n.startTime<5e3?(this.i+=e.value,this.o.push(e)):(this.i=e.value,this.o=[e]),(r=this.t)==null||r.call(this,e)}}const c1=(t,e,n={})=>{try{if(PerformanceObserver.supportedEntryTypes.includes(t)){const i=new PerformanceObserver(r=>{Promise.resolve().then(()=>{e(r.getEntries())})});return i.observe({type:t,buffered:!0,...n}),i}}catch(i){}},CF=t=>{let e=!1;return()=>{e||(t(),e=!0)}};let hm=-1;const DH=()=>document.visibilityState!=="hidden"||document.prerendering?1/0:0,LE=t=>{document.visibilityState==="hidden"&&hm>-1&&(hm=t.type==="visibilitychange"?t.timeStamp:0,FVe())},PH=()=>{addEventListener("visibilitychange",LE,!0),addEventListener("prerenderingchange",LE,!0)},FVe=()=>{removeEventListener("visibilitychange",LE,!0),removeEventListener("prerenderingchange",LE,!0)},Hte=()=>{var t;if(hm<0){const e=MC(),n=document.prerendering||(t=globalThis.performance.getEntriesByType("visibility-state").filter(i=>i.name==="hidden"&&i.startTime>e)[0])==null?void 0:t.startTime;hm=n!=null?n:DH(),PH(),u1(()=>{setTimeout(()=>{hm=DH(),PH()})})}return{get firstHiddenTime(){return hm}}},AF=t=>{document.prerendering?addEventListener("prerenderingchange",()=>t(),!0):t()},OH=[1800,3e3],NVe=(t,e={})=>{AF(()=>{const n=Hte();let i,r=Td("FCP");const s=c1("paint",a=>{for(const o of a)o.name==="first-contentful-paint"&&(s.disconnect(),o.startTime<n.firstHiddenTime&&(r.value=Math.max(o.startTime-MC(),0),r.entries.push(o),i(!0)))});s&&(i=Sd(t,r,OH,e.reportAllChanges),u1(a=>{r=Td("FCP"),i=Sd(t,r,OH,e.reportAllChanges),EF(()=>{r.value=performance.now()-a.timeStamp,i(!0)})}))})},RH=[.1,.25],RWe=(t,e={})=>{NVe(CF(()=>{let n,i=Td("CLS",0);const r=wF(e,LVe),s=o=>{for(const l of o)r.h(l);r.i>
3925i.value&&(i.value=r.i,i.entries=r.o,n())},a=c1("layout-shift",s);a&&(n=Sd(t,i,RH,e.reportAllChanges),document.addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&(s(a.takeRecords()),n(!0))}),u1(()=>{r.i=0,i=Td("CLS",0),n=Sd(t,i,RH,e.reportAllChanges),EF(()=>n())}),setTimeout(n))}))};let Vte=0,Z3=1/0,fT=0;const BVe=t=>{for(const e of t)e.interactionId&&(Z3=Math.min(Z3,e.interactionId),fT=Math.max(fT,e.interactionId),Vte=fT?(fT-Z3)/7+1:0)};let nk;const kH=()=>{var t;return nk?Vte:(t=performance.interactionCount)!=null?t:0},UVe=()=>{"interactionCount"in performance||nk||(nk=c1("event",BVe,{type:"event",buffered:!0,durationThreshold:0}))};let IH=0;class $Ve{constructor(){zu(this,"u",[]);zu(this,"l",new Map);zu(this,"m");zu(this,"v")}p(){IH=kH(),this.u.length=0,this.l.clear()}P(){const e=Math.min(this.u.length-1,Math.floor((kH()-IH)/50));return this.u[e]}h(e){var r,s;if((r=this.m)==null||r.call(this,e),!e.interactionId&&e.entryType!=="first-input")return;const n=this.u.at(-1);let i=this.l.get(e.interactionId);if(i||this.u.length<10||e.duration>n.T){if(i?e.duration>i.T?(i.entries=[e],i.T=e.duration):e.duration===i.T&&e.startTime===i.entries[0].startTime&&i.entries.push(e):(i={id:e.interactionId,entries:[e],T:e.duration},this.l.set(i.id,i),this.u.push(i)),this.u.sort((a,o)=>o.T-a.T),this.u.length>10){const a=this.u.splice(10);for(const o of a)this.l.delete(o.id)}(s=this.v)==null||s.call(this,i)}}}const Wte=t=>{const e=globalThis.requestIdleCallback||setTimeout;document.visibilityState==="hidden"?t():(t=CF(t),document.addEventListener("visibilitychange",t,{once:!0}),e(()=>{t(),document.removeEventListener("visibilitychange",t)}))},LH=[200,500],kWe=(t,e={})=>{globalThis.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype&&AF(()=>{var o;UVe();let n,i=Td("INP");const r=wF(e,$Ve),s=l=>{Wte(()=>{for(const c of l)r.h(c);const u=r.P();u&&u.T!==i.value&&(i.value=u.T,i.entries=u.entries,n())})},a=c1("event",s,{durationThreshold:(o=e.durationThreshold)!=null?o:40});n=Sd(t,i,LH,e.reportAllChanges),a&&(a.observe({type:"first-input",buffered:!0}),document.addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&(s(a.takeRecords()),n(!0))}),u1(()=>{r.p(),i=Td("INP"),n=Sd(t,i,LH,e.reportAllChanges)}))})};class zVe{constructor(){zu(this,"m")}h(e){var n;(n=this.m)==null||n.call(this,e)}}const FH=[2500,4e3],IWe=(t,e={})=>{AF(()=>{const n=Hte();let i,r=Td("LCP");const s=wF(e,zVe),a=l=>{e.reportAllChanges||(l=l.slice(-1));for(const u of l)s.h(u),u.startTime<n.firstHiddenTime&&(r.value=Math.max(u.startTime-MC(),0),r.entries=[u],i())},o=c1("largest-contentful-paint",a);if(o){i=Sd(t,r,FH,e.reportAllChanges);const l=CF(()=>{a(o.takeRecords()),o.disconnect(),i(!0)});for(const u of["keydown","click","visibilitychange"])addEventListener(u,()=>Wte(l),{capture:!0,once:!0});u1(u=>{r=Td("LCP"),i=Sd(t,r,FH,e.reportAllChanges),EF(()=>{r.value=performance.now()-u.timeStamp,i(!0)})})}})};var Gte={exports:{}};(function(t,e){(function(n,i){t.exports=i()})(si,function(){return function(n){function i(s){if(r[s])return r[s].exports;var a=r[s]={exports:{},id:s,loaded:!1};return n[s].call(a.exports,a,a.exports,i),a.loaded=!0,a.exports}var r={};return i.m=n,i.c=r,i.p="dist/",i(0)}([function(n,i,r){function s($){return $&&$.__esModule?$:{default:$}}var a=Object.assign||function($){for(var G=1;G<arguments.length;G++){var Y=arguments[G];for(var Q in Y)Object.prototype.hasOwnProperty.call(Y,Q)&&($[Q]=Y[Q])}return $},o=r(1),l=(s(o),r(6)),u=s(l),c=r(7),f=s(c),h=r(8),p=s(h),m=r(9),y=s(m),v=r(10),_=s(v),b=r(11),x=s(b),T=r(14),E=s(T),C=[],D=!1,R={offset:120,delay:0,easing:"ease",duration:400,disable:!1,once:!1,startEvent:"DOMContentLoaded",throttleDelay:99,debounceDelay:50,disableMutationObserver:!1},A=function(){var $=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if($&&(D=!0),D)return C=(0,x.default)(C,R),(0,_.default)(C,R.once),C},k=function(){C=(0,E.default)(),A()},F=function(){C.forEach(function($,G){$.node.removeAttribute("data-aos"),$.node.removeAttribute("data-aos-easing"),$.node.removeAttribute("data-aos-duration"),$.node.removeAttribute("data-aos-delay")})},N=function($){return $===!0||$==="mobile"&&y.default.mobile()||$==="phone"&&y.default.phone()||$==="tablet"&&y.default.tablet()||typeof $=="function"&&$()===!0},U=function($){R=a(R,$),C=(0,E.default)();var G=document.all&&!window.atob;return N(R.disable)||G?F():(R.disableMutationObserver||p.default.isSupported()||(console.info(`
3926      aos: MutationObserver is not supported on this browser,
3927      code mutations observing has been disabled.
3928      You may have to call "refreshHard()" by yourself.
3929    `),R.disableMutationObserver=!0),document.querySelector("body").setAttribute("data-aos-easing",R.easing),document.querySelector("body").setAttribute("data-aos-duration",R.duration),document.querySelector("body").setAttribute("data-aos-delay",R.delay),R.startEvent==="DOMContentLoaded"&&["complete","
3929interactive"].indexOf(document.readyState)>-1?A(!0):R.startEvent==="load"?window.addEventListener(R.startEvent,function(){A(!0)}):document.addEventListener(R.startEvent,function(){A(!0)}),window.addEventListener("resize",(0,f.default)(A,R.debounceDelay,!0)),window.addEventListener("orientationchange",(0,f.default)(A,R.debounceDelay,!0)),window.addEventListener("scroll",(0,u.default)(function(){(0,_.default)(C,R.once)},R.throttleDelay)),R.disableMutationObserver||p.default.ready("[data-aos]",k),C)};n.exports={init:U,refresh:A,refreshHard:k}},function(n,i){},,,,,function(n,i){(function(r){function s(N,U,$){function G(te){var pe=_e,me=xe;return _e=xe=void 0,lt=te,ve=N.apply(me,pe)}function Y(te){return lt=te,De=setTimeout(he,U),Ze?G(te):ve}function Q(te){var pe=te-We,me=te-lt,ne=U-pe;return z?k(ne,we-me):ne}function re(te){var pe=te-We,me=te-lt;return We===void 0||pe>=U||pe<0||z&&me>=we}function he(){var te=F();return re(te)?X(te):void(De=setTimeout(he,Q(te)))}function X(te){return De=void 0,J&&_e?G(te):(_e=xe=void 0,ve)}function ae(){De!==void 0&&clearTimeout(De),lt=0,_e=We=xe=De=void 0}function de(){return De===void 0?ve:X(F())}function Re(){var te=F(),pe=re(te);if(_e=arguments,xe=this,We=te,pe){if(De===void 0)return Y(We);if(z)return De=setTimeout(he,U),G(We)}return De===void 0&&(De=setTimeout(he,U)),ve}var _e,xe,we,ve,De,We,lt=0,Ze=!1,z=!1,J=!0;if(typeof N!="function")throw new TypeError(h);return U=c(U)||0,o($)&&(Ze=!!$.leading,z="maxWait"in $,we=z?A(c($.maxWait)||0,U):we,J="trailing"in $?!!$.trailing:J),Re.cancel=ae,Re.flush=de,Re}function a(N,U,$){var G=!0,Y=!0;if(typeof N!="function")throw new TypeError(h);return o($)&&(G="leading"in $?!!$.leading:G,Y="trailing"in $?!!$.trailing:Y),s(N,U,{leading:G,maxWait:U,trailing:Y})}function o(N){var U=typeof N>"u"?"undefined":f(N);return!!N&&(U=="object"||U=="function")}function l(N){return!!N&&(typeof N>"u"?"undefined":f(N))=="object"}function u(N){return(typeof N>"u"?"undefined":f(N))=="symbol"||l(N)&&R.call(N)==m}function c(N){if(typeof N=="number")return N;if(u(N))return p;if(o(N)){var U=typeof N.valueOf=="function"?N.valueOf():N;N=o(U)?U+"":U}if(typeof N!="string")return N===0?N:+N;N=N.replace(y,"");var $=_.test(N);return $||b.test(N)?x(N.slice(2),$?2:8):v.test(N)?p:+N}var f=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(N){return typeof N}:function(N){return N&&typeof Symbol=="function"&&N.constructor===Symbol&&N!==Symbol.prototype?"symbol":typeof N},h="Expected a function",p=NaN,m="[object Symbol]",y=/^\s+|\s+$/g,v=/^[-+]0x[0-9a-f]+$/i,_=/^0b[01]+$/i,b=/^0o[0-7]+$/i,x=parseInt,T=(typeof r>"u"?"undefined":f(r))=="object"&&r&&r.Object===Object&&r,E=(typeof self>"u"?"undefined":f(self))=="object"&&self&&self.Object===Object&&self,C=T||E||Function("return this")(),D=Object.prototype,R=D.toString,A=Math.max,k=Math.min,F=function(){return C.Date.now()};n.exports=a}).call(i,function(){return this}())},function(n,i){(function(r){function s(F,N,U){function $(J){var te=Re,pe=_e;return Re=_e=void 0,We=J,we=F.apply(pe,te)}function G(J){return We=J,ve=setTimeout(re,N),lt?$(J):we}function Y(J){var te=J-De,pe=J-We,me=N-te;return Ze?A(me,xe-pe):me}function Q(J){var te=J-De,pe=J-We;return De===void 0||te>=N||te<0||Ze&&pe>=xe}function re(){var J=k();return Q(J)?he(J):void(ve=setTimeout(re,Y(J)))}function he(J){return ve=void 0,z&&Re?$(J):(Re=_e=void 0,we)}function X(){ve!==void 0&&clearTimeout(ve),We=0,Re=De=_e=ve=void 0}function ae(){return ve===void 0?we:he(k())}function de(){var J=k(),te=Q(J);if(Re=arguments,_e=this,De=J,te){if(ve===void 0)return G(De);if(Ze)return ve=setTimeout(re,N),$(De)}return ve===void 0&&(ve=setTimeout(re,N)),we}var Re,_e,xe,we,ve,De,We=0,lt=!1,Ze=!1,z=!0;if(typeof F!="function")throw new TypeError(f);return N=u(N)||0,a(U)&&(lt=!!U.leading,Ze="maxWait"in U,xe=Ze?R(u(U.maxWait)||0,N):xe,z="trailing"in U?!!U.trailing:z),de.cancel=X,de.flush=ae,de}function a(F){var N=typeof F>"u"?"undefined":c(F);return!!F&&(N=="object"||N=="function")}function o(F){return!!F&&(typeof F>"u"?"undefined":c(F))=="object"}function l(F){return(typeof F>"u"?"undefined":c(F))=="symbol"||o(F)&&D.call(F)==p}function u(F){if(typeof F=="number")return F;if(l(F))return h;if(a(F)){var N=typeof F.valueOf=="function"?F.valueOf():F;F=a(N)?N+"":N}if(typeof F!="string")return F===0?F:+F;F=F.replace(m,"");var U=v.test(F);return U||_.test(F)?b(F.slice(2),U?2:8):y.test(F)?h:+F}var c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(F){return typeof F}:function(F){return F&&typeof Symbol=="function"&&F.constructor===Symbol&&F!==Symbol.prototype?"symbol":typeof F},f="Expected a function",h=NaN,p="[object Symbol]",m=/^\s+|\s+$/g,y=/^[-+]0x[0-9a-f]+$/i,v=/^0b[01]+$/i,_=/^0o[0-7]+$/i,b=parseInt,x=(typeof r>"u"?"undefined":c(r))=="object"&&r&&r.Object===Object&&r,T=(typeof self>"u"?"undefined":c(self))=="object"&&self&&self.Object===Object&&self,E=x||T||Function("return this")(),C=Object.prototype,D=C.toString,R=Math.max,A=Math.min,k=function(){return E.Date.now()};n.exports=s}).call(i,function(){return this}())},function(n,i){function r(c){var f=void 0,h=void 0;for(f=0;f<c.length;f+=1)if(h=c[f],h.dataset&&h.dataset.aos||h.children&&r(h.children))return!0;return!1}function s(){return window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver}function a(){return!!s()}function o(c,f){var h=window.document,p=s(),m=new p(l);u=f,m.observe(h.documentElement,{childList:!0,subtree:!0,removedNodes:!0})}
3929function l(c){c&&c.forEach(function(f){var h=Array.prototype.slice.call(f.addedNodes),p=Array.prototype.slice.call(f.removedNodes),m=h.concat(p);if(r(m))return u()})}Object.defineProperty(i,"__esModule",{value:!0});var u=function(){};i.default={isSupported:a,ready:o}},function(n,i){function r(h,p){if(!(h instanceof p))throw new TypeError("Cannot call a class as a function")}function s(){return navigator.userAgent||navigator.vendor||window.opera||""}Object.defineProperty(i,"__esModule",{value:!0});var a=function(){function h(p,m){for(var y=0;y<m.length;y++){var v=m[y];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(p,v.key,v)}}return function(p,m,y){return m&&h(p.prototype,m),y&&h(p,y),p}}(),o=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i,l=/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i,u=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i,c=/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|
3929sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i,f=function(){function h(){r(this,h)}return a(h,[{key:"phone",value:function(){var p=s();return!(!o.test(p)&&!l.test(p.substr(0,4)))}},{key:"mobile",value:function(){var p=s();return!(!u.test(p)&&!c.test(p.substr(0,4)))}},{key:"tablet",value:function(){return this.mobile()&&!this.phone()}}]),h}();i.default=new f},function(n,i){Object.defineProperty(i,"__esModule",{value:!0});var r=function(a,o,l){var u=a.node.getAttribute("data-aos-once");o>a.position?a.node.classList.add("aos-animate"):typeof u<"u"&&(u==="false"||!l&&u!=="true")&&a.node.classList.remove("aos-animate")},s=function(a,o){var l=window.pageYOffset,u=window.innerHeight;a.forEach(function(c,f){r(c,u+l,o)})};i.default=s},function(n,i,r){function s(u){return u&&u.__esModule?u:{default:u}}Object.defineProperty(i,"__esModule",{value:!0});var a=r(12),o=s(a),l=function(u,c){return u.forEach(function(f,h){f.n
3929ode.classList.add("aos-init"),f.position=(0,o.default)(f.node,c.offset)}),u};i.default=l},function(n,i,r){function s(u){return u&&u.__esModule?u:{default:u}}Object.defineProperty(i,"__esModule",{value:!0});var a=r(13),o=s(a),l=function(u,c){var f=0,h=0,p=window.innerHeight,m={offset:u.getAttribute("data-aos-offset"),anchor:u.getAttribute("data-aos-anchor"),anchorPlacement:u.getAttribute("data-aos-anchor-placement")};switch(m.offset&&!isNaN(m.offset)&&(h=parseInt(m.offset)),m.anchor&&document.querySelectorAll(m.anchor)&&(u=document.querySelectorAll(m.anchor)[0]),f=(0,o.default)(u).top,m.anchorPlacement){case"top-bottom":break;case"center-bottom":f+=u.offsetHeight/2;break;case"bottom-bottom":f+=u.offsetHeight;break;case"top-center":f+=p/2;break;case"bottom-center":f+=p/2+u.offsetHeight;break;case"center-center":f+=p/2+u.offsetHeight/2;break;case"top-top":f+=p;break;case"bottom-top":f+=u.offsetHeight+p;break;case"center-top":f+=u.offsetHeight/2+p}return m.anchorPlacement||m.offset||isNaN(c)||(h=c),f+h};i.default=l},function(n,i){Object.defineProperty(i,"__esModule",{value:!0});var r=function(s){for(var a=0,o=0;s&&!isNaN(s.offsetLeft)&&!isNaN(s.offsetTop);)a+=s.offsetLeft-(s.tagName!="BODY"?s.scrollLeft:0),o+=s.offsetTop-(s.tagName!="BODY"?s.scrollTop:0),s=s.offsetParent;return{top:o,left:a}};i.default=r},function(n,i){Object.defineProperty(i,"__esModule",{value:!0});var r=function(s){return s=s||document.querySelectorAll("[data-aos]"),Array.prototype.map.call(s,function(a){return{node:a}})};i.default=r}])})})(Gte);const LWe=FI(Gte.exports);function FWe(t){return{all:t=t||new Map,on:function(e,n){var i=t.get(e);i?i.push(n):t.set(e,[n])},off:function(e,n){var i=t.get(e);i&&(n?i.splice(i.indexOf(n)>>>0,1):t.set(e,[]))},emit:function(e,n){var i=t.get(e);i&&i.slice().map(function(r){r(n)}),(i=t.get("*"))&&i.slice().map(function(r){r(e,n)})}}}export{HV as $,aWe as A,nWe as B,iWe as C,Ig as D,oWe as E,yr as F,Eb as G,Ik as H,XVe as I,vV as J,tWe as K,zue as L,$t as M,JVe as N,lWe as O,eWe as P,cWe as Q,xm as R,Tn as S,Fk as T,fWe as U,uWe as V,Db as W,Kle as X,Zle as Y,D_ as Z,dWe as _,Ac as a,VVe as a$,Wue as a0,sWe as a1,xs as a2,n2 as a3,YVe as a4,KVe as a5,Be as a6,rWe as a7,WVe as a8,GVe as a9,bWe as aA,sr as aB,Iee as aC,xWe as aD,Pi as aE,kE as aF,TWe as aG,EWe as aH,wWe as aI,SWe as aJ,QR as aK,Ate as aL,TC as aM,xC as aN,SC as aO,bC as aP,OWe as aQ,PWe as aR,CWe as aS,AWe as aT,MWe as aU,DWe as aV,RWe as aW,kWe as aX,IWe as aY,LWe as aZ,Kce as a_,Lg as aa,hWe as ab,pWe as ac,Rce as ad,oW as ae,mWe as af,jVe as ag,qVe as ah,pl as ai,Xce as aj,Mhe as ak,ZVe as al,Ie as am,yWe as an,Xt as ao,vWe as ap,Yh as aq,wQ as ar,hc as as,BQ as at,Hf as au,LRe as av,_We as aw,RRe as ax,gWe as ay,Jo as az,UV as b,FWe as b0,FI as b1,si as b2,wp as b3,dV as b4,ZE as c,kk as d,Gue as e,bue as f,mi as g,gue as h,EV as i,rp as j,vue as k,tn as l,yu as m,wb as n,Gm as o,Dhe as p,jce as q,rP as r,Ige as s,Woe as t,nu as u,fW as v,XE as w,QVe as x,or as y,Cp as z};

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.