function $A(t,e){for(var n=0;nr[i]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(i){if(i.ep)return;i.ep=!0;const s=n(i);fetch(i.href,s)}})();var am=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Gl(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Mb={exports:{}},lm={},Tb={exports:{}},Dt={};/**
* @license React
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var hf=Symbol.for("react.element"),jA=Symbol.for("react.portal"),XA=Symbol.for("react.fragment"),YA=Symbol.for("react.strict_mode"),qA=Symbol.for("react.profiler"),KA=Symbol.for("react.provider"),ZA=Symbol.for("react.context"),QA=Symbol.for("react.forward_ref"),JA=Symbol.for("react.suspense"),eR=Symbol.for("react.memo"),tR=Symbol.for("react.lazy"),By=Symbol.iterator;function nR(t){return t===null||typeof t!="object"?null:(t=By&&t[By]||t["@@iterator"],typeof t=="function"?t:null)}var Cb={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Ab=Object.assign,Rb={};function Mu(t,e,n){this.props=t,this.context=e,this.refs=Rb,this.updater=n||Cb}Mu.prototype.isReactComponent={};Mu.prototype.setState=function(t,e){if(typeof t!="object"&&typeof t!="function"&&t!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,e,"setState")};Mu.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function Pb(){}Pb.prototype=Mu.prototype;function O_(t,e,n){this.props=t,this.context=e,this.refs=Rb,this.updater=n||Cb}var U_=O_.prototype=new Pb;U_.constructor=O_;Ab(U_,Mu.prototype);U_.isPureReactComponent=!0;var Vy=Array.isArray,Db=Object.prototype.hasOwnProperty,I_={current:null},Lb={key:!0,ref:!0,__self:!0,__source:!0};function Nb(t,e,n){var r,i={},s=null,o=null;if(e!=null)for(r in e.ref!==void 0&&(o=e.ref),e.key!==void 0&&(s=""+e.key),e)Db.call(e,r)&&!Lb.hasOwnProperty(r)&&(i[r]=e[r]);var a=arguments.length-2;if(a===1)i.children=n;else if(1<a){for(var l=Array(a),c=0;c<a;c++)l[c]=arguments[c+2];i.children=l}if(t&&t.defaultProps)for(r in a=t.defaultProps,a)i[r]===void 0&&(i[r]=a[r]);return{$$typeof:hf,type:t,key:s,ref:o,props:i,_owner:I_.current}}function rR(t,e){return{$$typeof:hf,type:t.type,key:e,ref:t.ref,props:t.props,_owner:t._owner}}function k_(t){return typeof t=="object"&&t!==null&&t.$$typeof===hf}function iR(t){var e={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,function(n){return e[n]})}var Hy=/\/+/g;function u0(t,e){return typeof t=="object"&&t!==null&&t.key!=null?iR(""+t.key):e.toString(36)}function $h(t,e,n,r,i){var s=typeof t;(s==="undefined"||s==="boolean")&&(t=null);var o=!1;if(t===null)o=!0;else switch(s){case"string":case"number":o=!0;break;case"object":switch(t.$$typeof){case hf:case jA:o=!0}}if(o)return o=t,i=i(o),t=r===""?"."+u0(o,0):r,Vy(i)?(n="",t!=null&&(n=t.replace(Hy,"$&/")+"/"),$h(i,e,n,"",function(c){return c})):i!=null&&(k_(i)&&(i=rR(i,n+(!i.key||o&&o.key===i.key?"":(""+i.key).replace(Hy,"$&/")+"/")+t)),e.push(i)),1;if(o=0,r=r===""?".":r+":",Vy(t))for(var a=0;a<t.length;a++){s=t[a];var l=r+u0(s,a);o+=$h(s,e,n,l,i)}else if(l=nR(t),typeof l=="function")for(t=l.call(t),a=0;!(s=t.next()).done;)s=s.value,l=r+u0(s,a++),o+=$h(s,e,n,l,i);else if(s==="object")throw e=String(t),Error("Objects are not valid as a React child (found: "+(e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead.");return o}function jf(t,e,n){if(t==null)return t;var r=[],i=0;return $h(t,r,"","",function(s){return e.call(n,s,i++)}),r}function sR(t){if(t._status===-1){var e=t._result;e=e(),e.then(function(n){(t._status===0||t._status===-1)&&(t._status=1,t._result=n)},function(n){(t._status===0||t._status===-1)&&(t._status=2,t._result=n)}),t._status===-1&&(t._status=0,t._result=e)}if(t._status===1)return t._result.default;throw t._result}var Kr={current:null},jh={transition:null},oR={ReactCurrentDispatcher:Kr,ReactCurrentBatchConfig:jh,ReactCurrentOwner:I_};function Ob(){throw Error("act(...) is not supported in production builds of React.")}Dt.Children={map:jf,forEach:function(t,e,n){jf(t,function(){e.apply(this,arguments)},n)},count:function(t){var e=0;return jf(t,function(){e++}),e},toArray:function(t){return jf(t,function(e){return e})||[]},only:function(t){if(!k_(t))throw Error("React.Children.only expected to receive a single React element child.");return t}};Dt.Component=Mu;Dt.Fragment=XA;Dt.Profiler=qA;Dt.PureComponent=O_;Dt.StrictMode=YA;Dt.Suspense=JA;Dt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=oR;Dt.act=Ob;Dt.cloneElement=function(t,e,n){if(t==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+t+".");var r=Ab({},t.props),i=t.key,s=t.ref,o=t._owner;if(e!=null){if(e.ref!==void 0&&(s=e.ref,o=I_.current),e.key!==void 0&&(i=""+e.key),t.type&&t.type.defaultProps)var a=t.type.defaultProps;for(l in e)Db.call(e,l)&&!Lb.hasOwnProperty(l)&&(r[l]=e[l]===void 0&&a!==void 0?a[l]:e[l])}var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){a=Array(l);for(var c=0;c<l;c++)a[c]=arguments[c+2];r.children=a}return{$$typeof:hf,type:t.type,key:i,ref:s,props:r,_owner:o}};Dt.createContext=function(t){return t={$$typeof:ZA,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},t.Provider={$$typeof:KA,_context:t},t.Consumer=t};Dt.createElement=Nb;Dt.createFactory=function(t){var e=Nb.bind(null,t);return e.type=t,e};Dt.createRef=function(){return{current:null}};Dt.forwardRef=function(t){return{$$typeof:QA,render:t}};Dt.isValidElement=k_;Dt.lazy=function(t){return{$$typeof:tR,_payload:{_status:-1,_result:t},_init:sR}};Dt.memo=function(t,e){return{$$typeof:eR,type:t,compare:e===void 0?null:e}};Dt.startTransition=function(t){var e=jh.transition;jh.transition={};try{t()}finally{jh.transition=e}};Dt.unstable_act=Ob;Dt.useCallback=function(t,e){return Kr.current.useCallback(t,e)};Dt.useContext=function(t){return Kr.current.useContext(t)};Dt.useDebugValue=function(){};Dt.useDeferredValue=function(t){return Kr.current.useDeferredValue(t)};Dt.useEffect=function(t,e){return Kr.current.useEffect(t,e)};Dt.useId=function(){return Kr.current.useId()};Dt.useImperativeHandle=function(t,e,n){return Kr.current.useImperativeHandle(t,e,n)};Dt.useInsertionEffect=function(t,e){return Kr.current.useInsertionEffect(t,e)};Dt.useLayoutEffect=function(t,e){return Kr.current.useLayoutEffect(t,e)};Dt.useMemo=function(t,e){return Kr.current.useMemo(t,e)};Dt.useReducer=function(t,e,n){return Kr.current.useReducer(t,e,n)};Dt.useRef=function(t){return Kr.current.useRef(t)};Dt.useState=function(t){return Kr.current.useState(t)};Dt.useSyncExternalStore=function(t,e,n){return Kr.current.useSyncExternalStore(t,e,n)};Dt.useTransition=function(){return Kr.current.useTransition()};Dt.version="18.3.1";Tb.exports=Dt;var U=Tb.exports;const Re=Gl(U),aR=$A({__proto__:null,default:Re},[U]);/**
* @license React
* react-jsx-runtime.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var lR=U,cR=Symbol.for("react.element"),uR=Symbol.for("react.fragment"),dR=Object.prototype.hasOwnProperty,fR=lR.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,hR={key:!0,ref:!0,__self:!0,__source:!0};function Ub(t,e,n){var r,i={},s=null,o=null;n!==void 0&&(s=""+n),e.key!==void 0&&(s=""+e.key),e.ref!==void 0&&(o=e.ref);for(r in e)dR.call(e,r)&&!hR.hasOwnProperty(r)&&(i[r]=e[r]);if(t&&t.defaultProps)for(r in e=t.defaultProps,e)i[r]===void 0&&(i[r]=e[r]);return{$$typeof:cR,type:t,key:s,ref:o,props:i,_owner:fR.current}}lm.Fragment=uR;lm.jsx=Ub;lm.jsxs=Ub;Mb.exports=lm;var I=Mb.exports;if(typeof window<"u"){let t=function(){var e=document.body,n=document.getElementById("__svg__icons__dom__");n||(n=document.createElementNS("http://www.w3.org/2000/svg","svg"),n.style.position="absolute",n.style.width="0",n.style.height="0",n.id="__svg__icons__dom__",n.setAttribute("xmlns","http://www.w3.org/2000/svg"),n.setAttribute("xmlns:link","http://www.w3.org/1999/xlink")),n.innerHTML='',e.insertBefore(n,e.lastChild)};var FV=t;document.readyState==="loading"?document.addEventListener("DOMContentLoaded",t):t()}var Wg={},Ib={exports:{}},Fi={},kb={exports:{}},Fb={};/**
* @license React
* scheduler.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/(function(t){function e(A,X){var q=A.length;A.push(X);e:for(;0 b&&(b=w),wp?p-1:c?c==="y"?p/M:M:Math.max(M,p/M))||0)*(i==="edges"?-1:1),g.b=p<0?s-p:s,g.u=Dr(n.amount||n.each)||0,r=r&&p<0?M2(r):r}return p=(g[d]-g.min)/g.max||0,ar(g.b+(r?r(p):p)*g.v)+g.u}},c_=function(e){var n=Math.pow(10,((e+"").split(".")[1]||"").length);return function(r){var i=ar(Math.round(parseFloat(r)/e)*e*n);return(i-i%1)/n+(Do(r)?0:Dr(r))}},g2=function(e,n){var r=Nr(e),i,s;return!r&&to(e)&&(i=r=e.radius||Ji,e.values?(e=es(e.values),(s=!Do(e[0]))&&(i*=i)):e=c_(e.increment)),za(n,r?Cn(e)?function(o){return s=e(o),Math.abs(s-o)<=i?s:o}:function(o){for(var a=parseFloat(s?o.x:o),l=parseFloat(s?o.y:0),c=Ji,u=0,h=e.length,d,m;h--;)s?(d=e[h].x-a,m=e[h].y-l,d=d*d+m*m):d=Math.abs(e[h]-a),d<c&&(c=d,u=h);return u=!i||c<=i?e[u]:o,s||u===o||Do(o)?u:u+Dr(o)}:c_(e))},v2=function(e,n,r,i){return za(Nr(e)?!n:r===!0?!!(r=0):!i,function(){return Nr(e)?e[~~(Math.random()*e.length)]:(r=r||1e-5)&&(i=r<1?Math.pow(10,(r+"").length-2):1)&&Math.floor(Math.round((e-r/2+Math.random()*(n-e+r*.99))/r)*r*i)/i})},IO=function(){for(var e=arguments.length,n=new Array(e),r=0;ri?s-o:o)})},rf=function(e){for(var n=0,r="",i,s,o,a;~(i=e.indexOf("random(",n));)o=e.indexOf(")",i),a=e.charAt(i+7)==="[",s=e.substr(i+7,o-i-7).match(a?e2:n_),r+=e.substr(n,i-n)+v2(a?s:+s[0],a?0:+s[1],+s[2]||1e-5),n=o+1;return r+e.substr(n,e.length-n)},x2=function(e,n,r,i,s){var o=n-e,a=i-r;return za(s,function(l){return r+((l-e)/o*a||0)})},VO=function t(e,n,r,i){var s=isNaN(e+n)?0:function(m){return(1-m)*e+m*n};if(!s){var o=cr(e),a={},l,c,u,h,d;if(r===!0&&(i=1)&&(r=null),o)e={p:e},n={p:n};else if(Nr(e)&&!Nr(n)){for(u=[],h=e.length,d=h-2,c=1;c<h;c++)u.push(t(e[c-1],e[c]));h--,s=function(v){v*=h;var p=Math.min(d,~~v);return u[p](v-p)},r=n}else i||(e=Bl(Nr(e)?[]:{},e));if(!u){for(l in n)Qx.call(a,e,l,"get",n[l]);s=function(v){return ny(v,a)||(o?e.p:e)}}}return za(r,s)},Nw=function(e,n,r){var i=e.labels,s=Ji,o,a,l;for(o in i)a=i[o]-n,a(a=Math.abs(a))&&(l=o,s=a);return l},Li=function(e,n,r){var i=e.vars,s=i[n],o=hn,a=e._ctx,l,c,u;if(s)return l=i[n+"Params"],c=i.callbackScope||e,r&&Ta.length&&Bp(),a&&(hn=a),u=l?s.apply(c,l):s.call(c),hn=o,u},gd=function(e){return La(e),e.scrollTrigger&&e.scrollTrigger.kill(!!Lr),e.progress()<1&&Li(e,"onInterrupt"),e},Hc,y2=[],w2=function(e){if(e)if(e=!e.name&&e.default||e,jx()||e.headless){var n=e.name,r=Cn(e),i=n&&!r&&e.init?function(){this._props=[]}:e,s={init:nf,render:ny,add:Qx,kill:rU,modifier:nU,rawVars:0},o={targetTest:0,get:0,getSetter:ty,aliases:{},register:0};if(gu(),e!==i){if(Ai[n])return;as(i,as(Vp(e,s),o)),Bl(i.prototype,Bl(s,Vp(e,o))),Ai[i.prop=n]=i,e.targetTest&&(lp.push(i),qx[n]=1),n=(n==="css"?"CSS":n.charAt(0).toUpperCase()+n.substr(1))+"Plugin"}r2(n,i),e.register&&e.register(mi,i,di)}else y2.push(e)},Jt=255,vd={aqua:[0,Jt,Jt],lime:[0,Jt,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,Jt],navy:[0,0,128],white:[Jt,Jt,Jt],olive:[128,128,0],yellow:[Jt,Jt,0],orange:[Jt,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[Jt,0,0],pink:[Jt,192,203],cyan:[0,Jt,Jt],transparent:[Jt,Jt,Jt,0]},ng=function(e,n,r){return e+=e1?-1:0,(e*6<1?n+(r-n)*e*6:e<.5?r:e*3>16,e>>8&Jt,e&Jt]:0:vd.black,s,o,a,l,c,u,h,d,m,v;if(!i){if(e.substr(-1)===","&&(e=e.substr(0,e.length-1)),vd[e])i=vd[e];else if(e.charAt(0)==="#"){if(e.length>16,i>>8&Jt,i&Jt,parseInt(e.substr(7),16)/255];e=parseInt(e.substr(1),16),i=[e>>16,e>>8&Jt,e&Jt]}else if(e.substr(0,3)==="hsl"){if(i=v=e.match(n_),!n)l=+i[0]%360/360,c=+i[1]/100,u=+i[2]/100,o=u3&&(i[3]*=1),i[0]=ng(l+1/3,s,o),i[1]=ng(l,s,o),i[2]=ng(l-1/3,s,o);else if(~e.indexOf("="))return i=e.match(QT),r&&i.length.5?m/(2-h-d):m/(h+d),l=h===s?(o-a)/m+(o<a?6:0):h===o?(a-s)/m+2:(s-o)/m+4,l*=60),i[0]=~~(l+.5),i[1]=~~(c*100+.5),i[2]=~~(u*100+.5)),r&&i.length<4&&(i[3]=1),i},b2=function(e){var n=[],r=[],i=-1;return e.split(Ca).forEach(function(s){var o=s.match(Vc)||[];n.push.apply(n,o),r.push(i+=o.length+1)}),n.c=r,n},Ow=function(e,n,r){var i="",s=(e+i).match(Ca),o=n?"hsla(":"rgba(",a=0,l,c,u,h;if(!s)return e;if(s=s.map(function(d){return(d=S2(d,n,1))&&o+(n?d[0]+","+d[1]+"%,"+d[2]+"%,"+d[3]:d.join(","))+")"}),r&&(u=b2(e),l=r.c,l.join(i)!==u.c.join(i)))for(c=e.replace(Ca,"1").split(Vc),h=c.length-1;a<h;a++)i+=c[a]+(~l.indexOf(a)?s.shift()||o+"0,0,0,0)":(u.length?u:s.length?s:r).shift());if(!c)for(c=e.split(Ca),h=c.length-1;ae||f0||x)&&(T=++h.frame,d=w-h.time*1e3,h.time=w=w/1e3,o+=_+(_>=s?4:s-_),y=1),x||(l=c(p)),y)for(m=0;m<a.length;m++)a[m](w,d,T,g)};return h={time:0,frame:0,tick:function(){v(!0)},deltaRatio:function(g){return d/(1e3/(g||60))},wake:function(){t2&&(!r_&&jx()&&(Bs=r_=window,Xx=Bs.document||{},ki.gsap=mi,(Bs.gsapVersions||(Bs.gsapVersions=[])).push(mi.version),n2(zp||Bs.GreenSockGlobals||!Bs.gsap&&Bs||{}),y2.forEach(w2)),u=typeof requestAnimationFrame=f&&m--},_listeners:a},h}(),gu=function(){return!sf&&Pi.wake()},Ut={},WO=/^[\d.\-M][\d.\-,\s]/,GO=/["']/g,$O=function(e){for(var n={},r=e.substr(1,e.length-3).split(":"),i=r[0],s=1,o=r.length,a,l,c;s<o;s++)l=r[s],a=s!==o-1?l.lastIndexOf(","):l.length,c=l.substr(0,a),n[i]=isNaN(c)?c.replace(GO,"").trim():+c,i=l.substr(a+1).trim();return n},jO=function(e){var n=e.indexOf("(")+1,r=e.indexOf(")"),i=e.indexOf("(",n);return e.substring(n,~i&&i1&&r.config?r.config.apply(null,~e.indexOf("{")?[$O(n[1])]:jO(e).split(",").map(a2)):Ut._CE&&WO.test(e)?Ut._CE("",e):r},M2=function(e){return function(n){return 1-e(1-n)}},T2=function t(e,n){for(var r=e._first,i;r;)r instanceof Yr?t(r,n):r.vars.yoyoEase&&(!r._yoyo||!r._repeat)&&r._yoyo!==n&&(r.timeline?t(r.timeline,n):(i=r._ease,r._ease=r._yEase,r._yEase=i,r._yoyo=n)),r=r._next},Al=function(e,n){return e&&(Cn(e)?e:Ut[e]||XO(e))||n},Xl=function(e,n,r,i){r===void 0&&(r=function(l){return 1-n(1-l)}),i===void 0&&(i=function(l){return l<.5?n(l*2)/2:1-n((1-l)*2)/2});var s={easeIn:n,easeOut:r,easeInOut:i},o;return ui(e,function(a){Ut[a]=ki[a]=s,Ut[o=a.toLowerCase()]=r;for(var l in s)Ut[o+(l==="easeIn"?".in":l==="easeOut"?".out":".inOut")]=Ut[a+"."+l]=s[l]}),s},C2=function(e){return function(n){return n=1?n:1,s=(r||(e?.3:.45))/(n<1?n:1),o=s/t_*(Math.asin(1/i)||0),a=function(u){return u===1?1:i*Math.pow(2,-10*u)*wO((u-o)*s)+1},l=e==="out"?a:e==="in"?function(c){return 1-a(1-c)}:C2(a);return s=t_/s,l.config=function(c,u){return t(e,c,u)},l},ig=function t(e,n){n===void 0&&(n=1.70158);var r=function(o){return o?--o*o*((n+1)*o+n)+1:0},i=e==="out"?r:e==="in"?function(s){return 1-r(1-s)}:C2(r);return i.config=function(s){return t(e,s)},i};ui("Linear,Quad,Cubic,Quart,Quint,Strong",function(t,e){var n=e<5?e+1:e;Xl(t+",Power"+(n-1),e?function(r){return Math.pow(r,n)}:function(r){return r},function(r){return 1-Math.pow(1-r,n)},function(r){return r<.5?Math.pow(r*2,n)/2:1-Math.pow((1-r)*2,n)/2})});Ut.Linear.easeNone=Ut.none=Ut.Linear.easeIn;Xl("Elastic",rg("in"),rg("out"),rg());(function(t,e){var n=1/e,r=2*n,i=2.5*n,s=function(a){return a<n?t*a*a:a<r?t*Math.pow(a-1.5/e,2)+.75:a0?r+(r+this._rDelay)*this._repeat:r):this.totalDuration()&&this._dur},e.totalDuration=function(r){return arguments.length?(this._dirty=0,mu(this,this._repeat=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&&r<this._tDur||this._ts0||!this._tDur&&!r)&&$s(this._dp,this,this._start-this._delay)}return(this._tTime!==r||!this._dur&&!i||this._initted&&Math.abs(this._zTime)===tn||!r&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=r),o2(this,r,i)),this},e.time=function(r,i){return arguments.length?this.totalTime(Math.min(this.totalDuration(),r+Dw(this))%(this._dur+this._rDelay)||(r?this._dur:0),i):this._time},e.totalProgress=function(r,i){return arguments.length?this.totalTime(this.totalDuration()*r,i):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>0?1:0},e.progress=function(r,i){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-r:r)+Dw(this),i):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},e.iteration=function(r,i){var s=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(r-1)*s,i):this._repeat?pu(this._tTime,s)+1:1},e.timeScale=function(r,i){if(!arguments.length)return this._rts===-tn?0:this._rts;if(this._rts===r)return this;var s=this.parent&&this._ts?Hp(this.parent._time,this):this._tTime;return this._rts=+r||0,this._ts=this._ps||r===-tn?0:this._rts,this.totalTime(wf(-Math.abs(this._delay),this._tDur,s),i!==!1),Hm(this),AO(this)},e.paused=function(r){return arguments.length?(this._ps!==r&&(this._ps=r,r?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(gu(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==tn&&(this._tTime-=tn)))),this):this._ps},e.startTime=function(r){if(arguments.length){this._start=r;var i=this.parent||this._dp;return i&&(i._sort||!this.parent)&&$s(i,this,r-this._delay),this}return this._start},e.endTime=function(r){return this._start+(ci(r)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},e.rawTime=function(r){var i=this.parent||this._dp;return i?r&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?Hp(i.rawTime(r),this):this._tTime:this._tTime},e.revert=function(r){r===void 0&&(r=EO);var i=Lr;return Lr=r,(this._initted||this._startAt)&&(this.timeline&&this.timeline.revert(r),this.totalTime(-.01,r.suppressEvents)),this.data!=="nested"&&r.kill!==!1&&this.kill(),Lr=i,this},e.globalTime=function(r){for(var i=this,s=arguments.length?r:i.rawTime();i;)s=i._start+s/(Math.abs(i._ts)||1),i=i._dp;return!this.parent&&this._sat?this._sat.globalTime(r):s},e.repeat=function(r){return arguments.length?(this._repeat=r===1/0?-2:r,Lw(this)):this._repeat===-2?1/0:this._repeat},e.repeatDelay=function(r){if(arguments.length){var i=this._time;return this._rDelay=r,Lw(this),i?this.time(i):this}return this._rDelay},e.yoyo=function(r){return arguments.length?(this._yoyo=r,this):this._yoyo},e.seek=function(r,i){return this.totalTime(Yi(this,r),ci(i))},e.restart=function(r,i){return this.play().totalTime(r?-this._delay:0,ci(i))},e.play=function(r,i){return r!=null&&this.seek(r,i),this.reversed(!1).paused(!1)},e.reverse=function(r,i){return r!=null&&this.seek(r||this.totalDuration(),i),this.reversed(!0).paused(!1)},e.pause=function(r,i){return r!=null&&this.seek(r,i),this.paused(!0)},e.resume=function(){return this.paused(!1)},e.reversed=function(r){return arguments.length?(!!r!==this.reversed()&&this.timeScale(-this._rts||(r?-tn:0)),this):this._rts=i&&s1?(i?(o[r]=i,s&&(o[r+"Params"]=s),r==="onUpdate"&&(this._onUpdate=i)):delete o[r],this):o[r]},e.then=function(r){var i=this;return new Promise(function(s){var o=Cn(r)?r:l2,a=function(){var c=i.then;i.then=null,Cn(o)&&(o=o(i))&&(o.then||o===i)&&(i.then=c),s(o),i.then=c};i._initted&&i.totalProgress()===1&&i._ts>=0||!i._tTime&&i._ts<0?a():i._prom=a})},e.kill=function(){gd(this)},t}();as(of.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:-tn,_prom:0,_ps:!1,_rts:1});var Yr=function(t){qT(e,t);function e(r,i){var s;return r===void 0&&(r={}),s=t.call(this,r)||this,s.labels={},s.smoothChildTiming=!!r.smoothChildTiming,s.autoRemoveChildren=!!r.autoRemoveChildren,s._sort=ci(r.sortChildren),_n&&$s(r.parent||_n,vo(s),i),r.reversed&&s.reverse(),r.paused&&s.paused(!0),r.scrollTrigger&&d2(vo(s),r.scrollTrigger),s}var n=e.prototype;return n.to=function(i,s,o){return Dd(0,arguments,this),this},n.from=function(i,s,o){return Dd(1,arguments,this),this},n.fromTo=function(i,s,o,a){return Dd(2,arguments,this),this},n.set=function(i,s,o){return s.duration=0,s.parent=this,Pd(s).repeatDelay||(s.repeat=0),s.immediateRender=!!s.immediateRender,new Wn(i,s,Yi(this,o),1),this},n.call=function(i,s,o){return $s(this,Wn.delayedCall(0,i,s),o)},n.staggerTo=function(i,s,o,a,l,c,u){return o.duration=s,o.stagger=o.stagger||a,o.onComplete=c,o.onCompleteParams=u,o.parent=this,new Wn(i,o,Yi(this,l)),this},n.staggerFrom=function(i,s,o,a,l,c,u){return o.runBackwards=1,Pd(o).immediateRender=ci(o.immediateRender),this.staggerTo(i,s,o,a,l,c,u)},n.staggerFromTo=function(i,s,o,a,l,c,u,h){return a.startAt=o,Pd(a).immediateRender=ci(a.immediateRender),this.staggerTo(i,s,a,l,c,u,h)},n.render=function(i,s,o){var a=this._time,l=this._dirty?this.totalDuration():this._tDur,c=this._dur,u=i<=0?0:ar(i),h=this._zTime<0!=il&&i>=0&&(u=l),u!==this._tTime||o||h){if(a!==this._time&&c&&(u+=this._time-a,i+=this._time-a),d=u,y=this._start,_=this._ts,f=!_,h&&(c||(a=this._zTime),(i||!s)&&(this._zTime=i)),this._repeat){if(T=this._yoyo,g=c+this._rDelay,this._repeat<-1&&ic&&(d=c)),w=pu(this._tTime,g),!a&&this._tTime&&w!==p&&this._tTime-w*g-this._dur<=0&&(w=p),T&&p&1&&(d=c-d,b=1),p!==w&&!this._lock){var E=T&&w&1,M=E===(T&&p&1);if(p<w&&(E=!E),a=E?0:u%c?c:u,this._lock=1,this.render(a||(b?0:ar(p*g)),s,!c)._lock=0,this._tTime=u,!s&&this.parent&&Li(this,"onRepeat"),this.vars.repeatRefresh&&!b&&(this.invalidate()._lock=1),a&&a!==this._time||f!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(c=this._dur,l=this._tDur,M&&(this._lock=2,a=E?c:-1e-4,this.render(a,!0),this.vars.repeatRefresh&&!b&&this.invalidate()),this._lock=0,!this._ts&&!f)return this;T2(this,b)}}if(this._hasPause&&!this._forcing&&this._lock=a&&i>=0)for(m=this._first;m;){if(v=m._next,(m._act||d>=m._start)&&m._ts&&x!==m){if(m.parent!==this)return this.render(i,s,o);if(m.render(m._ts>0?(d-m._start)*m._ts:(m._dirty?m.totalDuration():m._tDur)+(d-m._start)*m._ts,s,o),d!==this._time||!this._ts&&!f){x=0,v&&(u+=this._zTime=-tn);break}}m=v}else{m=this._last;for(var S=i<0?i:d;m;){if(v=m._prev,(m._act||S0?(S-m._start)*m._ts:(m._dirty?m.totalDuration():m._tDur)+(S-m._start)*m._ts,s,o||Lr&&(m._initted||m._startAt)),d!==this._time||!this._ts&&!f){x=0,v&&(u+=this._zTime=S?-tn:tn);break}}m=v}}if(x&&!s&&(this.pause(),x.render(d>=a?0:-tn)._zTime=d>=a?1:-1,this._ts))return this._start=y,Hm(this),this.render(i,s,o);this._onUpdate&&!s&&Li(this,"onUpdate",!0),(u===l&&this._tTime>=this.totalDuration()||!u&&a)&&(y===this._start||Math.abs(_)!==Math.abs(this._ts))&&(this._lock||((i||!c)&&(u===l&&this._ts>0||!u&&this._ts<0)&&La(this,1),!s&&!(i=0?"onComplete":"onReverseComplete",!0),this._prom&&!(u0)&&this._prom())))}return this},n.add=function(i,s){var o=this;if(Do(s)||(s=Yi(this,s,i)),!(i instanceof of)){if(Nr(i))return i.forEach(function(a){return o.add(a,s)}),this;if(cr(i))return this.addLabel(i,s);if(Cn(i))i=Wn.delayedCall(0,i);else return this}return this!==i?$s(this,i,s):this},n.getChildren=function(i,s,o,a){i===void 0&&(i=!0),s===void 0&&(s=!0),o===void 0&&(o=!0),a===void 0&&(a=-Ji);for(var l=[],c=this._first;c;)c._start>=a&&(c instanceof Wn?s&&l.push(c):(o&&l.push(c),i&&l.push.apply(l,c.getChildren(!0,s,o)))),c=c._next;return l},n.getById=function(i){for(var s=this.getChildren(1,1,1),o=s.length;o--;)if(s[o].vars.id===i)return s[o]},n.remove=function(i){return cr(i)?this.removeLabel(i):Cn(i)?this.killTweensOf(i):(Vm(this,i),i===this._recent&&(this._recent=this._last),Cl(this))},n.totalTime=function(i,s){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=ar(Pi.time-(this._ts>0?i/this._ts:(this.totalDuration()-i)/-this._ts))),t.prototype.totalTime.call(this,i,s),this._forcing=0,this):this._tTime},n.addLabel=function(i,s){return this.labels[i]=Yi(this,s),this},n.removeLabel=function(i){return delete this.labels[i],this},n.addPause=function(i,s,o){var a=Wn.delayedCall(0,s||nf,o);return a.data="isPause",this._hasPause=1,$s(this,a,Yi(this,i))},n.removePause=function(i){var s=this._first;for(i=Yi(this,i);s;)s._start===i&&s.data==="isPause"&&La(s),s=s._next},n.killTweensOf=function(i,s,o){for(var a=this.getTweensOf(i,o),l=a.length;l--;)ha!==a[l]&&a[l].kill(i,s);return this},n.getTweensOf=function(i,s){for(var o=[],a=es(i),l=this._first,c=Do(s),u;l;)l instanceof Wn?MO(l._targets,a)&&(c?(!ha||l._initted&&l._ts)&&l.globalTime(0)s:!s||l.isActive())&&o.push(l):(u=l.getTweensOf(a,s)).length&&o.push.apply(o,u),l=l._next;return o},n.tweenTo=function(i,s){s=s||{};var o=this,a=Yi(o,i),l=s,c=l.startAt,u=l.onStart,h=l.onStartParams,d=l.immediateRender,m,v=Wn.to(o,as({ease:s.ease||"none",lazy:!1,immediateRender:!1,time:a,overwrite:"auto",duration:s.duration||Math.abs((a-(c&&"time"in c?c.time:o._time))/o.timeScale())||tn,onStart:function(){if(o.pause(),!m){var g=s.duration||Math.abs((a-(c&&"time"in c?c.time:o._time))/o.timeScale());v._dur!==g&&mu(v,g,0,1).render(v._time,!0,!0),m=1}u&&u.apply(v,h||[])}},s));return d?v.render(0):v},n.tweenFromTo=function(i,s,o){return this.tweenTo(s,as({startAt:{time:Yi(this,i)}},o))},n.recent=function(){return this._recent},n.nextLabel=function(i){return i===void 0&&(i=this._time),Nw(this,Yi(this,i))},n.previousLabel=function(i){return i===void 0&&(i=this._time),Nw(this,Yi(this,i),1)},n.currentLabel=function(i){return arguments.length?this.seek(i,!0):this.previousLabel(this._time+tn)},n.shiftChildren=function(i,s,o){o===void 0&&(o=0);for(var a=this._first,l=this.labels,c;a;)a._start>=o&&(a._start+=i,a._end+=i),a=a._next;if(s)for(c in l)l[c]>=o&&(l[c]+=i);return Cl(this)},n.invalidate=function(i){var s=this._first;for(this._lock=0;s;)s.invalidate(i),s=s._next;return t.prototype.invalidate.call(this,i)},n.clear=function(i){i===void 0&&(i=!0);for(var s=this._first,o;s;)o=s._next,this.remove(s),s=o;return this._dp&&(this._time=this._tTime=this._pTime=0),i&&(this.labels={}),Cl(this)},n.totalDuration=function(i){var s=0,o=this,a=o._last,l=Ji,c,u,h;if(arguments.length)return o.timeScale((o._repeatl&&o._sort&&a._ts&&!o._lock?(o._lock=1,$s(o,a,u-a._delay,1)._lock=0):l=u,us&&a._ts&&(s=a._end),a=c;mu(o,o===_n&&o._time>s?o._time:s,1,1),o._dirty=0}return o._tDur},e.updateRoot=function(i){if(_n._ts&&(o2(_n,Hp(i,_n)),i2=Pi.frame),Pi.frame>=Rw){Rw+=Oi.autoSleep||120;var s=_n._first;if((!s||!s._ts)&&Oi.autoSleep&&Pi._listeners.length<2){for(;s&&!s._ts;)s=s._next;s||Pi.sleep()}}},e}(of);as(Yr.prototype,{_lock:0,_hasPause:0,_forcing:0});var YO=function(e,n,r,i,s,o,a){var l=new di(this._pt,e,n,0,1,O2,null,s),c=0,u=0,h,d,m,v,p,g,f,x;for(l.b=r,l.e=i,r+="",i+="",(f=~i.indexOf("random("))&&(i=rf(i)),o&&(x=[r,i],o(x,e,n),r=x[0],i=x[1]),d=r.match(eg)||[];h=eg.exec(i);)v=h[0],p=i.substring(c,h.index),m?m=(m+1)%5:p.substr(-5)==="rgba("&&(m=1),v!==d[u++]&&(g=parseFloat(d[u-1])||0,l._pt={_next:l._pt,p:p||u===1?p:",",s:g,c:v.charAt(1)==="="?Qc(g,v)-g:parseFloat(v)-g,m:m&&m<4?Math.round:0},c=eg.lastIndex);return l.c=c<i.length?i.substring(c,i.length):"",l.fp=a,(JT.test(i)||f)&&(l.e=0),this._pt=l,l},Qx=function(e,n,r,i,s,o,a,l,c,u){Cn(i)&&(i=i(s||0,e,o));var h=e[n],d=r!=="get"?r:Cn(h)?c?e[n.indexOf("set")||!Cn(e["get"+n.substr(3)])?n:"get"+n.substr(3)](c):e[n]():h,m=Cn(h)?c?JO:L2:ey,v;if(cr(i)&&(~i.indexOf("random(")&&(i=rf(i)),i.charAt(1)==="="&&(v=Qc(d,i)+(Dr(d)||0),(v||v===0)&&(i=v))),!u||d!==i||u_)return!isNaN(d*i)&&i!==""?(v=new di(this._pt,e,n,+d||0,i-(d||0),typeof h=="boolean"?tU:N2,0,m),c&&(v.fp=c),a&&v.modifier(a,this,e),this._pt=v):(!h&&!(n in e)&&Yx(n,i),YO.call(this,e,n,d,i,m,l||Oi.stringFilter,c))},qO=function(e,n,r,i,s){if(Cn(e)&&(e=Ld(e,s,n,r,i)),!to(e)||e.style&&e.nodeType||Nr(e)||ZT(e))return cr(e)?Ld(e,s,n,r,i):e;var o={},a;for(a in e)o[a]=Ld(e[a],s,n,r,i);return o},R2=function(e,n,r,i,s,o){var a,l,c,u;if(Ai[e]&&(a=new Ai[e]).init(s,a.rawVars?n[e]:qO(n[e],i,s,o,r),r,i,o)!==!1&&(r._pt=l=new di(r._pt,s,e,0,1,a.render,a,0,a.priority),r!==Hc))for(c=r._ptLookup[r._targets.indexOf(s)],u=a._props.length;u--;)c[a._props[u]]=l;return a},ha,u_,Jx=function t(e,n,r){var i=e.vars,s=i.ease,o=i.startAt,a=i.immediateRender,l=i.lazy,c=i.onUpdate,u=i.runBackwards,h=i.yoyoEase,d=i.keyframes,m=i.autoRevert,v=e._dur,p=e._startAt,g=e._targets,f=e.parent,x=f&&f.data==="nested"?f.vars.targets:g,_=e._overwrite==="auto"&&!Gx,y=e.timeline,w,T,b,E,M,S,P,V,H,G,$,F,W;if(y&&(!d||!s)&&(s="none"),e._ease=Al(s,hu.ease),e._yEase=h?M2(Al(h===!0?s:h,hu.ease)):0,h&&e._yoyo&&!e._repeat&&(h=e._yEase,e._yEase=e._ease,e._ease=h),e._from=!y&&!!i.runBackwards,!y||d&&!i.stagger){if(V=g[0]?Tl(g[0]).harness:0,F=V&&i[V.prop],w=Vp(i,qx),p&&(p._zTime<0&&p.progress(1),n<0&&u&&a&&!m?p.render(-1,!0):p.revert(u&&v?ap:bO),p._lazy=0),o){if(La(e._startAt=Wn.set(g,as({data:"isStart",overwrite:!1,parent:f,immediateRender:!0,lazy:!p&&ci(l),startAt:null,delay:0,onUpdate:c&&function(){return Li(e,"onUpdate")},stagger:0},o))),e._startAt._dp=0,e._startAt._sat=e,n<0&&(Lr||!a&&!m)&&e._startAt.revert(ap),a&&v&&n<=0&&r<=0){n&&(e._zTime=n);return}}else if(u&&v&&!p){if(n&&(a=!1),b=as({overwrite:!1,data:"isFromStart",lazy:a&&!p&&ci(l),immediateRender:a,stagger:0,parent:f},w),F&&(b[V.prop]=F),La(e._startAt=Wn.set(g,b)),e._startAt._dp=0,e._startAt._sat=e,n<0&&(Lr?e._startAt.revert(ap):e._startAt.render(-1,!0)),e._zTime=n,!a)t(e._startAt,tn,tn);else if(!n)return}for(e._pt=e._ptCache=0,l=v&&ci(l)||l&&!v,T=0;T<g.length;T++){if(M=g[T],P=M._gsap||Zx(g)[T]._gsap,e._ptLookup[T]=G={},i_[P.id]&&Ta.length&&Bp(),$=x===g?T:x.indexOf(M),V&&(H=new V).init(M,F||w,e,$,x)!==!1&&(e._pt=E=new di(e._pt,M,H.name,0,1,H.render,H,0,H.priority),H._props.forEach(function(A){G[A]=E}),H.priority&&(S=1)),!V||F)for(b in w)Ai[b]&&(H=R2(b,w,e,$,M,x))?H.priority&&(S=1):G[b]=E=Qx.call(e,M,b,"get",w[b],$,x,0,i.stringFilter);e._op&&e._op[T]&&e.kill(M,e._op[T]),_&&e._pt&&(ha=e,_n.killTweensOf(M,G,e.globalTime(n)),W=!e.parent,ha=0),e._pt&&l&&(i_[P.id]=1)}S&&U2(e),e._onInit&&e._onInit(e)}e._onUpdate=c,e._initted=(!e._op||e._pt)&&!W,d&&n<=0&&y.render(Ji,!0,!0)},KO=function(e,n,r,i,s,o,a,l){var c=(e._pt&&e._ptCache||(e._ptCache={}))[n],u,h,d,m;if(!c)for(c=e._ptCache[n]=[],d=e._ptLookup,m=e._targets.length;m--;){if(u=d[m][n],u&&u.d&&u.d._pt)for(u=u.d._pt;u&&u.p!==n&&u.fp!==n;)u=u._next;if(!u)return u_=1,e.vars[n]="+=0",Jx(e,a),u_=0,l?tf(n+" not eligible for reset"):1;c.push(u)}for(m=c.length;m--;)h=c[m],u=h._pt||h,u.s=(i||i===0)&&!s?i:u.s+(i||0)+o*u.c,u.c=r-u.s,h.e&&(h.e=Ln(r)+Dr(h.e)),h.b&&(h.b=u.s+Dr(h.b))},ZO=function(e,n){var r=e[0]?Tl(e[0]).harness:0,i=r&&r.aliases,s,o,a,l;if(!i)return n;s=Bl({},n);for(o in i)if(o in s)for(l=i[o].split(","),a=l.length;a--;)s[l[a]]=s[o];return s},QO=function(e,n,r,i){var s=n.ease||i||"power1.inOut",o,a;if(Nr(n))a=r[e]||(r[e]=[]),n.forEach(function(l,c){return a.push({t:c/(n.length-1)*100,v:l,e:s})});else for(o in n)a=r[o]||(r[o]=[]),o==="ease"||a.push({t:parseFloat(e),v:n[o],e:s})},Ld=function(e,n,r,i,s){return Cn(e)?e.call(n,r,i,s):cr(e)&&~e.indexOf("random(")?rf(e):e},P2=Kx+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert",D2={};ui(P2+",id,stagger,delay,duration,paused,scrollTrigger",function(t){return D2[t]=1});var Wn=function(t){qT(e,t);function e(r,i,s,o){var a;typeof i=="number"&&(s.duration=i,i=s,s=null),a=t.call(this,o?i:Pd(i))||this;var l=a.vars,c=l.duration,u=l.delay,h=l.immediateRender,d=l.stagger,m=l.overwrite,v=l.keyframes,p=l.defaults,g=l.scrollTrigger,f=l.yoyoEase,x=i.parent||_n,_=(Nr(r)||ZT(r)?Do(r[0]):"length"in i)?[r]:es(r),y,w,T,b,E,M,S,P;if(a._targets=_.length?Zx(_):tf("GSAP target "+r+" not found. https://gsap.com",!Oi.nullTargetWarn)||[],a._ptLookup=[],a._overwrite=m,v||d||xh(c)||xh(u)){if(i=a.vars,y=a.timeline=new Yr({data:"nested",defaults:p||{},targets:x&&x.data==="nested"?x.vars.targets:_}),y.kill(),y.parent=y._dp=vo(a),y._start=0,d||xh(c)||xh(u)){if(b=_.length,S=d&&m2(d),to(d))for(E in d)~P2.indexOf(E)&&(P||(P={}),P[E]=d[E]);for(w=0;w")}),y.duration();else{T={};for(E in v)E==="ease"||E==="easeEach"||QO(E,v[E],T,v.easeEach);for(E in T)for(H=T[E].sort(function(F,W){return F.t-W.t}),V=0,w=0;w<H.length;w++)G=H[w],$={ease:G.e,duration:(G.t-(w?H[w-1].t:0))/100*c},$[E]=G.v,y.to(_,$,V),V+=$.duration;y.duration()<c&&y.to({},{duration:c-y.duration()})}}c||a.duration(c=y.duration())}else a.timeline=0;return m===!0&&!Gx&&(ha=vo(a),_n.killTweensOf(_),ha=0),$s(x,vo(a),s),i.reversed&&a.reverse(),i.paused&&a.paused(!0),(h||!c&&!v&&a._start===ar(x._time)&&ci(h)&&RO(vo(a))&&x.data!=="nested")&&(a._tTime=-tn,a.render(Math.max(0,-u)||0)),g&&d2(vo(a),g),a}var n=e.prototype;return n.render=function(i,s,o){var a=this._time,l=this._tDur,c=this._dur,u=il-tn&&!u?l:i<tn?0:i,d,m,v,p,g,f,x,_,y;if(!c)DO(this,i,s,o);else if(h!==this._tTime||!i||o||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==u){if(d=h,_=this.timeline,this._repeat){if(p=c+this._rDelay,this._repeatc&&(d=c)),f=this._yoyo&&v&1,f&&(y=this._yEase,d=c-d),g=pu(this._tTime,p),d===a&&!o&&this._initted&&v===g)return this._tTime=h,this;v!==g&&(_&&this._yEase&&T2(_,f),this.vars.repeatRefresh&&!f&&!this._lock&&this._time!==p&&this._initted&&(this._lock=o=1,this.render(ar(p*v),!0).invalidate()._lock=0))}if(!this._initted){if(f2(this,u?i:d,o,s,h))return this._tTime=0,this;if(a!==this._time&&!(o&&this.vars.repeatRefresh&&v!==g))return this;if(c!==this._dur)return this.render(i,s,o)}if(this._tTime=h,this._time=d,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=x=(y||this._ease)(d/c),this._from&&(this.ratio=x=1-x),d&&!a&&!s&&!v&&(Li(this,"onStart"),this._tTime!==h))return this;for(m=this._pt;m;)m.r(x,m.d),m=m._next;_&&_.render(i0||!h&&this._ts<0)&&La(this,1),!s&&!(u&&!a)&&(h||a||f)&&(Li(this,h===l?"onComplete":"onReverseComplete",!0),this._prom&&!(h0)&&this._prom()))}return this},n.targets=function(){return this._targets},n.invalidate=function(i){return(!i||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(i),t.prototype.invalidate.call(this,i)},n.resetTo=function(i,s,o,a,l){sf||Pi.wake(),this._ts||this.play();var c=Math.min(this._dur,(this._dp._time-this._start)*this._ts),u;return this._initted||Jx(this,c),u=this._ease(c/this._dur),KO(this,i,s,o,a,u,c,l)?this.resetTo(i,s,o,a,1):(Wm(this,0),this.parent||c2(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},n.kill=function(i,s){if(s===void 0&&(s="all"),!i&&(!s||s==="all"))return this._lazy=this._pt=0,this.parent?gd(this):this;if(this.timeline){var o=this.timeline.totalDuration();return this.timeline.killTweensOf(i,s,ha&&ha.vars.overwrite!==!0)._first||gd(this),this.parent&&o!==this.timeline.totalDuration()&&mu(this,this._dur*this.timeline._tDur/o,0,1),this}var a=this._targets,l=i?es(i):a,c=this._ptLookup,u=this._pt,h,d,m,v,p,g,f;if((!s||s==="all")&&CO(a,l))return s==="all"&&(this._pt=0),gd(this);for(h=this._op=this._op||[],s!=="all"&&(cr(s)&&(p={},ui(s,function(x){return p[x]=1}),s=p),s=ZO(a,s)),f=a.length;f--;)if(~l.indexOf(a[f])){d=c[f],s==="all"?(h[f]=s,v=d,m={}):(m=h[f]=h[f]||{},v=s);for(p in v)g=d&&d[p],g&&((!("kill"in g.d)||g.d.kill(p)===!0)&&Vm(this,g,"_pt"),delete d[p]),m!=="all"&&(m[p]=1)}return this._initted&&!this._pt&&u&&gd(this),this},e.to=function(i,s){return new e(i,s,arguments[2])},e.from=function(i,s){return Dd(1,arguments)},e.delayedCall=function(i,s,o,a){return new e(s,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:i,onComplete:s,onReverseComplete:s,onCompleteParams:o,onReverseCompleteParams:o,callbackScope:a})},e.fromTo=function(i,s,o){return Dd(2,arguments)},e.set=function(i,s){return s.duration=0,s.repeatDelay||(s.repeat=0),new e(i,s)},e.killTweensOf=function(i,s,o){return _n.killTweensOf(i,s,o)},e}(of);as(Wn.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0});ui("staggerTo,staggerFrom,staggerFromTo",function(t){Wn[t]=function(){var e=new Yr,n=a_.call(arguments,0);return n.splice(t==="staggerFromTo"?5:4,0,0),e[t].apply(e,n)}});var ey=function(e,n,r){return e[n]=r},L2=function(e,n,r){return e[n](r)},JO=function(e,n,r,i){return e[n](i.fp,r)},eU=function(e,n,r){return e.setAttribute(n,r)},ty=function(e,n){return Cn(e[n])?L2:$x(e[n])&&e.setAttribute?eU:ey},N2=function(e,n){return n.set(n.t,n.p,Math.round((n.s+n.c*e)*1e6)/1e6,n)},tU=function(e,n){return n.set(n.t,n.p,!!(n.s+n.c*e),n)},O2=function(e,n){var r=n._pt,i="";if(!e&&n.b)i=n.b;else if(e===1&&n.e)i=n.e;else{for(;r;)i=r.p+(r.m?r.m(r.s+r.c*e):Math.round((r.s+r.c*e)*1e4)/1e4)+i,r=r._next;i+=n.c}n.set(n.t,n.p,i,n)},ny=function(e,n){for(var r=n._pt;r;)r.r(e,r.d),r=r._next},nU=function(e,n,r,i){for(var s=this._pt,o;s;)o=s._next,s.p===i&&s.modifier(e,n,r),s=o},rU=function(e){for(var n=this._pt,r,i;n;)i=n._next,n.p===e&&!n.op||n.op===e?Vm(this,n,"_pt"):n.dep||(r=1),n=i;return!r},iU=function(e,n,r,i){i.mSet(e,n,i.m.call(i.tween,r,i.mt),i)},U2=function(e){for(var n=e._pt,r,i,s,o;n;){for(r=n._next,i=s;i&&i.pr>n.pr;)i=i._next;(n._prev=i?i._prev:o)?n._prev._next=n:s=n,(n._next=i)?i._prev=n:o=n,n=r}e._pt=s},di=function(){function t(n,r,i,s,o,a,l,c,u){this.t=r,this.s=s,this.c=o,this.p=i,this.r=a||N2,this.d=l||this,this.set=c||ey,this.pr=u||0,this._next=n,n&&(n._prev=this)}var e=t.prototype;return e.modifier=function(r,i,s){this.mSet=this.mSet||this.set,this.set=iU,this.m=r,this.mt=s,this.tween=i},t}();ui(Kx+"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 qx[t]=1});ki.TweenMax=ki.TweenLite=Wn;ki.TimelineLite=ki.TimelineMax=Yr;_n=new Yr({sortChildren:!1,defaults:hu,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0});Oi.stringFilter=E2;var Rl=[],cp={},sU=[],Uw=0,oU=0,sg=function(e){return(cp[e]||sU).map(function(n){return n()})},d_=function(){var e=Date.now(),n=[];e-Uw>2&&(sg("matchMediaInit"),Rl.forEach(function(r){var i=r.queries,s=r.conditions,o,a,l,c;for(a in i)o=Bs.matchMedia(i[a]).matches,o&&(l=1),o!==s[a]&&(s[a]=o,c=1);c&&(r.revert(),l&&n.push(r))}),sg("matchMediaRevert"),n.forEach(function(r){return r.onMatch(r,function(i){return r.add(null,i)})}),Uw=e,sg("matchMedia"))},I2=function(){function t(n,r){this.selector=r&&l_(r),this.data=[],this._r=[],this.isReverted=!1,this.id=oU++,n&&this.add(n)}var e=t.prototype;return e.add=function(r,i,s){Cn(r)&&(s=i,i=r,r=Cn);var o=this,a=function(){var c=hn,u=o.selector,h;return c&&c!==o&&c.data.push(o),s&&(o.selector=l_(s)),hn=o,h=i.apply(o,arguments),Cn(h)&&o._r.push(h),hn=c,o.selector=u,o.isReverted=!1,h};return o.last=a,r===Cn?a(o,function(l){return o.add(null,l)}):r?o[r]=a:a},e.ignore=function(r){var i=hn;hn=null,r(this),hn=i},e.getTweens=function(){var r=[];return this.data.forEach(function(i){return i instanceof t?r.push.apply(r,i.getTweens()):i instanceof Wn&&!(i.parent&&i.parent.data==="nested")&&r.push(i)}),r},e.clear=function(){this._r.length=this.data.length=0},e.kill=function(r,i){var s=this;if(r?function(){for(var a=s.getTweens(),l=s.data.length,c;l--;)c=s.data[l],c.data==="isFlip"&&(c.revert(),c.getChildren(!0,!0,!1).forEach(function(u){return a.splice(a.indexOf(u),1)}));for(a.map(function(u){return{g:u._dur||u._delay||u._sat&&!u._sat.vars.immediateRender?u.globalTime(0):-1/0,t:u}}).sort(function(u,h){return h.g-u.g||-1/0}).forEach(function(u){return u.t.revert(r)}),l=s.data.length;l--;)c=s.data[l],c instanceof Yr?c.data!=="nested"&&(c.scrollTrigger&&c.scrollTrigger.revert(),c.kill()):!(c instanceof Wn)&&c.revert&&c.revert(r);s._r.forEach(function(u){return u(r,s)}),s.isReverted=!0}():this.data.forEach(function(a){return a.kill&&a.kill()}),this.clear(),i)for(var o=Rl.length;o--;)Rl[o].id===this.id&&Rl.splice(o,1)},e.revert=function(r){this.kill(r||{})},t}(),aU=function(){function t(n){this.contexts=[],this.scope=n,hn&&hn.data.push(this)}var e=t.prototype;return e.add=function(r,i,s){to(r)||(r={matches:r});var o=new I2(0,s||this.scope),a=o.conditions={},l,c,u;hn&&!o.selector&&(o.selector=hn.selector),this.contexts.push(o),i=o.add("onMatch",i),o.queries=r;for(c in r)c==="all"?u=1:(l=Bs.matchMedia(r[c]),l&&(Rl.indexOf(o)<0&&Rl.push(o),(a[c]=l.matches)&&(u=1),l.addListener?l.addListener(d_):l.addEventListener("change",d_)));return u&&i(o,function(h){return o.add(null,h)}),this},e.revert=function(r){this.kill(r||{})},e.kill=function(r){this.contexts.forEach(function(i){return i.kill(r,!0)})},t}(),Wp={registerPlugin:function(){for(var e=arguments.length,n=new Array(e),r=0;r1){var i=e.map(function(u){return mi.quickSetter(u,n,r)}),s=i.length;return function(u){for(var h=s;h--;)i[h](u)}}e=e[0]||{};var o=Ai[n],a=Tl(e),l=a.harness&&(a.harness.aliases||{})[n]||n,c=o?function(u){var h=new o;Hc._pt=0,h.init(e,r?u+r:u,Hc,0,[e]),h.render(1,h),Hc._pt&&ny(1,Hc)}:a.set(e,l);return o?c:function(u){return c(e,l,r?u+r:u,a,1)}},quickTo:function(e,n,r){var i,s=mi.to(e,Bl((i={},i[n]="+=0.1",i.paused=!0,i),r||{})),o=function(l,c,u){return s.resetTo(n,l,c,u)};return o.tween=s,o},isTweening:function(e){return _n.getTweensOf(e,!0).length>0},defaults:function(e){return e&&e.ease&&(e.ease=Al(e.ease,hu.ease)),Pw(hu,e||{})},config:function(e){return Pw(Oi,e||{})},registerEffect:function(e){var n=e.name,r=e.effect,i=e.plugins,s=e.defaults,o=e.extendTimeline;(i||"").split(",").forEach(function(a){return a&&!Ai[a]&&!ki[a]&&tf(n+" effect requires "+a+" plugin.")}),tg[n]=function(a,l,c){return r(es(a),as(l||{},s),c)},o&&(Yr.prototype[n]=function(a,l,c){return this.add(tg[n](a,to(l)?l:(c=l)&&{},this),c)})},registerEase:function(e,n){Ut[e]=Al(n)},parseEase:function(e,n){return arguments.length?Al(e,n):Ut},getById:function(e){return _n.getById(e)},exportRoot:function(e,n){e===void 0&&(e={});var r=new Yr(e),i,s;for(r.smoothChildTiming=ci(e.smoothChildTiming),_n.remove(r),r._dp=0,r._time=r._tTime=_n._time,i=_n._first;i;)s=i._next,(n||!(!i._dur&&i instanceof Wn&&i.vars.onComplete===i._targets[0]))&&$s(r,i,i._start-i._delay),i=s;return $s(_n,r,0),r},context:function(e,n){return e?new I2(e,n):hn},matchMedia:function(e){return new aU(e)},matchMediaRefresh:function(){return Rl.forEach(function(e){var n=e.conditions,r,i;for(i in n)n[i]&&(n[i]=!1,r=1);r&&e.revert()})||d_()},addEventListener:function(e,n){var r=cp[e]||(cp[e]=[]);~r.indexOf(n)||r.push(n)},removeEventListener:function(e,n){var r=cp[e],i=r&&r.indexOf(n);i>=0&&r.splice(i,1)},utils:{wrap:zO,wrapYoyo:BO,distribute:m2,random:v2,snap:g2,normalize:FO,getUnit:Dr,clamp:OO,splitColor:S2,toArray:es,selector:l_,mapRange:x2,pipe:IO,unitize:kO,interpolate:VO,shuffle:p2},install:n2,effects:tg,ticker:Pi,updateRoot:Yr.updateRoot,plugins:Ai,globalTimeline:_n,core:{PropTween:di,globals:r2,Tween:Wn,Timeline:Yr,Animation:of,getCache:Tl,_removeLinkedListItem:Vm,reverting:function(){return Lr},context:function(e){return e&&hn&&(hn.data.push(e),e._ctx=hn),hn},suppressOverwrites:function(e){return Gx=e}}};ui("to,from,fromTo,delayedCall,set,killTweensOf",function(t){return Wp[t]=Wn[t]});Pi.add(Yr.updateRoot);Hc=Wp.to({},{duration:0});var lU=function(e,n){for(var r=e._pt;r&&r.p!==n&&r.op!==n&&r.fp!==n;)r=r._next;return r},cU=function(e,n){var r=e._targets,i,s,o;for(i in n)for(s=r.length;s--;)o=e._ptLookup[s][i],o&&(o=o.d)&&(o._pt&&(o=lU(o,i)),o&&o.modifier&&o.modifier(n[i],e,r[s],i))},og=function(e,n){return{name:e,rawVars:1,init:function(i,s,o){o._onInit=function(a){var l,c;if(cr(s)&&(l={},ui(s,function(u){return l[u]=1}),s=l),n){l={};for(c in s)l[c]=n(s[c]);s=l}cU(a,s)}}}},mi=Wp.registerPlugin({name:"attr",init:function(e,n,r,i,s){var o,a,l;this.tween=r;for(o in n)l=e.getAttribute(o)||"",a=this.add(e,"setAttribute",(l||0)+"",n[o],i,s,0,0,o),a.op=o,a.b=l,this._props.push(o)},render:function(e,n){for(var r=n._pt;r;)Lr?r.set(r.t,r.p,r.b,r):r.r(e,r.d),r=r._next}},{name:"endArray",init:function(e,n){for(var r=n.length;r--;)this.add(e,r,e[r]||0,n[r],0,0,0,0,0,1)}},og("roundProps",c_),og("modifiers"),og("snap",g2))||Wp;Wn.version=Yr.version=mi.version="3.12.5";t2=1;jx()&&gu();Ut.Power0;Ut.Power1;Ut.Power2;Ut.Power3;Ut.Power4;Ut.Linear;Ut.Quad;Ut.Cubic;Ut.Quart;Ut.Quint;Ut.Strong;Ut.Elastic;Ut.Back;Ut.SteppedEase;Ut.Bounce;Ut.Sine;Ut.Expo;Ut.Circ;/*!
* CSSPlugin 3.12.5
* https://gsap.com
*
* Copyright 2008-2024, GreenSock. All rights reserved.
* Subject to the terms at https://gsap.com/standard-license or for
* Club GSAP members, the agreement issued with that membership.
* @author: Jack Doyle, jack@greensock.com
*/var Iw,pa,Jc,ry,yl,kw,iy,uU=function(){return typeof window<"u"},Lo={},ul=180/Math.PI,eu=Math.PI/180,lc=Math.atan2,Fw=1e8,sy=/([A-Z])/g,dU=/(left|right|width|margin|padding|x)/i,fU=/[\s,\(]\S/,qs={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},f_=function(e,n){return n.set(n.t,n.p,Math.round((n.s+n.c*e)*1e4)/1e4+n.u,n)},hU=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)},pU=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)},mU=function(e,n){var r=n.s+n.c*e;n.set(n.t,n.p,~~(r+(r=0)return;o.svg&&(this.svgo=i.getAttribute("data-svg-origin"),this.props.push(fi,n,"")),e=yn}(s||n)&&this.props.push(e,n,s[e])},z2=function(e){e.translate&&(e.removeProperty("translate"),e.removeProperty("scale"),e.removeProperty("rotate"))},bU=function(){var e=this.props,n=this.target,r=n.style,i=n._gsap,s,o;for(s=0;s<e.length;s+=3)e[s+1]?n[e[s]]=e[s+2]:e[s+2]?r[e[s]]=e[s+2]:r.removeProperty(e[s].substr(0,2)==="--"?e[s]:e[s].replace(sy,"-$1").toLowerCase());if(this.tfm){for(o in this.tfm)i[o]=this.tfm[o];i.svg&&(i.renderTransform(),n.setAttribute("data-svg-origin",this.svgo||"")),s=iy(),(!s||!s.isStart)&&!r[yn]&&(z2(r),i.zOrigin&&r[fi]&&(r[fi]+=" "+i.zOrigin+"px",i.zOrigin=0,i.renderTransform()),i.uncache=1)}},B2=function(e,n){var r={target:e,props:[],revert:bU,save:SU};return e._gsap||mi.core.getCache(e),n&&n.split(",").forEach(function(i){return r.save(i)}),r},V2,h_=function(e,n){var r=pa.createElementNS?pa.createElementNS((n||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),e):pa.createElement(e);return r&&r.style?r:pa.createElement(e)},Js=function t(e,n,r){var i=getComputedStyle(e);return i[n]||i.getPropertyValue(n.replace(sy,"-$1").toLowerCase())||i.getPropertyValue(n)||!r&&t(e,vu(n)||n,1)||""},zw="O,Moz,ms,Ms,Webkit".split(","),vu=function(e,n,r){var i=n||yl,s=i.style,o=5;if(e in s&&!r)return e;for(e=e.charAt(0).toUpperCase()+e.substr(1);o--&&!(zw[o]+e in s););return o=0?zw[o]:"")+e},p_=function(){uU()&&window.document&&(Iw=window,pa=Iw.document,Jc=pa.documentElement,yl=h_("div")||{style:{}},h_("div"),yn=vu(yn),fi=yn+"Origin",yl.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",V2=!!vu("perspective"),iy=mi.core.reverting,ry=1)},ag=function t(e){var n=h_("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),r=this.parentNode,i=this.nextSibling,s=this.style.cssText,o;if(Jc.appendChild(n),n.appendChild(this),this.style.display="block",e)try{o=this.getBBox(),this._gsapBBox=this.getBBox,this.getBBox=t}catch{}else this._gsapBBox&&(o=this._gsapBBox());return r&&(i?r.insertBefore(this,i):r.appendChild(this)),Jc.removeChild(n),this.style.cssText=s,o},Bw=function(e,n){for(var r=n.length;r--;)if(e.hasAttribute(n[r]))return e.getAttribute(n[r])},H2=function(e){var n;try{n=e.getBBox()}catch{n=ag.call(e,!0)}return n&&(n.width||n.height)||e.getBBox===ag||(n=ag.call(e,!0)),n&&!n.width&&!n.x&&!n.y?{x:+Bw(e,["x","cx","x1"])||0,y:+Bw(e,["y","cy","y1"])||0,width:0,height:0}:n},W2=function(e){return!!(e.getCTM&&(!e.parentNode||e.ownerSVGElement)&&H2(e))},Vl=function(e,n){if(n){var r=e.style,i;n in Lo&&n!==fi&&(n=yn),r.removeProperty?(i=n.substr(0,2),(i==="ms"||n.substr(0,6)==="webkit")&&(n="-"+n),r.removeProperty(i==="--"?n:n.replace(sy,"-$1").toLowerCase())):r.removeAttribute(n)}},ma=function(e,n,r,i,s,o){var a=new di(e._pt,n,r,0,1,o?F2:k2);return e._pt=a,a.b=i,a.e=s,e._props.push(r),a},Vw={deg:1,rad:1,turn:1},EU={grid:1,flex:1},Na=function t(e,n,r,i){var s=parseFloat(r)||0,o=(r+"").trim().substr((s+"").length)||"px",a=yl.style,l=dU.test(n),c=e.tagName.toLowerCase()==="svg",u=(c?"client":"offset")+(l?"Width":"Height"),h=100,d=i==="px",m=i==="%",v,p,g,f;if(i===o||!s||Vw[i]||Vw[o])return s;if(o!=="px"&&!d&&(s=t(e,n,r,"px")),f=e.getCTM&&W2(e),(m||o==="%")&&(Lo[n]||~n.indexOf("adius")))return v=f?e.getBBox()[l?"width":"height"]:e[u],Ln(m?s/v*h:s/100*v);if(a[l?"width":"height"]=h+(d?o:i),p=~n.indexOf("adius")||i==="em"&&e.appendChild&&!c?e:e.parentNode,f&&(p=(e.ownerSVGElement||{}).parentNode),(!p||p===pa||!p.appendChild)&&(p=pa.body),g=p._gsap,g&&m&&g.width&&l&&g.time===Pi.time&&!g.uncache)return Ln(s/g.width*h);if(m&&(n==="height"||n==="width")){var x=e.style[n];e.style[n]=h+i,v=e[u],x?e.style[n]=x:Vl(e,n)}else(m||o==="%")&&!EU[Js(p,"display")]&&(a.position=Js(e,"position")),p===e&&(a.position="static"),p.appendChild(yl),v=yl[u],p.removeChild(yl),a.position="absolute";return l&&m&&(g=Tl(p),g.time=Pi.time,g.width=p[u]),Ln(d?v*s/h:v&&s?h/v*s:0)},xo=function(e,n,r,i){var s;return ry||p_(),n in qs&&n!=="transform"&&(n=qs[n],~n.indexOf(",")&&(n=n.split(",")[0])),Lo[n]&&n!=="transform"?(s=lf(e,i),s=n!=="transformOrigin"?s[n]:s.svg?s.origin:$p(Js(e,fi))+" "+s.zOrigin+"px"):(s=e.style[n],(!s||s==="auto"||i||~(s+"").indexOf("calc("))&&(s=Gp[n]&&Gp[n](e,n,r)||Js(e,n)||s2(e,n)||(n==="opacity"?1:0))),r&&!~(s+"").trim().indexOf(" ")?Na(e,n,s,r)+r:s},MU=function(e,n,r,i){if(!r||r==="none"){var s=vu(n,e,1),o=s&&Js(e,s,1);o&&o!==r?(n=s,r=o):n==="borderColor"&&(r=Js(e,"borderTopColor"))}var a=new di(this._pt,e.style,n,0,1,O2),l=0,c=0,u,h,d,m,v,p,g,f,x,_,y,w;if(a.b=r,a.e=i,r+="",i+="",i==="auto"&&(p=e.style[n],e.style[n]=i,i=Js(e,n)||i,p?e.style[n]=p:Vl(e,n)),u=[r,i],E2(u),r=u[0],i=u[1],d=r.match(Vc)||[],w=i.match(Vc)||[],w.length){for(;h=Vc.exec(i);)g=h[0],x=i.substring(l,h.index),v?v=(v+1)%5:(x.substr(-5)==="rgba("||x.substr(-5)==="hsla(")&&(v=1),g!==(p=d[c++]||"")&&(m=parseFloat(p)||0,y=p.substr((m+"").length),g.charAt(1)==="="&&(g=Qc(m,g)+y),f=parseFloat(g),_=g.substr((f+"").length),l=Vc.lastIndex-_.length,_||(_=_||Oi.units[n]||y,l===i.length&&(i+=_,a.e+=_)),y!==_&&(m=Na(e,n,p,_)||0),a._pt={_next:a._pt,p:x||c===1?x:",",s:m,c:f-m,m:v&&v<4||n==="zIndex"?Math.round:0});a.c=l-1;)a=s[c],Lo[a]&&(l=1,a=a==="transformOrigin"?fi:yn),Vl(r,a);l&&(Vl(r,yn),o&&(o.svg&&r.removeAttribute("transform"),lf(r,1),o.uncache=1,z2(i)))}},Gp={clearProps:function(e,n,r,i,s){if(s.data!=="isFromStart"){var o=e._pt=new di(e._pt,n,r,0,0,CU);return o.u=i,o.pr=-10,o.tween=s,e._props.push(r),1}}},af=[1,0,0,1,0,0],G2={},$2=function(e){return e==="matrix(1, 0, 0, 1, 0, 0)"||e==="none"||!e},Ww=function(e){var n=Js(e,yn);return $2(n)?af:n.substr(7).match(QT).map(Ln)},oy=function(e,n){var r=e._gsap||Tl(e),i=e.style,s=Ww(e),o,a,l,c;return r.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"?af:s):(s===af&&!e.offsetParent&&e!==Jc&&!r.svg&&(l=i.display,i.display="block",o=e.parentNode,(!o||!e.offsetParent)&&(c=1,a=e.nextElementSibling,Jc.appendChild(e)),s=Ww(e),l?i.display=l:Vl(e,"display"),c&&(a?o.insertBefore(e,a):o?o.appendChild(e):Jc.removeChild(e))),n&&s.length>6?[s[0],s[1],s[4],s[5],s[12],s[13]]:s)},m_=function(e,n,r,i,s,o){var a=e._gsap,l=s||oy(e,!0),c=a.xOrigin||0,u=a.yOrigin||0,h=a.xOffset||0,d=a.yOffset||0,m=l[0],v=l[1],p=l[2],g=l[3],f=l[4],x=l[5],_=n.split(" "),y=parseFloat(_[0])||0,w=parseFloat(_[1])||0,T,b,E,M;r?l!==af&&(b=m*g-v*p)&&(E=y*(g/b)+w*(-p/b)+(p*x-g*f)/b,M=y*(-v/b)+w*(m/b)-(m*x-v*f)/b,y=E,w=M):(T=H2(e),y=T.x+(~_[0].indexOf("%")?y/100*T.width:y),w=T.y+(~(_[1]||_[0]).indexOf("%")?w/100*T.height:w)),i||i!==!1&&a.smooth?(f=y-c,x=w-u,a.xOffset=h+(f*m+x*p)-f,a.yOffset=d+(f*v+x*g)-x):a.xOffset=a.yOffset=0,a.xOrigin=y,a.yOrigin=w,a.smooth=!!i,a.origin=n,a.originIsAbsolute=!!r,e.style[fi]="0px 0px",o&&(ma(o,a,"xOrigin",c,y),ma(o,a,"yOrigin",u,w),ma(o,a,"xOffset",h,a.xOffset),ma(o,a,"yOffset",d,a.yOffset)),e.setAttribute("data-svg-origin",y+" "+w)},lf=function(e,n){var r=e._gsap||new A2(e);if("x"in r&&!n&&!r.uncache)return r;var i=e.style,s=r.scaleX359.9&&(g=p=0,f=180-f),m=Ln(Math.sqrt(P*P+V*V+H*H)),v=Ln(Math.sqrt(F*F+le*le)),E=lc($,F),x=Math.abs(E)>2e-4?E*ul:0,y=Q?1/(Q90&&Math.abs(x)<270&&(s?(m*=-1,x+=p<=0?180:-180,p+=p<=0?180:-180):(v*=-1,x+=x<=0?180:-180)),n=n||r.uncache,r.x=u-((r.xPercent=u&&(!n&&r.xPercent||(Math.round(e.offsetWidth/2)===Math.round(-u)?-50:0)))?e.offsetWidth*r.xPercent/100:0)+o,r.y=h-((r.yPercent=h&&(!n&&r.yPercent||(Math.round(e.offsetHeight/2)===Math.round(-h)?-50:0)))?e.offsetHeight*r.yPercent/100:0)+o,r.z=d+o,r.scaleX=Ln(m),r.scaleY=Ln(v),r.rotation=Ln(p)+a,r.rotationX=Ln(g)+a,r.rotationY=Ln(f)+a,r.skewX=x+a,r.skewY=_+a,r.transformPerspective=y+o,(r.zOrigin=parseFloat(c.split(" ")[2])||!n&&r.zOrigin||0)&&(i[fi]=$p(c)),r.xOffset=r.yOffset=0,r.force3D=Oi.force3D,r.renderTransform=r.svg?RU:V2?j2:AU,r.uncache=0,r},$p=function(e){return(e=e.split(" "))[0]+" "+e[1]},lg=function(e,n,r){var i=Dr(n);return Ln(parseFloat(n)+parseFloat(Na(e,"x",r+"px",i)))+i},AU=function(e,n){n.z="0px",n.rotationY=n.rotationX="0deg",n.force3D=0,j2(e,n)},el="0deg",od="0px",tl=") ",j2=function(e,n){var r=n||this,i=r.xPercent,s=r.yPercent,o=r.x,a=r.y,l=r.z,c=r.rotation,u=r.rotationY,h=r.rotationX,d=r.skewX,m=r.skewY,v=r.scaleX,p=r.scaleY,g=r.transformPerspective,f=r.force3D,x=r.target,_=r.zOrigin,y="",w=f==="auto"&&e&&e!==1||f===!0;if(_&&(h!==el||u!==el)){var T=parseFloat(u)*eu,b=Math.sin(T),E=Math.cos(T),M;T=parseFloat(h)*eu,M=Math.cos(T),o=lg(x,o,b*M*-_),a=lg(x,a,-Math.sin(T)*-_),l=lg(x,l,E*M*-_+_)}g!==od&&(y+="perspective("+g+tl),(i||s)&&(y+="translate("+i+"%, "+s+"%) "),(w||o!==od||a!==od||l!==od)&&(y+=l!==od||w?"translate3d("+o+", "+a+", "+l+") ":"translate("+o+", "+a+tl),c!==el&&(y+="rotate("+c+tl),u!==el&&(y+="rotateY("+u+tl),h!==el&&(y+="rotateX("+h+tl),(d!==el||m!==el)&&(y+="skew("+d+", "+m+tl),(v!==1||p!==1)&&(y+="scale("+v+", "+p+tl),x.style[yn]=y||"translate(0, 0)"},RU=function(e,n){var r=n||this,i=r.xPercent,s=r.yPercent,o=r.x,a=r.y,l=r.rotation,c=r.skewX,u=r.skewY,h=r.scaleX,d=r.scaleY,m=r.target,v=r.xOrigin,p=r.yOrigin,g=r.xOffset,f=r.yOffset,x=r.forceCSS,_=parseFloat(o),y=parseFloat(a),w,T,b,E,M;l=parseFloat(l),c=parseFloat(c),u=parseFloat(u),u&&(u=parseFloat(u),c+=u,l+=u),l||c?(l*=eu,c*=eu,w=Math.cos(l)*h,T=Math.sin(l)*h,b=Math.sin(l-c)*-d,E=Math.cos(l-c)*d,c&&(u*=eu,M=Math.tan(c-u),M=Math.sqrt(1+M*M),b*=M,E*=M,u&&(M=Math.tan(u),M=Math.sqrt(1+M*M),w*=M,T*=M)),w=Ln(w),T=Ln(T),b=Ln(b),E=Ln(E)):(w=h,E=d,T=b=0),(_&&!~(o+"").indexOf("px")||y&&!~(a+"").indexOf("px"))&&(_=Na(m,"x",o,"px"),y=Na(m,"y",a,"px")),(v||p||g||f)&&(_=Ln(_+v-(v*w+p*b)+g),y=Ln(y+p-(v*T+p*E)+f)),(i||s)&&(M=m.getBBox(),_=Ln(_+i/100*M.width),y=Ln(y+s/100*M.height)),M="matrix("+w+","+T+","+b+","+E+","+_+","+y+")",m.setAttribute("transform",M),x&&(m.style[yn]=M)},PU=function(e,n,r,i,s){var o=360,a=cr(s),l=parseFloat(s)*(a&&~s.indexOf("rad")?ul:1),c=l-i,u=i+c+"deg",h,d;return a&&(h=s.split("_")[1],h==="short"&&(c%=o,c!==c%(o/2)&&(c+=c<0?o:-o)),h==="cw"&&c0&&(c=(c-o*Fw)%o-~~(c/o)*o)),e._pt=d=new di(e._pt,n,r,i,c,hU),d.e=u,d.u="deg",e._props.push(r),d},Gw=function(e,n){for(var r in n)e[r]=n[r];return e},DU=function(e,n,r){var i=Gw({},r._gsap),s="perspective,force3D,transformOrigin,svgOrigin",o=r.style,a,l,c,u,h,d,m,v;i.svg?(c=r.getAttribute("transform"),r.setAttribute("transform",""),o[yn]=n,a=lf(r,1),Vl(r,yn),r.setAttribute("transform",c)):(c=getComputedStyle(r)[yn],o[yn]=n,a=lf(r,1),o[yn]=c);for(l in Lo)c=i[l],u=a[l],c!==u&&s.indexOf(l)<0&&(m=Dr(c),v=Dr(u),h=m!==v?Na(r,l,c,v):parseFloat(c),d=parseFloat(u),e._pt=new di(e._pt,a,l,h,d-h,f_),e._pt.u=v||0,e._props.push(l));Gw(a,i)};ui("padding,margin,Width,Radius",function(t,e){var n="Top",r="Right",i="Bottom",s="Left",o=(e<3?[n,r,i,s]:[n+s,n+r,i+r,i+s]).map(function(a){return e1?"border"+t:t]=function(a,l,c,u,h){var d,m;if(arguments.length<4)return d=o.map(function(v){return xo(a,v,c)}),m=d.join(" "),m.split(d[0]).length===5?d[0]:m;d=(u+"").split(" "),m={},o.forEach(function(v,p){return m[v]=d[p]=d[p]||d[(p-1)/2|0]}),a.init(l,m,h)}});var X2={name:"css",register:p_,targetTest:function(e){return e.style&&e.nodeType},init:function(e,n,r,i,s){var o=this._props,a=e.style,l=r.vars.startAt,c,u,h,d,m,v,p,g,f,x,_,y,w,T,b,E;ry||p_(),this.styles=this.styles||B2(e),E=this.styles.props,this.tween=r;for(p in n)if(p!=="autoRound"&&(u=n[p],!(Ai[p]&&R2(p,n,r,i,e,s)))){if(m=typeof u,v=Gp[p],m==="function"&&(u=u.call(r,i,e,s),m=typeof u),m==="string"&&~u.indexOf("random(")&&(u=rf(u)),v)v(this,e,p,u,r)&&(b=1);else if(p.substr(0,2)==="--")c=(getComputedStyle(e).getPropertyValue(p)+"").trim(),u+="",Ca.lastIndex=0,Ca.test(c)||(g=Dr(c),f=Dr(u)),f?g!==f&&(c=Na(e,p,c,f)+f):g&&(u+=g),this.add(a,"setProperty",c,u,i,s,0,0,p),o.push(p),E.push(p,0,a[p]);else if(m!=="undefined"){if(l&&p in l?(c=typeof l[p]=="function"?l[p].call(r,i,e,s):l[p],cr(c)&&~c.indexOf("random(")&&(c=rf(c)),Dr(c+"")||c==="auto"||(c+=Oi.units[p]||Dr(xo(e,p))||""),(c+"").charAt(1)==="="&&(c=xo(e,p))):c=xo(e,p),d=parseFloat(c),x=m==="string"&&u.charAt(1)==="="&&u.substr(0,2),x&&(u=u.substr(2)),h=parseFloat(u),p in qs&&(p==="autoAlpha"&&(d===1&&xo(e,"visibility")==="hidden"&&h&&(d=0),E.push("visibility",0,a.visibility),ma(this,a,"visibility",d?"inherit":"hidden",h?"inherit":"hidden",!h)),p!=="scale"&&p!=="transform"&&(p=qs[p],~p.indexOf(",")&&(p=p.split(",")[0]))),_=p in Lo,_){if(this.styles.save(p),y||(w=e._gsap,w.renderTransform&&!n.parseTransform||lf(e,n.parseTransform),T=n.smoothOrigin!==!1&&w.smooth,y=this._pt=new di(this._pt,a,yn,0,1,w.renderTransform,w,0,-1),y.dep=1),p==="scale")this._pt=new di(this._pt,w,"scaleY",w.scaleY,(x?Qc(w.scaleY,x+h):h)-w.scaleY||0,f_),this._pt.u=0,o.push("scaleY",p),p+="X";else if(p==="transformOrigin"){E.push(fi,0,a[fi]),u=TU(u),w.svg?m_(e,u,0,T,0,this):(f=parseFloat(u.split(" ")[2])||0,f!==w.zOrigin&&ma(this,w,"zOrigin",w.zOrigin,f),ma(this,a,p,$p(c),$p(u)));continue}else if(p==="svgOrigin"){m_(e,u,1,T,0,this);continue}else if(p in G2){PU(this,w,p,d,x?Qc(d,x+u):u);continue}else if(p==="smoothOrigin"){ma(this,w,"smooth",w.smooth,u);continue}else if(p==="force3D"){w[p]=u;continue}else if(p==="transform"){DU(this,u,e);continue}}else p in a||(p=vu(p)||p);if(_||(h||h===0)&&(d||d===0)&&!fU.test(u)&&p in a)g=(c+"").substr((d+"").length),h||(h=0),f=Dr(u)||(p in Oi.units?Oi.units[p]:g),g!==f&&(d=Na(e,p,c,f)),this._pt=new di(this._pt,_?w:a,p,d,(x?Qc(d,x+h):h)-d,!_&&(f==="px"||p==="zIndex")&&n.autoRound!==!1?mU:f_),this._pt.u=f||0,g!==f&&f!=="%"&&(this._pt.b=c,this._pt.r=pU);else if(p in a)MU.call(this,e,p,c,x?x+u:u);else if(p in e)this.add(e,p,c||e[p],x?x+u:u,i,s);else if(p!=="parseTransform"){Yx(p,u);continue}_||(p in a?E.push(p,0,a[p]):E.push(p,1,c||e[p])),o.push(p)}}b&&U2(this)},render:function(e,n){if(n.tween._time||!iy())for(var r=n._pt;r;)r.r(e,r.d),r=r._next;else n.styles.revert()},get:xo,aliases:qs,getSetter:function(e,n,r){var i=qs[n];return i&&i.indexOf(","){const{__scopeProgress:n,value:r,max:i,getValueLabel:s=kU,...o}=t,a=g_(i)?i:Gm,l=Z2(r,a)?r:null,c=jp(l)?s(l,a):void 0;return U.createElement(NU,{scope:n,value:l,max:a},U.createElement(Io.div,Un({"aria-valuemax":a,"aria-valuemin":0,"aria-valuenow":jp(l)?l:void 0,"aria-valuetext":c,role:"progressbar","data-state":K2(l,a),"data-value":l??void 0,"data-max":a},o,{ref:e})))});q2.propTypes={max(t,e,n){const r=t[e],i=String(r);return r&&!g_(r)?new Error(FU(i,n)):null},value(t,e,n){const r=t[e],i=String(r),s=g_(t.max)?t.max:Gm;return r!=null&&!Z2(r,s)?new Error(zU(i,n)):null}};const UU="ProgressIndicator",IU=U.forwardRef((t,e)=>{var n;const{__scopeProgress:r,...i}=t,s=OU(UU,r);return U.createElement(Io.div,Un({"data-state":K2(s.value,s.max),"data-value":(n=s.value)!==null&&n!==void 0?n:void 0,"data-max":s.max},i,{ref:e}))});function kU(t,e){return`${Math.round(t/e*100)}%`}function K2(t,e){return t==null?"indeterminate":t===e?"complete":"loading"}function jp(t){return typeof t=="number"}function g_(t){return jp(t)&&!isNaN(t)&&t>0}function Z2(t,e){return jp(t)&&!isNaN(t)&&t=0}function FU(t,e){return`Invalid prop \`max\` of value \`${t}\` supplied to \`${e}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${Gm}\`.`}function zU(t,e){return`Invalid prop \`value\` of value \`${t}\` supplied to \`${e}\`. The \`value\` prop must be:
- a positive number
- less than the value passed to \`max\` (or ${Gm} if no \`max\` prop is set)
- \`null\` if the progress is indeterminate.
Defaulting to \`null\`.`}const Q2=q2,J2=IU;function BU(){var t=U.useRef(!1),e=U.useCallback(function(){return t.current},[]);return U.useEffect(function(){return t.current=!0,function(){t.current=!1}},[]),e}var VU=function(t){t===void 0&&(t={});var e=U.useState(t),n=e[0],r=e[1],i=U.useCallback(function(s){r(function(o){return Object.assign({},o,s instanceof Function?s(o):s)})},[]);return[n,i]},HU=typeof window<"u",WU=function(){var t=document.getSelection();if(!t.rangeCount)return function(){};for(var e=document.activeElement,n=[],r=0;r"u"){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var h=$w[e.format]||$w.default;window.clipboardData.setData(h,t)}else u.clipboardData.clearData(),u.clipboardData.setData(e.format,t);e.onCopy&&(u.preventDefault(),e.onCopy(u.clipboardData))}),document.body.appendChild(a),s.selectNodeContents(a),o.addRange(s);var c=document.execCommand("copy");if(!c)throw new Error("copy command was unsuccessful");l=!0}catch(u){n&&console.error("unable to copy using execCommand: ",u),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(e.format||"text",t),e.onCopy&&e.onCopy(window.clipboardData),l=!0}catch(h){n&&console.error("unable to copy using clipboardData: ",h),n&&console.error("falling back to prompt"),r=jU("message"in e?e.message:$U),window.prompt(r,t)}}finally{o&&(typeof o.removeRange=="function"?o.removeRange(s):o.removeAllRanges()),a&&document.body.removeChild(a),i()}return l}var YU=XU;const qU=Gl(YU);var KU=function(){var t=BU(),e=VU({value:void 0,error:void 0,noUserInteraction:!0}),n=e[0],r=e[1],i=U.useCallback(function(s){if(t()){var o,a;try{if(typeof s!="string"&&typeof s!="number"){var l=new Error("Cannot copy typeof "+typeof s+" to clipboard, must be a string");r({value:s,error:l,noUserInteraction:!0});return}else if(s===""){var l=new Error("Cannot copy empty string to clipboard.");r({value:s,error:l,noUserInteraction:!0});return}a=s.toString(),o=qU(a),r({value:a,error:void 0,noUserInteraction:o})}catch(c){r({value:a,error:c,noUserInteraction:o})}}},[]);return[n,i]},ZU=function(t,e){return HU?window.matchMedia(t).matches:!1},Xp=function(t,e){var n=U.useState(ZU(t)),r=n[0],i=n[1];return U.useEffect(function(){var s=!0,o=window.matchMedia(t),a=function(){s&&i(!!o.matches)};return o.addEventListener("change",a),i(o.matches),function(){s=!1,o.removeEventListener("change",a)}},[t]),r},Ze={},v_={exports:{}};(function(t,e){(function(n,r){var i="1.0.38",s="",o="?",a="function",l="undefined",c="object",u="string",h="major",d="model",m="name",v="type",p="vendor",g="version",f="architecture",x="console",_="mobile",y="tablet",w="smarttv",T="wearable",b="embedded",E=500,M="Amazon",S="Apple",P="ASUS",V="BlackBerry",H="Browser",G="Chrome",$="Edge",F="Firefox",W="Google",A="Huawei",X="LG",q="Microsoft",K="Motorola",oe="Opera",Ce="Samsung",Q="Sharp",le="Sony",ye="Xiaomi",ge="Zebra",he="Facebook",He="Chromium OS",Se="Mac OS",k=function(te,Pe){var ve={};for(var Ee in te)Pe[Ee]&&Pe[Ee].length%2===0?ve[Ee]=Pe[Ee].concat(te[Ee]):ve[Ee]=te[Ee];return ve},z=function(te){for(var Pe={},ve=0;ve<te.length;ve++)Pe[te[ve].toUpperCase()]=te[ve];return Pe},Y=function(te,Pe){return typeof te===u?be(Pe).indexOf(be(te))!==-1:!1},be=function(te){return te.toLowerCase()},de=function(te){return typeof te===u?te.replace(/[^\d\.]/g,s).split(".")[0]:r},Ne=function(te,Pe){if(typeof te===u)return te=te.replace(/^\s\s*/,s),typeof Pe===l?te:te.substring(0,E)},Be=function(te,Pe){for(var ve=0,Ee,Je,Ae,Ue,Fe,Qe;ve<Pe.length&&!Fe;){var Ve=Pe[ve],st=Pe[ve+1];for(Ee=Je=0;Ee<Ve.length&&!Fe&&Ve[Ee];)if(Fe=Ve[Ee++].exec(te),Fe)for(Ae=0;Ae0?Ue.length===2?typeof Ue[1]==a?this[Ue[0]]=Ue[1].call(this,Qe):this[Ue[0]]=Ue[1]:Ue.length===3?typeof Ue[1]===a&&!(Ue[1].exec&&Ue[1].test)?this[Ue[0]]=Qe?Ue[1].call(this,Qe,Ue[2]):r:this[Ue[0]]=Qe?Qe.replace(Ue[1],Ue[2]):r:Ue.length===4&&(this[Ue[0]]=Qe?Ue[3].call(this,Qe.replace(Ue[1],Ue[2])):r):this[Ue]=Qe||r;ve+=2}},Me=function(te,Pe){for(var ve in Pe)if(typeof Pe[ve]===c&&Pe[ve].length>0){for(var Ee=0;Ee2&&(Fe[d]="iPad",Fe[v]=y),Fe},this.getEngine=function(){var Fe={};return Fe[m]=r,Fe[g]=r,Be.call(Fe,Ee,Ae.engine),Fe},this.getOS=function(){var Fe={};return Fe[m]=r,Fe[g]=r,Be.call(Fe,Ee,Ae.os),Ue&&!Fe[m]&&Je&&Je.platform&&Je.platform!="Unknown"&&(Fe[m]=Je.platform.replace(/chrome os/i,He).replace(/macos/i,Se)),Fe},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return Ee},this.setUA=function(Fe){return Ee=typeof Fe===u&&Fe.length>E?Ne(Fe,E):Fe,this},this.setUA(Ee),this};ne.VERSION=i,ne.BROWSER=z([m,g,h]),ne.CPU=z([f]),ne.DEVICE=z([d,p,v,x,_,w,y,T,b]),ne.ENGINE=ne.OS=z([m,g]),t.exports&&(e=t.exports=ne),e.UAParser=ne;var pe=typeof n!==l&&(n.jQuery||n.Zepto);if(pe&&!pe.ua){var fe=new ne;pe.ua=fe.getResult(),pe.ua.get=function(){return fe.getUA()},pe.ua.set=function(te){fe.setUA(te);var Pe=fe.getResult();for(var ve in Pe)pe.ua[ve]=Pe[ve]}}})(typeof window=="object"?window:am)})(v_,v_.exports);var QU=v_.exports;Object.defineProperty(Ze,"__esModule",{value:!0});function JU(t){return t&&typeof t=="object"&&"default"in t?t.default:t}var Or=U,rn=JU(Or),eC=QU,Ba=new eC,Ir=Ba.getBrowser(),eI=Ba.getCPU(),Bi=Ba.getDevice(),ay=Ba.getEngine(),Va=Ba.getOS(),Sf=Ba.getUA(),tC=function(e){return Ba.setUA(e)},bf=function(e){if(!e){console.error("No userAgent string was provided");return}var n=new eC(e);return{UA:n,browser:n.getBrowser(),cpu:n.getCPU(),device:n.getDevice(),engine:n.getEngine(),os:n.getOS(),ua:n.getUA(),setUserAgent:function(i){return n.setUA(i)}}},nC=Object.freeze({ClientUAInstance:Ba,browser:Ir,cpu:eI,device:Bi,engine:ay,os:Va,ua:Sf,setUa:tC,parseUserAgent:bf});function jw(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function tI(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?jw(Object(n),!0).forEach(function(r){sI(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):jw(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Nd(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Nd=function(e){return typeof e}:Nd=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Nd(t)}function nI(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function rI(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function iI(t,e,n){return e&&rI(t.prototype,e),t}function sI(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function __(){return __=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},__.apply(this,arguments)}function oI(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&y_(t,e)}function x_(t){return x_=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},x_(t)}function y_(t,e){return y_=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},y_(t,e)}function aI(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,s;for(s=0;s=0)&&(n[i]=t[i]);return n}function ls(t,e){if(t==null)return{};var n=aI(t,e),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(i=0;i>>1,oe=A[K];if(0>>1;Ki(le,q))yei(ge,le)?(A[K]=ge,A[ye]=q,K=ye):(A[K]=le,A[Q]=q,K=Q);else if(yei(ge,q))A[K]=ge,A[ye]=q,K=ye;else break e}}return X}function i(A,X){var q=A.sortIndex-X.sortIndex;return q!==0?q:A.id-X.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;t.unstable_now=function(){return s.now()}}else{var o=Date,a=o.now();t.unstable_now=function(){return o.now()-a}}var l=[],c=[],u=1,h=null,d=3,m=!1,v=!1,p=!1,g=typeof setTimeout=="function"?setTimeout:null,f=typeof clearTimeout=="function"?clearTimeout:null,x=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function _(A){for(var X=n(c);X!==null;){if(X.callback===null)r(c);else if(X.startTimeX)||A&&!P());){var K=h.callback;if(typeof K=="function"){h.callback=null,d=h.priorityLevel;var oe=K(h.expirationTime<=X);X=t.unstable_now(),typeof oe=="function"?h.callback=oe:h===n(l)&&r(l),_(X)}else r(l);h=n(l)}if(h!==null)var Ce=!0;else{var Q=n(c);Q!==null&&W(y,Q.startTime-X),Ce=!1}return Ce}finally{h=null,d=q,m=!1}}var T=!1,b=null,E=-1,M=5,S=-1;function P(){return!(t.unstable_now()-S<M)}function V(){if(b!==null){var A=t.unstable_now();S=A;var X=!0;try{X=b(!0,A)}finally{X?H():(T=!1,b=null)}}else T=!1}var H;if(typeof x=="function")H=function(){x(V)};else if(typeof MessageChannelA||125<A?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):M=0<A?Math.floor(1e3/A):5},t.unstable_getCurrentPriorityLevel=function(){return d},t.unstable_getFirstCallbackNode=function(){return n(l)},t.unstable_next=function(A){switch(d){case 1:case 2:case 3:var X=3;break;default:X=d}var q=d;d=X;try{return A()}finally{d=q}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(A,X){switch(A){case 1:case 2:case 3:case 4:case 5:break;default:A=3}var q=d;d=A;try{return X()}finally{d=q}},t.unstable_scheduleCallback=function(A,X,q){var K=t.unstable_now();switch(typeof q=="object"&&q!==null?(q=q.delay,q=typeof q=="number"&&0
K?(A.sortIndex=q,e(c,A),n(l)===null&&A===n(c)&&(p?(f(E),E=-1):p=!0,W(y,q-K))):(A.sortIndex=oe,e(l,A),v||m||(v=!0,F(w))),A},t.unstable_shouldYield=P,t.unstable_wrapCallback=function(A){var X=d;return function(){var q=d;d=X;try{return A.apply(this,arguments)}finally{d=q}}}})(Fb);kb.exports=Fb;var pR=kb.exports;/**
* @license React
* react-dom.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var mR=U,Ii=pR;function ke(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,n=1;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var zb=new Set,Ud={};function $l(t,e){su(t,e),su(t+"Capture",e)}function su(t,e){for(Ud[t]=e,t=0;t"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Gg=Object.prototype.hasOwnProperty,gR=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Wy={},Gy={};function vR(t){return Gg.call(Gy,t)?!0:Gg.call(Wy,t)?!1:gR.test(t)?Gy[t]=!0:(Wy[t]=!0,!1)}function _R(t,e,n,r){if(n!==null&&n.type===0)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(t=t.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-");default:return!1}}function xR(t,e,n,r){if(e===null||typeof e>"u"||_R(t,e,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!e;case 4:return e===!1;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}function Zr(t,e,n,r,i,s,o){this.acceptsBooleans=e===2||e===3||e===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=t,this.type=e,this.sanitizeURL=s,this.removeEmptyString=o}var _r={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){_r[t]=new Zr(t,0,!1,t,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var e=t[0];_r[e]=new Zr(e,1,!1,t[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(t){_r[t]=new Zr(t,2,!1,t.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){_r[t]=new Zr(t,2,!1,t,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(t){_r[t]=new Zr(t,3,!1,t.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(t){_r[t]=new Zr(t,3,!0,t,null,!1,!1)});["capture","download"].forEach(function(t){_r[t]=new Zr(t,4,!1,t,null,!1,!1)});["cols","rows","size","span"].forEach(function(t){_r[t]=new Zr(t,6,!1,t,null,!1,!1)});["rowSpan","start"].forEach(function(t){_r[t]=new Zr(t,5,!1,t.toLowerCase(),null,!1,!1)});var F_=/[\-:]([a-z])/g;function z_(t){return t[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(t){var e=t.replace(F_,z_);_r[e]=new Zr(e,1,!1,t,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var e=t.replace(F_,z_);_r[e]=new Zr(e,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(t){var e=t.replace(F_,z_);_r[e]=new Zr(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(t){_r[t]=new Zr(t,1,!1,t.toLowerCase(),null,!1,!1)});_r.xlinkHref=new Zr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(t){_r[t]=new Zr(t,1,!1,t.toLowerCase(),null,!0,!0)});function B_(t,e,n,r){var i=_r.hasOwnProperty(e)?_r[e]:null;(i!==null?i.type!==0:r||!(2<e.length)||e[0]!=="o"&&e[0]!=="O"||e[1]!=="n"&&e[1]!=="N")&&(xR(e,n,i,r)&&(n=null),r||i===null?vR(e)&&(n===null?t.removeAttribute(e):t.setAttribute(e,""+n)):i.mustUseProperty?t[i.propertyName]=n===null?i.type===3?!1:"":n:(e=i.attributeName,r=i.attributeNamespace,n===null?t.removeAttribute(e):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?t.setAttributeNS(r,e,n):t.setAttribute(e,n))))}var Uo=mR.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Xf=Symbol.for("react.element"),Ac=Symbol.for("react.portal"),Rc=Symbol.for("react.fragment"),V_=Symbol.for("react.strict_mode"),$g=Symbol.for("react.profiler"),Bb=Symbol.for("react.provider"),Vb=Symbol.for("react.context"),H_=Symbol.for("react.forward_ref"),jg=Symbol.for("react.suspense"),Xg=Symbol.for("react.suspense_list"),W_=Symbol.for("react.memo"),sa=Symbol.for("react.lazy"),Hb=Symbol.for("react.offscreen"),$y=Symbol.iterator;function Yu(t){return t===null||typeof t!="object"?null:(t=$y&&t[$y]||t["@@iterator"],typeof t=="function"?t:null)}var Sn=Object.assign,d0;function fd(t){if(d0===void 0)try{throw Error()}catch(n){var e=n.stack.trim().match(/\n( *(at )?)/);d0=e&&e[1]||""}return`
`+d0+t}var f0=!1;function h0(t,e){if(!t||f0)return"";f0=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(e)if(e=function(){throw Error()},Object.defineProperty(e.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(e,[])}catch(c){var r=c}Reflect.construct(t,[],e)}else{try{e.call()}catch(c){r=c}t.call(e.prototype)}else{try{throw Error()}catch(c){r=c}t()}}catch(c){if(c&&r&&typeof c.stack=="string"){for(var i=c.stack.split(`
`),s=r.stack.split(`
`),o=i.length-1,a=s.length-1;1<=o&&0<=a&&i[o]!==s[a];)a--;for(;1<=o&&0a||i[o]!==s[a]){var l=`
`+i[o].replace(" at new "," at ");return t.displayName&&l.includes("")&&(l=l.replace("",t.displayName)),l}while(1<=o&&0<=a);break}}}finally{f0=!1,Error.prepareStackTrace=n}return(t=t?t.displayName||t.name:"")?fd(t):""}function yR(t){switch(t.tag){case 5:return fd(t.type);case 16:return fd("Lazy");case 13:return fd("Suspense");case 19:return fd("SuspenseList");case 0:case 2:case 15:return t=h0(t.type,!1),t;case 11:return t=h0(t.type.render,!1),t;case 1:return t=h0(t.type,!0),t;default:return""}}function Yg(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case Rc:return"Fragment";case Ac:return"Portal";case $g:return"Profiler";case V_:return"StrictMode";case jg:return"Suspense";case Xg:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case Vb:return(t.displayName||"Context")+".Consumer";case Bb:return(t._context.displayName||"Context")+".Provider";case H_:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case W_:return e=t.displayName||null,e!==null?e:Yg(t.type)||"Memo";case sa:e=t._payload,t=t._init;try{return Yg(t(e))}catch{}}return null}function wR(t){var e=t.type;switch(t.tag){case 24:return"Cache";case 9:return(e.displayName||"Context")+".Consumer";case 10:return(e._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=e.render,t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return e;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Yg(e);case 8:return e===V_?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e}return null}function Pa(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Wb(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function SR(t){var e=Wb(t)?"checked":"value",n=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),r=""+t[e];if(!t.hasOwnProperty(e)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,s=n.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return i.call(this)},set:function(o){r=""+o,s.call(this,o)}}),Object.defineProperty(t,e,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function Yf(t){t._valueTracker||(t._valueTracker=SR(t))}function Gb(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),r="";return t&&(r=Wb(t)?t.checked?"true":"false":t.value),t=r,t!==n?(e.setValue(t),!0):!1}function hp(t){if(t=t||(typeof document"u")return null;try{return t.activeElement||t.body}catch{return t.body}}function qg(t,e){var n=e.checked;return Sn({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??t._wrapperState.initialChecked})}function jy(t,e){var n=e.defaultValue==null?"":e.defaultValue,r=e.checked!=null?e.checked:e.defaultChecked;n=Pa(e.value!=null?e.value:n),t._wrapperState={initialChecked:r,initialValue:n,controlled:e.type==="checkbox"||e.type==="radio"?e.checked!=null:e.value!=null}}function $b(t,e){e=e.checked,e!=null&&B_(t,"checked",e,!1)}function Kg(t,e){$b(t,e);var n=Pa(e.value),r=e.type;if(n!=null)r==="number"?(n===0&&t.value===""||t.value!=n)&&(t.value=""+n):t.value!==""+n&&(t.value=""+n);else if(r==="submit"||r==="reset"){t.removeAttribute("value");return}e.hasOwnProperty("value")?Zg(t,e.type,n):e.hasOwnProperty("defaultValue")&&Zg(t,e.type,Pa(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(t.defaultChecked=!!e.defaultChecked)}function Xy(t,e,n){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var r=e.type;if(!(r!=="submit"&&r!=="reset"||e.value!==void 0&&e.value!==null))return;e=""+t._wrapperState.initialValue,n||e===t.value||(t.value=e),t.defaultValue=e}n=t.name,n!==""&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,n!==""&&(t.name=n)}function Zg(t,e,n){(e!=="number"||hp(t.ownerDocument)!==t)&&(n==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+n&&(t.defaultValue=""+n))}var hd=Array.isArray;function Gc(t,e,n,r){if(t=t.options,e){e={};for(var i=0;i<n.length;i++)e["$"+n[i]]=!0;for(n=0;n<t.length;n++)i=e.hasOwnProperty("$"+t[n].value),t[n].selected!==i&&(t[n].selected=i),i&&r&&(t[n].defaultSelected=!0)}else{for(n=""+Pa(n),e=null,i=0;i<t.length;i++){if(t[i].value===n){t[i].selected=!0,r&&(t[i].defaultSelected=!0);return}e!==null||t[i].disabled||(e=t[i])}e!==null&&(e.selected=!0)}}function Qg(t,e){if(e.dangerouslySetInnerHTML!=null)throw Error(ke(91));return Sn({},e,{value:void 0,defaultValue:void 0,children:""+t._wrapperState.initialValue})}function Yy(t,e){var n=e.value;if(n==null){if(n=e.children,e=e.defaultValue,n!=null){if(e!=null)throw Error(ke(92));if(hd(n)){if(1<n.length)throw Error(ke(93));n=n[0]}e=n}e==null&&(e=""),n=e}t._wrapperState={initialValue:Pa(n)}}function jb(t,e){var n=Pa(e.value),r=Pa(e.defaultValue);n!=null&&(n=""+n,n!==t.value&&(t.value=n),e.defaultValue==null&&t.defaultValue!==n&&(t.defaultValue=n)),r!=null&&(t.defaultValue=""+r)}function qy(t){var e=t.textContent;e===t._wrapperState.initialValue&&e!==""&&e!==null&&(t.value=e)}function Xb(t){switch(t){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Jg(t,e){return t==null||t==="http://www.w3.org/1999/xhtml"?Xb(e):t==="http://www.w3.org/2000/svg"&&e==="foreignObject"?"http://www.w3.org/1999/xhtml":t}var qf,Yb=function(t){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(e,n,r,i){MSApp.execUnsafeLocalFunction(function(){return t(e,n,r,i)})}:t}(function(t,e){if(t.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in t)t.innerHTML=e;else{for(qf=qf||document.createElement("div"),qf.innerHTML=""+e.valueOf().toString()+"",e=qf.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}});function Id(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var yd={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},bR=["Webkit","ms","Moz","O"];Object.keys(yd).forEach(function(t){bR.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),yd[e]=yd[t]})});function qb(t,e,n){return e==null||typeof e=="boolean"||e===""?"":n||typeof e!="number"||e===0||yd.hasOwnProperty(t)&&yd[t]?(""+e).trim():e+"px"}function Kb(t,e){t=t.style;for(var n in e)if(e.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=qb(n,e[n],r);n==="float"&&(n="cssFloat"),r?t.setProperty(n,i):t[n]=i}}var ER=Sn({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ev(t,e){if(e){if(ER[t]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(ke(137,t));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(ke(60));if(typeof e.dangerouslySetInnerHTML!="object"||!("__html"in e.dangerouslySetInnerHTML))throw Error(ke(61))}if(e.style!=null&&typeof e.style!="object")throw Error(ke(62))}}function tv(t,e){if(t.indexOf("-")===-1)return typeof e.is=="string";switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var nv=null;function G_(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var rv=null,$c=null,jc=null;function Ky(t){if(t=gf(t)){if(typeof rv!="function")throw Error(ke(280));var e=t.stateNode;e&&(e=hm(e),rv(t.stateNode,t.type,e))}}function Zb(t){$c?jc?jc.push(t):jc=[t]:$c=t}function Qb(){if($c){var t=$c,e=jc;if(jc=$c=null,Ky(t),e)for(t=0;t>>=0,t===0?32:31-(UR(t)/IR|0)|0}var Kf=64,Zf=4194304;function pd(t){switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return t&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return t}}function vp(t,e){var n=t.pendingLanes;if(n===0)return 0;var r=0,i=t.suspendedLanes,s=t.pingedLanes,o=n&268435455;if(o!==0){var a=o&~i;a!==0?r=pd(a):(s&=o,s!==0&&(r=pd(s)))}else o=n&~i,o!==0?r=pd(o):s!==0&&(r=pd(s));if(r===0)return 0;if(e!==0&&e!==r&&!(e&i)&&(i=r&-r,s=e&-e,i>=s||i===16&&(s&4194240)!==0))return e;if(r&4&&(r|=n&16),e=t.entangledLanes,e!==0)for(t=t.entanglements,e&=r;0<e;)n=31-As(e),i=1<<n,r|=t[n],e&=~i;return r}function FR(t,e){switch(t){case 1:case 2:case 4:return e+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function zR(t,e){for(var n=t.suspendedLanes,r=t.pingedLanes,i=t.expirationTimes,s=t.pendingLanes;0<s;){var o=31-As(s),a=1<<o,l=i[o];l===-1?(!(a&n)||a&r)&&(i[o]=FR(a,e)):l<=e&&(t.expiredLanes|=a),s&=~a}}function ov(t){return t=t.pendingLanes&-1073741825,t!==0?t:t&1073741824?1073741824:0}function lE(){var t=Kf;return Kf<n;n++)e.push(t);return e}function pf(t,e,n){t.pendingLanes|=e,e!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,e=31-As(e),t[e]=n}function BR(t,e){var n=t.pendingLanes&~e;t.pendingLanes=e,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=e,t.mutableReadLanes&=e,t.entangledLanes&=e,e=t.entanglements;var r=t.eventTimes;for(t=t.expirationTimes;0<n;){var i=31-As(n),s=1<<i;e[i]=0,r[i]=-1,t[i]=-1,n&=~s}}function j_(t,e){var n=t.entangledLanes|=e;for(t=t.entanglements;n;){var r=31-As(n),i=1<<r;i&e|t[r]&e&&(t[r]|=e),n&=~i}}var Xt=0;function cE(t){return t&=-t,1<t?4<t?t&268435455?16:536870912:4:1}var uE,X_,dE,fE,hE,av=!1,Qf=[],va=null,_a=null,xa=null,Fd=new Map,zd=new Map,aa=[],VR="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Jy(t,e){switch(t){case"focusin":case"focusout":va=null;break;case"dragenter":case"dragleave":_a=null;break;case"mouseover":case"mouseout":xa=null;break;case"pointerover":case"pointerout":Fd.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":zd.delete(e.pointerId)}}function Ku(t,e,n,r,i,s){return t===null||t.nativeEvent!==s?(t={blockedOn:e,domEventName:n,eventSystemFlags:r,nativeEvent:s,targetContainers:[i]},e!==null&&(e=gf(e),e!==null&&X_(e)),t):(t.eventSystemFlags|=r,e=t.targetContainers,i!==null&&e.indexOf(i)===-1&&e.push(i),t)}function HR(t,e,n,r,i){switch(e){case"focusin":return va=Ku(va,t,e,n,r,i),!0;case"dragenter":return _a=Ku(_a,t,e,n,r,i),!0;case"mouseover":return xa=Ku(xa,t,e,n,r,i),!0;case"pointerover":var s=i.pointerId;return Fd.set(s,Ku(Fd.get(s)||null,t,e,n,r,i)),!0;case"gotpointercapture":return s=i.pointerId,zd.set(s,Ku(zd.get(s)||null,t,e,n,r,i)),!0}return!1}function pE(t){var e=gl(t.target);if(e!==null){var n=jl(e);if(n!==null){if(e=n.tag,e===13){if(e=nE(n),e!==null){t.blockedOn=e,hE(t.priority,function(){dE(n)});return}}else if(e===3&&n.stateNode.current.memoizedState.isDehydrated){t.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}t.blockedOn=null}function Xh(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var n=lv(t.domEventName,t.eventSystemFlags,e[0],t.nativeEvent);if(n===null){n=t.nativeEvent;var r=new n.constructor(n.type,n);nv=r,n.target.dispatchEvent(r),nv=null}else return e=gf(n),e!==null&&X_(e),t.blockedOn=n,!1;e.shift()}return!0}function e1(t,e,n){Xh(t)&&n.delete(e)}function WR(){av=!1,va!==null&&Xh(va)&&(va=null),_a!==null&&Xh(_a)&&(_a=null),xa!==null&&Xh(xa)&&(xa=null),Fd.forEach(e1),zd.forEach(e1)}function Zu(t,e){t.blockedOn===e&&(t.blockedOn=null,av||(av=!0,Ii.unstable_scheduleCallback(Ii.unstable_NormalPriority,WR)))}function Bd(t){function e(i){return Zu(i,t)}if(0<Qf.length){Zu(Qf[0],t);for(var n=1;n<Qf.length;n++){var r=Qf[n];r.blockedOn===t&&(r.blockedOn=null)}}for(va!==null&&Zu(va,t),_a!==null&&Zu(_a,t),xa!==null&&Zu(xa,t),Fd.forEach(e),zd.forEach(e),n=0;n<aa.length;n++)r=aa[n],r.blockedOn===t&&(r.blockedOn=null);for(;0<aa.length&&(n=aa[0],n.blockedOn===null);)pE(n),n.blockedOn===null&&aa.shift()}var Xc=Uo.ReactCurrentBatchConfig,_p=!0;function GR(t,e,n,r){var i=Xt,s=Xc.transition;Xc.transition=null;try{Xt=1,Y_(t,e,n,r)}finally{Xt=i,Xc.transition=s}}function $R(t,e,n,r){var i=Xt,s=Xc.transition;Xc.transition=null;try{Xt=4,Y_(t,e,n,r)}finally{Xt=i,Xc.transition=s}}function Y_(t,e,n,r){if(_p){var i=lv(t,e,n,r);if(i===null)M0(t,e,r,xp,n),Jy(t,r);else if(HR(i,t,e,n,r))r.stopPropagation();else if(Jy(t,r),e&4&&-1<VR.indexOf(t)){for(;i!==null;){var s=gf(i);if(s!==null&&uE(s),s=lv(t,e,n,r),s===null&&M0(t,e,r,xp,n),s===i)break;i=s}i!==null&&r.stopPropagation()}else M0(t,e,r,null,n)}}var xp=null;function lv(t,e,n,r){if(xp=null,t=G_(r),t=gl(t),t!==null)if(e=jl(t),e===null)t=null;else if(n=e.tag,n===13){if(t=nE(e),t!==null)return t;t=null}else if(n===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null);return xp=t,null}function mE(t){switch(t){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(LR()){case $_:return 1;case oE:return 4;case gp:case NR:return 16;case aE:return 536870912;default:return 16}default:return 16}}var ua=null,q_=null,Yh=null;function gE(){if(Yh)return Yh;var t,e=q_,n=e.length,r,i="value"in ua?ua.value:ua.textContent,s=i.length;for(t=0;t<n&&e[t]===i[t];t++);var o=n-t;for(r=1;r<=o&&e[n-r]===i[s-r];r++);return Yh=i.slice(t,1<r?1-r:void 0)}function qh(t){var e=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function Jf(){return!0}function t1(){return!1}function zi(t){function e(n,r,i,s,o){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=s,this.target=o,this.currentTarget=null;for(var a in t)t.hasOwnProperty(a)&&(n=t[a],this[a]=n?n(s):s[a]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?Jf:t1,this.isPropagationStopped=t1,this}return Sn(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Jf)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Jf)},persist:function(){},isPersistent:Jf}),e}var Tu={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},K_=zi(Tu),mf=Sn({},Tu,{view:0,detail:0}),jR=zi(mf),g0,v0,Qu,um=Sn({},mf,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Z_,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==Qu&&(Qu&&t.type==="mousemove"?(g0=t.screenX-Qu.screenX,v0=t.screenY-Qu.screenY):v0=g0=0,Qu=t),g0)},movementY:function(t){return"movementY"in t?t.movementY:v0}}),n1=zi(um),XR=Sn({},um,{dataTransfer:0}),YR=zi(XR),qR=Sn({},mf,{relatedTarget:0}),_0=zi(qR),KR=Sn({},Tu,{animationName:0,elapsedTime:0,pseudoElement:0}),ZR=zi(KR),QR=Sn({},Tu,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),JR=zi(QR),e3=Sn({},Tu,{data:0}),r1=zi(e3),t3={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},n3={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},r3={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function i3(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=r3[t])?!!e[t]:!1}function Z_(){return i3}var s3=Sn({},mf,{key:function(t){if(t.key){var e=t3[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=qh(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?n3[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Z_,charCode:function(t){return t.type==="keypress"?qh(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?qh(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),o3=zi(s3),a3=Sn({},um,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),i1=zi(a3),l3=Sn({},mf,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Z_}),c3=zi(l3),u3=Sn({},Tu,{propertyName:0,elapsedTime:0,pseudoElement:0}),d3=zi(u3),f3=Sn({},um,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),h3=zi(f3),p3=[9,13,27,32],Q_=To&&"CompositionEvent"in window,Sd=null;To&&"documentMode"in document&&(Sd=document.documentMode);var m3=To&&"TextEvent"in window&&!Sd,vE=To&&(!Q_||Sd&&8=Sd),s1=" ",o1=!1;function _E(t,e){switch(t){case"keyup":return p3.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function xE(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Pc=!1;function g3(t,e){switch(t){case"compositionend":return xE(e);case"keypress":return e.which!==32?null:(o1=!0,s1);case"textInput":return t=e.data,t===s1&&o1?null:t;default:return null}}function v3(t,e){if(Pc)return t==="compositionend"||!Q_&&_E(t,e)?(t=gE(),Yh=q_=ua=null,Pc=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return vE&&e.locale!=="ko"?null:e.data;default:return null}}var _3={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function a1(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!_3[t.type]:e==="textarea"}function yE(t,e,n,r){Zb(r),e=yp(e,"onChange"),0<e.length&&(n=new K_("onChange","change",null,n,r),t.push({event:n,listeners:e}))}var bd=null,Vd=null;function x3(t){DE(t,0)}function dm(t){var e=Nc(t);if(Gb(e))return t}function y3(t,e){if(t==="change")return e}var wE=!1;if(To){var x0;if(To){var y0="oninput"in document;if(!y0){var l1=document.createElement("div");l1.setAttribute("oninput","return;"),y0=typeof l1.oninput=="function"}x0=y0}else x0=!1;wE=x0&&(!document.documentMode||9<document.documentMode)}function c1(){bd&&(bd.detachEvent("onpropertychange",SE),Vd=bd=null)}function SE(t){if(t.propertyName==="value"&&dm(Vd)){var e=[];yE(e,Vd,t,G_(t)),tE(x3,e)}}function w3(t,e,n){t==="focusin"?(c1(),bd=e,Vd=n,bd.attachEvent("onpropertychange",SE)):t==="focusout"&&c1()}function S3(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return dm(Vd)}function b3(t,e){if(t==="click")return dm(e)}function E3(t,e){if(t==="input"||t==="change")return dm(e)}function M3(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var Ls=typeof Object.is=="function"?Object.is:M3;function Hd(t,e){if(Ls(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!Gg.call(e,i)||!Ls(t[i],e[i]))return!1}return!0}function u1(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function d1(t,e){var n=u1(t);t=0;for(var r;n;){if(n.nodeType===3){if(r=t+n.textContent.length,t=e)return{node:n,offset:e-t};t=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=u1(n)}}function bE(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?bE(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function EE(){for(var t=window,e=hp();e instanceof t.HTMLIFrameElement;){try{var n=typeof e.contentWindow.location.href=="string"}catch{n=!1}if(n)t=e.contentWindow;else break;e=hp(t.document)}return e}function J_(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}function T3(t){var e=EE(),n=t.focusedElem,r=t.selectionRange;if(e!==n&&n&&n.ownerDocument&&bE(n.ownerDocument.documentElement,n)){if(r!==null&&J_(n)){if(e=r.start,t=r.end,t===void 0&&(t=e),"selectionStart"in n)n.selectionStart=e,n.selectionEnd=Math.min(t,n.value.length);else if(t=(e=n.ownerDocument||document)&&e.defaultView||window,t.getSelection){t=t.getSelection();var i=n.textContent.length,s=Math.min(r.start,i);r=r.end===void 0?s:Math.min(r.end,i),!t.extend&&s>r&&(i=r,r=s,s=i),i=d1(n,s);var o=d1(n,r);i&&o&&(t.rangeCount!==1||t.anchorNode!==i.node||t.anchorOffset!==i.offset||t.focusNode!==o.node||t.focusOffset!==o.offset)&&(e=e.createRange(),e.setStart(i.node,i.offset),t.removeAllRanges(),s>r?(t.addRange(e),t.extend(o.node,o.offset)):(e.setEnd(o.node,o.offset),t.addRange(e)))}}for(e=[],t=n;t=t.parentNode;)t.nodeType===1&&e.push({element:t,left:t.scrollLeft,top:t.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Dc=null,cv=null,Ed=null,uv=!1;function f1(t,e,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;uv||Dc==null||Dc!==hp(r)||(r=Dc,"selectionStart"in r&&J_(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Ed&&Hd(Ed,r)||(Ed=r,r=yp(cv,"onSelect"),0<r.length&&(e=new K_("onSelect","select",null,e,n),t.push({event:e,listeners:r}),e.target=Dc)))}function eh(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var Lc={animationend:eh("Animation","AnimationEnd"),animationiteration:eh("Animation","AnimationIteration"),animationstart:eh("Animation","AnimationStart"),transitionend:eh("Transition","TransitionEnd")},w0={},ME={};To&&(ME=document.createElement("div").style,"AnimationEvent"in window||(delete Lc.animationend.animation,delete Lc.animationiteration.animation,delete Lc.animationstart.animation),"TransitionEvent"in window||delete Lc.transitionend.transition);function fm(t){if(w0[t])return w0[t];if(!Lc[t])return t;var e=Lc[t],n;for(n in e)if(e.hasOwnProperty(n)&&n in ME)return w0[t]=e[n];return t}var TE=fm("animationend"),CE=fm("animationiteration"),AE=fm("animationstart"),RE=fm("transitionend"),PE=new Map,h1="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Ia(t,e){PE.set(t,e),$l(e,[t])}for(var S0=0;S0<h1.length;S0++){var b0=h1[S0],A3=b0.toLowerCase(),R3=b0[0].toUpperCase()+b0.slice(1);Ia(A3,"on"+R3)}Ia(TE,"onAnimationEnd");Ia(CE,"onAnimationIteration");Ia(AE,"onAnimationStart");Ia("dblclick","onDoubleClick");Ia("focusin","onFocus");Ia("focusout","onBlur");Ia(RE,"onTransitionEnd");su("onMouseEnter",["mouseout","mouseover"]);su("onMouseLeave",["mouseout","mouseover"]);su("onPointerEnter",["pointerout","pointerover"]);su("onPointerLeave",["pointerout","pointerover"]);$l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));$l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));$l("onBeforeInput",["compositionend","keypress","textInput","paste"]);$l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));$l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));$l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var md="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),P3=new Set("cancel close invalid load scroll toggle".split(" ").concat(md));function p1(t,e,n){var r=t.type||"unknown-event";t.currentTarget=n,AR(r,e,void 0,t),t.currentTarget=null}function DE(t,e){e=(e&4)!==0;for(var n=0;n<t.length;n++){var r=t[n],i=r.event;r=r.listeners;e:{var s=void 0;if(e)for(var o=r.length-1;0<=o;o--){var a=r[o],l=a.instance,c=a.currentTarget;if(a=a.listener,l!==s&&i.isPropagationStopped())break e;p1(i,a,c),s=l}else for(o=0;o<r.length;o++){if(a=r[o],l=a.instance,c=a.currentTarget,a=a.listener,l!==s&&i.isPropagationStopped())break e;p1(i,a,c),s=l}}}if(mp)throw t=sv,mp=!1,sv=null,t}function on(t,e){var n=e[mv];n===void 0&&(n=e[mv]=new Set);var r=t+"__bubble";n.has(r)||(LE(e,t,2,!1),n.add(r))}function E0(t,e,n){var r=0;e&&(r|=4),LE(n,t,r,e)}var th="_reactListening"+Math.random().toString(36).slice(2);function Wd(t){if(!t[th]){t[th]=!0,zb.forEach(function(n){n!=="selectionchange"&&(P3.has(n)||E0(n,!1,t),E0(n,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[th]||(e[th]=!0,E0("selectionchange",!1,e))}}function LE(t,e,n,r){switch(mE(e)){case 1:var i=GR;break;case 4:i=$R;break;default:i=Y_}n=i.bind(null,e,n,t),i=void 0,!iv||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(i=!0),r?i!==void 0?t.addEventListener(e,n,{capture:!0,passive:i}):t.addEventListener(e,n,!0):i!==void 0?t.addEventListener(e,n,{passive:i}):t.addEventListener(e,n,!1)}function M0(t,e,n,r,i){var s=r;if(!(e&1)&&!(e&2)&&r!==null)e:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var a=r.stateNode.containerInfo;if(a===i||a.nodeType===8&&a.parentNode===i)break;if(o===4)for(o=r.return;o!==null;){var l=o.tag;if((l===3||l===4)&&(l=o.stateNode.containerInfo,l===i||l.nodeType===8&&l.parentNode===i))return;o=o.return}for(;a!==null;){if(o=gl(a),o===null)return;if(l=o.tag,l===5||l===6){r=s=o;continue e}a=a.parentNode}}r=r.return}tE(function(){var c=s,u=G_(n),h=[];e:{var d=PE.get(t);if(d!==void 0){var m=K_,v=t;switch(t){case"keypress":if(qh(n)===0)break e;case"keydown":case"keyup":m=o3;break;case"focusin":v="focus",m=_0;break;case"focusout":v="blur",m=_0;break;case"beforeblur":case"afterblur":m=_0;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":m=n1;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":m=YR;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":m=c3;break;case TE:case CE:case AE:m=ZR;break;case RE:m=d3;break;case"scroll":m=jR;break;case"wheel":m=h3;break;case"copy":case"cut":case"paste":m=JR;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":m=i1}var p=(e&4)!==0,g=!p&&t==="scroll",f=p?d!==null?d+"Capture":null:d;p=[];for(var x=c,_;x!==null;){_=x;var y=_.stateNode;if(_.tag===5&&y!==null&&(_=y,f!==null&&(y=kd(x,f),y!=null&&p.push(Gd(x,y,_)))),g)break;x=x.return}0<p.length&&(d=new m(d,v,null,n,u),h.push({event:d,listeners:p}))}}if(!(e&7)){e:{if(d=t==="mouseover"||t==="pointerover",m=t==="mouseout"||t==="pointerout",d&&n!==nv&&(v=n.relatedTarget||n.fromElement)&&(gl(v)||v[Co]))break e;if((m||d)&&(d=u.window===u?u:(d=u.ownerDocument)?d.defaultView||d.parentWindow:window,m?(v=n.relatedTarget||n.toElement,m=c,v=v?gl(v):null,v!==null&&(g=jl(v),v!==g||v.tag!==5&&v.tag!==6)&&(v=null)):(m=null,v=c),m!==v)){if(p=n1,y="onMouseLeave",f="onMouseEnter",x="mouse",(t==="pointerout"||t==="pointerover")&&(p=i1,y="onPointerLeave",f="onPointerEnter",x="pointer"),g=m==null?d:Nc(m),_=v==null?d:Nc(v),d=new p(y,x+"leave",m,n,u),d.target=g,d.relatedTarget=_,y=null,gl(u)===c&&(p=new p(f,x+"enter",v,n,u),p.target=_,p.relatedTarget=g,y=p),g=y,m&&v)t:{for(p=m,f=v,x=0,_=p;_;_=ic(_))x++;for(_=0,y=f;y;y=ic(y))_++;for(;0<x-_;)p=ic(p),x--;for(;0<_-x;)f=ic(f),_--;for(;x--;){if(p===f||f!==null&&p===f.alternate)break t;p=ic(p),f=ic(f)}p=null}else p=null;m!==null&&m1(h,d,m,p,!1),v!==null&&g!==null&&m1(h,g,v,p,!0)}}e:{if(d=c?Nc(c):window,m=d.nodeName&&d.nodeName.toLowerCase(),m==="select"||m==="input"&&d.type==="file")var w=y3;else if(a1(d))if(wE)w=E3;else{w=S3;var T=w3}else(m=d.nodeName)&&m.toLowerCase()==="input"&&(d.type==="checkbox"||d.type==="radio")&&(w=b3);if(w&&(w=w(t,c))){yE(h,w,n,u);break e}T&&T(t,d,c),t==="focusout"&&(T=d._wrapperState)&&T.controlled&&d.type==="number"&&Zg(d,"number",d.value)}switch(T=c?Nc(c):window,t){case"focusin":(a1(T)||T.contentEditable==="true")&&(Dc=T,cv=c,Ed=null);break;case"focusout":Ed=cv=Dc=null;break;case"mousedown":uv=!0;break;case"contextmenu":case"mouseup":case"dragend":uv=!1,f1(h,n,u);break;case"selectionchange":if(C3)break;case"keydown":case"keyup":f1(h,n,u)}var b;if(Q_)e:{switch(t){case"compositionstart":var E="onCompositionStart";break e;case"compositionend":E="onCompositionEnd";break e;case"compositionupdate":E="onCompositionUpdate";break e}E=void 0}else Pc?_E(t,n)&&(E="onCompositionEnd"):t==="keydown"&&n.keyCode===229&&(E="onCompositionStart");E&&(vE&&n.locale!=="ko"&&(Pc||E!=="onCompositionStart"?E==="onCompositionEnd"&&Pc&&(b=gE()):(ua=u,q_="value"in ua?ua.value:ua.textContent,Pc=!0)),T=yp(c,E),0<T.length&&(E=new r1(E,t,null,n,u),h.push({event:E,listeners:T}),b?E.data=b:(b=xE(n),b!==null&&(E.data=b)))),(b=m3?g3(t,n):v3(t,n))&&(c=yp(c,"onBeforeInput"),0<c.length&&(u=new r1("onBeforeInput","beforeinput",null,n,u),h.push({event:u,listeners:c}),u.data=b))}DE(h,e)})}function Gd(t,e,n){return{instance:t,listener:e,currentTarget:n}}function yp(t,e){for(var n=e+"Capture",r=[];t!==null;){var i=t,s=i.stateNode;i.tag===5&&s!==null&&(i=s,s=kd(t,n),s!=null&&r.unshift(Gd(t,s,i)),s=kd(t,e),s!=null&&r.push(Gd(t,s,i))),t=t.return}return r}function ic(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5);return t||null}function m1(t,e,n,r,i){for(var s=e._reactName,o=[];n!==null&&n!==r;){var a=n,l=a.alternate,c=a.stateNode;if(l!==null&&l===r)break;a.tag===5&&c!==null&&(a=c,i?(l=kd(n,s),l!=null&&o.unshift(Gd(n,l,a))):i||(l=kd(n,s),l!=null&&o.push(Gd(n,l,a)))),n=n.return}o.length!==0&&t.push({event:e,listeners:o})}var D3=/\r\n?/g,L3=/\u0000|\uFFFD/g;function g1(t){return(typeof t=="string"?t:""+t).replace(D3,`
`).replace(L3,"")}function nh(t,e,n){if(e=g1(e),g1(t)!==e&&n)throw Error(ke(425))}function wp(){}var dv=null,fv=null;function hv(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var pv=typeof setTimeout=="function"?setTimeout:void 0,N3=typeof clearTimeout=="function"?clearTimeout:void 0,v1=typeof Promise=="function"?Promise:void 0,O3=typeof queueMicrotask=="function"?queueMicrotask:typeof v1Oc||(t.current=gv[Oc],gv[Oc]=null,Oc--)}function nn(t,e){Oc++,gv[Oc]=t.current,t.current=e}var Da={},Ur=ka(Da),ii=ka(!1),Dl=Da;function ou(t,e){var n=t.type.contextTypes;if(!n)return Da;var r=t.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===e)return r.__reactInternalMemoizedMaskedChildContext;var i={},s;for(s in n)i[s]=e[s];return r&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=i),i}function si(t){return t=t.childContextTypes,t!=null}function Sp(){ln(ii),ln(Ur)}function x1(t,e,n){if(Ur.current!==Da)throw Error(ke(168));nn(Ur,e),nn(ii,n)}function NE(t,e,n){var r=t.stateNode;if(e=e.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in e))throw Error(ke(108,wR(t)||"Unknown",i));return Sn({},n,r)}function bp(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||Da,Dl=Ur.current,nn(Ur,t),nn(ii,ii.current),!0}function y1(t,e,n){var r=t.stateNode;if(!r)throw Error(ke(169));n?(t=NE(t,e,Dl),r.__reactInternalMemoizedMergedChildContext=t,ln(ii),ln(Ur),nn(Ur,t)):ln(ii),nn(ii,n)}var _o=null,pm=!1,C0=!1;function OE(t){_o===null?_o=[t]:_o.push(t)}function F3(t){pm=!0,OE(t)}function Fa(){if(!C0&&_o!==null){C0=!0;var t=0,e=Xt;try{var n=_o;for(Xt=1;t<n.length;t++){var r=n[t];do r=r(!0);while(r!==null)}_o=null,pm=!1}catch(i){throw _o!==null&&(_o=_o.slice(t+1)),sE($_,Fa),i}finally{Xt=e,C0=!1}}return null}var Uc=[],Ic=0,Ep=null,Mp=0,qi=[],Ki=0,Ll=null,So=1,bo="";function ll(t,e){Uc[Ic++]=Mp,Uc[Ic++]=Ep,Ep=t,Mp=e}function UE(t,e,n){qi[Ki++]=So,qi[Ki++]=bo,qi[Ki++]=Ll,Ll=t;var r=So;t=bo;var i=32-As(r)-1;r&=~(1<<i),n+=1;var s=32-As(e)+i;if(30<s){var o=i-i%5;s=(r&(1<>=o,i-=o,So=1<<32-As(e)+i|n<<i|r,bo=s+t}else So=1<<s|n<<i|r,bo=t}function ex(t){t.return!==null&&(ll(t,1),UE(t,1,0))}function tx(t){for(;t===Ep;)Ep=Uc[--Ic],Uc[Ic]=null,Mp=Uc[--Ic],Uc[Ic]=null;for(;t===Ll;)Ll=qi[--Ki],qi[Ki]=null,bo=qi[--Ki],qi[Ki]=null,So=qi[--Ki],qi[Ki]=null}var Ni=null,Di=null,fn=!1,Ss=null;function IE(t,e){var n=Qi(5,null,null,0);n.elementType="DELETED",n.stateNode=e,n.return=t,e=t.deletions,e===null?(t.deletions=[n],t.flags|=16):e.push(n)}function w1(t,e){switch(t.tag){case 5:var n=t.type;return e=e.nodeType!==1||n.toLowerCase()!==e.nodeName.toLowerCase()?null:e,e!==null?(t.stateNode=e,Ni=t,Di=ya(e.firstChild),!0):!1;case 6:return e=t.pendingProps===""||e.nodeType!==3?null:e,e!==null?(t.stateNode=e,Ni=t,Di=null,!0):!1;case 13:return e=e.nodeType!==8?null:e,e!==null?(n=Ll!==null?{id:So,overflow:bo}:null,t.memoizedState={dehydrated:e,treeContext:n,retryLane:1073741824},n=Qi(18,null,null,0),n.stateNode=e,n.return=t,t.child=n,Ni=t,Di=null,!0):!1;default:return!1}}function vv(t){return(t.mode&1)!==0&&(t.flags&128)===0}function _v(t){if(fn){var e=Di;if(e){var n=e;if(!w1(t,e)){if(vv(t))throw Error(ke(418));e=ya(n.nextSibling);var r=Ni;e&&w1(t,e)?IE(r,n):(t.flags=t.flags&-4097|2,fn=!1,Ni=t)}}else{if(vv(t))throw Error(ke(418));t.flags=t.flags&-4097|2,fn=!1,Ni=t}}}function S1(t){for(t=t.return;t!==null&&t.tag!==5&&t.tag!==3&&t.tag!==13;)t=t.return;Ni=t}function rh(t){if(t!==Ni)return!1;if(!fn)return S1(t),fn=!0,!1;var e;if((e=t.tag!==3)&&!(e=t.tag!==5)&&(e=t.type,e=e!=="head"&&e!=="body"&&!hv(t.type,t.memoizedProps)),e&&(e=Di)){if(vv(t))throw kE(),Error(ke(418));for(;e;)IE(t,e),e=ya(e.nextSibling)}if(S1(t),t.tag===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(ke(317));e:{for(t=t.nextSibling,e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="/$"){if(e===0){Di=ya(t.nextSibling);break e}e--}else n!=="$"&&n!=="$!"&&n!=="$?"||e++}t=t.nextSibling}Di=null}}else Di=Ni?ya(t.stateNode.nextSibling):null;return!0}function kE(){for(var t=Di;t;)t=ya(t.nextSibling)}function au(){Di=Ni=null,fn=!1}function nx(t){Ss===null?Ss=[t]:Ss.push(t)}var z3=Uo.ReactCurrentBatchConfig;function Ju(t,e,n){if(t=n.ref,t!==null&&typeof t!="function"&&typeof t!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(ke(309));var r=n.stateNode}if(!r)throw Error(ke(147,t));var i=r,s=""+t;return e!==null&&e.ref!==null&&typeof e.ref=="function"&&e.ref._stringRef===s?e.ref:(e=function(o){var a=i.refs;o===null?delete a[s]:a[s]=o},e._stringRef=s,e)}if(typeof t!="string")throw Error(ke(284));if(!n._owner)throw Error(ke(290,t))}return t}function ih(t,e){throw t=Object.prototype.toString.call(e),Error(ke(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t))}function b1(t){var e=t._init;return e(t._payload)}function FE(t){function e(f,x){if(t){var _=f.deletions;_===null?(f.deletions=[x],f.flags|=16):_.push(x)}}function n(f,x){if(!t)return null;for(;x!==null;)e(f,x),x=x.sibling;return null}function r(f,x){for(f=new Map;x!==null;)x.key!==null?f.set(x.key,x):f.set(x.index,x),x=x.sibling;return f}function i(f,x){return f=Ea(f,x),f.index=0,f.sibling=null,f}function s(f,x,_){return f.index=_,t?(_=f.alternate,_!==null?(_=_.index,_<x?(f.flags|=2,x):_):(f.flags|=2,x)):(f.flags|=1048576,x)}function o(f){return t&&f.alternate===null&&(f.flags|=2),f}function a(f,x,_,y){return x===null||x.tag!==6?(x=O0(_,f.mode,y),x.return=f,x):(x=i(x,_),x.return=f,x)}function l(f,x,_,y){var w=_.type;return w===Rc?u(f,x,_.props.children,y,_.key):x!==null&&(x.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===sa&&b1(w)===x.type)?(y=i(x,_.props),y.ref=Ju(f,x,_),y.return=f,y):(y=np(_.type,_.key,_.props,null,f.mode,y),y.ref=Ju(f,x,_),y.return=f,y)}function c(f,x,_,y){return x===null||x.tag!==4||x.stateNode.containerInfo!==_.containerInfo||x.stateNode.implementation!==_.implementation?(x=U0(_,f.mode,y),x.return=f,x):(x=i(x,_.children||[]),x.return=f,x)}function u(f,x,_,y,w){return x===null||x.tag!==7?(x=El(_,f.mode,y,w),x.return=f,x):(x=i(x,_),x.return=f,x)}function h(f,x,_){if(typeof x=="string"&&x!==""||typeof x=="number")return x=O0(""+x,f.mode,_),x.return=f,x;if(typeof x=="object"&&x!==null){switch(x.$$typeof){case Xf:return _=np(x.type,x.key,x.props,null,f.mode,_),_.ref=Ju(f,null,x),_.return=f,_;case Ac:return x=U0(x,f.mode,_),x.return=f,x;case sa:var y=x._init;return h(f,y(x._payload),_)}if(hd(x)||Yu(x))return x=El(x,f.mode,_,null),x.return=f,x;ih(f,x)}return null}function d(f,x,_,y){var w=x!==null?x.key:null;if(typeof _=="string"&&_!==""||typeof _=="number")return w!==null?null:a(f,x,""+_,y);if(typeof _=="object"&&_!==null){switch(_.$$typeof){case Xf:return _.key===w?l(f,x,_,y):null;case Ac:return _.key===w?c(f,x,_,y):null;case sa:return w=_._init,d(f,x,w(_._payload),y)}if(hd(_)||Yu(_))return w!==null?null:u(f,x,_,y,null);ih(f,_)}return null}function m(f,x,_,y,w){if(typeof y=="string"&&y!==""||typeof y=="number")return f=f.get(_)||null,a(x,f,""+y,w);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case Xf:return f=f.get(y.key===null?_:y.key)||null,l(x,f,y,w);case Ac:return f=f.get(y.key===null?_:y.key)||null,c(x,f,y,w);case sa:var T=y._init;return m(f,x,_,T(y._payload),w)}if(hd(y)||Yu(y))return f=f.get(_)||null,u(x,f,y,w,null);ih(x,y)}return null}function v(f,x,_,y){for(var w=null,T=null,b=x,E=x=0,M=null;b!==null&&EE?(M=b,b=null):M=b.sibling;var S=d(f,b,_[E],y);if(S===null){b===null&&(b=M);break}t&&b&&S.alternate===null&&e(f,b),x=s(S,x,E),T===null?w=S:T.sibling=S,T=S,b=M}if(E===_.length)return n(f,b),fn&&ll(f,E),w;if(b===null){for(;E<_.length;E++)b=h(f,_[E],y),b!==null&&(x=s(b,x,E),T===null?w=b:T.sibling=b,T=b);return fn&&ll(f,E),w}for(b=r(f,b);EE?(M=b,b=null):M=b.sibling;var P=d(f,b,S.value,y);if(P===null){b===null&&(b=M);break}t&&b&&P.alternate===null&&e(f,b),x=s(P,x,E),T===null?w=P:T.sibling=P,T=P,b=M}if(S.done)return n(f,b),fn&&ll(f,E),w;if(b===null){for(;!S.done;E++,S=_.next())S=h(f,S.value,y),S!==null&&(x=s(S,x,E),T===null?w=S:T.sibling=S,T=S);return fn&&ll(f,E),w}for(b=r(f,b);!S.done;E++,S=_.next())S=m(b,f,E,S.value,y),S!==null&&(t&&S.alternate!==null&&b.delete(S.key===null?E:S.key),x=s(S,x,E),T===null?w=S:T.sibling=S,T=S);return t&&b.forEach(function(V){return e(f,V)}),fn&&ll(f,E),w}function g(f,x,_,y){if(typeof _=="object"&&_!==null&&_.type===Rc&&_.key===null&&(_=_.props.children),typeof _=="object"&&_!==null){switch(_.$$typeof){case Xf:e:{for(var w=_.key,T=x;T!==null;){if(T.key===w){if(w=_.type,w===Rc){if(T.tag===7){n(f,T.sibling),x=i(T,_.props.children),x.return=f,f=x;break e}}else if(T.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===sa&&b1(w)===T.type){n(f,T.sibling),x=i(T,_.props),x.ref=Ju(f,T,_),x.return=f,f=x;break e}n(f,T);break}else e(f,T);T=T.sibling}_.type===Rc?(x=El(_.props.children,f.mode,y,_.key),x.return=f,f=x):(y=np(_.type,_.key,_.props,null,f.mode,y),y.ref=Ju(f,x,_),y.return=f,f=y)}return o(f);case Ac:e:{for(T=_.key;x!==null;){if(x.key===T)if(x.tag===4&&x.stateNode.containerInfo===_.containerInfo&&x.stateNode.implementation===_.implementation){n(f,x.sibling),x=i(x,_.children||[]),x.return=f,f=x;break e}else{n(f,x);break}else e(f,x);x=x.sibling}x=U0(_,f.mode,y),x.return=f,f=x}return o(f);case sa:return T=_._init,g(f,x,T(_._payload),y)}if(hd(_))return v(f,x,_,y);if(Yu(_))return p(f,x,_,y);ih(f,_)}return typeof _=="string"&&_!==""||typeof _=="number"?(_=""+_,x!==null&&x.tag===6?(n(f,x.sibling),x=i(x,_),x.return=f,f=x):(n(f,x),x=O0(_,f.mode,y),x.return=f,f=x),o(f)):n(f,x)}return g}var lu=FE(!0),zE=FE(!1),Tp=ka(null),Cp=null,kc=null,rx=null;function ix(){rx=kc=Cp=null}function sx(t){var e=Tp.current;ln(Tp),t._currentValue=e}function xv(t,e,n){for(;t!==null;){var r=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,r!==null&&(r.childLanes|=e)):r!==null&&(r.childLanes&e)!==e&&(r.childLanes|=e),t===n)break;t=t.return}}function Yc(t,e){Cp=t,rx=kc=null,t=t.dependencies,t!==null&&t.firstContext!==null&&(t.lanes&e&&(ri=!0),t.firstContext=null)}function ss(t){var e=t._currentValue;if(rx!==t)if(t={context:t,memoizedValue:e,next:null},kc===null){if(Cp===null)throw Error(ke(308));kc=t,Cp.dependencies={lanes:0,firstContext:t}}else kc=kc.next=t;return e}var vl=null;function ox(t){vl===null?vl=[t]:vl.push(t)}function BE(t,e,n,r){var i=e.interleaved;return i===null?(n.next=n,ox(e)):(n.next=i.next,i.next=n),e.interleaved=n,Ao(t,r)}function Ao(t,e){t.lanes|=e;var n=t.alternate;for(n!==null&&(n.lanes|=e),n=t,t=t.return;t!==null;)t.childLanes|=e,n=t.alternate,n!==null&&(n.childLanes|=e),n=t,t=t.return;return n.tag===3?n.stateNode:null}var oa=!1;function ax(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function VE(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,effects:t.effects})}function Mo(t,e){return{eventTime:t,lane:e,tag:0,payload:null,callback:null,next:null}}function wa(t,e,n){var r=t.updateQueue;if(r===null)return null;if(r=r.shared,Ft&2){var i=r.pending;return i===null?e.next=e:(e.next=i.next,i.next=e),r.pending=e,Ao(t,n)}return i=r.interleaved,i===null?(e.next=e,ox(r)):(e.next=i.next,i.next=e),r.interleaved=e,Ao(t,n)}function Kh(t,e,n){if(e=e.updateQueue,e!==null&&(e=e.shared,(n&4194240)!==0)){var r=e.lanes;r&=t.pendingLanes,n|=r,e.lanes=n,j_(t,n)}}function E1(t,e){var n=t.updateQueue,r=t.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};s===null?i=s=o:s=s.next=o,n=n.next}while(n!==null);s===null?i=s=e:s=s.next=e}else i=s=e;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:s,shared:r.shared,effects:r.effects},t.updateQueue=n;return}t=n.lastBaseUpdate,t===null?n.firstBaseUpdate=e:t.next=e,n.lastBaseUpdate=e}function Ap(t,e,n,r){var i=t.updateQueue;oa=!1;var s=i.firstBaseUpdate,o=i.lastBaseUpdate,a=i.shared.pending;if(a!==null){i.shared.pending=null;var l=a,c=l.next;l.next=null,o===null?s=c:o.next=c,o=l;var u=t.alternate;u!==null&&(u=u.updateQueue,a=u.lastBaseUpdate,a!==o&&(a===null?u.firstBaseUpdate=c:a.next=c,u.lastBaseUpdate=l))}if(s!==null){var h=i.baseState;o=0,u=c=l=null,a=s;do{var d=a.lane,m=a.eventTime;if((r&d)===d){u!==null&&(u=u.next={eventTime:m,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var v=t,p=a;switch(d=e,m=n,p.tag){case 1:if(v=p.payload,typeof v=="function"){h=v.call(m,h,d);break e}h=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=p.payload,d=typeof v=="function"?v.call(m,h,d):v,d==null)break e;h=Sn({},h,d);break e;case 2:oa=!0}}a.callback!==null&&a.lane!==0&&(t.flags|=64,d=i.effects,d===null?i.effects=[a]:d.push(a))}else m={eventTime:m,lane:d,tag:a.tag,payload:a.payload,callback:a.callback,next:null},u===null?(c=u=m,l=h):u=u.next=m,o|=d;if(a=a.next,a===null){if(a=i.shared.pending,a===null)break;d=a,a=d.next,d.next=null,i.lastBaseUpdate=d,i.shared.pending=null}}while(!0);if(u===null&&(l=h),i.baseState=l,i.firstBaseUpdate=c,i.lastBaseUpdate=u,e=i.shared.interleaved,e!==null){i=e;do o|=i.lane,i=i.next;while(i!==e)}else s===null&&(i.shared.lanes=0);Ol|=o,t.lanes=o,t.memoizedState=h}}function M1(t,e,n){if(t=e.effects,e.effects=null,t!==null)for(e=0;e<t.length;e++){var r=t[e],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(ke(191,i));i.call(r)}}}var vf={},Qs=ka(vf),jd=ka(vf),Xd=ka(vf);function _l(t){if(t===vf)throw Error(ke(174));return t}function lx(t,e){switch(nn(Xd,e),nn(jd,t),nn(Qs,vf),t=e.nodeType,t){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:Jg(null,"");break;default:t=t===8?e.parentNode:e,e=t.namespaceURI||null,t=t.tagName,e=Jg(e,t)}ln(Qs),nn(Qs,e)}function cu(){ln(Qs),ln(jd),ln(Xd)}function HE(t){_l(Xd.current);var e=_l(Qs.current),n=Jg(e,t.type);e!==n&&(nn(jd,t),nn(Qs,n))}function cx(t){jd.current===t&&(ln(Qs),ln(jd))}var vn=ka(0);function Rp(t){for(var e=t;e!==null;){if(e.tag===13){var n=e.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return e}else if(e.tag===19&&e.memoizedProps.revealOrder!==void 0){if(e.flags&128)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var A0=[];function ux(){for(var t=0;t<A0.length;t++)A0[t]._workInProgressVersionPrimary=null;A0.length=0}var Zh=Uo.ReactCurrentDispatcher,R0=Uo.ReactCurrentBatchConfig,Nl=0,wn=null,Kn=null,or=null,Pp=!1,Md=!1,Yd=0,B3=0;function Mr(){throw Error(ke(321))}function dx(t,e){if(e===null)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!Ls(t[n],e[n]))return!1;return!0}function fx(t,e,n,r,i,s){if(Nl=s,wn=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,Zh.current=t===null||t.memoizedState===null?G3:$3,t=n(r,i),Md){s=0;do{if(Md=!1,Yd=0,25n?n:4,t(!0);var r=R0.transition;R0.transition={};try{t(!1),e()}finally{Xt=n,R0.transition=r}}function iM(){return os().memoizedState}function H3(t,e,n){var r=ba(t);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},sM(t))oM(e,n);else if(n=BE(t,e,n,r),n!==null){var i=qr();Rs(n,t,r,i),aM(n,e,r)}}function W3(t,e,n){var r=ba(t),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(sM(t))oM(e,i);else{var s=t.alternate;if(t.lanes===0&&(s===null||s.lanes===0)&&(s=e.lastRenderedReducer,s!==null))try{var o=e.lastRenderedState,a=s(o,n);if(i.hasEagerState=!0,i.eagerState=a,Ls(a,o)){var l=e.interleaved;l===null?(i.next=i,ox(e)):(i.next=l.next,l.next=i),e.interleaved=i;return}}catch{}finally{}n=BE(t,e,i,r),n!==null&&(i=qr(),Rs(n,t,r,i),aM(n,e,r))}}function sM(t){var e=t.alternate;return t===wn||e!==null&&e===wn}function oM(t,e){Md=Pp=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function aM(t,e,n){if(n&4194240){var r=e.lanes;r&=t.pendingLanes,n|=r,e.lanes=n,j_(t,n)}}var Dp={readContext:ss,useCallback:Mr,useContext:Mr,useEffect:Mr,useImperativeHandle:Mr,useInsertionEffect:Mr,useLayoutEffect:Mr,useMemo:Mr,useReducer:Mr,useRef:Mr,useState:Mr,useDebugValue:Mr,useDeferredValue:Mr,useTransition:Mr,useMutableSource:Mr,useSyncExternalStore:Mr,useId:Mr,unstable_isNewReconciler:!1},G3={readContext:ss,useCallback:function(t,e){return zs().memoizedState=[t,e===void 0?null:e],t},useContext:ss,useEffect:C1,useImperativeHandle:function(t,e,n){return n=n!=null?n.concat([t]):null,Qh(4194308,4,JE.bind(null,e,t),n)},useLayoutEffect:function(t,e){return Qh(4194308,4,t,e)},useInsertionEffect:function(t,e){return Qh(4,2,t,e)},useMemo:function(t,e){var n=zs();return e=e===void 0?null:e,t=t(),n.memoizedState=[t,e],t},useReducer:function(t,e,n){var r=zs();return e=n!==void 0?n(e):e,r.memoizedState=r.baseState=e,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:e},r.queue=t,t=t.dispatch=H3.bind(null,wn,t),[r.memoizedState,t]},useRef:function(t){var e=zs();return t={current:t},e.memoizedState=t},useState:T1,useDebugValue:mx,useDeferredValue:function(t){return zs().memoizedState=t},useTransition:function(){var t=T1(!1),e=t[0];return t=V3.bind(null,t[1]),zs().memoizedState=t,[e,t]},useMutableSource:function(){},useSyncExternalStore:function(t,e,n){var r=wn,i=zs();if(fn){if(n===void 0)throw Error(ke(407));n=n()}else{if(n=e(),lr===null)throw Error(ke(349));Nl&30||$E(r,e,n)}i.memoizedState=n;var s={value:n,getSnapshot:e};return i.queue=s,C1(XE.bind(null,r,s,t),[t]),r.flags|=2048,Kd(9,jE.bind(null,r,s,n,e),void 0,null),n},useId:function(){var t=zs(),e=lr.identifierPrefix;if(fn){var n=bo,r=So;n=(r&~(1<<32-As(r)-1)).toString(32)+n,e=":"+e+"R"+n,n=Yd++,0<n&&(e+="H"+n.toString(32)),e+=":"}else n=B3++,e=":"+e+"r"+n.toString(32)+":";return t.memoizedState=e},unstable_isNewReconciler:!1},$3={readContext:ss,useCallback:tM,useContext:ss,useEffect:px,useImperativeHandle:eM,useInsertionEffect:ZE,useLayoutEffect:QE,useMemo:nM,useReducer:P0,useRef:KE,useState:function(){return P0(qd)},useDebugValue:mx,useDeferredValue:function(t){var e=os();return rM(e,Kn.memoizedState,t)},useTransition:function(){var t=P0(qd)[0],e=os().memoizedState;return[t,e]},useMutableSource:WE,useSyncExternalStore:GE,useId:iM,unstable_isNewReconciler:!1},j3={readContext:ss,useCallback:tM,useContext:ss,useEffect:px,useImperativeHandle:eM,useInsertionEffect:ZE,useLayoutEffect:QE,useMemo:nM,useReducer:D0,useRef:KE,useState:function(){return D0(qd)},useDebugValue:mx,useDeferredValue:function(t){var e=os();return Kn===null?e.memoizedState=t:rM(e,Kn.memoizedState,t)},useTransition:function(){var t=D0(qd)[0],e=os().memoizedState;return[t,e]},useMutableSource:WE,useSyncExternalStore:GE,useId:iM,unstable_isNewReconciler:!1};function ys(t,e){if(t&&t.defaultProps){e=Sn({},e),t=t.defaultProps;for(var n in t)e[n]===void 0&&(e[n]=t[n]);return e}return e}function yv(t,e,n,r){e=t.memoizedState,n=n(r,e),n=n==null?e:Sn({},e,n),t.memoizedState=n,t.lanes===0&&(t.updateQueue.baseState=n)}var gm={isMounted:function(t){return(t=t._reactInternals)?jl(t)===t:!1},enqueueSetState:function(t,e,n){t=t._reactInternals;var r=qr(),i=ba(t),s=Mo(r,i);s.payload=e,n!=null&&(s.callback=n),e=wa(t,s,i),e!==null&&(Rs(e,t,i,r),Kh(e,t,i))},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var r=qr(),i=ba(t),s=Mo(r,i);s.tag=1,s.payload=e,n!=null&&(s.callback=n),e=wa(t,s,i),e!==null&&(Rs(e,t,i,r),Kh(e,t,i))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=qr(),r=ba(t),i=Mo(n,r);i.tag=2,e!=null&&(i.callback=e),e=wa(t,i,r),e!==null&&(Rs(e,t,r,n),Kh(e,t,r))}};function A1(t,e,n,r,i,s,o){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(r,s,o):e.prototype&&e.prototype.isPureReactComponent?!Hd(n,r)||!Hd(i,s):!0}function lM(t,e,n){var r=!1,i=Da,s=e.contextType;return typeof s=="object"&&s!==null?s=ss(s):(i=si(e)?Dl:Ur.current,r=e.contextTypes,s=(r=r!=null)?ou(t,i):Da),e=new e(n,s),t.memoizedState=e.state!==null&&e.state!==void 0?e.state:null,e.updater=gm,t.stateNode=e,e._reactInternals=t,r&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=i,t.__reactInternalMemoizedMaskedChildContext=s),e}function R1(t,e,n,r){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(n,r),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(n,r),e.state!==t&&gm.enqueueReplaceState(e,e.state,null)}function wv(t,e,n,r){var i=t.stateNode;i.props=n,i.state=t.memoizedState,i.refs={},ax(t);var s=e.contextType;typeof s=="object"&&s!==null?i.context=ss(s):(s=si(e)?Dl:Ur.current,i.context=ou(t,s)),i.state=t.memoizedState,s=e.getDerivedStateFromProps,typeof s=="function"&&(yv(t,e,s,n),i.state=t.memoizedState),typeof e.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(e=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),e!==i.state&&gm.enqueueReplaceState(i,i.state,null),Ap(t,n,i,r),i.state=t.memoizedState),typeof i.componentDidMount=="function"&&(t.flags|=4194308)}function uu(t,e){try{var n="",r=e;do n+=yR(r),r=r.return;while(r);var i=n}catch(s){i=`
Error generating stack: `+s.message+`
`+s.stack}return{value:t,source:e,stack:i,digest:null}}function L0(t,e,n){return{value:t,source:null,stack:n??null,digest:e??null}}function Sv(t,e){try{console.error(e.value)}catch(n){setTimeout(function(){throw n})}}var X3=typeof WeakMap=="function"?WeakMap:Map;function cM(t,e,n){n=Mo(-1,n),n.tag=3,n.payload={element:null};var r=e.value;return n.callback=function(){Np||(Np=!0,Lv=r),Sv(t,e)},n}function uM(t,e,n){n=Mo(-1,n),n.tag=3;var r=t.type.getDerivedStateFromError;if(typeof r=="function"){var i=e.value;n.payload=function(){return r(i)},n.callback=function(){Sv(t,e)}}var s=t.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(n.callback=function(){Sv(t,e),typeof r!="function"&&(Sa===null?Sa=new Set([this]):Sa.add(this));var o=e.stack;this.componentDidCatch(e.value,{componentStack:o!==null?o:""})}),n}function P1(t,e,n){var r=t.pingCache;if(r===null){r=t.pingCache=new X3;var i=new Set;r.set(e,i)}else i=r.get(e),i===void 0&&(i=new Set,r.set(e,i));i.has(n)||(i.add(n),t=aP.bind(null,t,e,n),e.then(t,t))}function D1(t){do{var e;if((e=t.tag===13)&&(e=t.memoizedState,e=e!==null?e.dehydrated!==null:!0),e)return t;t=t.return}while(t!==null);return null}function L1(t,e,n,r,i){return t.mode&1?(t.flags|=65536,t.lanes=i,t):(t===e?t.flags|=65536:(t.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(e=Mo(-1,1),e.tag=2,wa(n,e,1))),n.lanes|=1),t)}var Y3=Uo.ReactCurrentOwner,ri=!1;function $r(t,e,n,r){e.child=t===null?zE(e,null,n,r):lu(e,t.child,n,r)}function N1(t,e,n,r,i){n=n.render;var s=e.ref;return Yc(e,i),r=fx(t,e,n,r,s,i),n=hx(),t!==null&&!ri?(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~i,Ro(t,e,i)):(fn&&n&&ex(e),e.flags|=1,$r(t,e,r,i),e.child)}function O1(t,e,n,r,i){if(t===null){var s=n.type;return typeof s=="function"&&!bx(s)&&s.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(e.tag=15,e.type=s,dM(t,e,s,r,i)):(t=np(n.type,null,r,e,e.mode,i),t.ref=e.ref,t.return=e,e.child=t)}if(s=t.child,!(t.lanes&i)){var o=s.memoizedProps;if(n=n.compare,n=n!==null?n:Hd,n(o,r)&&t.ref===e.ref)return Ro(t,e,i)}return e.flags|=1,t=Ea(s,r),t.ref=e.ref,t.return=e,e.child=t}function dM(t,e,n,r,i){if(t!==null){var s=t.memoizedProps;if(Hd(s,r)&&t.ref===e.ref)if(ri=!1,e.pendingProps=r=s,(t.lanes&i)!==0)t.flags&131072&&(ri=!0);else return e.lanes=t.lanes,Ro(t,e,i)}return bv(t,e,n,r,i)}function fM(t,e,n){var r=e.pendingProps,i=r.children,s=t!==null?t.memoizedState:null;if(r.mode==="hidden")if(!(e.mode&1))e.memoizedState={baseLanes:0,cachePool:null,transitions:null},nn(zc,Ci),Ci|=n;else{if(!(n&1073741824))return t=s!==null?s.baseLanes|n:n,e.lanes=e.childLanes=1073741824,e.memoizedState={baseLanes:t,cachePool:null,transitions:null},e.updateQueue=null,nn(zc,Ci),Ci|=t,null;e.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=s!==null?s.baseLanes:n,nn(zc,Ci),Ci|=r}else s!==null?(r=s.baseLanes|n,e.memoizedState=null):r=n,nn(zc,Ci),Ci|=r;return $r(t,e,i,n),e.child}function hM(t,e){var n=e.ref;(t===null&&n!==null||t!==null&&t.ref!==n)&&(e.flags|=512,e.flags|=2097152)}function bv(t,e,n,r,i){var s=si(n)?Dl:Ur.current;return s=ou(e,s),Yc(e,i),n=fx(t,e,n,r,s,i),r=hx(),t!==null&&!ri?(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~i,Ro(t,e,i)):(fn&&r&&ex(e),e.flags|=1,$r(t,e,n,i),e.child)}function U1(t,e,n,r,i){if(si(n)){var s=!0;bp(e)}else s=!1;if(Yc(e,i),e.stateNode===null)Jh(t,e),lM(e,n,r),wv(e,n,r,i),r=!0;else if(t===null){var o=e.stateNode,a=e.memoizedProps;o.props=a;var l=o.context,c=n.contextType;typeof c=="object"&&c!==null?c=ss(c):(c=si(n)?Dl:Ur.current,c=ou(e,c));var u=n.getDerivedStateFromProps,h=typeof u=="function"||typeof o.getSnapshotBeforeUpdate=="function";h||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==r||l!==c)&&R1(e,o,r,c),oa=!1;var d=e.memoizedState;o.state=d,Ap(e,r,o,i),l=e.memoizedState,a!==r||d!==l||ii.current||oa?(typeof u=="function"&&(yv(e,n,u,r),l=e.memoizedState),(a=oa||A1(e,n,a,r,d,l,c))?(h||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(e.flags|=4194308)):(typeof o.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=r,e.memoizedState=l),o.props=r,o.state=l,o.context=c,r=a):(typeof o.componentDidMount=="function"&&(e.flags|=4194308),r=!1)}else{o=e.stateNode,VE(t,e),a=e.memoizedProps,c=e.type===e.elementType?a:ys(e.type,a),o.props=c,h=e.pendingProps,d=o.context,l=n.contextType,typeof l=="object"&&l!==null?l=ss(l):(l=si(n)?Dl:Ur.current,l=ou(e,l));var m=n.getDerivedStateFromProps;(u=typeof m=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==h||d!==l)&&R1(e,o,r,l),oa=!1,d=e.memoizedState,o.state=d,Ap(e,r,o,i);var v=e.memoizedState;a!==h||d!==v||ii.current||oa?(typeof m=="function"&&(yv(e,n,m,r),v=e.memoizedState),(c=oa||A1(e,n,c,r,d,v,l)||!1)?(u||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,v,l),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,v,l)),typeof o.componentDidUpdate=="function"&&(e.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof o.componentDidUpdate!="function"||a===t.memoizedProps&&d===t.memoizedState||(e.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===t.memoizedProps&&d===t.memoizedState||(e.flags|=1024),e.memoizedProps=r,e.memoizedState=v),o.props=r,o.state=v,o.context=l,r=c):(typeof o.componentDidUpdate!="function"||a===t.memoizedProps&&d===t.memoizedState||(e.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===t.memoizedProps&&d===t.memoizedState||(e.flags|=1024),r=!1)}return Ev(t,e,n,r,s,i)}function Ev(t,e,n,r,i,s){hM(t,e);var o=(e.flags&128)!==0;if(!r&&!o)return i&&y1(e,n,!1),Ro(t,e,s);r=e.stateNode,Y3.current=e;var a=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return e.flags|=1,t!==null&&o?(e.child=lu(e,t.child,null,s),e.child=lu(e,null,a,s)):$r(t,e,a,s),e.memoizedState=r.state,i&&y1(e,n,!0),e.child}function pM(t){var e=t.stateNode;e.pendingContext?x1(t,e.pendingContext,e.pendingContext!==e.context):e.context&&x1(t,e.context,!1),lx(t,e.containerInfo)}function I1(t,e,n,r,i){return au(),nx(i),e.flags|=256,$r(t,e,n,r),e.child}var Mv={dehydrated:null,treeContext:null,retryLane:0};function Tv(t){return{baseLanes:t,cachePool:null,transitions:null}}function mM(t,e,n){var r=e.pendingProps,i=vn.current,s=!1,o=(e.flags&128)!==0,a;if((a=o)||(a=t!==null&&t.memoizedState===null?!1:(i&2)!==0),a?(s=!0,e.flags&=-129):(t===null||t.memoizedState!==null)&&(i|=1),nn(vn,i&1),t===null)return _v(e),t=e.memoizedState,t!==null&&(t=t.dehydrated,t!==null)?(e.mode&1?t.data==="$!"?e.lanes=8:e.lanes=1073741824:e.lanes=1,null):(o=r.children,t=r.fallback,s?(r=e.mode,s=e.child,o={mode:"hidden",children:o},!(r&1)&&s!==null?(s.childLanes=0,s.pendingProps=o):s=xm(o,r,0,null),t=El(t,r,n,null),s.return=e,t.return=e,s.sibling=t,e.child=s,e.child.memoizedState=Tv(n),e.memoizedState=Mv,t):gx(e,o));if(i=t.memoizedState,i!==null&&(a=i.dehydrated,a!==null))return q3(t,e,o,r,a,i,n);if(s){s=r.fallback,o=e.mode,i=t.child,a=i.sibling;var l={mode:"hidden",children:r.children};return!(o&1)&&e.child!==i?(r=e.child,r.childLanes=0,r.pendingProps=l,e.deletions=null):(r=Ea(i,l),r.subtreeFlags=i.subtreeFlags&14680064),a!==null?s=Ea(a,s):(s=El(s,o,n,null),s.flags|=2),s.return=e,r.return=e,r.sibling=s,e.child=r,r=s,s=e.child,o=t.child.memoizedState,o=o===null?Tv(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},s.memoizedState=o,s.childLanes=t.childLanes&~n,e.memoizedState=Mv,r}return s=t.child,t=s.sibling,r=Ea(s,{mode:"visible",children:r.children}),!(e.mode&1)&&(r.lanes=n),r.return=e,r.sibling=null,t!==null&&(n=e.deletions,n===null?(e.deletions=[t],e.flags|=16):n.push(t)),e.child=r,e.memoizedState=null,r}function gx(t,e){return e=xm({mode:"visible",children:e},t.mode,0,null),e.return=t,t.child=e}function sh(t,e,n,r){return r!==null&&nx(r),lu(e,t.child,null,n),t=gx(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function q3(t,e,n,r,i,s,o){if(n)return e.flags&256?(e.flags&=-257,r=L0(Error(ke(422))),sh(t,e,o,r)):e.memoizedState!==null?(e.child=t.child,e.flags|=128,null):(s=r.fallback,i=e.mode,r=xm({mode:"visible",children:r.children},i,0,null),s=El(s,i,o,null),s.flags|=2,r.return=e,s.return=e,r.sibling=s,e.child=r,e.mode&1&&lu(e,t.child,null,o),e.child.memoizedState=Tv(o),e.memoizedState=Mv,s);if(!(e.mode&1))return sh(t,e,o,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var a=r.dgst;return r=a,s=Error(ke(419)),r=L0(s,r,void 0),sh(t,e,o,r)}if(a=(o&t.childLanes)!==0,ri||a){if(r=lr,r!==null){switch(o&-o){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|o)?0:i,i!==0&&i!==s.retryLane&&(s.retryLane=i,Ao(t,i),Rs(r,t,i,-1))}return Sx(),r=L0(Error(ke(421))),sh(t,e,o,r)}return i.data==="$?"?(e.flags|=128,e.child=t.child,e=lP.bind(null,t),i._reactRetry=e,null):(t=s.treeContext,Di=ya(i.nextSibling),Ni=e,fn=!0,Ss=null,t!==null&&(qi[Ki++]=So,qi[Ki++]=bo,qi[Ki++]=Ll,So=t.id,bo=t.overflow,Ll=e),e=gx(e,r.children),e.flags|=4096,e)}function k1(t,e,n){t.lanes|=e;var r=t.alternate;r!==null&&(r.lanes|=e),xv(t.return,e,n)}function N0(t,e,n,r,i){var s=t.memoizedState;s===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(s.isBackwards=e,s.rendering=null,s.renderingStartTime=0,s.last=r,s.tail=n,s.tailMode=i)}function gM(t,e,n){var r=e.pendingProps,i=r.revealOrder,s=r.tail;if($r(t,e,r.children,n),r=vn.current,r&2)r=r&1|2,e.flags|=128;else{if(t!==null&&t.flags&128)e:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&k1(t,n,e);else if(t.tag===19)k1(t,n,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}r&=1}if(nn(vn,r),!(e.mode&1))e.memoizedState=null;else switch(i){case"forwards":for(n=e.child,i=null;n!==null;)t=n.alternate,t!==null&&Rp(t)===null&&(i=n),n=n.sibling;n=i,n===null?(i=e.child,e.child=null):(i=n.sibling,n.sibling=null),N0(e,!1,i,n,s);break;case"backwards":for(n=null,i=e.child,e.child=null;i!==null;){if(t=i.alternate,t!==null&&Rp(t)===null){e.child=i;break}t=i.sibling,i.sibling=n,n=i,i=t}N0(e,!0,n,null,s);break;case"together":N0(e,!1,null,null,void 0);break;default:e.memoizedState=null}return e.child}function Jh(t,e){!(e.mode&1)&&t!==null&&(t.alternate=null,e.alternate=null,e.flags|=2)}function Ro(t,e,n){if(t!==null&&(e.dependencies=t.dependencies),Ol|=e.lanes,!(n&e.childLanes))return null;if(t!==null&&e.child!==t.child)throw Error(ke(153));if(e.child!==null){for(t=e.child,n=Ea(t,t.pendingProps),e.child=n,n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=Ea(t,t.pendingProps),n.return=e;n.sibling=null}return e.child}function K3(t,e,n){switch(e.tag){case 3:pM(e),au();break;case 5:HE(e);break;case 1:si(e.type)&&bp(e);break;case 4:lx(e,e.stateNode.containerInfo);break;case 10:var r=e.type._context,i=e.memoizedProps.value;nn(Tp,r._currentValue),r._currentValue=i;break;case 13:if(r=e.memoizedState,r!==null)return r.dehydrated!==null?(nn(vn,vn.current&1),e.flags|=128,null):n&e.child.childLanes?mM(t,e,n):(nn(vn,vn.current&1),t=Ro(t,e,n),t!==null?t.sibling:null);nn(vn,vn.current&1);break;case 19:if(r=(n&e.childLanes)!==0,t.flags&128){if(r)return gM(t,e,n);e.flags|=128}if(i=e.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),nn(vn,vn.current),r)break;return null;case 22:case 23:return e.lanes=0,fM(t,e,n)}return Ro(t,e,n)}var vM,Cv,_M,xM;vM=function(t,e){for(var n=e.child;n!==null;){if(n.tag===5||n.tag===6)t.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Cv=function(){};_M=function(t,e,n,r){var i=t.memoizedProps;if(i!==r){t=e.stateNode,_l(Qs.current);var s=null;switch(n){case"input":i=qg(t,i),r=qg(t,r),s=[];break;case"select":i=Sn({},i,{value:void 0}),r=Sn({},r,{value:void 0}),s=[];break;case"textarea":i=Qg(t,i),r=Qg(t,r),s=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(t.onclick=wp)}ev(n,r);var o;n=null;for(c in i)if(!r.hasOwnProperty(c)&&i.hasOwnProperty(c)&&i[c]!=null)if(c==="style"){var a=i[c];for(o in a)a.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(Ud.hasOwnProperty(c)?s||(s=[]):(s=s||[]).push(c,null));for(c in r){var l=r[c];if(a=i!=null?i[c]:void 0,r.hasOwnProperty(c)&&l!==a&&(l!=null||a!=null))if(c==="style")if(a){for(o in a)!a.hasOwnProperty(o)||l&&l.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in l)l.hasOwnProperty(o)&&a[o]!==l[o]&&(n||(n={}),n[o]=l[o])}else n||(s||(s=[]),s.push(c,n)),n=l;else c==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(s=s||[]).push(c,l)):c==="children"?typeof l!="string"&&typeof l!="number"||(s=s||[]).push(c,""+l):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(Ud.hasOwnProperty(c)?(l!=null&&c==="onScroll"&&on("scroll",t),s||a===l||(s=[])):(s=s||[]).push(c,l))}n&&(s=s||[]).push("style",n);var c=s;(e.updateQueue=c)&&(e.flags|=4)}};xM=function(t,e,n,r){n!==r&&(e.flags|=4)};function ed(t,e){if(!fn)switch(t.tailMode){case"hidden":e=t.tail;for(var n=null;e!==null;)e.alternate!==null&&(n=e),e=e.sibling;n===null?t.tail=null:n.sibling=null;break;case"collapsed":n=t.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:r.sibling=null}}function Tr(t){var e=t.alternate!==null&&t.alternate.child===t.child,n=0,r=0;if(e)for(var i=t.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=t,i=i.sibling;else for(i=t.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=t,i=i.sibling;return t.subtreeFlags|=r,t.childLanes=n,e}function Z3(t,e,n){var r=e.pendingProps;switch(tx(e),e.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Tr(e),null;case 1:return si(e.type)&&Sp(),Tr(e),null;case 3:return r=e.stateNode,cu(),ln(ii),ln(Ur),ux(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(t===null||t.child===null)&&(rh(e)?e.flags|=4:t===null||t.memoizedState.isDehydrated&&!(e.flags&256)||(e.flags|=1024,Ss!==null&&(Uv(Ss),Ss=null))),Cv(t,e),Tr(e),null;case 5:cx(e);var i=_l(Xd.current);if(n=e.type,t!==null&&e.stateNode!=null)_M(t,e,n,r,i),t.ref!==e.ref&&(e.flags|=512,e.flags|=2097152);else{if(!r){if(e.stateNode===null)throw Error(ke(166));return Tr(e),null}if(t=_l(Qs.current),rh(e)){r=e.stateNode,n=e.type;var s=e.memoizedProps;switch(r[Ws]=e,r[$d]=s,t=(e.mode&1)!==0,n){case"dialog":on("cancel",r),on("close",r);break;case"iframe":case"object":case"embed":on("load",r);break;case"video":case"audio":for(i=0;i<md.length;i++)on(md[i],r);break;case"source":on("error",r);break;case"img":case"image":case"link":on("error",r),on("load",r);break;case"details":on("toggle",r);break;case"input":jy(r,s),on("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},on("invalid",r);break;case"textarea":Yy(r,s),on("invalid",r)}ev(n,s),i=null;for(var o in s)if(s.hasOwnProperty(o)){var a=s[o];o==="children"?typeof a=="string"?r.textContent!==a&&(s.suppressHydrationWarning!==!0&&nh(r.textContent,a,t),i=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(s.suppressHydrationWarning!==!0&&nh(r.textContent,a,t),i=["children",""+a]):Ud.hasOwnProperty(o)&&a!=null&&o==="onScroll"&&on("scroll",r)}switch(n){case"input":Yf(r),Xy(r,s,!0);break;case"textarea":Yf(r),qy(r);break;case"select":case"option":break;default:typeof s.onClick=="function"&&(r.onclick=wp)}r=i,e.updateQueue=r,r!==null&&(e.flags|=4)}else{o=i.nodeType===9?i:i.ownerDocument,t==="http://www.w3.org/1999/xhtml"&&(t=Xb(n)),t==="http://www.w3.org/1999/xhtml"?n==="script"?(t=o.createElement("div"),t.innerHTML="",t=t.removeChild(t.firstChild)):typeof r.is=="string"?t=o.createElement(n,{is:r.is}):(t=o.createElement(n),n==="select"&&(o=t,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):t=o.createElementNS(t,n),t[Ws]=e,t[$d]=r,vM(t,e,!1,!1),e.stateNode=t;e:{switch(o=tv(n,r),n){case"dialog":on("cancel",t),on("close",t),i=r;break;case"iframe":case"object":case"embed":on("load",t),i=r;break;case"video":case"audio":for(i=0;idu&&(e.flags|=128,r=!0,ed(s,!1),e.lanes=4194304)}else{if(!r)if(t=Rp(o),t!==null){if(e.flags|=128,r=!0,n=t.updateQueue,n!==null&&(e.updateQueue=n,e.flags|=4),ed(s,!0),s.tail===null&&s.tailMode==="hidden"&&!o.alternate&&!fn)return Tr(e),null}else 2*Nn()-s.renderingStartTime>du&&n!==1073741824&&(e.flags|=128,r=!0,ed(s,!1),e.lanes=4194304);s.isBackwards?(o.sibling=e.child,e.child=o):(n=s.last,n!==null?n.sibling=o:e.child=o,s.last=o)}return s.tail!==null?(e=s.tail,s.rendering=e,s.tail=e.sibling,s.renderingStartTime=Nn(),e.sibling=null,n=vn.current,nn(vn,r?n&1|2:n&1),e):(Tr(e),null);case 22:case 23:return wx(),r=e.memoizedState!==null,t!==null&&t.memoizedState!==null!==r&&(e.flags|=8192),r&&e.mode&1?Ci&1073741824&&(Tr(e),e.subtreeFlags&6&&(e.flags|=8192)):Tr(e),null;case 24:return null;case 25:return null}throw Error(ke(156,e.tag))}function Q3(t,e){switch(tx(e),e.tag){case 1:return si(e.type)&&Sp(),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return cu(),ln(ii),ln(Ur),ux(),t=e.flags,t&65536&&!(t&128)?(e.flags=t&-65537|128,e):null;case 5:return cx(e),null;case 13:if(ln(vn),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(ke(340));au()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return ln(vn),null;case 4:return cu(),null;case 10:return sx(e.type._context),null;case 22:case 23:return wx(),null;case 24:return null;default:return null}}var oh=!1,Pr=!1,J3=typeof WeakSet=="function"?WeakSet:Set,Ke=null;function Fc(t,e){var n=t.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Mn(t,e,r)}else n.current=null}function Av(t,e,n){try{n()}catch(r){Mn(t,e,r)}}var F1=!1;function eP(t,e){if(dv=_p,t=EE(),J_(t)){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else e:{n=(n=t.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var o=0,a=-1,l=-1,c=0,u=0,h=t,d=null;t:for(;;){for(var m;h!==n||i!==0&&h.nodeType!==3||(a=o+i),h!==s||r!==0&&h.nodeType!==3||(l=o+r),h.nodeType===3&&(o+=h.nodeValue.length),(m=h.firstChild)!==null;)d=h,h=m;for(;;){if(h===t)break t;if(d===n&&++c===i&&(a=o),d===s&&++u===r&&(l=o),(m=h.nextSibling)!==null)break;h=d,d=h.parentNode}h=m}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(fv={focusedElem:t,selectionRange:n},_p=!1,Ke=e;Ke!==null;)if(e=Ke,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,Ke=t;else for(;Ke!==null;){e=Ke;try{var v=e.alternate;if(e.flags&1024)switch(e.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var p=v.memoizedProps,g=v.memoizedState,f=e.stateNode,x=f.getSnapshotBeforeUpdate(e.elementType===e.type?p:ys(e.type,p),g);f.__reactInternalSnapshotBeforeUpdate=x}break;case 3:var _=e.stateNode.containerInfo;_.nodeType===1?_.textContent="":_.nodeType===9&&_.documentElement&&_.removeChild(_.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(ke(163))}}catch(y){Mn(e,e.return,y)}if(t=e.sibling,t!==null){t.return=e.return,Ke=t;break}Ke=e.return}return v=F1,F1=!1,v}function Td(t,e,n){var r=e.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&t)===t){var s=i.destroy;i.destroy=void 0,s!==void 0&&Av(e,n,s)}i=i.next}while(i!==r)}}function vm(t,e){if(e=e.updateQueue,e=e!==null?e.lastEffect:null,e!==null){var n=e=e.next;do{if((n.tag&t)===t){var r=n.create;n.destroy=r()}n=n.next}while(n!==e)}}function Rv(t){var e=t.ref;if(e!==null){var n=t.stateNode;switch(t.tag){case 5:t=n;break;default:t=n}typeof e=="function"?e(t):e.current=t}}function yM(t){var e=t.alternate;e!==null&&(t.alternate=null,yM(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&(delete e[Ws],delete e[$d],delete e[mv],delete e[I3],delete e[k3])),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function wM(t){return t.tag===5||t.tag===3||t.tag===4}function z1(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||wM(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function Pv(t,e,n){var r=t.tag;if(r===5||r===6)t=t.stateNode,e?n.nodeType===8?n.parentNode.insertBefore(t,e):n.insertBefore(t,e):(n.nodeType===8?(e=n.parentNode,e.insertBefore(t,n)):(e=n,e.appendChild(t)),n=n._reactRootContainer,n!=null||e.onclick!==null||(e.onclick=wp));else if(r!==4&&(t=t.child,t!==null))for(Pv(t,e,n),t=t.sibling;t!==null;)Pv(t,e,n),t=t.sibling}function Dv(t,e,n){var r=t.tag;if(r===5||r===6)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(r!==4&&(t=t.child,t!==null))for(Dv(t,e,n),t=t.sibling;t!==null;)Dv(t,e,n),t=t.sibling}var mr=null,ws=!1;function Yo(t,e,n){for(n=n.child;n!==null;)SM(t,e,n),n=n.sibling}function SM(t,e,n){if(Zs&&typeof Zs.onCommitFiberUnmount=="function")try{Zs.onCommitFiberUnmount(cm,n)}catch{}switch(n.tag){case 5:Pr||Fc(n,e);case 6:var r=mr,i=ws;mr=null,Yo(t,e,n),mr=r,ws=i,mr!==null&&(ws?(t=mr,n=n.stateNode,t.nodeType===8?t.parentNode.removeChild(n):t.removeChild(n)):mr.removeChild(n.stateNode));break;case 18:mr!==null&&(ws?(t=mr,n=n.stateNode,t.nodeType===8?T0(t.parentNode,n):t.nodeType===1&&T0(t,n),Bd(t)):T0(mr,n.stateNode));break;case 4:r=mr,i=ws,mr=n.stateNode.containerInfo,ws=!0,Yo(t,e,n),mr=r,ws=i;break;case 0:case 11:case 14:case 15:if(!Pr&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var s=i,o=s.destroy;s=s.tag,o!==void 0&&(s&2||s&4)&&Av(n,e,o),i=i.next}while(i!==r)}Yo(t,e,n);break;case 1:if(!Pr&&(Fc(n,e),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){Mn(n,e,a)}Yo(t,e,n);break;case 21:Yo(t,e,n);break;case 22:n.mode&1?(Pr=(r=Pr)||n.memoizedState!==null,Yo(t,e,n),Pr=r):Yo(t,e,n);break;default:Yo(t,e,n)}}function B1(t){var e=t.updateQueue;if(e!==null){t.updateQueue=null;var n=t.stateNode;n===null&&(n=t.stateNode=new J3),e.forEach(function(r){var i=cP.bind(null,t,r);n.has(r)||(n.add(r),r.then(i,i))})}}function gs(t,e){var n=e.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var s=t,o=e,a=o;e:for(;a!==null;){switch(a.tag){case 5:mr=a.stateNode,ws=!1;break e;case 3:mr=a.stateNode.containerInfo,ws=!0;break e;case 4:mr=a.stateNode.containerInfo,ws=!0;break e}a=a.return}if(mr===null)throw Error(ke(160));SM(s,o,i),mr=null,ws=!1;var l=i.alternate;l!==null&&(l.return=null),i.return=null}catch(c){Mn(i,e,c)}}if(e.subtreeFlags&12854)for(e=e.child;e!==null;)bM(e,t),e=e.sibling}function bM(t,e){var n=t.alternate,r=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:if(gs(e,t),Fs(t),r&4){try{Td(3,t,t.return),vm(3,t)}catch(p){Mn(t,t.return,p)}try{Td(5,t,t.return)}catch(p){Mn(t,t.return,p)}}break;case 1:gs(e,t),Fs(t),r&512&&n!==null&&Fc(n,n.return);break;case 5:if(gs(e,t),Fs(t),r&512&&n!==null&&Fc(n,n.return),t.flags&32){var i=t.stateNode;try{Id(i,"")}catch(p){Mn(t,t.return,p)}}if(r&4&&(i=t.stateNode,i!=null)){var s=t.memoizedProps,o=n!==null?n.memoizedProps:s,a=t.type,l=t.updateQueue;if(t.updateQueue=null,l!==null)try{a==="input"&&s.type==="radio"&&s.name!=null&&$b(i,s),tv(a,o);var c=tv(a,s);for(o=0;o<l.length;o+=2){var u=l[o],h=l[o+1];u==="style"?Kb(i,h):u==="dangerouslySetInnerHTML"?Yb(i,h):u==="children"?Id(i,h):B_(i,u,h,c)}switch(a){case"input":Kg(i,s);break;case"textarea":jb(i,s);break;case"select":var d=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!s.multiple;var m=s.value;m!=null?Gc(i,!!s.multiple,m,!1):d!==!!s.multiple&&(s.defaultValue!=null?Gc(i,!!s.multiple,s.defaultValue,!0):Gc(i,!!s.multiple,s.multiple?[]:"",!1))}i[$d]=s}catch(p){Mn(t,t.return,p)}}break;case 6:if(gs(e,t),Fs(t),r&4){if(t.stateNode===null)throw Error(ke(162));i=t.stateNode,s=t.memoizedProps;try{i.nodeValue=s}catch(p){Mn(t,t.return,p)}}break;case 3:if(gs(e,t),Fs(t),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Bd(e.containerInfo)}catch(p){Mn(t,t.return,p)}break;case 4:gs(e,t),Fs(t);break;case 13:gs(e,t),Fs(t),i=t.child,i.flags&8192&&(s=i.memoizedState!==null,i.stateNode.isHidden=s,!s||i.alternate!==null&&i.alternate.memoizedState!==null||(xx=Nn())),r&4&&B1(t);break;case 22:if(u=n!==null&&n.memoizedState!==null,t.mode&1?(Pr=(c=Pr)||u,gs(e,t),Pr=c):gs(e,t),Fs(t),r&8192){if(c=t.memoizedState!==null,(t.stateNode.isHidden=c)&&!u&&t.mode&1)for(Ke=t,u=t.child;u!==null;){for(h=Ke=u;Ke!==null;){switch(d=Ke,m=d.child,d.tag){case 0:case 11:case 14:case 15:Td(4,d,d.return);break;case 1:Fc(d,d.return);var v=d.stateNode;if(typeof v.componentWillUnmount=="function"){r=d,n=d.return;try{e=r,v.props=e.memoizedProps,v.state=e.memoizedState,v.componentWillUnmount()}catch(p){Mn(r,n,p)}}break;case 5:Fc(d,d.return);break;case 22:if(d.memoizedState!==null){H1(h);continue}}m!==null?(m.return=d,Ke=m):H1(h)}u=u.sibling}e:for(u=null,h=t;;){if(h.tag===5){if(u===null){u=h;try{i=h.stateNode,c?(s=i.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none"):(a=h.stateNode,l=h.memoizedProps.style,o=l!=null&&l.hasOwnProperty("display")?l.display:null,a.style.display=qb("display",o))}catch(p){Mn(t,t.return,p)}}}else if(h.tag===6){if(u===null)try{h.stateNode.nodeValue=c?"":h.memoizedProps}catch(p){Mn(t,t.return,p)}}else if((h.tag!==22&&h.tag!==23||h.memoizedState===null||h===t)&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===t)break e;for(;h.sibling===null;){if(h.return===null||h.return===t)break e;u===h&&(u=null),h=h.return}u===h&&(u=null),h.sibling.return=h.return,h=h.sibling}}break;case 19:gs(e,t),Fs(t),r&4&&B1(t);break;case 21:break;default:gs(e,t),Fs(t)}}function Fs(t){var e=t.flags;if(e&2){try{e:{for(var n=t.return;n!==null;){if(wM(n)){var r=n;break e}n=n.return}throw Error(ke(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(Id(i,""),r.flags&=-33);var s=z1(t);Dv(t,s,i);break;case 3:case 4:var o=r.stateNode.containerInfo,a=z1(t);Pv(t,a,o);break;default:throw Error(ke(161))}}catch(l){Mn(t,t.return,l)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function tP(t,e,n){Ke=t,EM(t)}function EM(t,e,n){for(var r=(t.mode&1)!==0;Ke!==null;){var i=Ke,s=i.child;if(i.tag===22&&r){var o=i.memoizedState!==null||oh;if(!o){var a=i.alternate,l=a!==null&&a.memoizedState!==null||Pr;a=oh;var c=Pr;if(oh=o,(Pr=l)&&!c)for(Ke=i;Ke!==null;)o=Ke,l=o.child,o.tag===22&&o.memoizedState!==null?W1(i):l!==null?(l.return=o,Ke=l):W1(i);for(;s!==null;)Ke=s,EM(s),s=s.sibling;Ke=i,oh=a,Pr=c}V1(t)}else i.subtreeFlags&8772&&s!==null?(s.return=i,Ke=s):V1(t)}}function V1(t){for(;Ke!==null;){var e=Ke;if(e.flags&8772){var n=e.alternate;try{if(e.flags&8772)switch(e.tag){case 0:case 11:case 15:Pr||vm(5,e);break;case 1:var r=e.stateNode;if(e.flags&4&&!Pr)if(n===null)r.componentDidMount();else{var i=e.elementType===e.type?n.memoizedProps:ys(e.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var s=e.updateQueue;s!==null&&M1(e,s,r);break;case 3:var o=e.updateQueue;if(o!==null){if(n=null,e.child!==null)switch(e.child.tag){case 5:n=e.child.stateNode;break;case 1:n=e.child.stateNode}M1(e,o,n)}break;case 5:var a=e.stateNode;if(n===null&&e.flags&4){n=a;var l=e.memoizedProps;switch(e.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(e.memoizedState===null){var c=e.alternate;if(c!==null){var u=c.memoizedState;if(u!==null){var h=u.dehydrated;h!==null&&Bd(h)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(ke(163))}Pr||e.flags&512&&Rv(e)}catch(d){Mn(e,e.return,d)}}if(e===t){Ke=null;break}if(n=e.sibling,n!==null){n.return=e.return,Ke=n;break}Ke=e.return}}function H1(t){for(;Ke!==null;){var e=Ke;if(e===t){Ke=null;break}var n=e.sibling;if(n!==null){n.return=e.return,Ke=n;break}Ke=e.return}}function W1(t){for(;Ke!==null;){var e=Ke;try{switch(e.tag){case 0:case 11:case 15:var n=e.return;try{vm(4,e)}catch(l){Mn(e,n,l)}break;case 1:var r=e.stateNode;if(typeof r.componentDidMount=="function"){var i=e.return;try{r.componentDidMount()}catch(l){Mn(e,i,l)}}var s=e.return;try{Rv(e)}catch(l){Mn(e,s,l)}break;case 5:var o=e.return;try{Rv(e)}catch(l){Mn(e,o,l)}}}catch(l){Mn(e,e.return,l)}if(e===t){Ke=null;break}var a=e.sibling;if(a!==null){a.return=e.return,Ke=a;break}Ke=e.return}}var nP=Math.ceil,Lp=Uo.ReactCurrentDispatcher,vx=Uo.ReactCurrentOwner,ns=Uo.ReactCurrentBatchConfig,Ft=0,lr=null,Gn=null,vr=0,Ci=0,zc=ka(0),Zn=0,Zd=null,Ol=0,_m=0,_x=0,Cd=null,ti=null,xx=0,du=1/0,go=null,Np=!1,Lv=null,Sa=null,ah=!1,da=null,Op=0,Ad=0,Nv=null,ep=-1,tp=0;function qr(){return Ft&6?Nn():ep!==-1?ep:ep=Nn()}function ba(t){return t.mode&1?Ft&2&&vr!==0?vr&-vr:z3.transition!==null?(tp===0&&(tp=lE()),tp):(t=Xt,t!==0||(t=window.event,t=t===void 0?16:mE(t.type)),t):1}function Rs(t,e,n,r){if(50<Ad)throw Ad=0,Nv=null,Error(ke(185));pf(t,n,r),(!(Ft&2)||t!==lr)&&(t===lr&&(!(Ft&2)&&(_m|=n),Zn===4&&la(t,vr)),oi(t,r),n===1&&Ft===0&&!(e.mode&1)&&(du=Nn()+500,pm&&Fa()))}function oi(t,e){var n=t.callbackNode;zR(t,e);var r=vp(t,t===lr?vr:0);if(r===0)n!==null&&Qy(n),t.callbackNode=null,t.callbackPriority=0;else if(e=r&-r,t.callbackPriority!==e){if(n!=null&&Qy(n),e===1)t.tag===0?F3(G1.bind(null,t)):OE(G1.bind(null,t)),O3(function(){!(Ft&6)&&Fa()}),n=null;else{switch(cE(r)){case 1:n=$_;break;case 4:n=oE;break;case 16:n=gp;break;case 536870912:n=aE;break;default:n=gp}n=LM(n,MM.bind(null,t))}t.callbackPriority=e,t.callbackNode=n}}function MM(t,e){if(ep=-1,tp=0,Ft&6)throw Error(ke(327));var n=t.callbackNode;if(qc()&&t.callbackNode!==n)return null;var r=vp(t,t===lr?vr:0);if(r===0)return null;if(r&30||r&t.expiredLanes||e)e=Up(t,r);else{e=r;var i=Ft;Ft|=2;var s=CM();(lr!==t||vr!==e)&&(go=null,du=Nn()+500,bl(t,e));do try{sP();break}catch(a){TM(t,a)}while(!0);ix(),Lp.current=s,Ft=i,Gn!==null?e=0:(lr=null,vr=0,e=Zn)}if(e!==0){if(e===2&&(i=ov(t),i!==0&&(r=i,e=Ov(t,i))),e===1)throw n=Zd,bl(t,0),la(t,r),oi(t,Nn()),n;if(e===6)la(t,r);else{if(i=t.current.alternate,!(r&30)&&!rP(i)&&(e=Up(t,r),e===2&&(s=ov(t),s!==0&&(r=s,e=Ov(t,s))),e===1))throw n=Zd,bl(t,0),la(t,r),oi(t,Nn()),n;switch(t.finishedWork=i,t.finishedLanes=r,e){case 0:case 1:throw Error(ke(345));case 2:cl(t,ti,go);break;case 3:if(la(t,r),(r&130023424)===r&&(e=xx+500-Nn(),10<e)){if(vp(t,0)!==0)break;if(i=t.suspendedLanes,(i&r)!==r){qr(),t.pingedLanes|=t.suspendedLanes&i;break}t.timeoutHandle=pv(cl.bind(null,t,ti,go),e);break}cl(t,ti,go);break;case 4:if(la(t,r),(r&4194240)===r)break;for(e=t.eventTimes,i=-1;0<r;){var o=31-As(r);s=1<i&&(i=o),r&=~s}if(r=i,r=Nn()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*nP(r/1960))-r,10<r){t.timeoutHandle=pv(cl.bind(null,t,ti,go),r);break}cl(t,ti,go);break;case 5:cl(t,ti,go);break;default:throw Error(ke(329))}}}return oi(t,Nn()),t.callbackNode===n?MM.bind(null,t):null}function Ov(t,e){var n=Cd;return t.current.memoizedState.isDehydrated&&(bl(t,e).flags|=256),t=Up(t,e),t!==2&&(e=ti,ti=n,e!==null&&Uv(e)),t}function Uv(t){ti===null?ti=t:ti.push.apply(ti,t)}function rP(t){for(var e=t;;){if(e.flags&16384){var n=e.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],s=i.getSnapshot;i=i.value;try{if(!Ls(s(),i))return!1}catch{return!1}}}if(n=e.child,e.subtreeFlags&16384&&n!==null)n.return=e,e=n;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function la(t,e){for(e&=~_x,e&=~_m,t.suspendedLanes|=e,t.pingedLanes&=~e,t=t.expirationTimes;0<e;){var n=31-As(e),r=1<<n;t[n]=-1,e&=~r}}function G1(t){if(Ft&6)throw Error(ke(327));qc();var e=vp(t,0);if(!(e&1))return oi(t,Nn()),null;var n=Up(t,e);if(t.tag!==0&&n===2){var r=ov(t);r!==0&&(e=r,n=Ov(t,r))}if(n===1)throw n=Zd,bl(t,0),la(t,e),oi(t,Nn()),n;if(n===6)throw Error(ke(345));return t.finishedWork=t.current.alternate,t.finishedLanes=e,cl(t,ti,go),oi(t,Nn()),null}function yx(t,e){var n=Ft;Ft|=1;try{return t(e)}finally{Ft=n,Ft===0&&(du=Nn()+500,pm&&Fa())}}function Ul(t){da!==null&&da.tag===0&&!(Ft&6)&&qc();var e=Ft;Ft|=1;var n=ns.transition,r=Xt;try{if(ns.transition=null,Xt=1,t)return t()}finally{Xt=r,ns.transition=n,Ft=e,!(Ft&6)&&Fa()}}function wx(){Ci=zc.current,ln(zc)}function bl(t,e){t.finishedWork=null,t.finishedLanes=0;var n=t.timeoutHandle;if(n!==-1&&(t.timeoutHandle=-1,N3(n)),Gn!==null)for(n=Gn.return;n!==null;){var r=n;switch(tx(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Sp();break;case 3:cu(),ln(ii),ln(Ur),ux();break;case 5:cx(r);break;case 4:cu();break;case 13:ln(vn);break;case 19:ln(vn);break;case 10:sx(r.type._context);break;case 22:case 23:wx()}n=n.return}if(lr=t,Gn=t=Ea(t.current,null),vr=Ci=e,Zn=0,Zd=null,_x=_m=Ol=0,ti=Cd=null,vl!==null){for(e=0;e<vl.length;e++)if(n=vl[e],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,s=n.pending;if(s!==null){var o=s.next;s.next=i,r.next=o}n.pending=r}vl=null}return t}function TM(t,e){do{var n=Gn;try{if(ix(),Zh.current=Dp,Pp){for(var r=wn.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}Pp=!1}if(Nl=0,or=Kn=wn=null,Md=!1,Yd=0,vx.current=null,n===null||n.return===null){Zn=1,Zd=e,Gn=null;break}e:{var s=t,o=n.return,a=n,l=e;if(e=vr,a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var c=l,u=a,h=u.tag;if(!(u.mode&1)&&(h===0||h===11||h===15)){var d=u.alternate;d?(u.updateQueue=d.updateQueue,u.memoizedState=d.memoizedState,u.lanes=d.lanes):(u.updateQueue=null,u.memoizedState=null)}var m=D1(o);if(m!==null){m.flags&=-257,L1(m,o,a,s,e),m.mode&1&&P1(s,c,e),e=m,l=c;var v=e.updateQueue;if(v===null){var p=new Set;p.add(l),e.updateQueue=p}else v.add(l);break e}else{if(!(e&1)){P1(s,c,e),Sx();break e}l=Error(ke(426))}}else if(fn&&a.mode&1){var g=D1(o);if(g!==null){!(g.flags&65536)&&(g.flags|=256),L1(g,o,a,s,e),nx(uu(l,a));break e}}s=l=uu(l,a),Zn!==4&&(Zn=2),Cd===null?Cd=[s]:Cd.push(s),s=o;do{switch(s.tag){case 3:s.flags|=65536,e&=-e,s.lanes|=e;var f=cM(s,l,e);E1(s,f);break e;case 1:a=l;var x=s.type,_=s.stateNode;if(!(s.flags&128)&&(typeof x.getDerivedStateFromError=="function"||_!==null&&typeof _.componentDidCatch=="function"&&(Sa===null||!Sa.has(_)))){s.flags|=65536,e&=-e,s.lanes|=e;var y=uM(s,a,e);E1(s,y);break e}}s=s.return}while(s!==null)}RM(n)}catch(w){e=w,Gn===n&&n!==null&&(Gn=n=n.return);continue}break}while(!0)}function CM(){var t=Lp.current;return Lp.current=Dp,t===null?Dp:t}function Sx(){(Zn===0||Zn===3||Zn===2)&&(Zn=4),lr===null||!(Ol&268435455)&&!(_m&268435455)||la(lr,vr)}function Up(t,e){var n=Ft;Ft|=2;var r=CM();(lr!==t||vr!==e)&&(go=null,bl(t,e));do try{iP();break}catch(i){TM(t,i)}while(!0);if(ix(),Ft=n,Lp.current=r,Gn!==null)throw Error(ke(261));return lr=null,vr=0,Zn}function iP(){for(;Gn!==null;)AM(Gn)}function sP(){for(;Gn!==null&&!PR();)AM(Gn)}function AM(t){var e=DM(t.alternate,t,Ci);t.memoizedProps=t.pendingProps,e===null?RM(t):Gn=e,vx.current=null}function RM(t){var e=t;do{var n=e.alternate;if(t=e.return,e.flags&32768){if(n=Q3(n,e),n!==null){n.flags&=32767,Gn=n;return}if(t!==null)t.flags|=32768,t.subtreeFlags=0,t.deletions=null;else{Zn=6,Gn=null;return}}else if(n=Z3(n,e,Ci),n!==null){Gn=n;return}if(e=e.sibling,e!==null){Gn=e;return}Gn=e=t}while(e!==null);Zn===0&&(Zn=5)}function cl(t,e,n){var r=Xt,i=ns.transition;try{ns.transition=null,Xt=1,oP(t,e,n,r)}finally{ns.transition=i,Xt=r}return null}function oP(t,e,n,r){do qc();while(da!==null);if(Ft&6)throw Error(ke(327));n=t.finishedWork;var i=t.finishedLanes;if(n===null)return null;if(t.finishedWork=null,t.finishedLanes=0,n===t.current)throw Error(ke(177));t.callbackNode=null,t.callbackPriority=0;var s=n.lanes|n.childLanes;if(BR(t,s),t===lr&&(Gn=lr=null,vr=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||ah||(ah=!0,LM(gp,function(){return qc(),null})),s=(n.flags&15990)!==0,n.subtreeFlags&15990||s){s=ns.transition,ns.transition=null;var o=Xt;Xt=1;var a=Ft;Ft|=4,vx.current=null,eP(t,n),bM(n,t),T3(fv),_p=!!dv,fv=dv=null,t.current=n,tP(n),DR(),Ft=a,Xt=o,ns.transition=s}else t.current=n;if(ah&&(ah=!1,da=t,Op=i),s=t.pendingLanes,s===0&&(Sa=null),OR(n.stateNode),oi(t,Nn()),e!==null)for(r=t.onRecoverableError,n=0;nt?16:t,da===null)var r=!1;else{if(t=da,da=null,Op=0,Ft&6)throw Error(ke(331));var i=Ft;for(Ft|=4,Ke=t.current;Ke!==null;){var s=Ke,o=s.child;if(Ke.flags&16){var a=s.deletions;if(a!==null){for(var l=0;lNn()-xx?bl(t,0):_x|=n),oi(t,e)}function PM(t,e){e===0&&(t.mode&1?(e=Zf,Zf<<=1,!(Zf&130023424)&&(Zf=4194304)):e=1);var n=qr();t=Ao(t,e),t!==null&&(pf(t,e,n),oi(t,n))}function lP(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),PM(t,n)}function cP(t,e){var n=0;switch(t.tag){case 13:var r=t.stateNode,i=t.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=t.stateNode;break;default:throw Error(ke(314))}r!==null&&r.delete(e),PM(t,n)}var DM;DM=function(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps||ii.current)ri=!0;else{if(!(t.lanes&n)&&!(e.flags&128))return ri=!1,K3(t,e,n);ri=!!(t.flags&131072)}else ri=!1,fn&&e.flags&1048576&&UE(e,Mp,e.index);switch(e.lanes=0,e.tag){case 2:var r=e.type;Jh(t,e),t=e.pendingProps;var i=ou(e,Ur.current);Yc(e,n),i=fx(null,e,r,t,i,n);var s=hx();return e.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(e.tag=1,e.memoizedState=null,e.updateQueue=null,si(r)?(s=!0,bp(e)):s=!1,e.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,ax(e),i.updater=gm,e.stateNode=i,i._reactInternals=e,wv(e,r,t,n),e=Ev(null,e,r,!0,s,n)):(e.tag=0,fn&&s&&ex(e),$r(null,e,i,n),e=e.child),e;case 16:r=e.elementType;e:{switch(Jh(t,e),t=e.pendingProps,i=r._init,r=i(r._payload),e.type=r,i=e.tag=dP(r),t=ys(r,t),i){case 0:e=bv(null,e,r,t,n);break e;case 1:e=U1(null,e,r,t,n);break e;case 11:e=N1(null,e,r,t,n);break e;case 14:e=O1(null,e,r,ys(r.type,t),n);break e}throw Error(ke(306,r,""))}return e;case 0:return r=e.type,i=e.pendingProps,i=e.elementType===r?i:ys(r,i),bv(t,e,r,i,n);case 1:return r=e.type,i=e.pendingProps,i=e.elementType===r?i:ys(r,i),U1(t,e,r,i,n);case 3:e:{if(pM(e),t===null)throw Error(ke(387));r=e.pendingProps,s=e.memoizedState,i=s.element,VE(t,e),Ap(e,r,null,n);var o=e.memoizedState;if(r=o.element,s.isDehydrated)if(s={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},e.updateQueue.baseState=s,e.memoizedState=s,e.flags&256){i=uu(Error(ke(423)),e),e=I1(t,e,r,n,i);break e}else if(r!==i){i=uu(Error(ke(424)),e),e=I1(t,e,r,n,i);break e}else for(Di=ya(e.stateNode.containerInfo.firstChild),Ni=e,fn=!0,Ss=null,n=zE(e,null,r,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(au(),r===i){e=Ro(t,e,n);break e}$r(t,e,r,n)}e=e.child}return e;case 5:return HE(e),t===null&&_v(e),r=e.type,i=e.pendingProps,s=t!==null?t.memoizedProps:null,o=i.children,hv(r,i)?o=null:s!==null&&hv(r,s)&&(e.flags|=32),hM(t,e),$r(t,e,o,n),e.child;case 6:return t===null&&_v(e),null;case 13:return mM(t,e,n);case 4:return lx(e,e.stateNode.containerInfo),r=e.pendingProps,t===null?e.child=lu(e,null,r,n):$r(t,e,r,n),e.child;case 11:return r=e.type,i=e.pendingProps,i=e.elementType===r?i:ys(r,i),N1(t,e,r,i,n);case 7:return $r(t,e,e.pendingProps,n),e.child;case 8:return $r(t,e,e.pendingProps.children,n),e.child;case 12:return $r(t,e,e.pendingProps.children,n),e.child;case 10:e:{if(r=e.type._context,i=e.pendingProps,s=e.memoizedProps,o=i.value,nn(Tp,r._currentValue),r._currentValue=o,s!==null)if(Ls(s.value,o)){if(s.children===i.children&&!ii.current){e=Ro(t,e,n);break e}}else for(s=e.child,s!==null&&(s.return=e);s!==null;){var a=s.dependencies;if(a!==null){o=s.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(s.tag===1){l=Mo(-1,n&-n),l.tag=2;var c=s.updateQueue;if(c!==null){c=c.shared;var u=c.pending;u===null?l.next=l:(l.next=u.next,u.next=l),c.pending=l}}s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),xv(s.return,n,e),a.lanes|=n;break}l=l.next}}else if(s.tag===10)o=s.type===e.type?null:s.child;else if(s.tag===18){if(o=s.return,o===null)throw Error(ke(341));o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),xv(o,n,e),o=s.sibling}else o=s.child;if(o!==null)o.return=s;else for(o=s;o!==null;){if(o===e){o=null;break}if(s=o.sibling,s!==null){s.return=o.return,o=s;break}o=o.return}s=o}$r(t,e,i.children,n),e=e.child}return e;case 9:return i=e.type,r=e.pendingProps.children,Yc(e,n),i=ss(i),r=r(i),e.flags|=1,$r(t,e,r,n),e.child;case 14:return r=e.type,i=ys(r,e.pendingProps),i=ys(r.type,i),O1(t,e,r,i,n);case 15:return dM(t,e,e.type,e.pendingProps,n);case 17:return r=e.type,i=e.pendingProps,i=e.elementType===r?i:ys(r,i),Jh(t,e),e.tag=1,si(r)?(t=!0,bp(e)):t=!1,Yc(e,n),lM(e,r,i),wv(e,r,i,n),Ev(null,e,r,!0,t,n);case 19:return gM(t,e,n);case 22:return fM(t,e,n)}throw Error(ke(156,e.tag))};function LM(t,e){return sE(t,e)}function uP(t,e,n,r){this.tag=t,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Qi(t,e,n,r){return new uP(t,e,n,r)}function bx(t){return t=t.prototype,!(!t||!t.isReactComponent)}function dP(t){if(typeof t=="function")return bx(t)?1:0;if(t!=null){if(t=t.$$typeof,t===H_)return 11;if(t===W_)return 14}return 2}function Ea(t,e){var n=t.alternate;return n===null?(n=Qi(t.tag,e,t.key,t.mode),n.elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.type=t.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=t.flags&14680064,n.childLanes=t.childLanes,n.lanes=t.lanes,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n}function np(t,e,n,r,i,s){var o=2;if(r=t,typeof t=="function")bx(t)&&(o=1);else if(typeof t=="string")o=5;else e:switch(t){case Rc:return El(n.children,i,s,e);case V_:o=8,i|=8;break;case $g:return t=Qi(12,n,e,i|2),t.elementType=$g,t.lanes=s,t;case jg:return t=Qi(13,n,e,i),t.elementType=jg,t.lanes=s,t;case Xg:return t=Qi(19,n,e,i),t.elementType=Xg,t.lanes=s,t;case Hb:return xm(n,i,s,e);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case Bb:o=10;break e;case Vb:o=9;break e;case H_:o=11;break e;case W_:o=14;break e;case sa:o=16,r=null;break e}throw Error(ke(130,t==null?t:typeof t,""))}return e=Qi(o,n,e,i),e.elementType=t,e.type=r,e.lanes=s,e}function El(t,e,n,r){return t=Qi(7,t,r,e),t.lanes=n,t}function xm(t,e,n,r){return t=Qi(22,t,r,e),t.elementType=Hb,t.lanes=n,t.stateNode={isHidden:!1},t}function O0(t,e,n){return t=Qi(6,t,null,e),t.lanes=n,t}function U0(t,e,n){return e=Qi(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function fP(t,e,n,r,i){this.tag=e,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=m0(0),this.expirationTimes=m0(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=m0(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Ex(t,e,n,r,i,s,o,a,l){return t=new fP(t,e,n,a,l),e===1?(e=1,s===!0&&(e|=8)):e=0,s=Qi(3,null,null,e),t.current=s,s.stateNode=t,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},ax(s),t}function hP(t,e,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Ac,key:r==null?null:""+r,children:t,containerInfo:e,implementation:n}}function NM(t){if(!t)return Da;t=t._reactInternals;e:{if(jl(t)!==t||t.tag!==1)throw Error(ke(170));var e=t;do{switch(e.tag){case 3:e=e.stateNode.context;break e;case 1:if(si(e.type)){e=e.stateNode.__reactInternalMemoizedMergedChildContext;break e}}e=e.return}while(e!==null);throw Error(ke(171))}if(t.tag===1){var n=t.type;if(si(n))return NE(t,n,e)}return e}function OM(t,e,n,r,i,s,o,a,l){return t=Ex(n,r,!0,t,i,s,o,a,l),t.context=NM(null),n=t.current,r=qr(),i=ba(n),s=Mo(r,i),s.callback=e??null,wa(n,s,i),t.current.lanes=i,pf(t,i,r),oi(t,r),t}function ym(t,e,n,r){var i=e.current,s=qr(),o=ba(i);return n=NM(n),e.context===null?e.context=n:e.pendingContext=n,e=Mo(s,o),e.payload={element:t},r=r===void 0?null:r,r!==null&&(e.callback=r),t=wa(i,e,o),t!==null&&(Rs(t,i,o,s),Kh(t,i,o)),o}function Ip(t){if(t=t.current,!t.child)return null;switch(t.child.tag){case 5:return t.child.stateNode;default:return t.child.stateNode}}function j1(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var n=t.retryLane;t.retryLane=n!==0&&n<e?n:e}}function Mx(t,e){j1(t,e),(t=t.alternate)&&j1(t,e)}function pP(){return null}var UM=typeof reportError=="function"?reportError:function(t){console.error(t)};function Tx(t){this._internalRoot=t}wm.prototype.render=Tx.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(ke(409));ym(t,e,null,null)};wm.prototype.unmount=Tx.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;Ul(function(){ym(null,t,null,null)}),e[Co]=null}};function wm(t){this._internalRoot=t}wm.prototype.unstable_scheduleHydration=function(t){if(t){var e=fE();t={blockedOn:null,target:t,priority:e};for(var n=0;n<aa.length&&e!==0&&e<aa[n].priority;n++);aa.splice(n,0,t),n===0&&pE(t)}};function Cx(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function Sm(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11&&(t.nodeType!==8||t.nodeValue!==" react-mount-point-unstable "))}function X1(){}function mP(t,e,n,r,i){if(i){if(typeof r=="function"){var s=r;r=function(){var c=Ip(o);s.call(c)}}var o=OM(e,r,t,0,null,!1,!1,"",X1);return t._reactRootContainer=o,t[Co]=o.current,Wd(t.nodeType===8?t.parentNode:t),Ul(),o}for(;i=t.lastChild;)t.removeChild(i);if(typeof r=="function"){var a=r;r=function(){var c=Ip(l);a.call(c)}}var l=Ex(t,0,!1,null,null,!1,!1,"",X1);return t._reactRootContainer=l,t[Co]=l.current,Wd(t.nodeType===8?t.parentNode:t),Ul(function(){ym(e,l,n,r)}),l}function bm(t,e,n,r,i){var s=n._reactRootContainer;if(s){var o=s;if(typeof i=="function"){var a=i;i=function(){var l=Ip(o);a.call(l)}}ym(e,o,t,i)}else o=mP(n,e,t,i,r);return Ip(o)}uE=function(t){switch(t.tag){case 3:var e=t.stateNode;if(e.current.memoizedState.isDehydrated){var n=pd(e.pendingLanes);n!==0&&(j_(e,n|1),oi(e,Nn()),!(Ft&6)&&(du=Nn()+500,Fa()))}break;case 13:Ul(function(){var r=Ao(t,1);if(r!==null){var i=qr();Rs(r,t,1,i)}}),Mx(t,1)}};X_=function(t){if(t.tag===13){var e=Ao(t,134217728);if(e!==null){var n=qr();Rs(e,t,134217728,n)}Mx(t,134217728)}};dE=function(t){if(t.tag===13){var e=ba(t),n=Ao(t,e);if(n!==null){var r=qr();Rs(n,t,e,r)}Mx(t,e)}};fE=function(){return Xt};hE=function(t,e){var n=Xt;try{return Xt=t,e()}finally{Xt=n}};rv=function(t,e,n){switch(e){case"input":if(Kg(t,n),e=n.name,n.type==="radio"&&e!=null){for(n=t;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+e)+'][type="radio"]'),e=0;e<n.length;e++){var r=n[e];if(r!==t&&r.form===t.form){var i=hm(r);if(!i)throw Error(ke(90));Gb(r),Kg(r,i)}}}break;case"textarea":jb(t,n);break;case"select":e=n.value,e!=null&&Gc(t,!!n.multiple,e,!1)}};Jb=yx;eE=Ul;var gP={usingClientEntryPoint:!1,Events:[gf,Nc,hm,Zb,Qb,yx]},td={findFiberByHostInstance:gl,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},vP={bundleType:td.bundleType,version:td.version,rendererPackageName:td.rendererPackageName,rendererConfig:td.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Uo.ReactCurrentDispatcher,findHostInstanceByFiber:function(t){return t=rE(t),t===null?null:t.stateNode},findFiberByHostInstance:td.findFiberByHostInstance||pP,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var lh=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!lh.isDisabled&&lh.supportsFiber)try{cm=lh.inject(vP),Zs=lh}catch{}}Fi.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=gP;Fi.createPortal=function(t,e){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Cx(e))throw Error(ke(200));return hP(t,e,null,n)};Fi.createRoot=function(t,e){if(!Cx(t))throw Error(ke(299));var n=!1,r="",i=UM;return e!=null&&(e.unstable_strictMode===!0&&(n=!0),e.identifierPrefix!==void 0&&(r=e.identifierPrefix),e.onRecoverableError!==void 0&&(i=e.onRecoverableError)),e=Ex(t,1,!1,null,null,n,!1,r,i),t[Co]=e.current,Wd(t.nodeType===8?t.parentNode:t),new Tx(e)};Fi.findDOMNode=function(t){if(t==null)return null;if(t.nodeType===1)return t;var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(ke(188)):(t=Object.keys(t).join(","),Error(ke(268,t)));return t=rE(e),t=t===null?null:t.stateNode,t};Fi.flushSync=function(t){return Ul(t)};Fi.hydrate=function(t,e,n){if(!Sm(e))throw Error(ke(200));return bm(null,t,e,!0,n)};Fi.hydrateRoot=function(t,e,n){if(!Cx(t))throw Error(ke(405));var r=n!=null&&n.hydratedSources||null,i=!1,s="",o=UM;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),e=OM(e,null,t,1,n??null,i,!1,s,o),t[Co]=e.current,Wd(t),r)for(t=0;t"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(IM)}catch(t){console.error(t)}}IM(),Ib.exports=Fi;var Em=Ib.exports;const Bc=Gl(Em);var Y1=Em;Wg.createRoot=Y1.createRoot,Wg.hydrateRoot=Y1.hydrateRoot;var kM={exports:{}},FM={};/**
* @license React
* use-sync-external-store-shim.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var fu=U;function _P(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var xP=typeof Object.is=="function"?Object.is:_P,yP=fu.useState,wP=fu.useEffect,SP=fu.useLayoutEffect,bP=fu.useDebugValue;function EP(t,e){var n=e(),r=yP({inst:{value:n,getSnapshot:e}}),i=r[0].inst,s=r[1];return SP(function(){i.value=n,i.getSnapshot=e,I0(i)&&s({inst:i})},[t,n,e]),wP(function(){return I0(i)&&s({inst:i}),t(function(){I0(i)&&s({inst:i})})},[t]),bP(n),n}function I0(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!xP(t,n)}catch{return!0}}function MP(t,e){return e()}var TP=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?MP:EP;FM.useSyncExternalStore=fu.useSyncExternalStore!==void 0?fu.useSyncExternalStore:TP;kM.exports=FM;var Ax=kM.exports;const fa=()=>{},xn=fa(),Kc=Object,Ge=t=>t===xn,jr=t=>typeof t=="function",ai=(t,e)=>({...t,...e}),CP=t=>jr(t.then),ch=new WeakMap;let AP=0;const Qd=t=>{const e=typeof t,n=t&&t.constructor,r=n==Date;let i,s;if(Kc(t)===t&&!r&&n!=RegExp){if(i=ch.get(t),i)return i;if(i=++AP+"~",ch.set(t,i),n==Array){for(i="@",s=0;sMm&&typeof window.requestAnimationFrame!=Rx,Tm=(t,e)=>{const n=Ms.get(t);return[()=>!Ge(e)&&t.get(e)||k0,r=>{if(!Ge(e)){const i=t.get(e);e in uh||(uh[e]=i),n[5](e,ai(i,r),i||k0)}},n[6],()=>!Ge(e)&&e in uh?uh[e]:!Ge(e)&&t.get(e)||k0]};let kv=!0;const PP=()=>kv,[Fv,zv]=Mm&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[fa,fa],DP=()=>{const t=Iv&&document.visibilityState;return Ge(t)||t!=="hidden"},LP=t=>(Iv&&document.addEventListener("visibilitychange",t),Fv("focus",t),()=>{Iv&&document.removeEventListener("visibilitychange",t),zv("focus",t)}),NP=t=>{const e=()=>{kv=!0,t()},n=()=>{kv=!1};return Fv("online",e),Fv("offline",n),()=>{zv("online",e),zv("offline",n)}},OP={isOnline:PP,isVisible:DP},UP={initFocus:LP,initReconnect:NP},Il=!Re.useId,Po=!Mm||"Deno"in window,Px=t=>RP()?window.requestAnimationFrame(t):setTimeout(t,1),rs=Po?U.useEffect:U.useLayoutEffect,F0=typeof navigator{if(jr(t))try{t=t()}catch{t=""}const e=t;return t=typeof t=="string"?t:(Array.isArray(t)?t.length:t)?Qd(t):"",[t,e]};let IP=0;const kl=()=>++IP,zM=0,BM=1,VM=2,kP=3;var Xr={__proto__:null,ERROR_REVALIDATE_EVENT:kP,FOCUS_EVENT:zM,MUTATE_EVENT:VM,RECONNECT_EVENT:BM};async function Cm(...t){const[e,n,r,i]=t,s=ai({populateCache:!0,throwOnError:!0},typeof i=="boolean"?{revalidate:i}:i||{});let o=s.populateCache;const a=s.rollbackOnError;let l=s.optimisticData;const c=d=>typeof a=="function"?a(d):a!==!1,u=s.throwOnError;if(jr(n)){const d=n,m=[],v=e.keys();for(const p of v)!/^\$(inf|sub)\$/.test(p)&&d(e.get(p)._k)&&m.push(p);return Promise.all(m.map(h))}return h(n);async function h(d){const[m]=Au(d);if(!m)return;const[v,p]=Tm(e,m),[g,f,x,_]=Ms.get(e),y=()=>{const H=g[m];return(jr(s.revalidate)?s.revalidate(v().data,d):s.revalidate!==!1)&&(delete x[m],delete _[m],H&&H[0])?H[0](VM).then(()=>v().data):v().data};if(t.length{T=H}),b!==f[m][0]){if(T)throw T;return w}else T&&E&&c(T)&&(o=!0,p({data:V,_c:xn}));if(o&&!T)if(jr(o)){const H=o(w,V);p({data:H,error:xn,_c:xn})}else p({data:w,error:xn,_c:xn});if(f[m][1]=kl(),Promise.resolve(y()).then(()=>{p({_c:xn})}),T){if(u)throw T;return}return w}}const K1=(t,e)=>{for(const n in t)t[n][0]&&t[n][0](e)},HM=(t,e)=>{if(!Ms.has(t)){const n=ai(UP,e),r={},i=Cm.bind(xn,t);let s=fa;const o={},a=(u,h)=>{const d=o[u]||[];return o[u]=d,d.push(h),()=>d.splice(d.indexOf(h),1)},l=(u,h,d)=>{t.set(u,h);const m=o[u];if(m)for(const v of m)v(h,d)},c=()=>{if(!Ms.has(t)&&(Ms.set(t,[r,{},{},{},i,l,a]),!Po)){const u=n.initFocus(setTimeout.bind(xn,K1.bind(xn,r,zM))),h=n.initReconnect(setTimeout.bind(xn,K1.bind(xn,r,BM)));s=()=>{u&&u(),h&&h(),Ms.delete(t)}}};return c(),[t,i,c,s]}return[t,Ms.get(t)[4]]},FP=(t,e,n,r,i)=>{const s=n.errorRetryCount,o=i.retryCount,a=~~((Math.random()+.5)*(1<<(os||setTimeout(r,a,i)},zP=(t,e)=>Qd(t)==Qd(e),[Dx,BP]=HM(new Map),Am=ai({onLoadingSlow:fa,onSuccess:fa,onError:fa,onErrorRetry:FP,onDiscarded:fa,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:q1?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:q1?5e3:3e3,compare:zP,isPaused:()=>!1,cache:Dx,mutate:BP,fallback:{}},OP),WM=(t,e)=>{const n=ai(t,e);if(e){const{use:r,fallback:i}=t,{use:s,fallback:o}=e;r&&s&&(n.use=r.concat(s)),i&&o&&(n.fallback=ai(i,o))}return n},Bv=U.createContext({}),Lx=t=>{const{value:e}=t,n=U.useContext(Bv),r=jr(e),i=U.useMemo(()=>r?e(n):e,[r,n,e]),s=U.useMemo(()=>r?i:WM(n,i),[r,n,i]),o=i&&i.provider,a=U.useRef(xn);o&&!a.current&&(a.current=HM(o(s.cache||Dx),i));const l=a.current;return l&&(s.cache=l[0],s.mutate=l[1]),rs(()=>{if(l)return l[2]&&l[2](),l[3]},[]),U.createElement(Bv.Provider,ai(t,{value:s}))},VP="$inf$",GM=Mm&&window.__SWR_DEVTOOLS_USE__,HP=GM?window.__SWR_DEVTOOLS_USE__:[],WP=()=>{GM&&(window.__SWR_DEVTOOLS_REACT__=Re)},$M=t=>jr(t[1])?[t[0],t[1],t[2]||{}]:[t[0],null,(t[1]===null?t[2]:t[1])||{}],jM=()=>ai(Am,U.useContext(Bv)),GP=t=>(e,n,r)=>t(e,n&&((...s)=>{const[o]=Au(e),[,,,a]=Ms.get(Dx);if(o.startsWith(VP))return n(...s);const l=a[o];return Ge(l)?n(...s):(delete a[o],l)}),r),$P=HP.concat(GP),Nx=t=>function(...n){const r=jM(),[i,s,o]=$M(n),a=WM(r,o);let l=t;const{use:c}=a,u=(c||[]).concat($P);for(let h=u.length;h--;)l=u[h](l);return l(i,s||a.fetcher||null,a)},Ox=(t,e,n)=>{const r=e[t]||(e[t]=[]);return r.push(n),()=>{const i=r.indexOf(n);i>=0&&(r[i]=r[r.length-1],r.pop())}},XM=(t,e)=>(...n)=>{const[r,i,s]=$M(n),o=(s.use||[]).concat(e);return t(r,i,{...s,use:o})};WP();const Z1=Re.use||(t=>{if(t.status==="pending")throw t;if(t.status==="fulfilled")return t.value;throw t.status==="rejected"?t.reason:(t.status="pending",t.then(e=>{t.status="fulfilled",t.value=e},e=>{t.status="rejected",t.reason=e}),t)}),z0={dedupe:!0},jP=(t,e,n)=>{const{cache:r,compare:i,suspense:s,fallbackData:o,revalidateOnMount:a,revalidateIfStale:l,refreshInterval:c,refreshWhenHidden:u,refreshWhenOffline:h,keepPreviousData:d}=n,[m,v,p,g]=Ms.get(r),[f,x]=Au(t),_=U.useRef(!1),y=U.useRef(!1),w=U.useRef(f),T=U.useRef(e),b=U.useRef(n),E=()=>b.current,M=()=>E().isVisible()&&E().isOnline(),[S,P,V,H]=Tm(r,f),G=U.useRef({}).current,$=Ge(o)?n.fallback[f]:o,F=(z,Y)=>{for(const be in G){const de=be;if(de==="data"){if(!i(z[de],Y[de])&&(!Ge(z[de])||!i(le,Y[de])))return!1}else if(Y[de]!==z[de])return!1}return!0},W=U.useMemo(()=>{const z=!f||!e?!1:Ge(a)?E().isPaused()||s?!1:Ge(l)?!0:l:a,Y=Oe=>{const O=ai(Oe);return delete O._k,z?{isValidating:!0,isLoading:!0,...O}:O},be=S(),de=H(),Ne=Y(be),Be=be===de?Ne:Y(de);let Me=Ne;return[()=>{const Oe=Y(S());return F(Oe,Me)?(Me.data=Oe.data,Me.isLoading=Oe.isLoading,Me.isValidating=Oe.isValidating,Me.error=Oe.error,Me):(Me=Oe,Oe)},()=>Be]},[r,f]),A=Ax.useSyncExternalStore(U.useCallback(z=>V(f,(Y,be)=>{F(be,Y)||z()}),[r,f]),W[0],W[1]),X=!_.current,q=m[f]&&m[f].length>0,K=A.data,oe=Ge(K)?$:K,Ce=A.error,Q=U.useRef(oe),le=d?Ge(K)?Q.current:K:oe,ye=q&&!Ge(Ce)?!1:X&&!Ge(a)?a:E().isPaused()?!1:s?Ge(oe)?!1:l:Ge(oe)||l,ge=!!(f&&e&&X&&ye),he=Ge(A.isValidating)?ge:A.isValidating,He=Ge(A.isLoading)?ge:A.isLoading,Se=U.useCallback(async z=>{const Y=T.current;if(!f||!Y||y.current||E().isPaused())return!1;let be,de,Ne=!0;const Be=z||{},Me=!p[f]||!Be.dedupe,Oe=()=>Il?!y.current&&f===w.current&&_.current:f===w.current,O={isValidating:!1,isLoading:!1},R=()=>{P(O)},ne=()=>{const fe=p[f];fe&&fe[1]===de&&delete p[f]},pe={isValidating:!0};Ge(S().data)&&(pe.isLoading=!0);try{if(Me&&(P(pe),n.loadingTimeout&&Ge(S().data)&&setTimeout(()=>{Ne&&Oe()&&E().onLoadingSlow(f,n)},n.loadingTimeout),p[f]=[Y(x),kl()]),[be,de]=p[f],be=await be,Me&&setTimeout(ne,n.dedupingInterval),!p[f]||p[f][1]!==de)return Me&&Oe()&&E().onDiscarded(f),!1;O.error=xn;const fe=v[f];if(!Ge(fe)&&(de<=fe[0]||de{const Ee=m[f];Ee&&Ee[0]&&Ee[0](Xr.ERROR_REVALIDATE_EVENT,ve)},{retryCount:(Be.retryCount||0)+1,dedupe:!0})))}return Ne=!1,R(),!0},[f,r]),k=U.useCallback((...z)=>Cm(r,w.current,...z),[]);if(rs(()=>{T.current=e,b.current=n,Ge(K)||(Q.current=K)}),rs(()=>{if(!f)return;const z=Se.bind(xn,z0);let Y=0;const de=Ox(f,m,(Ne,Be={})=>{if(Ne==Xr.FOCUS_EVENT){const Me=Date.now();E().revalidateOnFocus&&Me>Y&&M()&&(Y=Me+E().focusThrottleInterval,z())}else if(Ne==Xr.RECONNECT_EVENT)E().revalidateOnReconnect&&M()&&z();else{if(Ne==Xr.MUTATE_EVENT)return Se();if(Ne==Xr.ERROR_REVALIDATE_EVENT)return Se(Be)}});return y.current=!1,w.current=f,_.current=!0,P({_k:x}),ye&&(Ge(oe)||Po?z():Px(z)),()=>{y.current=!0,de()}},[f]),rs(()=>{let z;function Y(){const de=jr(c)?c(S().data):c;de&&z!==-1&&(z=setTimeout(be,de))}function be(){!S().error&&(u||E().isVisible())&&(h||E().isOnline())?Se(z0).then(Y):Y()}return Y(),()=>{z&&(clearTimeout(z),z=-1)}},[c,u,h,f]),U.useDebugValue(le),s&&Ge(oe)&&f){if(!Il&&Po)throw new Error("Fallback data is required when using suspense in SSR.");T.current=e,b.current=n,y.current=!1;const z=g[f];if(!Ge(z)){const Y=k(z);Z1(Y)}if(Ge(Ce)){const Y=Se(z0);Ge(le)||(Y.status="fulfilled",Y.value=!0),Z1(Y)}else throw Ce}return{mutate:k,get data(){return G.data=!0,le},get error(){return G.error=!0,Ce},get isValidating(){return G.isValidating=!0,he},get isLoading(){return G.isLoading=!0,He}}},XP=Kc.defineProperty(Lx,"defaultValue",{value:Am}),nd=Nx(jP);var YP=t=>{switch(t){case"success":return ZP;case"info":return JP;case"warning":return QP;case"error":return eD;default:return null}},qP=Array(12).fill(0),KP=({visible:t})=>Re.createElement("div",{className:"sonner-loading-wrapper","data-visible":t},Re.createElement("div",{className:"sonner-spinner"},qP.map((e,n)=>Re.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${n}`})))),ZP=Re.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},Re.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),QP=Re.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},Re.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),JP=Re.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},Re.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),eD=Re.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},Re.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),tD=()=>{let[t,e]=Re.useState(document.hidden);return Re.useEffect(()=>{let n=()=>{e(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),t},Vv=1,nD=class{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{let e=this.subscribers.indexOf(t);this.subscribers.splice(e,1)}),this.publish=t=>{this.subscribers.forEach(e=>e(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var e;let{message:n,...r}=t,i=typeof(t==null?void 0:t.id)=="number"||((e=t.id)==null?void 0:e.length)>0?t.id:Vv++,s=this.toasts.find(a=>a.id===i),o=t.dismissible===void 0?!0:t.dismissible;return s?this.toasts=this.toasts.map(a=>a.id===i?(this.publish({...a,...t,id:i,title:n}),{...a,...t,id:i,dismissible:o,title:n}):a):this.addToast({title:n,...r,dismissible:o,id:i}),i},this.dismiss=t=>(t||this.toasts.forEach(e=>{this.subscribers.forEach(n=>n({id:e.id,dismiss:!0}))}),this.subscribers.forEach(e=>e({id:t,dismiss:!0})),t),this.message=(t,e)=>this.create({...e,message:t}),this.error=(t,e)=>this.create({...e,message:t,type:"error"}),this.success=(t,e)=>this.create({...e,type:"success",message:t}),this.info=(t,e)=>this.create({...e,type:"info",message:t}),this.warning=(t,e)=>this.create({...e,type:"warning",message:t}),this.loading=(t,e)=>this.create({...e,type:"loading",message:t}),this.promise=(t,e)=>{if(!e)return;let n;e.loading!==void 0&&(n=this.create({...e,promise:t,type:"loading",message:e.loading,description:typeof e.description!="function"?e.description:void 0}));let r=t instanceof Promise?t:t(),i=n!==void 0;return r.then(async s=>{if(iD(s)&&!s.ok){i=!1;let o=typeof e.error=="function"?await e.error(`HTTP error! status: ${s.status}`):e.error,a=typeof e.description=="function"?await e.description(`HTTP error! status: ${s.status}`):e.description;this.create({id:n,type:"error",message:o,description:a})}else if(e.success!==void 0){i=!1;let o=typeof e.success=="function"?await e.success(s):e.success,a=typeof e.description=="function"?await e.description(s):e.description;this.create({id:n,type:"success",message:o,description:a})}}).catch(async s=>{if(e.error!==void 0){i=!1;let o=typeof e.error=="function"?await e.error(s):e.error,a=typeof e.description=="function"?await e.description(s):e.description;this.create({id:n,type:"error",message:o,description:a})}}).finally(()=>{var s;i&&(this.dismiss(n),n=void 0),(s=e.finally)==null||s.call(e)}),n},this.custom=(t,e)=>{let n=(e==null?void 0:e.id)||Vv++;return this.create({jsx:t(n),id:n,...e}),n},this.subscribers=[],this.toasts=[]}},Ti=new nD,rD=(t,e)=>{let n=(e==null?void 0:e.id)||Vv++;return Ti.addToast({title:t,...e,id:n}),n},iD=t=>t&&typeof t=="object"&&"ok"in t&&typeof t.ok=="boolean"&&"status"in t&&typeof t.status=="number",sD=rD,oD=()=>Ti.toasts,aD=Object.assign(sD,{success:Ti.success,info:Ti.info,warning:Ti.warning,error:Ti.error,custom:Ti.custom,message:Ti.message,promise:Ti.promise,dismiss:Ti.dismiss,loading:Ti.loading},{getHistory:oD});function lD(t,{insertAt:e}={}){if(typeof document>"u")return;let n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",e==="top"&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=t:r.appendChild(document.createTextNode(t))}lD(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999}:where([data-sonner-toaster][data-x-position="right"]){right:max(var(--offset),env(safe-area-inset-right))}:where([data-sonner-toaster][data-x-position="left"]){left:max(var(--offset),env(safe-area-inset-left))}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:max(var(--offset),env(safe-area-inset-top))}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:max(var(--offset),env(safe-area-inset-bottom))}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;background:var(--gray1);color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:0;right:0;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount, 0px));transition:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation:swipe-out .2s ease-out forwards}@keyframes swipe-out{0%{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount)));opacity:1}to{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount) + var(--lift) * -100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;--mobile-offset: 16px;right:var(--mobile-offset);left:var(--mobile-offset);width:100%}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset)}[data-sonner-toaster][data-y-position=bottom]{bottom:20px}[data-sonner-toaster][data-y-position=top]{top:20px}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset);right:var(--mobile-offset);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);--error-text: hsl(358, 100%, 81%)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}
`);function dh(t){return t.label!==void 0}var cD=3,uD="32px",dD=4e3,fD=356,hD=14,pD=20,mD=200;function gD(...t){return t.filter(Boolean).join(" ")}var vD=t=>{var e,n,r,i,s,o,a,l,c,u;let{invert:h,toast:d,unstyled:m,interacting:v,setHeights:p,visibleToasts:g,heights:f,index:x,toasts:_,expanded:y,removeToast:w,defaultRichColors:T,closeButton:b,style:E,cancelButtonStyle:M,actionButtonStyle:S,className:P="",descriptionClassName:V="",duration:H,position:G,gap:$,loadingIcon:F,expandByDefault:W,classNames:A,icons:X,closeButtonAriaLabel:q="Close toast",pauseWhenPageIsHidden:K,cn:oe}=t,[Ce,Q]=Re.useState(!1),[le,ye]=Re.useState(!1),[ge,he]=Re.useState(!1),[He,Se]=Re.useState(!1),[k,z]=Re.useState(0),[Y,be]=Re.useState(0),de=Re.useRef(null),Ne=Re.useRef(null),Be=x===0,Me=x+1f.findIndex(B=>B.toastId===d.id)||0,[f,d.id]),fe=Re.useMemo(()=>{var B;return(B=d.closeButton)!=null?B:b},[d.closeButton,b]),te=Re.useMemo(()=>d.duration||H||dD,[d.duration,H]),Pe=Re.useRef(0),ve=Re.useRef(0),Ee=Re.useRef(0),Je=Re.useRef(null),[Ae,Ue]=G.split("-"),Fe=Re.useMemo(()=>f.reduce((B,Le,ce)=>ce>=pe?B:B+Le.height,0),[f,pe]),Qe=tD(),Ve=d.invert||h,st=Oe==="loading";ve.current=Re.useMemo(()=>pe*$+Fe,[pe,Fe]),Re.useEffect(()=>{Q(!0)},[]),Re.useLayoutEffect(()=>{if(!Ce)return;let B=Ne.current,Le=B.style.height;B.style.height="auto";let ce=B.getBoundingClientRect().height;B.style.height=Le,be(ce),p(Te=>Te.find(Ie=>Ie.toastId===d.id)?Te.map(Ie=>Ie.toastId===d.id?{...Ie,height:ce}:Ie):[{toastId:d.id,height:ce,position:d.position},...Te])},[Ce,d.title,d.description,p,d.id]);let ot=Re.useCallback(()=>{ye(!0),z(ve.current),p(B=>B.filter(Le=>Le.toastId!==d.id)),setTimeout(()=>{w(d)},mD)},[d,w,p,ve]);Re.useEffect(()=>{if(d.promise&&Oe==="loading"||d.duration===1/0||d.type==="loading")return;let B,Le=te;return y||v||K&&Qe?(()=>{if(Ee.current{var ce;(ce=d.onAutoClose)==null||ce.call(d,d),ot()},Le)),()=>clearTimeout(B)},[y,v,W,d,te,ot,d.promise,Oe,K,Qe]),Re.useEffect(()=>{let B=Ne.current;if(B){let Le=B.getBoundingClientRect().height;return be(Le),p(ce=>[{toastId:d.id,height:Le,position:d.position},...ce]),()=>p(ce=>ce.filter(Te=>Te.toastId!==d.id))}},[p,d.id]),Re.useEffect(()=>{d.delete&&ot()},[ot,d.delete]);function zt(){return X!=null&&X.loading?Re.createElement("div",{className:"sonner-loader","data-visible":Oe==="loading"},X.loading):F?Re.createElement("div",{className:"sonner-loader","data-visible":Oe==="loading"},F):Re.createElement(KP,{visible:Oe==="loading"})}return Re.createElement("li",{"aria-live":d.important?"assertive":"polite","aria-atomic":"true",role:"status",tabIndex:0,ref:Ne,className:oe(P,R,A==null?void 0:A.toast,(e=d==null?void 0:d.classNames)==null?void 0:e.toast,A==null?void 0:A.default,A==null?void 0:A[Oe],(n=d==null?void 0:d.classNames)==null?void 0:n[Oe]),"data-sonner-toast":"","data-rich-colors":(r=d.richColors)!=null?r:T,"data-styled":!(d.jsx||d.unstyled||m),"data-mounted":Ce,"data-promise":!!d.promise,"data-removed":le,"data-visible":Me,"data-y-position":Ae,"data-x-position":Ue,"data-index":x,"data-front":Be,"data-swiping":ge,"data-dismissible":O,"data-type":Oe,"data-invert":Ve,"data-swipe-out":He,"data-expanded":!!(y||W&&Ce),style:{"--index":x,"--toasts-before":x,"--z-index":_.length-x,"--offset":`${le?k:ve.current}px`,"--initial-height":W?"auto":`${Y}px`,...E,...d.style},onPointerDown:B=>{st||!O||(de.current=new Date,z(ve.current),B.target.setPointerCapture(B.pointerId),B.target.tagName!=="BUTTON"&&(he(!0),Je.current={x:B.clientX,y:B.clientY}))},onPointerUp:()=>{var B,Le,ce,Te;if(He||!O)return;Je.current=null;let Ie=Number(((B=Ne.current)==null?void 0:B.style.getPropertyValue("--swipe-amount").replace("px",""))||0),qe=new Date().getTime()-((Le=de.current)==null?void 0:Le.getTime()),At=Math.abs(Ie)/qe;if(Math.abs(Ie)>=pD||At>.11){z(ve.current),(ce=d.onDismiss)==null||ce.call(d,d),ot(),Se(!0);return}(Te=Ne.current)==null||Te.style.setProperty("--swipe-amount","0px"),he(!1)},onPointerMove:B=>{var Le;if(!Je.current||!O)return;let ce=B.clientY-Je.current.y,Te=B.clientX-Je.current.x,Ie=(Ae==="top"?Math.min:Math.max)(0,ce),qe=B.pointerType==="touch"?10:2;Math.abs(Ie)>qe?(Le=Ne.current)==null||Le.style.setProperty("--swipe-amount",`${ce}px`):Math.abs(Te)>qe&&(Je.current=null)}},fe&&!d.jsx?Re.createElement("button",{"aria-label":q,"data-disabled":st,"data-close-button":!0,onClick:st||!O?()=>{}:()=>{var B;ot(),(B=d.onDismiss)==null||B.call(d,d)},className:oe(A==null?void 0:A.closeButton,(i=d==null?void 0:d.classNames)==null?void 0:i.closeButton)},Re.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},Re.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),Re.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"}))):null,d.jsx||Re.isValidElement(d.title)?d.jsx||d.title:Re.createElement(Re.Fragment,null,Oe||d.icon||d.promise?Re.createElement("div",{"data-icon":"",className:oe(A==null?void 0:A.icon,(s=d==null?void 0:d.classNames)==null?void 0:s.icon)},d.promise||d.type==="loading"&&!d.icon?d.icon||zt():null,d.type!=="loading"?d.icon||(X==null?void 0:X[Oe])||YP(Oe):null):null,Re.createElement("div",{"data-content":"",className:oe(A==null?void 0:A.content,(o=d==null?void 0:d.classNames)==null?void 0:o.content)},Re.createElement("div",{"data-title":"",className:oe(A==null?void 0:A.title,(a=d==null?void 0:d.classNames)==null?void 0:a.title)},d.title),d.description?Re.createElement("div",{"data-description":"",className:oe(V,ne,A==null?void 0:A.description,(l=d==null?void 0:d.classNames)==null?void 0:l.description)},d.description):null),Re.isValidElement(d.cancel)?d.cancel:d.cancel&&dh(d.cancel)?Re.createElement("button",{"data-button":!0,"data-cancel":!0,style:d.cancelButtonStyle||M,onClick:B=>{var Le,ce;dh(d.cancel)&&O&&((ce=(Le=d.cancel).onClick)==null||ce.call(Le,B),ot())},className:oe(A==null?void 0:A.cancelButton,(c=d==null?void 0:d.classNames)==null?void 0:c.cancelButton)},d.cancel.label):null,Re.isValidElement(d.action)?d.action:d.action&&dh(d.action)?Re.createElement("button",{"data-button":!0,"data-action":!0,style:d.actionButtonStyle||S,onClick:B=>{var Le,ce;dh(d.action)&&(B.defaultPrevented||((ce=(Le=d.action).onClick)==null||ce.call(Le,B),ot()))},className:oe(A==null?void 0:A.actionButton,(u=d==null?void 0:d.classNames)==null?void 0:u.actionButton)},d.action.label):null))};function Q1(){if(typeof window>"u"||typeof document>"u")return"ltr";let t=document.documentElement.getAttribute("dir");return t==="auto"||!t?window.getComputedStyle(document.documentElement).direction:t}var _D=t=>{let{invert:e,position:n="bottom-right",hotkey:r=["altKey","KeyT"],expand:i,closeButton:s,className:o,offset:a,theme:l="light",richColors:c,duration:u,style:h,visibleToasts:d=cD,toastOptions:m,dir:v=Q1(),gap:p=hD,loadingIcon:g,icons:f,containerAriaLabel:x="Notifications",pauseWhenPageIsHidden:_,cn:y=gD}=t,[w,T]=Re.useState([]),b=Re.useMemo(()=>Array.from(new Set([n].concat(w.filter(K=>K.position).map(K=>K.position)))),[w,n]),[E,M]=Re.useState([]),[S,P]=Re.useState(!1),[V,H]=Re.useState(!1),[G,$]=Re.useState(l!=="system"?l:typeof window{var oe;(oe=w.find(Ce=>Ce.id===K.id))!=null&&oe.delete||Ti.dismiss(K.id),T(Ce=>Ce.filter(({id:Q})=>Q!==K.id))},[w]);return Re.useEffect(()=>Ti.subscribe(K=>{if(K.dismiss){T(oe=>oe.map(Ce=>Ce.id===K.id?{...Ce,delete:!0}:Ce));return}setTimeout(()=>{Bc.flushSync(()=>{T(oe=>{let Ce=oe.findIndex(Q=>Q.id===K.id);return Ce!==-1?[...oe.slice(0,Ce),{...oe[Ce],...K},...oe.slice(Ce+1)]:[K,...oe]})})})}),[]),Re.useEffect(()=>{if(l!=="system"){$(l);return}l==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?$("dark"):$("light")),typeof window{$(K?"dark":"light")})},[l]),Re.useEffect(()=>{w.length{let K=oe=>{var Ce,Q;r.every(le=>oe[le]||oe.code===le)&&(P(!0),(Ce=F.current)==null||Ce.focus()),oe.code==="Escape"&&(document.activeElement===F.current||(Q=F.current)!=null&&Q.contains(document.activeElement))&&P(!1)};return document.addEventListener("keydown",K),()=>document.removeEventListener("keydown",K)},[r]),Re.useEffect(()=>{if(F.current)return()=>{A.current&&(A.current.focus({preventScroll:!0}),A.current=null,X.current=!1)}},[F.current]),w.length?Re.createElement("section",{"aria-label":`${x} ${W}`,tabIndex:-1},b.map((K,oe)=>{var Ce;let[Q,le]=K.split("-");return Re.createElement("ol",{key:K,dir:v==="auto"?Q1():v,tabIndex:-1,ref:F,className:o,"data-sonner-toaster":!0,"data-theme":G,"data-y-position":Q,"data-x-position":le,style:{"--front-toast-height":`${((Ce=E[0])==null?void 0:Ce.height)||0}px`,"--offset":typeof a=="number"?`${a}px`:a||uD,"--width":`${fD}px`,"--gap":`${p}px`,...h},onBlur:ye=>{X.current&&!ye.currentTarget.contains(ye.relatedTarget)&&(X.current=!1,A.current&&(A.current.focus({preventScroll:!0}),A.current=null))},onFocus:ye=>{ye.target instanceof HTMLElement&&ye.target.dataset.dismissible==="false"||X.current||(X.current=!0,A.current=ye.relatedTarget)},onMouseEnter:()=>P(!0),onMouseMove:()=>P(!0),onMouseLeave:()=>{V||P(!1)},onPointerDown:ye=>{ye.target instanceof HTMLElement&&ye.target.dataset.dismissible==="false"||H(!0)},onPointerUp:()=>H(!1)},w.filter(ye=>!ye.position&&oe===0||ye.position===K).map((ye,ge)=>{var he,He;return Re.createElement(vD,{key:ye.id,icons:f,index:ge,toast:ye,defaultRichColors:c,duration:(he=m==null?void 0:m.duration)!=null?he:u,className:m==null?void 0:m.className,descriptionClassName:m==null?void 0:m.descriptionClassName,invert:e,visibleToasts:d,closeButton:(He=m==null?void 0:m.closeButton)!=null?He:s,interacting:V,position:K,style:m==null?void 0:m.style,unstyled:m==null?void 0:m.unstyled,classNames:m==null?void 0:m.classNames,cancelButtonStyle:m==null?void 0:m.cancelButtonStyle,actionButtonStyle:m==null?void 0:m.actionButtonStyle,removeToast:q,toasts:w.filter(Se=>Se.position==ye.position),heights:E.filter(Se=>Se.position==ye.position),setHeights:M,expandByDefault:i,gap:p,loadingIcon:g,expanded:S,pauseWhenPageIsHidden:_,cn:y})}))})):null},YM={exports:{}};(function(t,e){(function(){function n(){var r=window,i=document;if("scrollBehavior"in i.documentElement.style&&r.__forceSmoothScrollPolyfill__!==!0)return;var s=r.HTMLElement||r.Element,o=468,a={scroll:r.scroll||r.scrollTo,scrollBy:r.scrollBy,elementScroll:s.prototype.scroll||h,scrollIntoView:s.prototype.scrollIntoView},l=r.performance&&r.performance.now?r.performance.now.bind(r.performance):Date.now;function c(y){var w=["MSIE ","Trident/","Edge/"];return new RegExp(w.join("|")).test(y)}var u=c(r.navigator.userAgent)?1:0;function h(y,w){this.scrollLeft=y,this.scrollTop=w}function d(y){return .5*(1-Math.cos(Math.PI*y))}function m(y){if(y===null||typeof y!="object"||y.behavior===void 0||y.behavior==="auto"||y.behavior==="instant")return!0;if(typeof y=="object"&&y.behavior==="smooth")return!1;throw new TypeError("behavior member of ScrollOptions "+y.behavior+" is not a valid value for enumeration ScrollBehavior.")}function v(y,w){if(w==="Y")return y.clientHeight+u<y.scrollHeight;if(w==="X")return y.clientWidth+u1?1:M,T=d(M),b=y.startX+(y.x-y.startX)*T,E=y.startY+(y.y-y.startY)*T,y.method.call(y.scrollable,b,E),(b!==y.x||E!==y.y)&&r.requestAnimationFrame(x.bind(r,y))}function _(y,w,T){var b,E,M,S,P=l();y===i.body?(b=r,E=r.scrollX||r.pageXOffset,M=r.scrollY||r.pageYOffset,S=a.scroll):(b=y,E=y.scrollLeft,M=y.scrollTop,S=h),x({scrollable:b,method:S,startTime:P,startX:E,startY:M,x:w,y:T})}r.scroll=r.scrollTo=function(){if(arguments[0]!==void 0){if(m(arguments[0])===!0){a.scroll.call(r,arguments[0].left!==void 0?arguments[0].left:typeof arguments[0]!="object"?arguments[0]:r.scrollX||r.pageXOffset,arguments[0].top!==void 0?arguments[0].top:arguments[1]!==void 0?arguments[1]:r.scrollY||r.pageYOffset);return}_.call(r,i.body,arguments[0].left!==void 0?~~arguments[0].left:r.scrollX||r.pageXOffset,arguments[0].top!==void 0?~~arguments[0].top:r.scrollY||r.pageYOffset)}},r.scrollBy=function(){if(arguments[0]!==void 0){if(m(arguments[0])){a.scrollBy.call(r,arguments[0].left!==void 0?arguments[0].left:typeof arguments[0]!="object"?arguments[0]:0,arguments[0].top!==void 0?arguments[0].top:arguments[1]!==void 0?arguments[1]:0);return}_.call(r,i.body,~~arguments[0].left+(r.scrollX||r.pageXOffset),~~arguments[0].top+(r.scrollY||r.pageYOffset))}},s.prototype.scroll=s.prototype.scrollTo=function(){if(arguments[0]!==void 0){if(m(arguments[0])===!0){if(typeof arguments[0]=="number"&&arguments[1]===void 0)throw new SyntaxError("Value could not be converted");a.elementScroll.call(this,arguments[0].left!==void 0?~~arguments[0].left:typeof arguments[0]!="object"?~~arguments[0]:this.scrollLeft,arguments[0].top!==void 0?~~arguments[0].top:arguments[1]!==void 0?~~arguments[1]:this.scrollTop);return}var y=arguments[0].left,w=arguments[0].top;_.call(this,this,typeof y>"u"?this.scrollLeft:~~y,typeof w>"u"?this.scrollTop:~~w)}},s.prototype.scrollBy=function(){if(arguments[0]!==void 0){if(m(arguments[0])===!0){a.elementScroll.call(this,arguments[0].left!==void 0?~~arguments[0].left+this.scrollLeft:~~arguments[0]+this.scrollLeft,arguments[0].top!==void 0?~~arguments[0].top+this.scrollTop:~~arguments[1]+this.scrollTop);return}this.scroll({left:~~arguments[0].left+this.scrollLeft,top:~~arguments[0].top+this.scrollTop,behavior:arguments[0].behavior})}},s.prototype.scrollIntoView=function(){if(m(arguments[0])===!0){a.scrollIntoView.call(this,arguments[0]===void 0?!0:arguments[0]);return}var y=f(this),w=y.getBoundingClientRect(),T=this.getBoundingClientRect();y!==i.body?(_.call(this,y,y.scrollLeft+T.left-w.left,y.scrollTop+T.top-w.top),r.getComputedStyle(y).position!=="fixed"&&r.scrollBy({left:w.left,top:w.top,behavior:"smooth"})):r.scrollBy({left:T.left,top:T.top,behavior:"smooth"})}}t.exports={polyfill:n}})()})(YM);var xD=YM.exports;const yD=Gl(xD),qM=Re.createContext({}),KM=!0;function wD({baseColor:t,highlightColor:e,width:n,height:r,borderRadius:i,circle:s,direction:o,duration:a,enableAnimation:l=KM}){const c={};return o==="rtl"&&(c["--animation-direction"]="reverse"),typeof a=="number"&&(c["--animation-duration"]=`${a}s`),l||(c["--pseudo-element-display"]="none"),(typeof n=="string"||typeof n=="number")&&(c.width=n),(typeof r=="string"||typeof r=="number")&&(c.height=r),(typeof i=="string"||typeof i=="number")&&(c.borderRadius=i),s&&(c.borderRadius="50%"),typeof t<"u"&&(c["--base-color"]=t),typeof e"u"&&delete d[_];const m={...h,...d,circle:s},v={...o,...wD(m)};let p="react-loading-skeleton";n&&(p+=` ${n}`);const g=(l=m.inline)!==null&&l!==void 0?l:!1,f=[],x=Math.ceil(t);for(let _=0;_t&&_===x-1){const T=(c=y.width)!==null&&c!==void 0?c:"100%",b=t%1,E=typeof T=="number"?T*b:`calc(${T} * ${b})`;y={...y,width:E}}const w=Re.createElement("span",{className:p,style:y,key:_},"");g?f.push(w):f.push(Re.createElement(Re.Fragment,{key:_},w,Re.createElement("br",null)))}return Re.createElement("span",{className:r,"data-testid":i,"aria-live":"polite","aria-busy":(u=m.enableAnimation)!==null&&u!==void 0?u:KM},e?f.map((_,y)=>Re.createElement(e,{key:y},_)):f)}function SD({children:t,...e}){return Re.createElement(qM.Provider,{value:e},t)}var ZM={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(am,function(){var n=1e3,r=6e4,i=36e5,s="millisecond",o="second",a="minute",l="hour",c="day",u="week",h="month",d="quarter",m="year",v="date",p="Invalid Date",g=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,f=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,x={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(G){var $=["th","st","nd","rd"],F=G%100;return"["+G+($[(F-20)%10]||$[F]||$[0])+"]"}},_=function(G,$,F){var W=String(G);return!W||W.length>=$?G:""+Array($+1-W.length).join(F)+G},y={s:_,z:function(G){var $=-G.utcOffset(),F=Math.abs($),W=Math.floor(F/60),A=F%60;return($<=0?"+":"-")+_(W,2,"0")+":"+_(A,2,"0")},m:function G($,F){if($.date()<F.date())return-G(F,$);var W=12*(F.year()-$.year())+(F.month()-$.month()),A=$.clone().add(W,h),X=F-A<0,q=$.clone().add(W+(X?-1:1),h);return+(-(W+(F-A)/(X?A-q:q-A))||0)},a:function(G){return G1)return G(q[0])}else{var K=$.name;T[K]=$,A=K}return!W&&A&&(w=A),A||!W&&w},S=function(G,$){if(E(G))return G.clone();var F=typeof $=="object"?$:{};return F.date=G,F.args=arguments,new V(F)},P=y;P.l=M,P.i=E,P.w=function(G,$){return S(G,{locale:$.$L,utc:$.$u,x:$.$x,$offset:$.$offset})};var V=function(){function G(F){this.$L=M(F.locale,null,!0),this.parse(F),this.$x=this.$x||F.x||{},this[b]=!0}var $=G.prototype;return $.parse=function(F){this.$d=function(W){var A=W.date,X=W.utc;if(A===null)return new Date(NaN);if(P.u(A))return new Date;if(A instanceof Date)return new Date(A);if(typeof A=="string"&&!/Z$/i.test(A)){var q=A.match(g);if(q){var K=q[2]-1||0,oe=(q[7]||"0").substring(0,3);return X?new Date(Date.UTC(q[1],K,q[3]||1,q[4]||0,q[5]||0,q[6]||0,oe)):new Date(q[1],K,q[3]||1,q[4]||0,q[5]||0,q[6]||0,oe)}}return new Date(A)}(F),this.init()},$.init=function(){var F=this.$d;this.$y=F.getFullYear(),this.$M=F.getMonth(),this.$D=F.getDate(),this.$W=F.getDay(),this.$H=F.getHours(),this.$m=F.getMinutes(),this.$s=F.getSeconds(),this.$ms=F.getMilliseconds()},$.$utils=function(){return P},$.isValid=function(){return this.$d.toString()!==p},$.isSame=function(F,W){var A=S(F);return this.startOf(W)<=A&&A<=this.endOf(W)},$.isAfter=function(F,W){return S(F)<this.startOf(W)},$.isBefore=function(F,W){return this.endOf(W)<S(F)},$.$g=function(F,W,A){return P.u(F)?this[W]:this.set(A,F)},$.unix=function(){return Math.floor(this.valueOf()/1e3)},$.valueOf=function(){return this.$d.getTime()},$.startOf=function(F,W){var A=this,X=!!P.u(W)||W,q=P.p(F),K=function(He,Se){var k=P.w(A.$u?Date.UTC(A.$y,Se,He):new Date(A.$y,Se,He),A);return X?k:k.endOf(c)},oe=function(He,Se){return P.w(A.toDate()[He].apply(A.toDate("s"),(X?[0,0,0,0]:[23,59,59,999]).slice(Se)),A)},Ce=this.$W,Q=this.$M,le=this.$D,ye="set"+(this.$u?"UTC":"");switch(q){case m:return X?K(1,0):K(31,11);case h:return X?K(1,Q):K(0,Q+1);case u:var ge=this.$locale().weekStart||0,he=(Ce<ge?Ce+7:Ce)-ge;return K(X?le-he:le+(6-he),Q);case c:case v:return oe(ye+"Hours",0);case l:return oe(ye+"Minutes",1);case a:return oe(ye+"Seconds",2);case o:return oe(ye+"Milliseconds",3);default:return this.clone()}},$.endOf=function(F){return this.startOf(F,!1)},$.$set=function(F,W){var A,X=P.p(F),q="set"+(this.$u?"UTC":""),K=(A={},A[c]=q+"Date",A[v]=q+"Date",A[h]=q+"Month",A[m]=q+"FullYear",A[l]=q+"Hours",A[a]=q+"Minutes",A[o]=q+"Seconds",A[s]=q+"Milliseconds",A)[X],oe=X===c?this.$D+(W-this.$W):W;if(X===h||X===m){var Ce=this.clone().set(v,1);Ce.$d[K](oe),Ce.init(),this.$d=Ce.set(v,Math.min(this.$D,Ce.daysInMonth())).$d}else K&&this.$d[K](oe);return this.init(),this},$.set=function(F,W){return this.clone().$set(F,W)},$.get=function(F){return this[P.p(F)]()},$.add=function(F,W){var A,X=this;F=Number(F);var q=P.p(W),K=function(Q){var le=S(X);return P.w(le.date(le.date()+Math.round(Q*F)),X)};if(q===h)return this.set(h,this.$M+F);if(q===m)return this.set(m,this.$y+F);if(q===c)return K(1);if(q===u)return K(7);var oe=(A={},A[a]=r,A[l]=i,A[o]=n,A)[q]||1,Ce=this.$d.getTime()+F*oe;return P.w(Ce,this)},$.subtract=function(F,W){return this.add(-1*F,W)},$.format=function(F){var W=this,A=this.$locale();if(!this.isValid())return A.invalidDate||p;var X=F||"YYYY-MM-DDTHH:mm:ssZ",q=P.z(this),K=this.$H,oe=this.$m,Ce=this.$M,Q=A.weekdays,le=A.months,ye=A.meridiem,ge=function(Se,k,z,Y){return Se&&(Se[k]||Se(W,X))||z[k].slice(0,Y)},he=function(Se){return P.s(K%12||12,Se,"0")},He=ye||function(Se,k,z){var Y=Se<12?"AM":"PM";return z?Y.toLowerCase():Y};return X.replace(f,function(Se,k){return k||function(z){switch(z){case"YY":return String(W.$y).slice(-2);case"YYYY":return P.s(W.$y,4,"0");case"M":return Ce+1;case"MM":return P.s(Ce+1,2,"0");case"MMM":return ge(A.monthsShort,Ce,le,3);case"MMMM":return ge(le,Ce);case"D":return W.$D;case"DD":return P.s(W.$D,2,"0");case"d":return String(W.$W);case"dd":return ge(A.weekdaysMin,W.$W,Q,2);case"ddd":return ge(A.weekdaysShort,W.$W,Q,3);case"dddd":return Q[W.$W];case"H":return String(K);case"HH":return P.s(K,2,"0");case"h":return he(1);case"hh":return he(2);case"a":return He(K,oe,!0);case"A":return He(K,oe,!1);case"m":return String(oe);case"mm":return P.s(oe,2,"0");case"s":return String(W.$s);case"ss":return P.s(W.$s,2,"0");case"SSS":return P.s(W.$ms,3,"0");case"Z":return q}return null}(Se)||q.replace(":","")})},$.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},$.diff=function(F,W,A){var X,q=this,K=P.p(W),oe=S(F),Ce=(oe.utcOffset()-this.utcOffset())*r,Q=this-oe,le=function(){return P.m(q,oe)};switch(K){case m:X=le()/12;break;case h:X=le();break;case d:X=le()/3;break;case u:X=(Q-Ce)/6048e5;break;case c:X=(Q-Ce)/864e5;break;case l:X=Q/i;break;case a:X=Q/r;break;case o:X=Q/n;break;default:X=Q}return A?X:P.a(X)},$.daysInMonth=function(){return this.endOf(h).$D},$.$locale=function(){return T[this.$L]},$.locale=function(F,W){if(!F)return this.$L;var A=this.clone(),X=M(F,W,!0);return X&&(A.$L=X),A},$.clone=function(){return P.w(this.$d,this)},$.toDate=function(){return new Date(this.valueOf())},$.toJSON=function(){return this.isValid()?this.toISOString():null},$.toISOString=function(){return this.$d.toISOString()},$.toString=function(){return this.$d.toUTCString()},G}(),H=V.prototype;return S.prototype=H,[["$ms",s],["$s",o],["$m",a],["$H",l],["$W",c],["$M",h],["$y",m],["$D",v]].forEach(function(G){H[G[1]]=function($){return this.$g($,G[0],G[1])}}),S.extend=function(G,$){return G.$i||(G($,V,S),G.$i=!0),S},S.locale=M,S.isDayjs=E,S.unix=function(G){return S(1e3*G)},S.en=T[w],S.Ls=T,S.p={},S})})(ZM);var bD=ZM.exports;const Tn=Gl(bD);var QM={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(am,function(){var n,r,i=1e3,s=6e4,o=36e5,a=864e5,l=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,c=31536e6,u=2628e6,h=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,d={years:c,months:u,days:a,hours:o,minutes:s,seconds:i,milliseconds:1,weeks:6048e5},m=function(T){return T instanceof y},v=function(T,b,E){return new y(T,E,b.$l)},p=function(T){return r.p(T)+"s"},g=function(T){return T{if(t.status==="pending")throw t;if(t.status==="fulfilled")return t.value;throw t.status==="rejected"?t.reason:(t.status="pending",t.then(e=>{t.status="fulfilled",t.value=e},e=>{t.status="rejected",t.reason=e}),t)}),B0={dedupe:!0},TD=(t,e,n)=>{const{cache:r,compare:i,suspense:s,fallbackData:o,revalidateOnMount:a,revalidateIfStale:l,refreshInterval:c,refreshWhenHidden:u,refreshWhenOffline:h,keepPreviousData:d}=n,[m,v,p,g]=Ms.get(r),[f,x]=Au(t),_=U.useRef(!1),y=U.useRef(!1),w=U.useRef(f),T=U.useRef(e),b=U.useRef(n),E=()=>b.current,M=()=>E().isVisible()&&E().isOnline(),[S,P,V,H]=Tm(r,f),G=U.useRef({}).current,$=Ge(o)?n.fallback[f]:o,F=(z,Y)=>{for(const be in G){const de=be;if(de==="data"){if(!i(z[de],Y[de])&&(!Ge(z[de])||!i(le,Y[de])))return!1}else if(Y[de]!==z[de])return!1}return!0},W=U.useMemo(()=>{const z=!f||!e?!1:Ge(a)?E().isPaused()||s?!1:Ge(l)?!0:l:a,Y=Oe=>{const O=ai(Oe);return delete O._k,z?{isValidating:!0,isLoading:!0,...O}:O},be=S(),de=H(),Ne=Y(be),Be=be===de?Ne:Y(de);let Me=Ne;return[()=>{const Oe=Y(S());return F(Oe,Me)?(Me.data=Oe.data,Me.isLoading=Oe.isLoading,Me.isValidating=Oe.isValidating,Me.error=Oe.error,Me):(Me=Oe,Oe)},()=>Be]},[r,f]),A=Ax.useSyncExternalStore(U.useCallback(z=>V(f,(Y,be)=>{F(be,Y)||z()}),[r,f]),W[0],W[1]),X=!_.current,q=m[f]&&m[f].length>0,K=A.data,oe=Ge(K)?$:K,Ce=A.error,Q=U.useRef(oe),le=d?Ge(K)?Q.current:K:oe,ye=q&&!Ge(Ce)?!1:X&&!Ge(a)?a:E().isPaused()?!1:s?Ge(oe)?!1:l:Ge(oe)||l,ge=!!(f&&e&&X&&ye),he=Ge(A.isValidating)?ge:A.isValidating,He=Ge(A.isLoading)?ge:A.isLoading,Se=U.useCallback(async z=>{const Y=T.current;if(!f||!Y||y.current||E().isPaused())return!1;let be,de,Ne=!0;const Be=z||{},Me=!p[f]||!Be.dedupe,Oe=()=>Il?!y.current&&f===w.current&&_.current:f===w.current,O={isValidating:!1,isLoading:!1},R=()=>{P(O)},ne=()=>{const fe=p[f];fe&&fe[1]===de&&delete p[f]},pe={isValidating:!0};Ge(S().data)&&(pe.isLoading=!0);try{if(Me&&(P(pe),n.loadingTimeout&&Ge(S().data)&&setTimeout(()=>{Ne&&Oe()&&E().onLoadingSlow(f,n)},n.loadingTimeout),p[f]=[Y(x),kl()]),[be,de]=p[f],be=await be,Me&&setTimeout(ne,n.dedupingInterval),!p[f]||p[f][1]!==de)return Me&&Oe()&&E().onDiscarded(f),!1;O.error=xn;const fe=v[f];if(!Ge(fe)&&(de<=fe[0]||de{const Ee=m[f];Ee&&Ee[0]&&Ee[0](Xr.ERROR_REVALIDATE_EVENT,ve)},{retryCount:(Be.retryCount||0)+1,dedupe:!0})))}return Ne=!1,R(),!0},[f,r]),k=U.useCallback((...z)=>Cm(r,w.current,...z),[]);if(rs(()=>{T.current=e,b.current=n,Ge(K)||(Q.current=K)}),rs(()=>{if(!f)return;const z=Se.bind(xn,B0);let Y=0;const de=Ox(f,m,(Ne,Be={})=>{if(Ne==Xr.FOCUS_EVENT){const Me=Date.now();E().revalidateOnFocus&&Me>Y&&M()&&(Y=Me+E().focusThrottleInterval,z())}else if(Ne==Xr.RECONNECT_EVENT)E().revalidateOnReconnect&&M()&&z();else{if(Ne==Xr.MUTATE_EVENT)return Se();if(Ne==Xr.ERROR_REVALIDATE_EVENT)return Se(Be)}});return y.current=!1,w.current=f,_.current=!0,P({_k:x}),ye&&(Ge(oe)||Po?z():Px(z)),()=>{y.current=!0,de()}},[f]),rs(()=>{let z;function Y(){const de=jr(c)?c(S().data):c;de&&z!==-1&&(z=setTimeout(be,de))}function be(){!S().error&&(u||E().isVisible())&&(h||E().isOnline())?Se(B0).then(Y):Y()}return Y(),()=>{z&&(clearTimeout(z),z=-1)}},[c,u,h,f]),U.useDebugValue(le),s&&Ge(oe)&&f){if(!Il&&Po)throw new Error("Fallback data is required when using suspense in SSR.");T.current=e,b.current=n,y.current=!1;const z=g[f];if(!Ge(z)){const Y=k(z);J1(Y)}if(Ge(Ce)){const Y=Se(B0);Ge(le)||(Y.status="fulfilled",Y.value=!0),J1(Y)}else throw Ce}return{mutate:k,get data(){return G.data=!0,le},get error(){return G.error=!0,Ce},get isValidating(){return G.isValidating=!0,he},get isLoading(){return G.isLoading=!0,He}}};Kc.defineProperty(Lx,"defaultValue",{value:Am});const CD=Nx(TD),ew=Il?t=>{t()}:Re.startTransition,AD=t=>{const[,e]=U.useState({}),n=U.useRef(!1),r=U.useRef(t),i=U.useRef({data:!1,error:!1,isValidating:!1}),s=U.useCallback(o=>{let a=!1;const l=r.current;for(const c in o){const u=c;l[u]!==o[u]&&(l[u]=o[u],i.current[u]&&(a=!0))}a&&!n.current&&e({})},[]);return rs(()=>(n.current=!1,()=>{n.current=!0})),[r,i.current,s]},RD=()=>(t,e,n={})=>{const{mutate:r}=jM(),i=U.useRef(t),s=U.useRef(e),o=U.useRef(n),a=U.useRef(0),[l,c,u]=AD({data:xn,error:xn,isMutating:!1}),h=l.current,d=U.useCallback(async(v,p)=>{const[g,f]=Au(i.current);if(!s.current)throw new Error("Can’t trigger the mutation: missing fetcher.");if(!g)throw new Error("Can’t trigger the mutation: missing key.");const x=ai(ai({populateCache:!1,throwOnError:!0},o.current),p),_=kl();a.current=_,u({isMutating:!0});try{const y=await r(g,s.current(f,{arg:v}),ai(x,{throwOnError:!0}));return a.currentu({data:y,isMutating:!1,error:void 0})),x.onSuccess==null||x.onSuccess.call(x,y,g,x)),y}catch(y){if(a.currentu({error:y,isMutating:!1})),x.onError==null||x.onError.call(x,y,g,x),x.throwOnError))throw y}},[]),m=U.useCallback(()=>{a.current=kl(),u({data:xn,error:xn,isMutating:!1})},[]);return rs(()=>{i.current=t,s.current=e,o.current=n}),{trigger:d,reset:m,get data(){return c.data=!0,h.data},get error(){return c.error=!0,h.error},get isMutating(){return c.isMutating=!0,h.isMutating}}},PD=XM(CD,RD);function Un(){return Un=Object.assign?Object.assign.bind():function(t){for(var e=1;et.forEach(n=>DD(n,e))}function Ru(...t){return U.useCallback(JM(...t),t)}function eT(t,e=[]){let n=[];function r(s,o){const a=U.createContext(o),l=n.length;n=[...n,o];function c(h){const{scope:d,children:m,...v}=h,p=(d==null?void 0:d[t][l])||a,g=U.useMemo(()=>v,Object.values(v));return U.createElement(p.Provider,{value:g},m)}function u(h,d){const m=(d==null?void 0:d[t][l])||a,v=U.useContext(m);if(v)return v;if(o!==void 0)return o;throw new Error(`\`${h}\` must be used within \`${s}\``)}return c.displayName=s+"Provider",[c,u]}const i=()=>{const s=n.map(o=>U.createContext(o));return function(a){const l=(a==null?void 0:a[t])||s;return U.useMemo(()=>({[`__scope${t}`]:{...a,[t]:l}}),[a,l])}};return i.scopeName=t,[r,LD(i,...e)]}function LD(...t){const e=t[0];if(t.length===1)return e;const n=()=>{const r=t.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(s){const o=r.reduce((a,{useScope:l,scopeName:c})=>{const h=l(s)[`__scope${c}`];return{...a,...h}},{});return U.useMemo(()=>({[`__scope${e.scopeName}`]:o}),[o])}};return n.scopeName=e.scopeName,n}const Hv=globalThis!=null&&globalThis.document?U.useLayoutEffect:()=>{},ND=aR.useId||(()=>{});let OD=0;function V0(t){const[e,n]=U.useState(ND());return Hv(()=>{t||n(r=>r??String(OD++))},[t]),t||(e?`radix-${e}`:"")}function Fl(t){const e=U.useRef(t);return U.useEffect(()=>{e.current=t}),U.useMemo(()=>(...n)=>{var r;return(r=e.current)===null||r===void 0?void 0:r.call(e,...n)},[])}function UD({prop:t,defaultProp:e,onChange:n=()=>{}}){const[r,i]=ID({defaultProp:e,onChange:n}),s=t!==void 0,o=s?t:r,a=Fl(n),l=U.useCallback(c=>{if(s){const h=typeof c=="function"?c(t):c;h!==t&&a(h)}else i(c)},[s,t,i,a]);return[o,l]}function ID({defaultProp:t,onChange:e}){const n=U.useState(t),[r]=n,i=U.useRef(r),s=Fl(e);return U.useEffect(()=>{i.current!==r&&(s(r),i.current=r)},[r,i,s]),n}const Ux=U.forwardRef((t,e)=>{const{children:n,...r}=t,i=U.Children.toArray(n),s=i.find(FD);if(s){const o=s.props.children,a=i.map(l=>l===s?U.Children.count(o)>1?U.Children.only(null):U.isValidElement(o)?o.props.children:null:l);return U.createElement(Wv,Un({},r,{ref:e}),U.isValidElement(o)?U.cloneElement(o,void 0,a):null)}return U.createElement(Wv,Un({},r,{ref:e}),n)});Ux.displayName="Slot";const Wv=U.forwardRef((t,e)=>{const{children:n,...r}=t;return U.isValidElement(n)?U.cloneElement(n,{...zD(r,n.props),ref:e?JM(e,n.ref):n.ref}):U.Children.count(n)>1?U.Children.only(null):null});Wv.displayName="SlotClone";const kD=({children:t})=>U.createElement(U.Fragment,null,t);function FD(t){return U.isValidElement(t)&&t.type===kD}function zD(t,e){const n={...e};for(const r in e){const i=t[r],s=e[r];/^on[A-Z]/.test(r)?i&&s?n[r]=(...a)=>{s(...a),i(...a)}:i&&(n[r]=i):r==="style"?n[r]={...i,...s}:r==="className"&&(n[r]=[i,s].filter(Boolean).join(" "))}return{...t,...n}}const BD=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Io=BD.reduce((t,e)=>{const n=U.forwardRef((r,i)=>{const{asChild:s,...o}=r,a=s?Ux:e;return U.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),U.createElement(a,Un({},o,{ref:i}))});return n.displayName=`Primitive.${e}`,{...t,[e]:n}},{});function VD(t,e){t&&Em.flushSync(()=>t.dispatchEvent(e))}function HD(t,e=globalThis==null?void 0:globalThis.document){const n=Fl(t);U.useEffect(()=>{const r=i=>{i.key==="Escape"&&n(i)};return e.addEventListener("keydown",r),()=>e.removeEventListener("keydown",r)},[n,e])}const Gv="dismissableLayer.update",WD="dismissableLayer.pointerDownOutside",GD="dismissableLayer.focusOutside";let tw;const $D=U.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),jD=U.forwardRef((t,e)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:o,onInteractOutside:a,onDismiss:l,...c}=t,u=U.useContext($D),[h,d]=U.useState(null),m=(n=h==null?void 0:h.ownerDocument)!==null&&n!==void 0?n:globalThis==null?void 0:globalThis.document,[,v]=U.useState({}),p=Ru(e,E=>d(E)),g=Array.from(u.layers),[f]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),x=g.indexOf(f),_=h?g.indexOf(h):-1,y=u.layersWithOutsidePointerEventsDisabled.size>0,w=_>=x,T=XD(E=>{const M=E.target,S=[...u.branches].some(P=>P.contains(M));!w||S||(s==null||s(E),a==null||a(E),E.defaultPrevented||l==null||l())},m),b=YD(E=>{const M=E.target;[...u.branches].some(P=>P.contains(M))||(o==null||o(E),a==null||a(E),E.defaultPrevented||l==null||l())},m);return HD(E=>{_===u.layers.size-1&&(i==null||i(E),!E.defaultPrevented&&l&&(E.preventDefault(),l()))},m),U.useEffect(()=>{if(h)return r&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(tw=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(h)),u.layers.add(h),nw(),()=>{r&&u.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=tw)}},[h,m,r,u]),U.useEffect(()=>()=>{h&&(u.layers.delete(h),u.layersWithOutsidePointerEventsDisabled.delete(h),nw())},[h,u]),U.useEffect(()=>{const E=()=>v({});return document.addEventListener(Gv,E),()=>document.removeEventListener(Gv,E)},[]),U.createElement(Io.div,Un({},c,{ref:p,style:{pointerEvents:y?w?"auto":"none":void 0,...t.style},onFocusCapture:Ma(t.onFocusCapture,b.onFocusCapture),onBlurCapture:Ma(t.onBlurCapture,b.onBlurCapture),onPointerDownCapture:Ma(t.onPointerDownCapture,T.onPointerDownCapture)}))});function XD(t,e=globalThis==null?void 0:globalThis.document){const n=Fl(t),r=U.useRef(!1),i=U.useRef(()=>{});return U.useEffect(()=>{const s=a=>{if(a.target&&!r.current){let u=function(){tT(WD,n,c,{discrete:!0})};var l=u;const c={originalEvent:a};a.pointerType==="touch"?(e.removeEventListener("click",i.current),i.current=u,e.addEventListener("click",i.current,{once:!0})):u()}else e.removeEventListener("click",i.current);r.current=!1},o=window.setTimeout(()=>{e.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(o),e.removeEventListener("pointerdown",s),e.removeEventListener("click",i.current)}},[e,n]),{onPointerDownCapture:()=>r.current=!0}}function YD(t,e=globalThis==null?void 0:globalThis.document){const n=Fl(t),r=U.useRef(!1);return U.useEffect(()=>{const i=s=>{s.target&&!r.current&&tT(GD,n,{originalEvent:s},{discrete:!1})};return e.addEventListener("focusin",i),()=>e.removeEventListener("focusin",i)},[e,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function nw(){const t=new CustomEvent(Gv);document.dispatchEvent(t)}function tT(t,e,n,{discrete:r}){const i=n.originalEvent.target,s=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:n});e&&i.addEventListener(t,e,{once:!0}),r?VD(i,s):i.dispatchEvent(s)}const H0="focusScope.autoFocusOnMount",W0="focusScope.autoFocusOnUnmount",rw={bubbles:!1,cancelable:!0},qD=U.forwardRef((t,e)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:s,...o}=t,[a,l]=U.useState(null),c=Fl(i),u=Fl(s),h=U.useRef(null),d=Ru(e,p=>l(p)),m=U.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;U.useEffect(()=>{if(r){let x=function(T){if(m.paused||!a)return;const b=T.target;a.contains(b)?h.current=b:ia(h.current,{select:!0})},_=function(T){if(m.paused||!a)return;const b=T.relatedTarget;b!==null&&(a.contains(b)||ia(h.current,{select:!0}))},y=function(T){if(document.activeElement===document.body)for(const E of T)E.removedNodes.length>0&&ia(a)};var p=x,g=_,f=y;document.addEventListener("focusin",x),document.addEventListener("focusout",_);const w=new MutationObserver(y);return a&&w.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",x),document.removeEventListener("focusout",_),w.disconnect()}}},[r,a,m.paused]),U.useEffect(()=>{if(a){sw.add(m);const p=document.activeElement;if(!a.contains(p)){const f=new CustomEvent(H0,rw);a.addEventListener(H0,c),a.dispatchEvent(f),f.defaultPrevented||(KD(t4(nT(a)),{select:!0}),document.activeElement===p&&ia(a))}return()=>{a.removeEventListener(H0,c),setTimeout(()=>{const f=new CustomEvent(W0,rw);a.addEventListener(W0,u),a.dispatchEvent(f),f.defaultPrevented||ia(p??document.body,{select:!0}),a.removeEventListener(W0,u),sw.remove(m)},0)}}},[a,c,u,m]);const v=U.useCallback(p=>{if(!n&&!r||m.paused)return;const g=p.key==="Tab"&&!p.altKey&&!p.ctrlKey&&!p.metaKey,f=document.activeElement;if(g&&f){const x=p.currentTarget,[_,y]=ZD(x);_&&y?!p.shiftKey&&f===y?(p.preventDefault(),n&&ia(_,{select:!0})):p.shiftKey&&f===_&&(p.preventDefault(),n&&ia(y,{select:!0})):f===x&&p.preventDefault()}},[n,r,m.paused]);return U.createElement(Io.div,Un({tabIndex:-1},o,{ref:d,onKeyDown:v}))});function KD(t,{select:e=!1}={}){const n=document.activeElement;for(const r of t)if(ia(r,{select:e}),document.activeElement!==n)return}function ZD(t){const e=nT(t),n=iw(e,t),r=iw(e.reverse(),t);return[n,r]}function nT(t){const e=[],n=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const i=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||i?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)e.push(n.currentNode);return e}function iw(t,e){for(const n of t)if(!QD(n,{upTo:e}))return n}function QD(t,{upTo:e}){if(getComputedStyle(t).visibility==="hidden")return!0;for(;t;){if(e!==void 0&&t===e)return!1;if(getComputedStyle(t).display==="none")return!0;t=t.parentElement}return!1}function JD(t){return t instanceof HTMLInputElement&&"select"in t}function ia(t,{select:e=!1}={}){if(t&&t.focus){const n=document.activeElement;t.focus({preventScroll:!0}),t!==n&&JD(t)&&e&&t.select()}}const sw=e4();function e4(){let t=[];return{add(e){const n=t[0];e!==n&&(n==null||n.pause()),t=ow(t,e),t.unshift(e)},remove(e){var n;t=ow(t,e),(n=t[0])===null||n===void 0||n.resume()}}}function ow(t,e){const n=[...t],r=n.indexOf(e);return r!==-1&&n.splice(r,1),n}function t4(t){return t.filter(e=>e.tagName!=="A")}const n4=U.forwardRef((t,e)=>{var n;const{container:r=globalThis==null||(n=globalThis.document)===null||n===void 0?void 0:n.body,...i}=t;return r?Bc.createPortal(U.createElement(Io.div,Un({},i,{ref:e})),r):null});function r4(t,e){return U.useReducer((n,r)=>{const i=e[n][r];return i??n},t)}const Rm=t=>{const{present:e,children:n}=t,r=i4(e),i=typeof n=="function"?n({present:r.isPresent}):U.Children.only(n),s=Ru(r.ref,i.ref);return typeof n=="function"||r.isPresent?U.cloneElement(i,{ref:s}):null};Rm.displayName="Presence";function i4(t){const[e,n]=U.useState(),r=U.useRef({}),i=U.useRef(t),s=U.useRef("none"),o=t?"mounted":"unmounted",[a,l]=r4(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return U.useEffect(()=>{const c=fh(r.current);s.current=a==="mounted"?c:"none"},[a]),Hv(()=>{const c=r.current,u=i.current;if(u!==t){const d=s.current,m=fh(c);t?l("MOUNT"):m==="none"||(c==null?void 0:c.display)==="none"?l("UNMOUNT"):l(u&&d!==m?"ANIMATION_OUT":"UNMOUNT"),i.current=t}},[t,l]),Hv(()=>{if(e){const c=h=>{const m=fh(r.current).includes(h.animationName);h.target===e&&m&&Em.flushSync(()=>l("ANIMATION_END"))},u=h=>{h.target===e&&(s.current=fh(r.current))};return e.addEventListener("animationstart",u),e.addEventListener("animationcancel",c),e.addEventListener("animationend",c),()=>{e.removeEventListener("animationstart",u),e.removeEventListener("animationcancel",c),e.removeEventListener("animationend",c)}}else l("ANIMATION_END")},[e,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:U.useCallback(c=>{c&&(r.current=getComputedStyle(c)),n(c)},[])}}function fh(t){return(t==null?void 0:t.animationName)||"none"}let G0=0;function s4(){U.useEffect(()=>{var t,e;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(t=n[0])!==null&&t!==void 0?t:aw()),document.body.insertAdjacentElement("beforeend",(e=n[1])!==null&&e!==void 0?e:aw()),G0++,()=>{G0===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(r=>r.remove()),G0--}},[])}function aw(){const t=document.createElement("span");return t.setAttribute("data-radix-focus-guard",""),t.tabIndex=0,t.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",t}var Gs=function(){return Gs=Object.assign||function(e){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(e[s]=n[s])}return e},Gs.apply(this,arguments)};function rT(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n}function o4(t,e,n){if(n||arguments.length===2)for(var r=0,i=e.length,s;r<i;r++)(s||!(r in e))&&(s||(s=Array.prototype.slice.call(e,0,r)),s[r]=e[r]);return t.concat(s||Array.prototype.slice.call(e))}var rp="right-scroll-bar-position",ip="width-before-scroll-bar",a4="with-scroll-bars-hidden",l4="--removed-body-scroll-bar-size";function $0(t,e){return typeof t=="function"?t(e):t&&(t.current=e),t}function c4(t,e){var n=U.useState(function(){return{value:t,callback:e,facade:{get current(){return n.value},set current(r){var i=n.value;i!==r&&(n.value=r,n.callback(r,i))}}}})[0];return n.callback=e,n.facade}var u4=typeof window<"u"?U.useLayoutEffect:U.useEffect,lw=new WeakMap;function d4(t,e){var n=c4(null,function(r){return t.forEach(function(i){return $0(i,r)})});return u4(function(){var r=lw.get(n);if(r){var i=new Set(r),s=new Set(t),o=n.current;i.forEach(function(a){s.has(a)||$0(a,null)}),s.forEach(function(a){i.has(a)||$0(a,o)})}lw.set(n,t)},[t]),n}function f4(t){return t}function h4(t,e){e===void 0&&(e=f4);var n=[],r=!1,i={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:t},useMedium:function(s){var o=e(s,r);return n.push(o),function(){n=n.filter(function(a){return a!==o})}},assignSyncMedium:function(s){for(r=!0;n.length;){var o=n;n=[],o.forEach(s)}n={push:function(a){return s(a)},filter:function(){return n}}},assignMedium:function(s){r=!0;var o=[];if(n.length){var a=n;n=[],a.forEach(s),o=n}var l=function(){var u=o;o=[],u.forEach(s)},c=function(){return Promise.resolve().then(l)};c(),n={push:function(u){o.push(u),c()},filter:function(u){return o=o.filter(u),n}}}};return i}function p4(t){t===void 0&&(t={});var e=h4(null);return e.options=Gs({async:!0,ssr:!1},t),e}var iT=function(t){var e=t.sideCar,n=rT(t,["sideCar"]);if(!e)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=e.read();if(!r)throw new Error("Sidecar medium not found");return U.createElement(r,Gs({},n))};iT.isSideCarExport=!0;function m4(t,e){return t.useMedium(e),iT}var sT=p4(),j0=function(){},Pm=U.forwardRef(function(t,e){var n=U.useRef(null),r=U.useState({onScrollCapture:j0,onWheelCapture:j0,onTouchMoveCapture:j0}),i=r[0],s=r[1],o=t.forwardProps,a=t.children,l=t.className,c=t.removeScrollBar,u=t.enabled,h=t.shards,d=t.sideCar,m=t.noIsolation,v=t.inert,p=t.allowPinchZoom,g=t.as,f=g===void 0?"div":g,x=rT(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),_=d,y=d4([n,e]),w=Gs(Gs({},x),i);return U.createElement(U.Fragment,null,u&&U.createElement(_,{sideCar:sT,removeScrollBar:c,shards:h,noIsolation:m,inert:v,setCallbacks:s,allowPinchZoom:!!p,lockRef:n}),o?U.cloneElement(U.Children.only(a),Gs(Gs({},w),{ref:y})):U.createElement(f,Gs({},w,{className:l,ref:y}),a))});Pm.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Pm.classNames={fullWidth:ip,zeroRight:rp};var g4=function(){if(typeof __webpack_nonce__"u")return S4;var e=b4(t),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:e[0],top:e[1],right:e[2],gap:Math.max(0,r-n+e[2]-e[0])}},M4=oT(),Zc="data-scroll-locked",T4=function(t,e,n,r){var i=t.left,s=t.top,o=t.right,a=t.gap;return n===void 0&&(n="margin"),`
.`.concat(a4,` {
overflow: hidden `).concat(r,`;
padding-right: `).concat(a,"px ").concat(r,`;
}
body[`).concat(Zc,`] {
overflow: hidden `).concat(r,`;
overscroll-behavior: contain;
`).concat([e&&"position: relative ".concat(r,";"),n==="margin"&&`
padding-left: `.concat(i,`px;
padding-top: `).concat(s,`px;
padding-right: `).concat(o,`px;
margin-left:0;
margin-top:0;
margin-right: `).concat(a,"px ").concat(r,`;
`),n==="padding"&&"padding-right: ".concat(a,"px ").concat(r,";")].filter(Boolean).join(""),`
}
.`).concat(rp,` {
right: `).concat(a,"px ").concat(r,`;
}
.`).concat(ip,` {
margin-right: `).concat(a,"px ").concat(r,`;
}
.`).concat(rp," .").concat(rp,` {
right: 0 `).concat(r,`;
}
.`).concat(ip," .").concat(ip,` {
margin-right: 0 `).concat(r,`;
}
body[`).concat(Zc,`] {
`).concat(l4,": ").concat(a,`px;
}
`)},cw=function(){var t=parseInt(document.body.getAttribute(Zc)||"0",10);return isFinite(t)?t:0},C4=function(){U.useEffect(function(){return document.body.setAttribute(Zc,(cw()+1).toString()),function(){var t=cw()-1;t<=0?document.body.removeAttribute(Zc):document.body.setAttribute(Zc,t.toString())}},[])},A4=function(t){var e=t.noRelative,n=t.noImportant,r=t.gapMode,i=r===void 0?"margin":r;C4();var s=U.useMemo(function(){return E4(i)},[i]);return U.createElement(M4,{styles:T4(s,!e,i,n?"":"!important")})},$v=!1;if(typeof window<"u")try{var hh=Object.defineProperty({},"passive",{get:function(){return $v=!0,!0}});window.addEventListener("test",hh,hh),window.removeEventListener("test",hh,hh)}catch{$v=!1}var sc=$v?{passive:!1}:!1,R4=function(t){return t.tagName==="TEXTAREA"},aT=function(t,e){var n=window.getComputedStyle(t);return n[e]!=="hidden"&&!(n.overflowY===n.overflowX&&!R4(t)&&n[e]==="visible")},P4=function(t){return aT(t,"overflowY")},D4=function(t){return aT(t,"overflowX")},uw=function(t,e){var n=e;do{typeof ShadowRooto)return!0}n=n.parentNode}while(n&&n!==document.body);return!1},L4=function(t){var e=t.scrollTop,n=t.scrollHeight,r=t.clientHeight;return[e,n,r]},N4=function(t){var e=t.scrollLeft,n=t.scrollWidth,r=t.clientWidth;return[e,n,r]},lT=function(t,e){return t==="v"?P4(e):D4(e)},cT=function(t,e){return t==="v"?L4(e):N4(e)},O4=function(t,e){return t==="h"&&e==="rtl"?-1:1},U4=function(t,e,n,r,i){var s=O4(t,window.getComputedStyle(e).direction),o=s*r,a=n.target,l=e.contains(a),c=!1,u=o>0,h=0,d=0;do{var m=cT(t,a),v=m[0],p=m[1],g=m[2],f=p-g-s*v;(v||f)&&lT(t,a)&&(h+=f,d+=v),a=a.parentNode}while(!l&&a!==document.body||l&&(e.contains(a)||e===a));return(u&&(h===0||!i)||!u&&(d===0||!i))&&(c=!0),c},ph=function(t){return"changedTouches"in t?[t.changedTouches[0].clientX,t.changedTouches[0].clientY]:[0,0]},dw=function(t){return[t.deltaX,t.deltaY]},fw=function(t){return t&&"current"in t?t.current:t},I4=function(t,e){return t[0]===e[0]&&t[1]===e[1]},k4=function(t){return`
.block-interactivity-`.concat(t,` {pointer-events: none;}
.allow-interactivity-`).concat(t,` {pointer-events: all;}
`)},F4=0,oc=[];function z4(t){var e=U.useRef([]),n=U.useRef([0,0]),r=U.useRef(),i=U.useState(F4++)[0],s=U.useState(function(){return oT()})[0],o=U.useRef(t);U.useEffect(function(){o.current=t},[t]),U.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(i));var p=o4([t.lockRef.current],(t.shards||[]).map(fw),!0).filter(Boolean);return p.forEach(function(g){return g.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),p.forEach(function(g){return g.classList.remove("allow-interactivity-".concat(i))})}}},[t.inert,t.lockRef.current,t.shards]);var a=U.useCallback(function(p,g){if("touches"in p&&p.touches.length===2)return!o.current.allowPinchZoom;var f=ph(p),x=n.current,_="deltaX"in p?p.deltaX:x[0]-f[0],y="deltaY"in p?p.deltaY:x[1]-f[1],w,T=p.target,b=Math.abs(_)>Math.abs(y)?"h":"v";if("touches"in p&&b==="h"&&T.type==="range")return!1;var E=uw(b,T);if(!E)return!0;if(E?w=b:(w=b==="v"?"h":"v",E=uw(b,T)),!E)return!1;if(!r.current&&"changedTouches"in p&&(_||y)&&(r.current=w),!w)return!0;var M=r.current||w;return U4(M,g,p,M==="h"?_:y,!0)},[]),l=U.useCallback(function(p){var g=p;if(!(!oc.length||oc[oc.length-1]!==s)){var f="deltaY"in g?dw(g):ph(g),x=e.current.filter(function(w){return w.name===g.type&&w.target===g.target&&I4(w.delta,f)})[0];if(x&&x.should){g.cancelable&&g.preventDefault();return}if(!x){var _=(o.current.shards||[]).map(fw).filter(Boolean).filter(function(w){return w.contains(g.target)}),y=_.length>0?a(g,_[0]):!o.current.noIsolation;y&&g.cancelable&&g.preventDefault()}}},[]),c=U.useCallback(function(p,g,f,x){var _={name:p,delta:g,target:f,should:x};e.current.push(_),setTimeout(function(){e.current=e.current.filter(function(y){return y!==_})},1)},[]),u=U.useCallback(function(p){n.current=ph(p),r.current=void 0},[]),h=U.useCallback(function(p){c(p.type,dw(p),p.target,a(p,t.lockRef.current))},[]),d=U.useCallback(function(p){c(p.type,ph(p),p.target,a(p,t.lockRef.current))},[]);U.useEffect(function(){return oc.push(s),t.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:d}),document.addEventListener("wheel",l,sc),document.addEventListener("touchmove",l,sc),document.addEventListener("touchstart",u,sc),function(){oc=oc.filter(function(p){return p!==s}),document.removeEventListener("wheel",l,sc),document.removeEventListener("touchmove",l,sc),document.removeEventListener("touchstart",u,sc)}},[]);var m=t.removeScrollBar,v=t.inert;return U.createElement(U.Fragment,null,v?U.createElement(s,{styles:k4(i)}):null,m?U.createElement(A4,{gapMode:"margin"}):null)}const B4=m4(sT,z4);var uT=U.forwardRef(function(t,e){return U.createElement(Pm,Gs({},t,{ref:e,sideCar:B4}))});uT.classNames=Pm.classNames;var V4=function(t){if(typeof document>"u")return null;var e=Array.isArray(t)?t[0]:t;return e.ownerDocument.body},ac=new WeakMap,mh=new WeakMap,gh={},Y0=0,dT=function(t){return t&&(t.host||dT(t.parentNode))},H4=function(t,e){return e.map(function(n){if(t.contains(n))return n;var r=dT(n);return r&&t.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",t,". Doing nothing"),null)}).filter(function(n){return!!n})},W4=function(t,e,n,r){var i=H4(e,Array.isArray(t)?t:[t]);gh[n]||(gh[n]=new WeakMap);var s=gh[n],o=[],a=new Set,l=new Set(i),c=function(h){!h||a.has(h)||(a.add(h),c(h.parentNode))};i.forEach(c);var u=function(h){!h||l.has(h)||Array.prototype.forEach.call(h.children,function(d){if(a.has(d))u(d);else try{var m=d.getAttribute(r),v=m!==null&&m!=="false",p=(ac.get(d)||0)+1,g=(s.get(d)||0)+1;ac.set(d,p),s.set(d,g),o.push(d),p===1&&v&&mh.set(d,!0),g===1&&d.setAttribute(n,"true"),v||d.setAttribute(r,"true")}catch(f){console.error("aria-hidden: cannot operate on ",d,f)}})};return u(e),a.clear(),Y0++,function(){o.forEach(function(h){var d=ac.get(h)-1,m=s.get(h)-1;ac.set(h,d),s.set(h,m),d||(mh.has(h)||h.removeAttribute(r),mh.delete(h)),m||h.removeAttribute(n)}),Y0--,Y0||(ac=new WeakMap,ac=new WeakMap,mh=new WeakMap,gh={})}},G4=function(t,e,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(t)?t:[t]),i=V4(t);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live]"))),W4(r,i,n,"aria-hidden")):function(){return null}};const fT="Dialog",[hT,IV]=eT(fT),[$4,ko]=hT(fT),j4=t=>{const{__scopeDialog:e,children:n,open:r,defaultOpen:i,onOpenChange:s,modal:o=!0}=t,a=U.useRef(null),l=U.useRef(null),[c=!1,u]=UD({prop:r,defaultProp:i,onChange:s});return U.createElement($4,{scope:e,triggerRef:a,contentRef:l,contentId:V0(),titleId:V0(),descriptionId:V0(),open:c,onOpenChange:u,onOpenToggle:U.useCallback(()=>u(h=>!h),[u]),modal:o},n)},X4="DialogTrigger",Y4=U.forwardRef((t,e)=>{const{__scopeDialog:n,...r}=t,i=ko(X4,n),s=Ru(e,i.triggerRef);return U.createElement(Io.button,Un({type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":Ix(i.open)},r,{ref:s,onClick:Ma(t.onClick,i.onOpenToggle)}))}),pT="DialogPortal",[q4,mT]=hT(pT,{forceMount:void 0}),K4=t=>{const{__scopeDialog:e,forceMount:n,children:r,container:i}=t,s=ko(pT,e);return U.createElement(q4,{scope:e,forceMount:n},U.Children.map(r,o=>U.createElement(Rm,{present:n||s.open},U.createElement(n4,{asChild:!0,container:i},o))))},jv="DialogOverlay",Z4=U.forwardRef((t,e)=>{const n=mT(jv,t.__scopeDialog),{forceMount:r=n.forceMount,...i}=t,s=ko(jv,t.__scopeDialog);return s.modal?U.createElement(Rm,{present:r||s.open},U.createElement(Q4,Un({},i,{ref:e}))):null}),Q4=U.forwardRef((t,e)=>{const{__scopeDialog:n,...r}=t,i=ko(jv,n);return U.createElement(uT,{as:Ux,allowPinchZoom:!0,shards:[i.contentRef]},U.createElement(Io.div,Un({"data-state":Ix(i.open)},r,{ref:e,style:{pointerEvents:"auto",...r.style}})))}),Jd="DialogContent",J4=U.forwardRef((t,e)=>{const n=mT(Jd,t.__scopeDialog),{forceMount:r=n.forceMount,...i}=t,s=ko(Jd,t.__scopeDialog);return U.createElement(Rm,{present:r||s.open},s.modal?U.createElement(eL,Un({},i,{ref:e})):U.createElement(tL,Un({},i,{ref:e})))}),eL=U.forwardRef((t,e)=>{const n=ko(Jd,t.__scopeDialog),r=U.useRef(null),i=Ru(e,n.contentRef,r);return U.useEffect(()=>{const s=r.current;if(s)return G4(s)},[]),U.createElement(gT,Un({},t,{ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Ma(t.onCloseAutoFocus,s=>{var o;s.preventDefault(),(o=n.triggerRef.current)===null||o===void 0||o.focus()}),onPointerDownOutside:Ma(t.onPointerDownOutside,s=>{const o=s.detail.originalEvent,a=o.button===0&&o.ctrlKey===!0;(o.button===2||a)&&s.preventDefault()}),onFocusOutside:Ma(t.onFocusOutside,s=>s.preventDefault())}))}),tL=U.forwardRef((t,e)=>{const n=ko(Jd,t.__scopeDialog),r=U.useRef(!1),i=U.useRef(!1);return U.createElement(gT,Un({},t,{ref:e,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var o;if((o=t.onCloseAutoFocus)===null||o===void 0||o.call(t,s),!s.defaultPrevented){var a;r.current||(a=n.triggerRef.current)===null||a===void 0||a.focus(),s.preventDefault()}r.current=!1,i.current=!1},onInteractOutside:s=>{var o,a;(o=t.onInteractOutside)===null||o===void 0||o.call(t,s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(i.current=!0));const l=s.target;((a=n.triggerRef.current)===null||a===void 0?void 0:a.contains(l))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&i.current&&s.preventDefault()}}))}),gT=U.forwardRef((t,e)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:s,...o}=t,a=ko(Jd,n),l=U.useRef(null),c=Ru(e,l);return s4(),U.createElement(U.Fragment,null,U.createElement(qD,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:s},U.createElement(jD,Un({role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":Ix(a.open)},o,{ref:c,onDismiss:()=>a.onOpenChange(!1)}))),!1)});const nL="DialogClose",rL=U.forwardRef((t,e)=>{const{__scopeDialog:n,...r}=t,i=ko(nL,n);return U.createElement(Io.button,Un({type:"button"},r,{ref:e,onClick:Ma(t.onClick,()=>i.onOpenChange(!1))}))});function Ix(t){return t?"open":"closed"}const Dm=j4,vT=Y4,Lm=K4,Nm=Z4,Om=J4,kx=rL,vt={campaignIds:["UrbanHorror-240705","UrbanHorror-240706","UrbanHorror-240707","UrbanHorror-240708","UrbanHorror-240709","UrbanHorror-240710","UrbanHorror-240711","UrbanHorror-240712","UrbanHorror-240713","UrbanHorror-240714","UrbanHorror-240715","UrbanHorror-240716","UrbanHorror-240717","UrbanHorror-240718","UrbanHorror-240719","UrbanHorror-240720","UrbanHorror-240721","UrbanHorror-240722","UrbanHorror-240723","UrbanHorror-240724","UrbanHorror-240725","UrbanHorror-240726","UrbanHorror-240727","UrbanHorror-240728","UrbanHorror-240729","UrbanHorror-240730","UrbanHorror-240731","UrbanHorror-240801","UrbanHorror-240802","UrbanHorror-240803","UrbanHorror-240804","UrbanHorror-240805","UrbanHorror-240806","UrbanHorror-240807","UrbanHorror-240808","UrbanHorror-240809","UrbanHorror-240810","UrbanHorror-240811","UrbanHorror-240812","UrbanHorror-240813","UrbanHorror-240814","UrbanHorror-240815","UrbanHorror-240816","UrbanHorror-240817","UrbanHorror-240818","UrbanHorror-240819","UrbanHorror-240820","UrbanHorror-240821","UrbanHorror-240822","UrbanHorror-240823","UrbanHorror-240824","UrbanHorror-240825","UrbanHorror-240826","UrbanHorror-240827","UrbanHorror-240828","UrbanHorror-240829","UrbanHorror-240830","UrbanHorror-240831","UrbanHorror-240901","UrbanHorror-240902","UrbanHorror-240903","UrbanHorror-240904","UrbanHorror-240905","UrbanHorror-240906","UrbanHorror-240907","UrbanHorror-240908","UrbanHorror-240909","UrbanHorror-240910","UrbanHorror-240911","UrbanHorror-240912","UrbanHorror-240913","UrbanHorror-240914","UrbanHorror-240915"],map:{area:[{id:"1",name:"大眾運輸篇",position:{x:.18,y:.13}},{id:"2",name:"辦公大樓篇",position:{x:.48,y:.51}},{id:"3",name:"夜生活篇",position:{x:.26,y:.48}},{id:"4",name:"公寓篇",position:{x:.44,y:.11}},{id:"5",name:"商圈篇",position:{x:.75,y:.1}},{id:"6",name:"住宿篇",position:{x:.81,y:.34}}],items:[{id:"COC-TW-D0001-01-0001",name:"計程車招呼站",position:{x:.08,y:.3}},{id:"COC-TW-D0001-01-0002",name:"失物招領",position:{x:.17,y:.35}},{id:"COC-TW-D0001-01-0003",name:"末班客運",position:{x:.1,y:.2}},{id:"COC-TW-D0001-01-0004",name:"觀光巴士",position:{x:.25,y:.25}},{id:"COC-TW-D0001-01-0005",name:"宵夜指南",position:{x:.15,y:.65}},{id:"COC-TW-D0001-01-0006",name:"夜店",position:{x:.325,y:.65}},{id:"COC-TW-D0001-01-0007",name:"大冒險",position:{x:.2,y:.775}},{id:"COC-TW-D0001-01-0008",name:"夜跑",position:{x:.25,y:.7}},{id:"COC-TW-D0001-01-0009",name:"電影散場",position:{x:.25,y:.625}},{id:"COC-TW-D0001-01-0010",name:"完美夜景",position:{x:.2,y:.575}},{id:"COC-TW-D0001-01-0011",name:"代收包裹",position:{x:.45,y:.35}},{id:"COC-TW-D0001-01-0012",name:"街景圖",position:{x:.475,y:.2}},{id:"COC-TW-D0001-01-0013",name:"注意噪音",position:{x:.4,y:.225}},{id:"COC-TW-D0001-01-0014",name:"入侵者",position:{x:.325,y:.4}},{id:"COC-TW-D0001-01-0015",name:"智能家電",position:{x:.35,y:.15}},{id:"COC-TW-D0001-01-0016",name:"室友的男朋友",position:{x:.325,y:.275}},{id:"COC-TW-D0001-01-0017",name:"視訊會議",position:{x:.45,y:.75}},{id:"COC-TW-D0001-01-0018",name:"生日快樂",position:{x:.475,y:.65}},{id:"COC-TW-D0001-01-0019",name:"深夜加班",position:{x:.55,y:.675}},{id:"COC-TW-D0001-01-0020",name:"新主管",position:{x:.55,y:.75}},{id:"COC-TW-D0001-01-0021",name:"辦公室戀情",position:{x:.5,y:.85}},{id:"COC-TW-D0001-01-0022",name:"吸煙區",position:{x:.575,y:.85}},{id:"COC-TW-D0001-01-0023",name:"公車禮儀",position:{x:.625,y:.7}},{id:"COC-TW-D0001-01-0024",name:"試衣間",position:{x:.55,y:.2}},{id:"COC-TW-D0001-01-0025",name:"人像素描",position:{x:.6,y:.3}},{id:"COC-TW-D0001-01-0026",name:"恐怖扭蛋",position:{x:.7,y:.325}},{id:"COC-TW-D0001-01-0027",name:"進場人數",position:{x:.625,y:.2}},{id:"COC-TW-D0001-01-0028",name:"五星評論",position:{x:.7,y:.15}},{id:"COC-TW-D0001-01-0029",name:"家庭套房",position:{x:.75,y:.45}},{id:"COC-TW-D0001-01-0030",name:"青年旅社",position:{x:.85,y:.5}},{id:"COC-TW-D0001-01-0031",name:"寵物友善",position:{x:.725,y:.55}},{id:"COC-TW-D0001-01-0032",name:"客房清潔",position:{x:.8,y:.7}},{id:"COC-TW-D0001-01-0033",name:"日租套房",position:{x:.875,y:.6}},{id:"COC-TW-D0001-01-0034",name:"Check-in",position:{x:.7,y:.65}}]},items:{"COC-TW-D0001-01-0001":{id:"COC-TW-D0001-01-0001",name:"計程車招呼站",description:"麗萍加班到深夜,搭上一台老計程車,司機熟練講出所住樓層,並等到麗萍進屋開燈後才開走,令她毛骨悚然….",shortDescription:"麗萍深夜搭計程車,司機竟能熟練講出居處…",date:"2024-07-12",cast:"許瑋甯、竺定誼",url:"https://www.catchplay.com/tw/video/e120e5ec-4a6f-4344-a5da-43d99e6432bb",trailerUrl:"https://www.catchplay.com/tw/video/e120e5ec-4a6f-4344-a5da-43d99e6432bb",shortUrl:"https://cp.app.link/li66GIkYoKb"},"COC-TW-D0001-01-0002":{id:"COC-TW-D0001-01-0002",name:"失物招領",description:"曼曼吃力拖著行李箱走進迷宮般的北車地下街準備轉捷運,四周店家一間間打烊,赫然發現行李箱變得很重,打開發現拿錯箱子,裡面裝的物品讓她恐懼….",shortDescription:"曼曼深夜在北車發現拿錯行李,而裡面卻是….",date:"2024-07-12",cast:"黃姵嘉、廖允杰",url:"https://www.catchplay.com/tw/video/e120e5ec-4a6f-4344-a5da-43d99e6432bb",trailerUrl:"https://www.catchplay.com/tw/video/e120e5ec-4a6f-4344-a5da-43d99e6432bb",shortUrl:"https://cp.app.link/JA8UewDYoKb"},"COC-TW-D0001-01-0003":{id:"COC-TW-D0001-01-0003",name:"末班客運",description:"深夜驚醒的阿慶發現自己靠著客運車窗睡著了,客運巴士停在隧道中,門窗鎖死,手機也沒有訊號,拍打車窗想引起路過車子注意,都沒有效….",shortDescription:"深夜客運在隧道停駛,阿慶驚醒車內空無一人….",date:"2024-07-12",cast:"謝章穎、洪文凱",url:"https://www.catchplay.com/tw/video/e120e5ec-4a6f-4344-a5da-43d99e6432bb",trailerUrl:"https://www.catchplay.com/tw/video/e120e5ec-4a6f-4344-a5da-43d99e6432bb",shortUrl:"https://cp.app.link/Cr3hAybZoKb"},"COC-TW-D0001-01-0004":{id:"COC-TW-D0001-01-0004",name:"觀光巴士",description:"阿光與豆花搭上觀光巴士,兩人看著風景閒聊談情說愛。這時,有個奶瓶滾了過來。阿光要把奶瓶還給媽媽,卻發現她懷中的嬰兒是個...",shortDescription:"阿光與豆花搭觀光巴士,身旁媽媽抱著令二人吃驚的..",date:"2024-07-12",cast:"曾莞婷、詹懷雲、高倩怡",url:"https://www.catchplay.com/tw/video/e120e5ec-4a6f-4344-a5da-43d99e6432bb",trailerUrl:"https://www.catchplay.com/tw/video/e120e5ec-4a6f-4344-a5da-43d99e6432bb",shortUrl:"https://cp.app.link/LilJkDrZoKb"},"COC-TW-D0001-01-0005":{id:"COC-TW-D0001-01-0005",name:"宵夜指南",description:"深夜年輕情侶走進臭豆腐店,老闆淋上醬汁熱情分享老婆家傳配方,未料倉庫深處醃漬箱藏有秘密…",shortDescription:"深夜臭豆腐店的秘方,藏在倉庫裡的醃漬箱…",date:"2024-07-13",cast:"游安順、胡釋安、晏柔中",url:"https://www.catchplay.com/tw/video/e120e5ec-4a6f-4344-a5da-43d99e6432bb",trailerUrl:"https://www.catchplay.com/tw/video/e120e5ec-4a6f-4344-a5da-43d99e6432bb",shortUrl:"https://cp.app.link/kH9i4eEZoKb"},"COC-TW-D0001-01-0006":{id:"COC-TW-D0001-01-0006",name:"夜店",description:"阿冠扶著喝醉的米米走出夜店準備撿屍,這時正義的Mandy衝出夜店喝止阿冠成功。米米醒來躺在Mandy 的大腿上,究竟米米會被帶往何處?",shortDescription:"Mandy拯救被撿屍的米米,但她究竟是米米的何人?",date:"2024-07-14",cast:"曾沛慈、何思靜、吳言凜",url:"https://www.catchplay.com/tw/video/e120e5ec-4a6f-4344-a5da-43d99e6432bb",trailerUrl:"https://www.catchplay.com/tw/video/e120e5ec-4a6f-4344-a5da-43d99e6432bb",shortUrl:"https://cp.app.link/soJKyUXZoKb"},"COC-TW-D0001-01-0007":{id:"COC-TW-D0001-01-0007",name:"大冒險",description:"好友四人到廢墟大冒險,猜拳決定誰要單獨找著名的恐怖房間,裡面放著可怕的落難神像,傳說誰進去就會受詛咒倒大楣…",shortDescription:"廢墟裡四人尋找放著落難神像的詛咒房間..",date:"2024-07-15",cast:"許莉廷、黃聖球、虹茜、簡建安",url:"https://www.catchplay.com/tw/video/e120e5ec-4a6f-4344-a5da-43d99e6432bb",trailerUrl:"https://www.catchplay.com/tw/video/e120e5ec-4a6f-4344-a5da-43d99e6432bb",shortUrl:"https://cp.app.link/VjrN8ko0oKb"},"COC-TW-D0001-01-0008":{id:"COC-TW-D0001-01-0008",name:"夜跑",description:"雅涵深夜公園夜跑,眼角餘光偷瞄陌生人跟著她移動,全力加速飛快甩開男子,以為已經甩開的同時,腳步聲伴隨著猙獰的嘶吼聲又再度傳來…",shortDescription:"雅涵夜跑以為成功甩開跟蹤,但嘶吼聲又傳來..",date:"2024-07-16",cast:"曾愷玹、陳映如",url:"https://www.catchplay.com/tw/video/e120e5ec-4a6f-4344-a5da-43d99e6432bb",trailerUrl:"https://www.catchplay.com/tw/video/e120e5ec-4a6f-4344-a5da-43d99e6432bb",shortUrl:"https://cp.app.link/pk8K0gB0oKb"},"COC-TW-D0001-01-0009":{id:"COC-TW-D0001-01-0009",name:"電影散場",description:"星途不順的阿誠接到殺人魔試鏡機會,女友要阿誠現場重演電影劇情,阿誠努力嘗試卻進不了狀況,女友言語激怒試圖讓他進入狀況,情況一發不可收拾…",shortDescription:"阿誠受激怒試演殺人魔,情況一發不可收拾….",date:"2024-07-17",cast:"高英軒、李劭婕",url:"https://www.catchplay.com/tw/video/e120e5ec-4a6f-4344-a5da-43d99e6432bb",trailerUrl:"https://www.catchplay.com/tw/video/e120e5ec-4a6f-4344-a5da-43d99e6432bb",shortUrl:"https://cp.app.link/P12npDS0oKb"},"COC-TW-D0001-01-0010":{id:"COC-TW-D0001-01-0010",name:"完美夜景",description:"騎著單車的陽光男孩阿翰,停下車想協助在路邊自拍的子諾,阿翰努力指揮想拍出美照,表情卻越來越詭異...",shortDescription:"阿翰協助自拍的子諾拍照,越拍表情卻越詭異..",date:"2024-07-18",cast:"林柏宏、黃珮琪",url:"https://www.catchplay.com/tw/video/e120e5ec-4a6f-4344-a5da-43d99e6432bb",trailerUrl:"https://www.catchplay.com/tw/video/e120e5ec-4a6f-4344-a5da-43d99e6432bb",shortUrl:"https://cp.app.link/o78Q1X50oKb"},"COC-TW-D0001-01-0011":{id:"COC-TW-D0001-01-0011",name:"代收包裹",description:"阿珍對門鄰居Annie愛網購但總不在家,阿珍覺得送貨員很辛苦,便答應幫忙代收。有一次,阿珍不小心摔了代收包裹掉出詭異的…",shortDescription:"阿珍代收鄰居包裹,不料掉出詭異的…",date:"2024-07-19",cast:"陳妤、饒星星、傅顯皓",url:"https://www.catchplay.com/tw/video/e120e5ec-4a6f-4344-a5da-43d99e6432bb",trailerUrl:"https://www.catchplay.com/tw/video/e120e5ec-4a6f-4344-a5da-43d99e6432bb",shortUrl:"https://cp.app.link/9tqyh2i1oKb"},"COC-TW-D0001-01-0012":{id:"COC-TW-D0001-01-0012",name:"街景圖",description:"若嫻等紅綠燈時隨意滑著手機,看見熱門文章「意想不到!網路街景圖十大趣事」,心血來潮打開Google街景,發現一名阿伯總是出現在她附近…",shortDescription:"若嫻好奇打開Google街景,發現自己附近總是有…",date:"2024-07-20",cast:"邵雨薇、黃大旺",url:"https://www.catchplay.com/tw/video/e120e5ec-4a6f-4344-a5da-43d99e6432bb",trailerUrl:"https://www.catchplay.com/tw/video/e120e5ec-4a6f-4344-a5da-43d99e6432bb",shortUrl:"https://cp.app.link/wwAawPv1oKb"},"COC-TW-D0001-01-0013":{id:"COC-TW-D0001-01-0013",name:"注意噪音",description:"每天樓上房東傳來的噪音,讓長期失眠的小琪快崩潰。小琪怒火中燒的衝上樓找尋惡鄰居理論,卻看見房東被…",shortDescription:"每天樓上房東的噪音讓小琪崩潰,衝上樓發現…",date:"2024-07-21",cast:"李沐、林志儒",url:"https://www.catchplay.com/tw/video/e120e5ec-4a6f-4344-a5da-43d99e6432bb",trailerUrl:"https://www.catchplay.com/tw/video/e120e5ec-4a6f-4344-a5da-43d99e6432bb",shortUrl:"https://cp.app.link/miCskhP1oKb"},"COC-TW-D0001-01-0014":{id:"COC-TW-D0001-01-0014",name:"入侵者",description:"麗文在家愜意一邊吃晚餐,一邊跟閨蜜通話聊天。閨蜜提醒,最近常常有歹徒闖空門的新聞。砰!突然有人大力撞門,門把開始轉動….",shortDescription:"麗文與閨蜜通話被提醒小心闖空門時,門把自行轉動….",date:"2024-07-22",cast:"百白、喬瑟夫、姚吉慧",url:"https://www.catchplay.com/tw/video/e120e5ec-4a6f-4344-a5da-43d99e6432bb",trailerUrl:"https://www.catchplay.com/tw/video/e120e5ec-4a6f-4344-a5da-43d99e6432bb",shortUrl:"https://cp.app.link/IPXMCO41oKb"},"COC-TW-D0001-01-0015":{id:"COC-TW-D0001-01-0015",name:"智能家電",description:"簡秋蘭住進女兒家,每天獨自在家被智能家電莫名開開關關的功能嚇得魂飛魄散,不僅屋內冷氣被開到最低,藥品也被鎖在房間…",shortDescription:"秋蘭被智能家電嚇壞,冷氣被開到最低、藥品也被…",date:"2024-07-23",cast:"楊銘威、張琴、高詩婷",url:"https://www.catchplay.com/tw/video/e120e5ec-4a6f-4344-a5da-43d99e6432bb",trailerUrl:"https://www.catchplay.com/tw/video/e120e5ec-4a6f-4344-a5da-43d99e6432bb",shortUrl:"https://cp.app.link/8lIXjEs2oKb"},"COC-TW-D0001-01-0016":{id:"COC-TW-D0001-01-0016",name:"室友的男朋友",description:"小茜與好友合租公寓,回家空無一人,卻看到室友男友洗好澡走進房間,一臉陰沈盯著她看…",shortDescription:"小茜室友消失,家中卻出現室友濡溼的男友…",date:"2024-07-24",cast:"黃湘婷、管麟",url:"https://www.catchplay.com/tw/video/e120e5ec-4a6f-4344-a5da-43d99e6432bb",trailerUrl:"https://www.catchplay.com/tw/video/e120e5ec-4a6f-4344-a5da-43d99e6432bb",shortUrl:"https://cp.app.link/IbKNunF2oKb"},"COC-TW-D0001-01-0017":{id:"COC-TW-D0001-01-0017",name:"視訊會議",description:"幹練的Patty帶著兒子佑佑一起到公司上班, Patty忙著跟日本總公司視訊會議隨意打發佑佑去跟同事Tina 玩,會議結束Patty 四處找不到佑佑…",shortDescription:"Patty忙會議打發兒子跟同事玩,會議後兒子不見了…",date:"2024-07-25",cast:"周采詩、陳慕帆",url:"https://www.catchplay.com/tw/video/e120e5ec-4a6f-4344-a5da-43d99e6432bb",trailerUrl:"https://www.catchplay.com/tw/video/e120e5ec-4a6f-4344-a5da-43d99e6432bb",shortUrl:"https://cp.app.link/oU6lWVQ2oKb"},"COC-TW-D0001-01-0018":{id:"COC-TW-D0001-01-0018",name:"生日快樂",description:"人緣好的主管Peter每年生日同事們都想方設法要惡整他,今年也不例外,各種惡作劇都被Peter 一一識破,直到…",shortDescription:"Peter 生日同事想方設法整他但都被識破,直到…",date:"2024-07-26",cast:"曾博恩、林葦妮",url:"https://www.catchplay.com/tw/video/e120e5ec-4a6f-4344-a5da-43d99e6432bb",trailerUrl:"https://www.catchplay.com/tw/video/e120e5ec-4a6f-4344-a5da-43d99e6432bb",shortUrl:"https://cp.app.link/9wK9pg22oKb"},"COC-TW-D0001-01-0019":{id:"COC-TW-D0001-01-0019",name:"深夜加班",description:"深夜,空蕩蕩的辦公室只剩欣怡還在敲打著鍵盤,突然辦公室的燈全暗了下來,影印機神秘地自動運作…",shortDescription:"欣怡加班到深夜,空蕩蕩辦公室影印機竟自動運作…",date:"2024-07-27",cast:"林思廷",url:"https://www.catchplay.com/tw/video/e120e5ec-4a6f-4344-a5da-43d99e6432bb",trailerUrl:"https://www.catchplay.com/tw/video/e120e5ec-4a6f-4344-a5da-43d99e6432bb",shortUrl:"https://cp.app.link/jdXlXJe3oKb"},"COC-TW-D0001-01-0020":{id:"COC-TW-D0001-01-0020",name:"新主管",description:"房仲公司辦公室每個人都槁木死灰,原來是新主管上任後已經連續加班好幾天。忍無可忍的小組長大頭衝進主管辦公室為大家說話,沒想走出辦公室卻變了個人…",shortDescription:"新主管迫團隊加班,小組長發難進主管辦公室卻…",date:"2024-07-28",cast:"傅孟柏、黃冠智、初孟軒",url:"https://www.catchplay.com/tw/video/e120e5ec-4a6f-4344-a5da-43d99e6432bb",trailerUrl:"https://www.catchplay.com/tw/video/e120e5ec-4a6f-4344-a5da-43d99e6432bb",shortUrl:"https://cp.app.link/RHqFjGn3oKb"},"COC-TW-D0001-01-0021":{id:"COC-TW-D0001-01-0021",name:"辦公室戀情",description:"Tiffany每天收到愛心早餐及溫馨紙條,心中滿溢溫暖。但愛慕者連生理期都知曉,令她感到不安。想找出嫌疑者,卻發現錢包藏有令她驚恐的照片…",shortDescription:"Tiffany受辦公室愛慕者瘋狂追求,發現錢包藏驚人照片…",date:"2024-07-29",cast:"江宜蓉",url:"https://www.catchplay.com/tw/video/e120e5ec-4a6f-4344-a5da-43d99e6432bb",trailerUrl:"https://www.catchplay.com/tw/video/e120e5ec-4a6f-4344-a5da-43d99e6432bb",shortUrl:"https://cp.app.link/yfpB7IB3oKb"},"COC-TW-D0001-01-0022":{id:"COC-TW-D0001-01-0022",name:"吸煙區",description:"受職場霸凌的甜甜泛淚跑向頂樓吸煙區,碰到抽菸的文耀哥。暖男文耀哥安慰甜甜讓她重新出發,充正能量的甜甜之後卻被告知文耀哥當日已被資遣…",shortDescription:"甜甜在吸煙區受文耀哥鼓勵振作,未料對方早已…",date:"2024-07-30",cast:"姚元浩、李雪",url:"https://www.catchplay.com/tw/video/e120e5ec-4a6f-4344-a5da-43d99e6432bb",trailerUrl:"https://www.catchplay.com/tw/video/e120e5ec-4a6f-4344-a5da-43d99e6432bb",shortUrl:"https://cp.app.link/e/HHNKwno5oKb"},"COC-TW-D0001-01-0023":{id:"COC-TW-D0001-01-0023",name:"公車禮儀",description:"小倩在搖搖晃晃的公車上看到對街有位上班族阿恆正在狂奔而來,連忙請公車司機停車讓他上車。司機不耐煩開門,小倩開心自己做件好事時卻沒發現…",shortDescription:"公車上小倩看到阿恆狂奔而來,連忙請司機停車卻…",date:"2024-07-31",cast:"王渝萱、初孟軒",url:"https://www.catchplay.com/tw/video/e120e5ec-4a6f-4344-a5da-43d99e6432bb",trailerUrl:"https://www.catchplay.com/tw/video/e120e5ec-4a6f-4344-a5da-43d99e6432bb",shortUrl:"https://cp.app.link/95qF8KE5oKb"},"COC-TW-D0001-01-0024":{id:"COC-TW-D0001-01-0024",name:"試衣間",description:"高中生小紅、阿青到一家熱門服飾店試穿、拍照打卡。並沒有打算買下衣服,只是不斷試穿。但老闆絲毫不在意,一件件推薦,而且越來越暴露…",shortDescription:"高中女生在服飾店狂試穿,老闆的推薦越發暴露…",date:"2024-08-01",cast:"潘嘉麗、邵奕玫、林詩雅",url:"https://www.catchplay.com/tw/video/e120e5ec-4a6f-4344-a5da-43d99e6432bb",trailerUrl:"https://www.catchplay.com/tw/video/e120e5ec-4a6f-4344-a5da-43d99e6432bb",shortUrl:"https://cp.app.link/e/b8Kj6nR5oKb"},"COC-TW-D0001-01-0025":{id:"COC-TW-D0001-01-0025",name:"人像素描",description:"Ada 和怡潔經過街頭畫攤,怡潔被畫家筆下的五官、神情、皮膚肌理和皺紋給深深吸引,怡潔單獨留下掃了畫家留在攤子上的 QR Code 要約作畫,卻發生了…",shortDescription:"怡潔被畫攤作品深深吸引,掃了畫家QR Code卻…",date:"2024-08-02",cast:"盧以恩、余佩真",url:"https://www.catchplay.com/tw/video/e120e5ec-4a6f-4344-a5da-43d99e6432bb",trailerUrl:"https://www.catchplay.com/tw/video/e120e5ec-4a6f-4344-a5da-43d99e6432bb",shortUrl:"https://cp.app.link/e/ZSMq0U35oKb"},"COC-TW-D0001-01-0026":{id:"COC-TW-D0001-01-0026",name:"恐怖扭蛋",description:"網紅「皮蛋跟虎神」恐怖扭蛋特別企劃,現場直播扭出來的東西到底有多恐怖?沒想到變成一場真正的恐怖直播...",shortDescription:"網紅恐怖扭蛋開箱,沒想到變成恐怖直播...",date:"2024-08-03",cast:"蛇丸、胡椒",url:"https://www.catchplay.com/tw/video/e120e5ec-4a6f-4344-a5da-43d99e6432bb",trailerUrl:"https://www.catchplay.com/tw/video/e120e5ec-4a6f-4344-a5da-43d99e6432bb",shortUrl:"https://cp.app.link/e/Txn2X5f6oKb"},"COC-TW-D0001-01-0027":{id:"COC-TW-D0001-01-0027",name:"進場人數",description:"商場大樓打烊清空,剛來接班的菜鳥警衛阿宏好奇看著計數器顯示「進場人數1人」,決定獨自進去黑暗的商場巡邏卻一無所獲。隔天,計數器人數又變成2人...",shortDescription:"商場打烊清空計數器卻顯示「進場人數1人」...",date:"2024-08-04",cast:"徐鈞浩、樓一安",url:"https://www.catchplay.com/tw/video/e120e5ec-4a6f-4344-a5da-43d99e6432bb",trailerUrl:"https://www.catchplay.com/tw/video/e120e5ec-4a6f-4344-a5da-43d99e6432bb",shortUrl:"https://cp.app.link/e/LtqJGWr6oKb"},"COC-TW-D0001-01-0028":{id:"COC-TW-D0001-01-0028",name:"五星評論",description:"美食家沛沛在Google評論上是一名等級九的高級在地嚮導。一家五星餐酒館引起她的好奇。餐點水準之上但沛沛毫不掩飾當面打上「四顆星」,老闆無法忍受便…",shortDescription:"美食家將五星餐酒館打「四星」,老闆無法忍受便…",date:"2024-08-05",cast:"唐綺陽、黃河",url:"https://www.catchplay.com/tw/video/e120e5ec-4a6f-4344-a5da-43d99e6432bb",trailerUrl:"https://www.catchplay.com/tw/video/e120e5ec-4a6f-4344-a5da-43d99e6432bb",shortUrl:"https://cp.app.link/e/QQvf5eF6oKb"},"COC-TW-D0001-01-0029":{id:"COC-TW-D0001-01-0029",name:"家庭套房",description:"一家三口住進家庭親子套房,夜晚大人們雙雙的躺在床上入睡,媽媽被突然的聲音驚醒,卻遍尋不著身旁的孩子。最後發現兒子在遊戲區內的帳篷裡折著紙人…",shortDescription:"深夜旅店,媽媽被聲響驚醒,發現兒子折著詭異紙人…",date:"2024-08-06",cast:"顏毓麟、許乃涵、許博硯",url:"https://www.catchplay.com/tw/video/e120e5ec-4a6f-4344-a5da-43d99e6432bb",trailerUrl:"https://www.catchplay.com/tw/video/e120e5ec-4a6f-4344-a5da-43d99e6432bb",shortUrl:"https://cp.app.link/e/bbVpc626oKb"},"COC-TW-D0001-01-0030":{id:"COC-TW-D0001-01-0030",name:"青年旅社",description:"入住青年旅店的阿傑躺在下舖,上鋪情侶嬉鬧讓床架搖搖晃晃,阿傑無奈地戴上耳機。突然,鮮血滴落在阿傑的臉上…",shortDescription:"阿傑入住青旅下舖,上鋪滴落鮮血…",date:"2024-08-07",cast:"林敬倫、雷嘉汭、賀少俠",url:"https://www.catchplay.com/tw/video/e120e5ec-4a6f-4344-a5da-43d99e6432bb",trailerUrl:"https://www.catchplay.com/tw/video/e120e5ec-4a6f-4344-a5da-43d99e6432bb",shortUrl:"https://cp.app.link/e/HGIuOYg7oKb"},"COC-TW-D0001-01-0031":{id:"COC-TW-D0001-01-0031",name:"寵物友善",description:"粉圓帶著愛犬入住溫馨小巧的民宿,深夜粉圓入睡,睡夢中感受手部搔癢,雙眼矇朧地叫愛犬別舔要好好睡覺。但此時愛犬其實正在快樂的享受牠的狗罐頭......",shortDescription:"粉圓睡夢中感受搔癢要愛犬別舔,但牠其實正在...",date:"2024-08-08",cast:"劉品言、曾少宗",url:"https://www.catchplay.com/tw/video/e120e5ec-4a6f-4344-a5da-43d99e6432bb",trailerUrl:"https://www.catchplay.com/tw/video/e120e5ec-4a6f-4344-a5da-43d99e6432bb",shortUrl:"https://cp.app.link/e/k85CZCp7oKb"},"COC-TW-D0001-01-0032":{id:"COC-TW-D0001-01-0032",name:"客房清潔",description:"清潔阿姨正在進行例行性打掃,突然在房間床下發現了不尋常的東西—疑似一具女屍正躺在那,正當她想報警時,房門打開,一位兇狠的年輕男子走了進來…",shortDescription:"清潔阿姨在房間打掃,床下發現了疑似女屍…",date:"2024-08-09",cast:"章廣辰、謝麗金、王真琳",url:"https://www.catchplay.com/tw/video/e120e5ec-4a6f-4344-a5da-43d99e6432bb",trailerUrl:"https://www.catchplay.com/tw/video/e120e5ec-4a6f-4344-a5da-43d99e6432bb",shortUrl:"https://cp.app.link/e/x6xyECD7oKb"},"COC-TW-D0001-01-0033":{id:"COC-TW-D0001-01-0033",name:"日租套房",description:"小瑜訂了台北公寓房,房東陽光開朗,小瑜也卸下心防,兩人互動也相談甚歡,房東幫她綁上雷鬼頭時,小瑜的手機響起發現…",shortDescription:"小瑜初次見面的陽光房東讓她卸下心防,但此時手機響起…",date:"2024-08-10",cast:"項婕如、林意箴",url:"https://www.catchplay.com/tw/video/e120e5ec-4a6f-4344-a5da-43d99e6432bb",trailerUrl:"https://www.catchplay.com/tw/video/e120e5ec-4a6f-4344-a5da-43d99e6432bb",shortUrl:"https://cp.app.link/e/IFd6nfT7oKb"},"COC-TW-D0001-01-0034":{id:"COC-TW-D0001-01-0034",name:"Check-in",description:"深夜飯店櫃檯阿民打開筆電,螢幕上顯示著針孔畫面,畫面裡的主角是入住的俊男美女,阿民看著螢幕裡親熱的兩人興奮不已,這時畫面卻開始充滿雜訊…",shortDescription:"飯店櫃檯阿民看著偷拍意淫旅客,卻看到詭異雜訊…",date:"2024-08-10",cast:"吳思賢、廖允杰、韓亞熙",url:"https://www.catchplay.com/tw/video/e120e5ec-4a6f-4344-a5da-43d99e6432bb",trailerUrl:"https://www.catchplay.com/tw/video/e120e5ec-4a6f-4344-a5da-43d99e6432bb",shortUrl:"https://cp.app.link/e/LpWJwxn8oKb"}},fixedBannerSections:[{title:"大卡司帶你毛整月!",description:"觀看每日睡前「詭」故事優惠看!限時訂閱一個月送一個月",description2:"觀看每日睡前「詭」故事優惠看!暢看首3個月 每月只要$166"},{title:"大家在投什麼?不能沒看過!",description:"豪華卡司到底搞什麼「詭」優惠看!限時訂閱一個月送一個月",description2:"豪華卡司到底搞什麼「詭」優惠看!暢看首3個月 每月只要$166"},{title:"天天不重複的驚悚體驗!",description:"新型態短影音台劇!優惠看!限時訂閱一個月送一個月",description2:"新型態短影音台劇!優惠看!暢看首3個月 每月只要$166"},{title:"不只驚悚片,還有更多!",description:"獨家歐美影集、強檔電影、旗艦台劇優惠看!限時訂閱一個月送一個月",description2:"獨家歐美影集、強檔電影、旗艦台劇優惠看!暢看首3個月 每月只要$166"}]};function _T(t,e){return function(){return t.apply(e,arguments)}}const{toString:iL}=Object.prototype,{getPrototypeOf:Fx}=Object,Um=(t=>e=>{const n=iL.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Ns=t=>(t=t.toLowerCase(),e=>Um(e)===t),Im=t=>e=>typeof e===t,{isArray:Pu}=Array,ef=Im("undefined");function sL(t){return t!==null&&!ef(t)&&t.constructor!==null&&!ef(t.constructor)&&is(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const xT=Ns("ArrayBuffer");function oL(t){let e;return typeof ArrayBuffert!==null&&typeof t=="object",lL=t=>t===!0||t===!1,sp=t=>{if(Um(t)!=="object")return!1;const e=Fx(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},cL=Ns("Date"),uL=Ns("File"),dL=Ns("Blob"),fL=Ns("FileList"),hL=t=>km(t)&&is(t.pipe),pL=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||is(t.append)&&((e=Um(t))==="formdata"||e==="object"&&is(t.toString)&&t.toString()==="[object FormData]"))},mL=Ns("URLSearchParams"),[gL,vL,_L,xL]=["ReadableStream","Request","Response","Headers"].map(Ns),yL=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function _f(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let r,i;if(typeof t!="object"&&(t=[t]),Pu(t))for(r=0,i=t.length;r<i;r++)e.call(null,t[r],r,t);else{const s=n?Object.getOwnPropertyNames(t):Object.keys(t),o=s.length;let a;for(r=0;r0;)if(i=n[r],e===i.toLowerCase())return i;return null}const ST=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window!ef(t)&&t!==ST;function Xv(){const{caseless:t}=bT(this)&&this||{},e={},n=(r,i)=>{const s=t&&wT(e,i)||i;sp(e[s])&&sp(r)?e[s]=Xv(e[s],r):sp(r)?e[s]=Xv({},r):Pu(r)?e[s]=r.slice():e[s]=r};for(let r=0,i=arguments.length;r(_f(e,(i,s)=>{n&&is(i)?t[s]=_T(i,n):t[s]=i},{allOwnKeys:r}),t),SL=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),bL=(t,e,n,r)=>{t.prototype=Object.create(e.prototype,r),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},EL=(t,e,n,r)=>{let i,s,o;const a={};if(e=e||{},t==null)return e;do{for(i=Object.getOwnPropertyNames(t),s=i.length;s-- >0;)o=i[s],(!r||r(o,t,e))&&!a[o]&&(e[o]=t[o],a[o]=!0);t=n!==!1&&Fx(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},ML=(t,e,n)=>{t=String(t),(n===void 0||n>t.length)&&(n=t.length),n-=e.length;const r=t.indexOf(e,n);return r!==-1&&r===n},TL=t=>{if(!t)return null;if(Pu(t))return t;let e=t.length;if(!yT(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},CL=(t=>e=>t&&e instanceof t)(typeof Uint8Array{const r=(t&&t[Symbol.iterator]).call(t);let i;for(;(i=r.next())&&!i.done;){const s=i.value;e.call(t,s[0],s[1])}},RL=(t,e)=>{let n;const r=[];for(;(n=t.exec(e))!==null;)r.push(n);return r},PL=Ns("HTMLFormElement"),DL=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),hw=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),LL=Ns("RegExp"),ET=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};_f(n,(i,s)=>{let o;(o=e(i,s,t))!==!1&&(r[s]=o||i)}),Object.defineProperties(t,r)},NL=t=>{ET(t,(e,n)=>{if(is(t)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=t[n];if(is(r)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},OL=(t,e)=>{const n={},r=i=>{i.forEach(s=>{n[s]=!0})};return Pu(t)?r(t):r(String(t).split(e)),n},UL=()=>{},IL=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e,q0="abcdefghijklmnopqrstuvwxyz",pw="0123456789",MT={DIGIT:pw,ALPHA:q0,ALPHA_DIGIT:q0+q0.toUpperCase()+pw},kL=(t=16,e=MT.ALPHA_DIGIT)=>{let n="";const{length:r}=e;for(;t--;)n+=e[Math.random()*r|0];return n};function FL(t){return!!(t&&is(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const zL=t=>{const e=new Array(10),n=(r,i)=>{if(km(r)){if(e.indexOf(r)>=0)return;if(!("toJSON"in r)){e[i]=r;const s=Pu(r)?[]:{};return _f(r,(o,a)=>{const l=n(o,i+1);!ef(l)&&(s[a]=l)}),e[i]=void 0,s}}return r};return n(t,0)},BL=Ns("AsyncFunction"),VL=t=>t&&(km(t)||is(t))&&is(t.then)&&is(t.catch),xe={isArray:Pu,isArrayBuffer:xT,isBuffer:sL,isFormData:pL,isArrayBufferView:oL,isString:aL,isNumber:yT,isBoolean:lL,isObject:km,isPlainObject:sp,isReadableStream:gL,isRequest:vL,isResponse:_L,isHeaders:xL,isUndefined:ef,isDate:cL,isFile:uL,isBlob:dL,isRegExp:LL,isFunction:is,isStream:hL,isURLSearchParams:mL,isTypedArray:CL,isFileList:fL,forEach:_f,merge:Xv,extend:wL,trim:yL,stripBOM:SL,inherits:bL,toFlatObject:EL,kindOf:Um,kindOfTest:Ns,endsWith:ML,toArray:TL,forEachEntry:AL,matchAll:RL,isHTMLForm:PL,hasOwnProperty:hw,hasOwnProp:hw,reduceDescriptors:ET,freezeMethods:NL,toObjectSet:OL,toCamelCase:DL,noop:UL,toFiniteNumber:IL,findKey:wT,global:ST,isContextDefined:bT,ALPHABET:MT,generateString:kL,isSpecCompliantForm:FL,toJSONObject:zL,isAsyncFn:BL,isThenable:VL};function yt(t,e,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i)}xe.inherits(yt,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:xe.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const TT=yt.prototype,CT={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{CT[t]={value:t}});Object.defineProperties(yt,CT);Object.defineProperty(TT,"isAxiosError",{value:!0});yt.from=(t,e,n,r,i,s)=>{const o=Object.create(TT);return xe.toFlatObject(t,o,function(l){return l!==Error.prototype},a=>a!=="isAxiosError"),yt.call(o,t.message,e,n,r,i),o.cause=t,o.name=t.name,s&&Object.assign(o,s),o};const HL=null;function Yv(t){return xe.isPlainObject(t)||xe.isArray(t)}function AT(t){return xe.endsWith(t,"[]")?t.slice(0,-2):t}function mw(t,e,n){return t?t.concat(e).map(function(i,s){return i=AT(i),!n&&s?"["+i+"]":i}).join(n?".":""):e}function WL(t){return xe.isArray(t)&&!t.some(Yv)}const GL=xe.toFlatObject(xe,{},null,function(e){return/^is[A-Z]/.test(e)});function Fm(t,e,n){if(!xe.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=xe.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(p,g){return!xe.isUndefined(g[p])});const r=n.metaTokens,i=n.visitor||u,s=n.dots,o=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&xe.isSpecCompliantForm(e);if(!xe.isFunction(i))throw new TypeError("visitor must be a function");function c(v){if(v===null)return"";if(xe.isDate(v))return v.toISOString();if(!l&&xe.isBlob(v))throw new yt("Blob is not supported. Use a Buffer instead.");return xe.isArrayBuffer(v)||xe.isTypedArray(v)?l&&typeof Blob=="function"?new Blob([v]):Buffer.from(v):v}function u(v,p,g){let f=v;if(v&&!g&&typeof v=="object"){if(xe.endsWith(p,"{}"))p=r?p:p.slice(0,-2),v=JSON.stringify(v);else if(xe.isArray(v)&&WL(v)||(xe.isFileList(v)||xe.endsWith(p,"[]"))&&(f=xe.toArray(v)))return p=AT(p),f.forEach(function(_,y){!(xe.isUndefined(_)||_===null)&&e.append(o===!0?mw([p],y,s):o===null?p:p+"[]",c(_))}),!1}return Yv(v)?!0:(e.append(mw(g,p,s),c(v)),!1)}const h=[],d=Object.assign(GL,{defaultVisitor:u,convertValue:c,isVisitable:Yv});function m(v,p){if(!xe.isUndefined(v)){if(h.indexOf(v)!==-1)throw Error("Circular reference detected in "+p.join("."));h.push(v),xe.forEach(v,function(f,x){(!(xe.isUndefined(f)||f===null)&&i.call(e,f,xe.isString(x)?x.trim():x,p,d))===!0&&m(f,p?p.concat(x):[x])}),h.pop()}}if(!xe.isObject(t))throw new TypeError("data must be an object");return m(t),e}function gw(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(r){return e[r]})}function zx(t,e){this._pairs=[],t&&Fm(t,this,e)}const RT=zx.prototype;RT.append=function(e,n){this._pairs.push([e,n])};RT.toString=function(e){const n=e?function(r){return e.call(this,r,gw)}:gw;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function $L(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function PT(t,e,n){if(!e)return t;const r=n&&n.encode||$L,i=n&&n.serialize;let s;if(i?s=i(e,n):s=xe.isURLSearchParams(e)?e.toString():new zx(e,n).toString(r),s){const o=t.indexOf("#");o!==-1&&(t=t.slice(0,o)),t+=(t.indexOf("?")===-1?"?":"&")+s}return t}class vw{constructor(){this.handlers=[]}use(e,n,r){return this.handlers.push({fulfilled:e,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){xe.forEach(this.handlers,function(r){r!==null&&e(r)})}}const DT={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},jL=typeof URLSearchParams<"u"?URLSearchParams:zx,XL=typeof FormData<"u"?FormData:null,YL=typeof Blob<"u"?Blob:null,qL={isBrowser:!0,classes:{URLSearchParams:jL,FormData:XL,Blob:YL},protocols:["http","https","file","blob","url","data"]},Bx=typeof window<"u"&&typeof documentBx&&["ReactNative","NativeScript","NS"].indexOf(t)<0)(typeof navigator<"u"&&navigator.product),ZL=typeof WorkerGlobalScopee[0]==="[]"?"":e[1]||e[0])}function nN(t){const e={},n=Object.keys(t);let r;const i=n.length;let s;for(r=0;r=n.length;return o=!o&&xe.isArray(i)?i.length:o,l?(xe.hasOwnProp(i,o)?i[o]=[i[o],r]:i[o]=r,!a):((!i[o]||!xe.isObject(i[o]))&&(i[o]=[]),e(n,r,i[o],s)&&xe.isArray(i[o])&&(i[o]=nN(i[o])),!a)}if(xe.isFormData(t)&&xe.isFunction(t.entries)){const n={};return xe.forEachEntry(t,(r,i)=>{e(tN(r),i,n,0)}),n}return null}function rN(t,e,n){if(xe.isString(t))try{return(e||JSON.parse)(t),xe.trim(t)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(t)}const xf={transitional:DT,adapter:["xhr","http","fetch"],transformRequest:[function(e,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,s=xe.isObject(e);if(s&&xe.isHTMLForm(e)&&(e=new FormData(e)),xe.isFormData(e))return i?JSON.stringify(LT(e)):e;if(xe.isArrayBuffer(e)||xe.isBuffer(e)||xe.isStream(e)||xe.isFile(e)||xe.isBlob(e)||xe.isReadableStream(e))return e;if(xe.isArrayBufferView(e))return e.buffer;if(xe.isURLSearchParams(e))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(s){if(r.indexOf("application/x-www-form-urlencoded")>-1)return eN(e,this.formSerializer).toString();if((a=xe.isFileList(e))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Fm(a?{"files[]":e}:e,l&&new l,this.formSerializer)}}return s||i?(n.setContentType("application/json",!1),rN(e)):e}],transformResponse:[function(e){const n=this.transitional||xf.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(xe.isResponse(e)||xe.isReadableStream(e))return e;if(e&&xe.isString(e)&&(r&&!this.responseType||i)){const o=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(e)}catch(a){if(o)throw a.name==="SyntaxError"?yt.from(a,yt.ERR_BAD_RESPONSE,this,null,this.response):a}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ps.classes.FormData,Blob:Ps.classes.Blob},validateStatus:function(e){return e>=200&&e{xf.headers[t]={}});const iN=xe.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),sN=t=>{const e={};let n,r,i;return t&&t.split(`
`).forEach(function(o){i=o.indexOf(":"),n=o.substring(0,i).trim().toLowerCase(),r=o.substring(i+1).trim(),!(!n||e[n]&&iN[n])&&(n==="set-cookie"?e[n]?e[n].push(r):e[n]=[r]:e[n]=e[n]?e[n]+", "+r:r)}),e},_w=Symbol("internals");function rd(t){return t&&String(t).trim().toLowerCase()}function op(t){return t===!1||t==null?t:xe.isArray(t)?t.map(op):String(t)}function oN(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(t);)e[r[1]]=r[2];return e}const aN=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function K0(t,e,n,r,i){if(xe.isFunction(r))return r.call(this,e,n);if(i&&(e=n),!!xe.isString(e)){if(xe.isString(r))return e.indexOf(r)!==-1;if(xe.isRegExp(r))return r.test(e)}}function lN(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,r)=>n.toUpperCase()+r)}function cN(t,e){const n=xe.toCamelCase(" "+e);["get","set","has"].forEach(r=>{Object.defineProperty(t,r+n,{value:function(i,s,o){return this[r].call(this,e,i,s,o)},configurable:!0})})}class li{constructor(e){e&&this.set(e)}set(e,n,r){const i=this;function s(a,l,c){const u=rd(l);if(!u)throw new Error("header name must be a non-empty string");const h=xe.findKey(i,u);(!h||i[h]===void 0||c===!0||c===void 0&&i[h]!==!1)&&(i[h||l]=op(a))}const o=(a,l)=>xe.forEach(a,(c,u)=>s(c,u,l));if(xe.isPlainObject(e)||e instanceof this.constructor)o(e,n);else if(xe.isString(e)&&(e=e.trim())&&!aN(e))o(sN(e),n);else if(xe.isHeaders(e))for(const[a,l]of e.entries())s(l,a,r);else e!=null&&s(n,e,r);return this}get(e,n){if(e=rd(e),e){const r=xe.findKey(this,e);if(r){const i=this[r];if(!n)return i;if(n===!0)return oN(i);if(xe.isFunction(n))return n.call(this,i,r);if(xe.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=rd(e),e){const r=xe.findKey(this,e);return!!(r&&this[r]!==void 0&&(!n||K0(this,this[r],r,n)))}return!1}delete(e,n){const r=this;let i=!1;function s(o){if(o=rd(o),o){const a=xe.findKey(r,o);a&&(!n||K0(r,r[a],a,n))&&(delete r[a],i=!0)}}return xe.isArray(e)?e.forEach(s):s(e),i}clear(e){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const s=n[r];(!e||K0(this,this[s],s,e,!0))&&(delete this[s],i=!0)}return i}normalize(e){const n=this,r={};return xe.forEach(this,(i,s)=>{const o=xe.findKey(r,s);if(o){n[o]=op(i),delete n[s];return}const a=e?lN(s):String(s).trim();a!==s&&delete n[s],n[a]=op(i),r[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const n=Object.create(null);return xe.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=e&&xe.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,n])=>e+": "+n).join(`
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...n){const r=new this(e);return n.forEach(i=>r.set(i)),r}static accessor(e){const r=(this[_w]=this[_w]={accessors:{}}).accessors,i=this.prototype;function s(o){const a=rd(o);r[a]||(cN(i,o),r[a]=!0)}return xe.isArray(e)?e.forEach(s):s(e),this}}li.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);xe.reduceDescriptors(li.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(r){this[n]=r}}});xe.freezeMethods(li);function Z0(t,e){const n=this||xf,r=e||n,i=li.from(r.headers);let s=r.data;return xe.forEach(t,function(a){s=a.call(n,s,i.normalize(),e?e.status:void 0)}),i.normalize(),s}function NT(t){return!!(t&&t.__CANCEL__)}function Du(t,e,n){yt.call(this,t??"canceled",yt.ERR_CANCELED,e,n),this.name="CanceledError"}xe.inherits(Du,yt,{__CANCEL__:!0});function OT(t,e,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?t(n):e(new yt("Request failed with status code "+n.status,[yt.ERR_BAD_REQUEST,yt.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function uN(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function dN(t,e){t=t||10;const n=new Array(t),r=new Array(t);let i=0,s=0,o;return e=e!==void 0?e:1e3,function(l){const c=Date.now(),u=r[s];o||(o=c),n[i]=l,r[i]=c;let h=s,d=0;for(;h!==i;)d+=n[h++],h=h%t;if(i=(i+1)%t,i===s&&(s=(s+1)%t),c-or)return i&&(clearTimeout(i),i=null),n=a,t.apply(null,arguments);i||(i=setTimeout(()=>(i=null,n=Date.now(),t.apply(null,arguments)),r-(a-n)))}}const kp=(t,e,n=3)=>{let r=0;const i=dN(50,250);return fN(s=>{const o=s.loaded,a=s.lengthComputable?s.total:void 0,l=o-r,c=i(l),u=ot instanceof li?{...t}:t;function zl(t,e){e=e||{};const n={};function r(c,u,h){return xe.isPlainObject(c)&&xe.isPlainObject(u)?xe.merge.call({caseless:h},c,u):xe.isPlainObject(u)?xe.merge({},u):xe.isArray(u)?u.slice():u}function i(c,u,h){if(xe.isUndefined(u)){if(!xe.isUndefined(c))return r(void 0,c,h)}else return r(c,u,h)}function s(c,u){if(!xe.isUndefined(u))return r(void 0,u)}function o(c,u){if(xe.isUndefined(u)){if(!xe.isUndefined(c))return r(void 0,c)}else return r(void 0,u)}function a(c,u,h){if(h in e)return r(c,u);if(h in t)return r(void 0,c)}const l={url:s,method:s,data:s,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:a,headers:(c,u)=>i(xw(c),xw(u),!0)};return xe.forEach(Object.keys(Object.assign({},t,e)),function(u){const h=l[u]||i,d=h(t[u],e[u],u);xe.isUndefined(d)&&h!==a||(n[u]=d)}),n}const IT=t=>{const e=zl({},t);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:s,headers:o,auth:a}=e;e.headers=o=li.from(o),e.url=PT(UT(e.baseURL,e.url),t.params,t.paramsSerializer),a&&o.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):"")));let l;if(xe.isFormData(n)){if(Ps.hasStandardBrowserEnv||Ps.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if((l=o.getContentType())!==!1){const[c,...u]=l?l.split(";").map(h=>h.trim()).filter(Boolean):[];o.setContentType([c||"multipart/form-data",...u].join("; "))}}if(Ps.hasStandardBrowserEnv&&(r&&xe.isFunction(r)&&(r=r(e)),r||r!==!1&&hN(e.url))){const c=i&&s&&pN.read(s);c&&o.set(i,c)}return e},vN=typeof XMLHttpRequest{u&&(r(!m||m.type?new Du(null,t,u):m),u.abort(),u=null)},i.cancelToken&&i.cancelToken.subscribe(l),i.signal&&(i.signal.aborted?l():i.signal.addEventListener("abort",l)));const d=uN(i.url);if(d&&Ps.protocols.indexOf(d)===-1){r(new yt("Unsupported protocol "+d+":",yt.ERR_BAD_REQUEST,t));return}u.send(s||null)})},xN=(t,e)=>{let n=new AbortController,r;const i=function(l){if(!r){r=!0,o();const c=l instanceof Error?l:this.reason;n.abort(c instanceof yt?c:new Du(c instanceof Error?c.message:c))}};let s=e&&setTimeout(()=>{i(new yt(`timeout ${e} of ms exceeded`,yt.ETIMEDOUT))},e);const o=()=>{t&&(s&&clearTimeout(s),s=null,t.forEach(l=>{l&&(l.removeEventListener?l.removeEventListener("abort",i):l.unsubscribe(i))}),t=null)};t.forEach(l=>l&&l.addEventListener&&l.addEventListener("abort",i));const{signal:a}=n;return a.unsubscribe=o,[a,()=>{s&&clearTimeout(s),s=null}]},yN=function*(t,e){let n=t.byteLength;if(!e||n<e){yield t;return}let r=0,i;for(;r{const s=wN(t,e,i);let o=0;return new ReadableStream({type:"bytes",async pull(a){const{done:l,value:c}=await s.next();if(l){a.close(),r();return}let u=c.byteLength;n&&n(o+=u),a.enqueue(new Uint8Array(c))},cancel(a){return r(a),s.return()}},{highWaterMark:2})},ww=(t,e)=>{const n=t!=null;return r=>setTimeout(()=>e({lengthComputable:n,total:t,loaded:r}))},zm=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",kT=zm&&typeof ReadableStream=="function",qv=zm&&(typeof TextEncoder=="function"?(t=>e=>t.encode(e))(new TextEncoder):async t=>new Uint8Array(await new Response(t).arrayBuffer())),SN=kT&&(()=>{let t=!1;const e=new Request(Ps.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!e})(),Sw=64*1024,Kv=kT&&!!(()=>{try{return xe.isReadableStream(new Response("").body)}catch{}})(),Fp={stream:Kv&&(t=>t.body)};zm&&(t=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!Fp[e]&&(Fp[e]=xe.isFunction(t[e])?n=>n[e]():(n,r)=>{throw new yt(`Response type '${e}' is not supported`,yt.ERR_NOT_SUPPORT,r)})})})(new Response);const bN=async t=>{if(t==null)return 0;if(xe.isBlob(t))return t.size;if(xe.isSpecCompliantForm(t))return(await new Request(t).arrayBuffer()).byteLength;if(xe.isArrayBufferView(t))return t.byteLength;if(xe.isURLSearchParams(t)&&(t=t+""),xe.isString(t))return(await qv(t)).byteLength},EN=async(t,e)=>{const n=xe.toFiniteNumber(t.getContentLength());return n??bN(e)},MN=zm&&(async t=>{let{url:e,method:n,data:r,signal:i,cancelToken:s,timeout:o,onDownloadProgress:a,onUploadProgress:l,responseType:c,headers:u,withCredentials:h="same-origin",fetchOptions:d}=IT(t);c=c?(c+"").toLowerCase():"text";let[m,v]=i||s||o?xN([i,s],o):[],p,g;const f=()=>{!p&&setTimeout(()=>{m&&m.unsubscribe()}),p=!0};let x;try{if(l&&SN&&n!=="get"&&n!=="head"&&(x=await EN(u,r))!==0){let T=new Request(e,{method:"POST",body:r,duplex:"half"}),b;xe.isFormData(r)&&(b=T.headers.get("content-type"))&&u.setContentType(b),T.body&&(r=yw(T.body,Sw,ww(x,kp(l)),null,qv))}xe.isString(h)||(h=h?"cors":"omit"),g=new Request(e,{...d,signal:m,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",withCredentials:h});let _=await fetch(g);const y=Kv&&(c==="stream"||c==="response");if(Kv&&(a||y)){const T={};["status","statusText","headers"].forEach(E=>{T[E]=_[E]});const b=xe.toFiniteNumber(_.headers.get("content-length"));_=new Response(yw(_.body,Sw,a&&ww(b,kp(a,!0)),y&&f,qv),T)}c=c||"text";let w=await Fp[xe.findKey(Fp,c)||"text"](_,t);return!y&&f(),v&&v(),await new Promise((T,b)=>{OT(T,b,{data:w,headers:li.from(_.headers),status:_.status,statusText:_.statusText,config:t,request:g})})}catch(_){throw f(),_&&_.name==="TypeError"&&/fetch/i.test(_.message)?Object.assign(new yt("Network Error",yt.ERR_NETWORK,t,g),{cause:_.cause||_}):yt.from(_,_&&_.code,t,g)}}),Zv={http:HL,xhr:_N,fetch:MN};xe.forEach(Zv,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const bw=t=>`- ${t}`,TN=t=>xe.isFunction(t)||t===null||t===!1,FT={getAdapter:t=>{t=xe.isArray(t)?t:[t];const{length:e}=t;let n,r;const i={};for(let s=0;s`adapter ${a} `+(l===!1?"is not supported by the environment":"is not available in the build"));let o=e?s.length>1?`since :
`+s.map(bw).join(`
`):" "+bw(s[0]):"as no adapter specified";throw new yt("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return r},adapters:Zv};function Q0(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Du(null,t)}function Ew(t){return Q0(t),t.headers=li.from(t.headers),t.data=Z0.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),FT.getAdapter(t.adapter||xf.adapter)(t).then(function(r){return Q0(t),r.data=Z0.call(t,t.transformResponse,r),r.headers=li.from(r.headers),r},function(r){return NT(r)||(Q0(t),r&&r.response&&(r.response.data=Z0.call(t,t.transformResponse,r.response),r.response.headers=li.from(r.response.headers))),Promise.reject(r)})}const zT="1.7.2",Vx={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{Vx[t]=function(r){return typeof r===t||"a"+(e{if(e===!1)throw new yt(i(o," has been removed"+(n?" in "+n:"")),yt.ERR_DEPRECATED);return n&&!Mw[o]&&(Mw[o]=!0,console.warn(i(o," has been deprecated since v"+n+" and will be removed in the near future"))),e?e(s,o,a):!0}};function CN(t,e,n){if(typeof t!="object")throw new yt("options must be an object",yt.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let i=r.length;for(;i-- >0;){const s=r[i],o=e[s];if(o){const a=t[s],l=a===void 0||o(a,s,t);if(l!==!0)throw new yt("option "+s+" must be "+l,yt.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new yt("Unknown option "+s,yt.ERR_BAD_OPTION)}}const Qv={assertOptions:CN,validators:Vx},qo=Qv.validators;class Ml{constructor(e){this.defaults=e,this.interceptors={request:new vw,response:new vw}}async request(e,n){try{return await this._request(e,n)}catch(r){if(r instanceof Error){let i;Error.captureStackTrace?Error.captureStackTrace(i={}):i=new Error;const s=i.stack?i.stack.replace(/^.+\n/,""):"";try{r.stack?s&&!String(r.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(r.stack+=`
`+s):r.stack=s}catch{}}throw r}}_request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=zl(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:s}=n;r!==void 0&&Qv.assertOptions(r,{silentJSONParsing:qo.transitional(qo.boolean),forcedJSONParsing:qo.transitional(qo.boolean),clarifyTimeoutError:qo.transitional(qo.boolean)},!1),i!=null&&(xe.isFunction(i)?n.paramsSerializer={serialize:i}:Qv.assertOptions(i,{encode:qo.function,serialize:qo.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=s&&xe.merge(s.common,s[n.method]);s&&xe.forEach(["delete","get","head","post","put","patch","common"],v=>{delete s[v]}),n.headers=li.concat(o,s);const a=[];let l=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(n)===!1||(l=l&&p.synchronous,a.unshift(p.fulfilled,p.rejected))});const c=[];this.interceptors.response.forEach(function(p){c.push(p.fulfilled,p.rejected)});let u,h=0,d;if(!l){const v=[Ew.bind(this),void 0];for(v.unshift.apply(v,a),v.push.apply(v,c),d=v.length,u=Promise.resolve(n);h<d;)u=u.then(v[h++],v[h++]);return u}d=a.length;let m=n;for(h=0;h<d;){const v=a[h++],p=a[h++];try{m=v(m)}catch(g){p.call(this,g);break}}try{u=Ew.call(this,m)}catch(v){return Promise.reject(v)}for(h=0,d=c.length;h{if(!r._listeners)return;let s=r._listeners.length;for(;s-- >0;)r._listeners[s](i);r._listeners=null}),this.promise.then=i=>{let s;const o=new Promise(a=>{r.subscribe(a),s=a}).then(i);return o.cancel=function(){r.unsubscribe(s)},o},e(function(s,o,a){r.reason||(r.reason=new Du(s,o,a),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const n=this._listeners.indexOf(e);n!==-1&&this._listeners.splice(n,1)}static source(){let e;return{token:new Hx(function(i){e=i}),cancel:e}}}function AN(t){return function(n){return t.apply(null,n)}}function RN(t){return xe.isObject(t)&&t.isAxiosError===!0}const Jv={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Jv).forEach(([t,e])=>{Jv[e]=t});function BT(t){const e=new Ml(t),n=_T(Ml.prototype.request,e);return xe.extend(n,Ml.prototype,e,{allOwnKeys:!0}),xe.extend(n,e,null,{allOwnKeys:!0}),n.create=function(i){return BT(zl(t,i))},n}const An=BT(xf);An.Axios=Ml;An.CanceledError=Du;An.CancelToken=Hx;An.isCancel=NT;An.VERSION=zT;An.toFormData=Fm;An.AxiosError=yt;An.Cancel=An.CanceledError;An.all=function(e){return Promise.all(e)};An.spread=AN;An.isAxiosError=RN;An.mergeConfig=zl;An.AxiosHeaders=li;An.formToJSON=t=>LT(xe.isHTMLForm(t)?new FormData(t):t);An.getAdapter=FT.getAdapter;An.HttpStatusCode=Jv;An.default=An;let vh;const yf=async()=>{vh||(vh=An.get("https://www.catchplay.com/ssr-oauth/getOauth"));const t=await vh;return vh=null,t},yo=An.create({baseURL:"https://sunapi.catchplay.com"});yo.interceptors.request.use(async t=>{const{data:e}=await yf();return e&&(t.headers.authorization=`Bearer ${e.access_token}`),t},t=>Promise.reject(t));yo.interceptors.response.use(t=>t,async t=>{var e;if(((e=t.response)==null?void 0:e.status)===401)try{const{data:n}=await yf();n&&(yo.defaults.headers.common={...yo.defaults.headers.common,authorization:`Bearer ${n.access_token}`})}catch(n){console.log(n)}return Promise.reject(t)});const Rd=An.create({baseURL:"https://sunapi.catchplay.com"});Rd.interceptors.request.use(async t=>{const{data:e}=await yf();return e&&(t.headers.authorization=`Bearer ${e.access_token}`),t},t=>Promise.reject(t));Rd.interceptors.response.use(t=>t,async t=>{var e;if(((e=t.response)==null?void 0:e.status)===401)try{const{data:n}=await yf();n&&(Rd.defaults.headers.common={...Rd.defaults.headers.common,authorization:`Bearer ${n.access_token}`})}catch(n){console.log(n)}return Promise.reject(t)});function VT(t){var e,n,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t)){var i=t.length;for(e=0;e<i;e++)t[e]&&(n=VT(t[e]))&&(r&&(r+=" "),r+=n)}else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}function PN(){for(var t,e,n=0,r="",i=arguments.length;na(s)))==null?void 0:o.classGroupId}const Tw=/^\[(.+)\]$/;function LN(t){if(Tw.test(t)){const e=Tw.exec(t)[1],n=e==null?void 0:e.substring(0,e.indexOf(":"));if(n)return"arbitrary.."+n}}function NN(t){const{theme:e,prefix:n}=t,r={nextPart:new Map,validators:[]};return UN(Object.entries(t.classGroups),n).forEach(([s,o])=>{e_(o,r,s,e)}),r}function e_(t,e,n,r){t.forEach(i=>{if(typeof i=="string"){const s=i===""?e:Cw(e,i);s.classGroupId=n;return}if(typeof i=="function"){if(ON(i)){e_(i(r),e,n,r);return}e.validators.push({validator:i,classGroupId:n});return}Object.entries(i).forEach(([s,o])=>{e_(o,Cw(e,s),n,r)})})}function Cw(t,e){let n=t;return e.split(Wx).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n}function ON(t){return t.isThemeGetter}function UN(t,e){return e?t.map(([n,r])=>{const i=r.map(s=>typeof s=="string"?e+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([o,a])=>[e+o,a])):s);return[n,i]}):t}function IN(t){if(t{},set:()=>{}};let e=0,n=new Map,r=new Map;function i(s,o){n.set(s,o),e++,e>t&&(e=0,r=n,n=new Map)}return{get(s){let o=n.get(s);if(o!==void 0)return o;if((o=r.get(s))!==void 0)return i(s,o),o},set(s,o){n.has(s)?n.set(s,o):i(s,o)}}}const WT="!";function kN(t){const e=t.separator,n=e.length===1,r=e[0],i=e.length;return function(o){const a=[];let l=0,c=0,u;for(let p=0;pc?u-c:void 0;return{modifiers:a,hasImportantModifier:d,baseClassName:m,maybePostfixModifierPosition:v}}}function FN(t){if(t.length{r[0]==="["?(e.push(...n.sort(),r),n=[]):n.push(r)}),e.push(...n.sort()),e}function zN(t){return{cache:IN(t.cacheSize),splitModifiers:kN(t),...DN(t)}}const BN=/\s+/;function VN(t,e){const{splitModifiers:n,getClassGroupId:r,getConflictingClassGroupIds:i}=e,s=new Set;return t.trim().split(BN).map(o=>{const{modifiers:a,hasImportantModifier:l,baseClassName:c,maybePostfixModifierPosition:u}=n(o);let h=r(u?c.substring(0,u):c),d=!!u;if(!h){if(!u)return{isTailwindClass:!1,originalClassName:o};if(h=r(c),!h)return{isTailwindClass:!1,originalClassName:o};d=!1}const m=FN(a).join(":");return{isTailwindClass:!0,modifierId:l?m+WT:m,classGroupId:h,originalClassName:o,hasPostfixModifier:d}}).reverse().filter(o=>{if(!o.isTailwindClass)return!0;const{modifierId:a,classGroupId:l,hasPostfixModifier:c}=o,u=a+l;return s.has(u)?!1:(s.add(u),i(l,c).forEach(h=>s.add(a+h)),!0)}).reverse().map(o=>o.originalClassName).join(" ")}function HN(){let t=0,e,n,r="";for(;t<arguments.length;)(e=arguments[t++])&&(n=GT(e))&&(r&&(r+=" "),r+=n);return r}function GT(t){if(typeof t=="string")return t;let e,n="";for(let r=0;rh(u),t());return n=zN(c),r=n.cache.get,i=n.cache.set,s=a,a(l)}function a(l){const c=r(l);if(c)return c;const u=VN(l,n);return i(l,u),u}return function(){return s(HN.apply(null,arguments))}}function sn(t){const e=n=>n[t]||[];return e.isThemeGetter=!0,e}const $T=/^\[(?:([a-z-]+):)?(.+)\]$/i,GN=/^\d+\/\d+$/,$N=new Set(["px","full","screen"]),jN=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,XN=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,YN=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,qN=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,KN=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function lo(t){return xl(t)||$N.has(t)||GN.test(t)}function Ko(t){return Lu(t,"length",iO)}function xl(t){return!!t&&!Number.isNaN(Number(t))}function _h(t){return Lu(t,"number",xl)}function id(t){return!!t&&Number.isInteger(Number(t))}function ZN(t){return t.endsWith("%")&&xl(t.slice(0,-1))}function bt(t){return $T.test(t)}function Zo(t){return jN.test(t)}const QN=new Set(["length","size","percentage"]);function JN(t){return Lu(t,QN,jT)}function eO(t){return Lu(t,"position",jT)}const tO=new Set(["image","url"]);function nO(t){return Lu(t,tO,oO)}function rO(t){return Lu(t,"",sO)}function sd(){return!0}function Lu(t,e,n){const r=$T.exec(t);return r?r[1]?typeof e=="string"?r[1]===e:e.has(r[1]):n(r[2]):!1}function iO(t){return XN.test(t)&&!YN.test(t)}function jT(){return!1}function sO(t){return qN.test(t)}function oO(t){return KN.test(t)}function aO(){const t=sn("colors"),e=sn("spacing"),n=sn("blur"),r=sn("brightness"),i=sn("borderColor"),s=sn("borderRadius"),o=sn("borderSpacing"),a=sn("borderWidth"),l=sn("contrast"),c=sn("grayscale"),u=sn("hueRotate"),h=sn("invert"),d=sn("gap"),m=sn("gradientColorStops"),v=sn("gradientColorStopPositions"),p=sn("inset"),g=sn("margin"),f=sn("opacity"),x=sn("padding"),_=sn("saturate"),y=sn("scale"),w=sn("sepia"),T=sn("skew"),b=sn("space"),E=sn("translate"),M=()=>["auto","contain","none"],S=()=>["auto","hidden","clip","visible","scroll"],P=()=>["auto",bt,e],V=()=>[bt,e],H=()=>["",lo,Ko],G=()=>["auto",xl,bt],$=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],F=()=>["solid","dashed","dotted","double","none"],W=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],A=()=>["start","end","center","between","around","evenly","stretch"],X=()=>["","0",bt],q=()=>["auto","avoid","all","avoid-page","page","left","right","column"],K=()=>[xl,_h],oe=()=>[xl,bt];return{cacheSize:500,separator:":",theme:{colors:[sd],spacing:[lo,Ko],blur:["none","",Zo,bt],brightness:K(),borderColor:[t],borderRadius:["none","","full",Zo,bt],borderSpacing:V(),borderWidth:H(),contrast:K(),grayscale:X(),hueRotate:oe(),invert:X(),gap:V(),gradientColorStops:[t],gradientColorStopPositions:[ZN,Ko],inset:P(),margin:P(),opacity:K(),padding:V(),saturate:K(),scale:K(),sepia:X(),skew:oe(),space:V(),translate:V()},classGroups:{aspect:[{aspect:["auto","square","video",bt]}],container:["container"],columns:[{columns:[Zo]}],"break-after":[{"break-after":q()}],"break-before":[{"break-before":q()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...$(),bt]}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:M()}],"overscroll-x":[{"overscroll-x":M()}],"overscroll-y":[{"overscroll-y":M()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[p]}],"inset-x":[{"inset-x":[p]}],"inset-y":[{"inset-y":[p]}],start:[{start:[p]}],end:[{end:[p]}],top:[{top:[p]}],right:[{right:[p]}],bottom:[{bottom:[p]}],left:[{left:[p]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",id,bt]}],basis:[{basis:P()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",bt]}],grow:[{grow:X()}],shrink:[{shrink:X()}],order:[{order:["first","last","none",id,bt]}],"grid-cols":[{"grid-cols":[sd]}],"col-start-end":[{col:["auto",{span:["full",id,bt]},bt]}],"col-start":[{"col-start":G()}],"col-end":[{"col-end":G()}],"grid-rows":[{"grid-rows":[sd]}],"row-start-end":[{row:["auto",{span:[id,bt]},bt]}],"row-start":[{"row-start":G()}],"row-end":[{"row-end":G()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",bt]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",bt]}],gap:[{gap:[d]}],"gap-x":[{"gap-x":[d]}],"gap-y":[{"gap-y":[d]}],"justify-content":[{justify:["normal",...A()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...A(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...A(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[x]}],px:[{px:[x]}],py:[{py:[x]}],ps:[{ps:[x]}],pe:[{pe:[x]}],pt:[{pt:[x]}],pr:[{pr:[x]}],pb:[{pb:[x]}],pl:[{pl:[x]}],m:[{m:[g]}],mx:[{mx:[g]}],my:[{my:[g]}],ms:[{ms:[g]}],me:[{me:[g]}],mt:[{mt:[g]}],mr:[{mr:[g]}],mb:[{mb:[g]}],ml:[{ml:[g]}],"space-x":[{"space-x":[b]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[b]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",bt,e]}],"min-w":[{"min-w":[bt,e,"min","max","fit"]}],"max-w":[{"max-w":[bt,e,"none","full","min","max","fit","prose",{screen:[Zo]},Zo]}],h:[{h:[bt,e,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[bt,e,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[bt,e,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[bt,e,"auto","min","max","fit"]}],"font-size":[{text:["base",Zo,Ko]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",_h]}],"font-family":[{font:[sd]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",bt]}],"line-clamp":[{"line-clamp":["none",xl,_h]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",lo,bt]}],"list-image":[{"list-image":["none",bt]}],"list-style-type":[{list:["none","disc","decimal",bt]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[t]}],"placeholder-opacity":[{"placeholder-opacity":[f]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[t]}],"text-opacity":[{"text-opacity":[f]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...F(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",lo,Ko]}],"underline-offset":[{"underline-offset":["auto",lo,bt]}],"text-decoration-color":[{decoration:[t]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:V()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",bt]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",bt]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[f]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...$(),eO]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",JN]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},nO]}],"bg-color":[{bg:[t]}],"gradient-from-pos":[{from:[v]}],"gradient-via-pos":[{via:[v]}],"gradient-to-pos":[{to:[v]}],"gradient-from":[{from:[m]}],"gradient-via":[{via:[m]}],"gradient-to":[{to:[m]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[f]}],"border-style":[{border:[...F(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[f]}],"divide-style":[{divide:F()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:["",...F()]}],"outline-offset":[{"outline-offset":[lo,bt]}],"outline-w":[{outline:[lo,Ko]}],"outline-color":[{outline:[t]}],"ring-w":[{ring:H()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[t]}],"ring-opacity":[{"ring-opacity":[f]}],"ring-offset-w":[{"ring-offset":[lo,Ko]}],"ring-offset-color":[{"ring-offset":[t]}],shadow:[{shadow:["","inner","none",Zo,rO]}],"shadow-color":[{shadow:[sd]}],opacity:[{opacity:[f]}],"mix-blend":[{"mix-blend":[...W(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":W()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",Zo,bt]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[h]}],saturate:[{saturate:[_]}],sepia:[{sepia:[w]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[h]}],"backdrop-opacity":[{"backdrop-opacity":[f]}],"backdrop-saturate":[{"backdrop-saturate":[_]}],"backdrop-sepia":[{"backdrop-sepia":[w]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[o]}],"border-spacing-x":[{"border-spacing-x":[o]}],"border-spacing-y":[{"border-spacing-y":[o]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",bt]}],duration:[{duration:oe()}],ease:[{ease:["linear","in","out","in-out",bt]}],delay:[{delay:oe()}],animate:[{animate:["none","spin","ping","pulse","bounce",bt]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[y]}],"scale-x":[{"scale-x":[y]}],"scale-y":[{"scale-y":[y]}],rotate:[{rotate:[id,bt]}],"translate-x":[{"translate-x":[E]}],"translate-y":[{"translate-y":[E]}],"skew-x":[{"skew-x":[T]}],"skew-y":[{"skew-y":[T]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",bt]}],accent:[{accent:["auto",t]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",bt]}],"caret-color":[{caret:[t]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":V()}],"scroll-mx":[{"scroll-mx":V()}],"scroll-my":[{"scroll-my":V()}],"scroll-ms":[{"scroll-ms":V()}],"scroll-me":[{"scroll-me":V()}],"scroll-mt":[{"scroll-mt":V()}],"scroll-mr":[{"scroll-mr":V()}],"scroll-mb":[{"scroll-mb":V()}],"scroll-ml":[{"scroll-ml":V()}],"scroll-p":[{"scroll-p":V()}],"scroll-px":[{"scroll-px":V()}],"scroll-py":[{"scroll-py":V()}],"scroll-ps":[{"scroll-ps":V()}],"scroll-pe":[{"scroll-pe":V()}],"scroll-pt":[{"scroll-pt":V()}],"scroll-pr":[{"scroll-pr":V()}],"scroll-pb":[{"scroll-pb":V()}],"scroll-pl":[{"scroll-pl":V()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",bt]}],fill:[{fill:[t,"none"]}],"stroke-w":[{stroke:[lo,Ko,_h]}],stroke:[{stroke:[t,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}const lO=WN(aO);function Ri(...t){return lO(PN(t))}const Aw=Re.use||(t=>{if(t.status==="pending")throw t;if(t.status==="fulfilled")return t.value;throw t.status==="rejected"?t.reason:(t.status="pending",t.then(e=>{t.status="fulfilled",t.value=e},e=>{t.status="rejected",t.reason=e}),t)}),J0={dedupe:!0},cO=(t,e,n)=>{const{cache:r,compare:i,suspense:s,fallbackData:o,revalidateOnMount:a,revalidateIfStale:l,refreshInterval:c,refreshWhenHidden:u,refreshWhenOffline:h,keepPreviousData:d}=n,[m,v,p,g]=Ms.get(r),[f,x]=Au(t),_=U.useRef(!1),y=U.useRef(!1),w=U.useRef(f),T=U.useRef(e),b=U.useRef(n),E=()=>b.current,M=()=>E().isVisible()&&E().isOnline(),[S,P,V,H]=Tm(r,f),G=U.useRef({}).current,$=Ge(o)?n.fallback[f]:o,F=(z,Y)=>{for(const be in G){const de=be;if(de==="data"){if(!i(z[de],Y[de])&&(!Ge(z[de])||!i(le,Y[de])))return!1}else if(Y[de]!==z[de])return!1}return!0},W=U.useMemo(()=>{const z=!f||!e?!1:Ge(a)?E().isPaused()||s?!1:Ge(l)?!0:l:a,Y=Oe=>{const O=ai(Oe);return delete O._k,z?{isValidating:!0,isLoading:!0,...O}:O},be=S(),de=H(),Ne=Y(be),Be=be===de?Ne:Y(de);let Me=Ne;return[()=>{const Oe=Y(S());return F(Oe,Me)?(Me.data=Oe.data,Me.isLoading=Oe.isLoading,Me.isValidating=Oe.isValidating,Me.error=Oe.error,Me):(Me=Oe,Oe)},()=>Be]},[r,f]),A=Ax.useSyncExternalStore(U.useCallback(z=>V(f,(Y,be)=>{F(be,Y)||z()}),[r,f]),W[0],W[1]),X=!_.current,q=m[f]&&m[f].length>0,K=A.data,oe=Ge(K)?$:K,Ce=A.error,Q=U.useRef(oe),le=d?Ge(K)?Q.current:K:oe,ye=q&&!Ge(Ce)?!1:X&&!Ge(a)?a:E().isPaused()?!1:s?Ge(oe)?!1:l:Ge(oe)||l,ge=!!(f&&e&&X&&ye),he=Ge(A.isValidating)?ge:A.isValidating,He=Ge(A.isLoading)?ge:A.isLoading,Se=U.useCallback(async z=>{const Y=T.current;if(!f||!Y||y.current||E().isPaused())return!1;let be,de,Ne=!0;const Be=z||{},Me=!p[f]||!Be.dedupe,Oe=()=>Il?!y.current&&f===w.current&&_.current:f===w.current,O={isValidating:!1,isLoading:!1},R=()=>{P(O)},ne=()=>{const fe=p[f];fe&&fe[1]===de&&delete p[f]},pe={isValidating:!0};Ge(S().data)&&(pe.isLoading=!0);try{if(Me&&(P(pe),n.loadingTimeout&&Ge(S().data)&&setTimeout(()=>{Ne&&Oe()&&E().onLoadingSlow(f,n)},n.loadingTimeout),p[f]=[Y(x),kl()]),[be,de]=p[f],be=await be,Me&&setTimeout(ne,n.dedupingInterval),!p[f]||p[f][1]!==de)return Me&&Oe()&&E().onDiscarded(f),!1;O.error=xn;const fe=v[f];if(!Ge(fe)&&(de<=fe[0]||de{const Ee=m[f];Ee&&Ee[0]&&Ee[0](Xr.ERROR_REVALIDATE_EVENT,ve)},{retryCount:(Be.retryCount||0)+1,dedupe:!0})))}return Ne=!1,R(),!0},[f,r]),k=U.useCallback((...z)=>Cm(r,w.current,...z),[]);if(rs(()=>{T.current=e,b.current=n,Ge(K)||(Q.current=K)}),rs(()=>{if(!f)return;const z=Se.bind(xn,J0);let Y=0;const de=Ox(f,m,(Ne,Be={})=>{if(Ne==Xr.FOCUS_EVENT){const Me=Date.now();E().revalidateOnFocus&&Me>Y&&M()&&(Y=Me+E().focusThrottleInterval,z())}else if(Ne==Xr.RECONNECT_EVENT)E().revalidateOnReconnect&&M()&&z();else{if(Ne==Xr.MUTATE_EVENT)return Se();if(Ne==Xr.ERROR_REVALIDATE_EVENT)return Se(Be)}});return y.current=!1,w.current=f,_.current=!0,P({_k:x}),ye&&(Ge(oe)||Po?z():Px(z)),()=>{y.current=!0,de()}},[f]),rs(()=>{let z;function Y(){const de=jr(c)?c(S().data):c;de&&z!==-1&&(z=setTimeout(be,de))}function be(){!S().error&&(u||E().isVisible())&&(h||E().isOnline())?Se(J0).then(Y):Y()}return Y(),()=>{z&&(clearTimeout(z),z=-1)}},[c,u,h,f]),U.useDebugValue(le),s&&Ge(oe)&&f){if(!Il&&Po)throw new Error("Fallback data is required when using suspense in SSR.");T.current=e,b.current=n,y.current=!1;const z=g[f];if(!Ge(z)){const Y=k(z);Aw(Y)}if(Ge(Ce)){const Y=Se(J0);Ge(le)||(Y.status="fulfilled",Y.value=!0),Aw(Y)}else throw Ce}return{mutate:k,get data(){return G.data=!0,le},get error(){return G.error=!0,Ce},get isValidating(){return G.isValidating=!0,he},get isLoading(){return G.isLoading=!0,He}}};Kc.defineProperty(Lx,"defaultValue",{value:Am});const uO=Nx(cO),dO=t=>(e,n,r)=>(r.revalidateOnFocus=!1,r.revalidateIfStale=!1,r.revalidateOnReconnect=!1,t(e,n,r)),fO=XM(uO,dO),hO={auth:void 0},XT=U.createContext(hO);function pO({children:t}){const{isLoading:e,data:n}=fO({name:"getAuth"},yf,{errorRetryCount:0}),r=U.useMemo(()=>({isLoading:e,auth:n==null?void 0:n.data}),[e,n]);return I.jsx(XT.Provider,{value:r,children:t})}const mO=()=>{const t=U.useContext(XT);if(t===void 0)throw new Error("useAuth must be used within a AuthProvider");return t},gO={date:void 0},YT=U.createContext(gO);function vO({children:t}){const[e,n]=U.useState(Tn(void 0).format("YYYY-MM-DDTHH:mm"));console.log(e);const r=U.useMemo(()=>({date:e}),[e]);return I.jsxs(YT.Provider,{value:r,children:["",t]})}const Bm=()=>{const t=U.useContext(YT);if(t===void 0)throw new Error("useConfig must be used within a ConfigProvider");return t};function On({name:t,...e}){const n=`#icon-${t}`;return I.jsx("svg",{...e,"aria-hidden":"true",className:Ri("w-[1em] h-[1em] fill-current",e.className),children:I.jsx("use",{xlinkHref:n})})}function vo(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function qT(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}/*!
* GSAP 3.12.5
* https://gsap.com
*
* @license Copyright 2008-2024, GreenSock. All rights reserved.
* Subject to the terms at https://gsap.com/standard-license or for
* Club GSAP members, the agreement issued with that membership.
* @author: Jack Doyle, jack@greensock.com
*/var Oi={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},hu={duration:.5,overwrite:!1,delay:0},Gx,Lr,hn,Ji=1e8,tn=1/Ji,t_=Math.PI*2,_O=t_/4,xO=0,KT=Math.sqrt,yO=Math.cos,wO=Math.sin,cr=function(e){return typeof e=="string"},Cn=function(e){return typeof e=="function"},Do=function(e){return typeof e=="number"},$x=function(e){return typeof e>"u"},to=function(e){return typeof e=="object"},ci=function(e){return e!==!1},jx=function(){return typeof window<"u"},xh=function(e){return Cn(e)||cr(e)},ZT=typeof ArrayBuffer=="function"&&ArrayBuffer.isView||function(){},Nr=Array.isArray,n_=/(?:-?\.?\d|\.)+/gi,QT=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,Vc=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,eg=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,JT=/[+-]=-?[.\d]+/,e2=/[^,'"\[\]\s]+/gi,SO=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,_n,Bs,r_,Xx,ki={},zp={},t2,n2=function(e){return(zp=Bl(e,ki))&&mi},Yx=function(e,n){return console.warn("Invalid property",e,"set to",n,"Missing plugin? gsap.registerPlugin()")},tf=function(e,n){return!n&&console.warn(e)},r2=function(e,n){return e&&(ki[e]=n)&&zp&&(zp[e]=n)||ki},nf=function(){return 0},bO={suppressEvents:!0,isStart:!0,kill:!1},ap={suppressEvents:!0,kill:!1},EO={suppressEvents:!0},qx={},Ta=[],i_={},i2,Ai={},tg={},Rw=30,lp=[],Kx="",Zx=function(e){var n=e[0],r,i;if(to(n)||Cn(n)||(e=[e]),!(r=(n._gsap||{}).harness)){for(i=lp.length;i--&&!lp[i].targetTest(n););r=lp[i]}for(i=e.length;i--;)e[i]&&(e[i]._gsap||(e[i]._gsap=new A2(e[i],r)))||e.splice(i,1);return e},Tl=function(e){return e._gsap||Zx(es(e))[0]._gsap},s2=function(e,n,r){return(r=e[n])&&Cn(r)?e[n]():$x(r)&&e.getAttribute&&e.getAttribute(n)||r},ui=function(e,n){return(e=e.split(",")).forEach(n)||e},Ln=function(e){return Math.round(e*1e5)/1e5||0},ar=function(e){return Math.round(e*1e7)/1e7||0},Qc=function(e,n){var r=n.charAt(0),i=parseFloat(n.substr(2));return e=parseFloat(e),r==="+"?e+i:r==="-"?e-i:r==="*"?e*i:e/i},MO=function(e,n){for(var r=n.length,i=0;e.indexOf(n[i])<0&&++i<r;);return i<r},Bp=function(){var e=Ta.length,n=Ta.slice(0),r,i;for(i_={},Ta.length=0,r=0;r<e;r++)i=n[r],i&&i._lazy&&(i.render(i._lazy[0],i._lazy[1],!0)._lazy=0)},o2=function(e,n,r,i){Ta.length&&!Lr&&Bp(),e.render(n,r,Lr&&n<0&&(e._initted||e._startAt)),Ta.length&&!Lr&&Bp()},a2=function(e){var n=parseFloat(e);return(n||n===0)&&(e+"").match(e2).length<2?n:cr(e)?e.trim():e},l2=function(e){return e},as=function(e,n){for(var r in n)r in e||(e[r]=n[r]);return e},TO=function(e){return function(n,r){for(var i in r)i in n||i==="duration"&&e||i==="ease"||(n[i]=r[i])}},Bl=function(e,n){for(var r in n)e[r]=n[r];return e},Pw=function t(e,n){for(var r in n)r!=="__proto__"&&r!=="constructor"&&r!=="prototype"&&(e[r]=to(n[r])?t(e[r]||(e[r]={}),n[r]):n[r]);return e},Vp=function(e,n){var r={},i;for(i in e)i in n||(r[i]=e[i]);return r},Pd=function(e){var n=e.parent||_n,r=e.keyframes?TO(Nr(e.keyframes)):as;if(ci(e.inherit))for(;n;)r(e,n.vars.defaults),n=n.parent||n._dp;return e},CO=function(e,n){for(var r=e.length,i=r===n.length;i&&r--&&e[r]===n[r];);return ra;)o=o._prev;return o?(n._next=o._next,o._next=n):(n._next=e[r],e[r]=n),n._next?n._next._prev=n:e[i]=n,n._prev=o,n.parent=n._dp=e,n},Vm=function(e,n,r,i){r===void 0&&(r="_first"),i===void 0&&(i="_last");var s=n._prev,o=n._next;s?s._next=o:e[r]===n&&(e[r]=o),o?o._prev=s:e[i]===n&&(e[i]=s),n._next=n._prev=n.parent=null},La=function(e,n){e.parent&&(!n||e.parent.autoRemoveChildren)&&e.parent.remove&&e.parent.remove(e),e._act=0},Cl=function(e,n){if(e&&(!n||n._end>e._dur||n._start=0?0:n._dirty?n.totalDuration():n._tDur)},Hm=function(e){return e._end=ar(e._start+(e._tDur/Math.abs(e._ts||e._rts||tn)||0))},Wm=function(e,n){var r=e._dp;return r&&r.smoothChildTiming&&e._ts&&(e._start=ar(r._time-(e._ts>0?n/e._ts:((e._dirty?e.totalDuration():e._tDur)-n)/-e._ts)),Hm(e),r._dirty||Cl(r,e)),e},u2=function(e,n){var r;if((n._time||!n._dur&&n._initted||n._starttn)&&n.render(r,!0)),Cl(e,n)._dp&&e._initted&&e._time>=e._dur&&e._ts){if(e._dur=0&&r.totalTime(r._tTime),r=r._dp;e._zTime=-tn}},$s=function(e,n,r,i){return n.parent&&La(n),n._start=ar((Do(r)?r:r||e!==_n?Yi(e,r,n):e._time)+n._delay),n._end=ar(n._start+(n.totalDuration()/Math.abs(n.timeScale())||0)),c2(e,n,"_first","_last",e._sort?"_start":0),o_(n)||(e._recent=n),i||u2(e,n),e._ts<0&&Wm(e,e._tTime),e},d2=function(e,n){return(ki.ScrollTrigger||Yx("scrollTrigger",n))&&ki.ScrollTrigger.create(n,e)},f2=function(e,n,r,i,s){if(Jx(e,n,s),!e._initted)return 1;if(!r&&e._pt&&!Lr&&(e._dur&&e.vars.lazy!==!1||!e._dur&&e.vars.lazy)&&i2!==Pi.frame)return Ta.push(e),e._lazy=[s,i],1},PO=function t(e){var n=e.parent;return n&&n._ts&&n._initted&&!n._lock&&(n.rawTime()<0||t(n))},o_=function(e){var n=e.data;return n==="isFromStart"||n==="isStart"},DO=function(e,n,r,i){var s=e.ratio,o=n<0||!n&&(!e._start&&PO(e)&&!(!e._initted&&o_(e))||(e._ts<0||e._dp._ts<0)&&!o_(e))?0:1,a=e._rDelay,l=0,c,u,h;if(a&&e._repeat&&(l=wf(0,e._tDur,n),u=pu(l,a),e._yoyo&&u&1&&(o=1-o),u!==pu(e._tTime,a)&&(s=1-o,e.vars.repeatRefresh&&e._initted&&e.invalidate())),o!==s||Lr||i||e._zTime===tn||!n&&e._zTime){if(!e._initted&&f2(e,n,i,r,l))return;for(h=e._zTime,e._zTime=n||(r?tn:0),r||(r=n&&!h),e.ratio=o,e._from&&(o=1-o),e._time=0,e._tTime=l,c=e._pt;c;)c.r(o,c.d),c=c._next;n=e._tDur||nn)for(i=e._first;i&&i._startn)return i;i=i._next}else for(i=e._last;i&&i._start>=r;){if(i.data==="isPause"&&i._start<n)return i;i=i._prev}},mu=function(e,n,r,i){var s=e._repeat,o=ar(n)||0,a=e._tTime/e._tDur;return a&&!i&&(e._time*=o/e._dur),e._dur=o,e._tDur=s?s0&&!i&&Wm(e,e._tTime=e._tDur*a),e.parent&&Hm(e),r||Cl(e.parent,e),e},Lw=function(e){return e instanceof Yr?Cl(e):mu(e,e._dur)},NO={_start:0,endTime:nf,totalDuration:nf},Yi=function t(e,n,r){var i=e.labels,s=e._recent||NO,o=e.duration()>=Ji?s.endTime(!1):e._dur,a,l,c;return cr(n)&&(isNaN(n)||n in i)?(l=n.charAt(0),c=n.substr(-1)==="%",a=n.indexOf("="),l===""?(a>=0&&(n=n.replace(/=/,"")),(l==="=0))+(parseFloat(n.substr(1))||0)*(c?(a<0?s:r).totalDuration()/100:1)):a1?t(e,n.substr(0,a-1),r)+l:o+l)):n==null?o:+n},Dd=function(e,n,r){var i=Do(n[1]),s=(i?2:1)+(e<2?0:1),o=n[s],a,l;if(i&&(o.duration=n[1]),o.parent=r,e){for(a=o,l=r;l&&!("immediateRender"in a);)a=l.vars.defaults||{},l=ci(l.vars.inherit)&&l.parent;o.immediateRender=ci(a.immediateRender),e<2?o.runBackwards=1:o.startAt=n[s-1]}return new Wn(n[0],o,n[s+1])},za=function(e,n){return e||e===0?n(e):n},wf=function(e,n,r){return rn?n:r},Dr=function(e,n){return!cr(e)||!(n=SO.exec(e))?"":n[1]},OO=function(e,n,r){return za(r,function(i){return wf(e,n,i)})},a_=[].slice,h2=function(e,n){return e&&to(e)&&"length"in e&&(!n&&!e.length||e.length-1 in e&&to(e[0]))&&!e.nodeType&&e!==Bs},UO=function(e,n,r){return r===void 0&&(r=[]),e.forEach(function(i){var s;return cr(i)&&!n||h2(i,1)?(s=r).push.apply(s,es(i)):r.push(i)})||r},es=function(e,n,r){return hn&&!n&&hn.selector?hn.selector(e):cr(e)&&!r&&(r_||!gu())?a_.call((n||Xx).querySelectorAll(e),0):Nr(e)?UO(e,r):h2(e)?a_.call(e,0):e?[e]:[]},l_=function(e){return e=es(e)[0]||tf("Invalid scope")||{},function(n){var r=e.current||e.nativeElement||e;return es(n,r.querySelectorAll?r:r===e?tf("Invalid scope")||Xx.createElement("div"):e)}},p2=function(e){return e.sort(function(){return .5-Math.random()})},m2=function(e){if(Cn(e))return e;var n=to(e)?e:{each:e},r=Al(n.ease),i=n.from||0,s=parseFloat(n.base)||0,o={},a=i>0&&i<1,l=isNaN(i)||a,c=n.axis,u=i,h=i;return cr(i)?u=h={center:.5,edges:.5,end:1}[i]||0:!a&&l&&(u=i[0],h=i[1]),function(d,m,v){var p=(v||n).length,g=o[p],f,x,_,y,w,T,b,E,M;if(!g){if(M=n.grid==="auto"?0:(n.grid||[1,Ji])[1],!M){for(b=-Ji;b<(b=v[M++].getBoundingClientRect().left)&&M<p;);M<p&&M--}for(g=o[p]=[],f=l?Math.min(M,p)*u-.5:i%M,x=M===Ji?0:l?p*h/M-.5:i/M|0,b=0,E=Ji,T=0;T
=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function up(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function lI(t,e){if(e&&(typeof e=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return up(t)}function cI(t,e){return uI(t)||dI(t,e)||fI(t,e)||hI()}function uI(t){if(Array.isArray(t))return t}function dI(t,e){var n=t==null?null:typeof Symbolt.length)&&(e=t.length);for(var n=0,r=new Array(e);n1&&arguments[1]!==void 0?arguments[1]:"none";return e||n},ly=function(){return typeof window1&&!window.MSStream)},vI=function(e,n,r,i,s){return{isBrowser:e,browserMajorVersion:ht(n.major),browserFullVersion:ht(n.version),browserName:ht(n.name),engineName:ht(r.name),engineVersion:ht(r.version),osName:ht(i.name),osVersion:ht(i.version),userAgent:ht(s)}},Yw=function(e,n,r,i){return tI({},e,{vendor:ht(n.vendor),model:ht(n.model),os:ht(r.name),osVersion:ht(r.version),ua:ht(i)})},_I=function(e,n,r,i){return{isSmartTV:e,engineName:ht(n.name),engineVersion:ht(n.version),osName:ht(r.name),osVersion:ht(r.version),userAgent:ht(i)}},xI=function(e,n,r,i){return{isConsole:e,engineName:ht(n.name),engineVersion:ht(n.version),osName:ht(r.name),osVersion:ht(r.version),userAgent:ht(i)}},yI=function(e,n,r,i){return{isWearable:e,engineName:ht(n.name),engineVersion:ht(n.version),osName:ht(r.name),osVersion:ht(r.version),userAgent:ht(i)}},wI=function(e,n,r,i,s){return{isEmbedded:e,vendor:ht(n.vendor),model:ht(n.model),engineName:ht(r.name),engineVersion:ht(r.version),osName:ht(i.name),osVersion:ht(i.version),userAgent:ht(s)}};function SI(t){var e=t?bf(t):nC,n=e.device,r=e.browser,i=e.engine,s=e.os,o=e.ua,a=mI(n.type),l=a.isBrowser,c=a.isMobile,u=a.isTablet,h=a.isSmartTV,d=a.isConsole,m=a.isWearable,v=a.isEmbedded;if(l)return vI(l,r,i,s,o);if(h)return _I(h,i,s,o);if(d)return xI(d,i,s,o);if(c||u)return Yw(a,n,s,o);if(m)return yI(m,i,s,o);if(v)return wI(v,n,i,s,o)}var rC=function(e){var n=e.type;return n===Rr.Mobile},iC=function(e){var n=e.type;return n===Rr.Tablet},sC=function(e){var n=e.type;return n===Rr.Mobile||n===Rr.Tablet},oC=function(e){var n=e.type;return n===Rr.SmartTv},Yp=function(e){var n=e.type;return n===Rr.Browser},aC=function(e){var n=e.type;return n===Rr.Wearable},lC=function(e){var n=e.type;return n===Rr.Console},cC=function(e){var n=e.type;return n===Rr.Embedded},uC=function(e){var n=e.vendor;return ht(n)},dC=function(e){var n=e.model;return ht(n)},fC=function(e){var n=e.type;return ht(n,"browser")},hC=function(e){var n=e.name;return n===Ou.Android},pC=function(e){var n=e.name;return n===Ou.Windows},mC=function(e){var n=e.name;return n===Ou.MAC_OS},gC=function(e){var n=e.name;return n===Ou.WindowsPhone},vC=function(e){var n=e.name;return n===Ou.IOS},_C=function(e){var n=e.version;return ht(n)},xC=function(e){var n=e.name;return ht(n)},yC=function(e){var n=e.name;return n===gi.Chrome},wC=function(e){var n=e.name;return n===gi.Firefox},SC=function(e){var n=e.name;return n===gi.Chromium},qp=function(e){var n=e.name;return n===gi.Edge},bC=function(e){var n=e.name;return n===gi.Yandex},EC=function(e){var n=e.name;return n===gi.Safari||n===gi.MobileSafari},MC=function(e){var n=e.name;return n===gi.MobileSafari},TC=function(e){var n=e.name;return n===gi.Opera},CC=function(e){var n=e.name;return n===gi.InternetExplorer||n===gi.Ie},AC=function(e){var n=e.name;return n===gi.MIUI},RC=function(e){var n=e.name;return n===gi.SamsungBrowser},PC=function(e){var n=e.version;return ht(n)},DC=function(e){var n=e.major;return ht(n)},LC=function(e){var n=e.name;return ht(n)},NC=function(e){var n=e.name;return ht(n)},OC=function(e){var n=e.version;return ht(n)},UC=function(){var e=ly(),n=e&&e.userAgent&&e.userAgent.toLowerCase();return typeof n=="string"?/electron/.test(n):!1},tu=function(e){return typeof e=="string"&&e.indexOf("Edg/")!==-1},IC=function(){var e=ly();return e&&(/iPad|iPhone|iPod/.test(e.platform)||e.platform==="MacIntel"&&e.maxTouchPoints>1)&&!window.MSStream},js=function(){return cy("iPad")},kC=function(){return cy("iPhone")},FC=function(){return cy("iPod")},zC=function(e){return ht(e)};function BC(t){var e=t||nC,n=e.device,r=e.browser,i=e.os,s=e.engine,o=e.ua;return{isSmartTV:oC(n),isConsole:lC(n),isWearable:aC(n),isEmbedded:cC(n),isMobileSafari:MC(r)||js(),isChromium:SC(r),isMobile:sC(n)||js(),isMobileOnly:rC(n),isTablet:iC(n)||js(),isBrowser:Yp(n),isDesktop:Yp(n),isAndroid:hC(i),isWinPhone:gC(i),isIOS:vC(i)||js(),isChrome:yC(r),isFirefox:wC(r),isSafari:EC(r),isOpera:TC(r),isIE:CC(r),osVersion:_C(i),osName:xC(i),fullBrowserVersion:PC(r),browserVersion:DC(r),browserName:LC(r),mobileVendor:uC(n),mobileModel:dC(n),engineName:NC(s),engineVersion:OC(s),getUA:zC(o),isEdge:qp(r)||tu(o),isYandex:bC(r),deviceType:fC(n),isIOS13:IC(),isIPad13:js(),isIPhone13:kC(),isIPod13:FC(),isElectron:UC(),isEdgeChromium:tu(o),isLegacyEdge:qp(r)&&!tu(o),isWindows:pC(i),isMacOs:mC(i),isMIUI:AC(r),isSamsungBrowser:RC(r)}}var VC=oC(Bi),HC=lC(Bi),WC=aC(Bi),bI=cC(Bi),EI=MC(Ir)||js(),MI=SC(Ir),$m=sC(Bi)||js(),GC=rC(Bi),$C=iC(Bi)||js(),jC=Yp(Bi),TI=Yp(Bi),XC=hC(Va),YC=gC(Va),qC=vC(Va)||js(),CI=yC(Ir),AI=wC(Ir),RI=EC(Ir),PI=TC(Ir),KC=CC(Ir),DI=_C(Va),LI=xC(Va),NI=PC(Ir),OI=DC(Ir),UI=LC(Ir),II=uC(Bi),kI=dC(Bi),FI=NC(ay),zI=OC(ay),BI=zC(Sf),VI=qp(Ir)||tu(Sf),HI=bC(Ir),WI=fC(Bi),GI=IC(),$I=js(),jI=kC(),XI=FC(),YI=UC(),qI=tu(Sf),KI=qp(Ir)&&!tu(Sf),ZI=pC(Va),QI=mC(Va),JI=AC(Ir),ek=RC(Ir),tk=function(e){if(!e||typeof e!="string"){console.error("No valid user agent string was provided");return}var n=bf(e),r=n.device,i=n.browser,s=n.os,o=n.engine,a=n.ua;return BC({device:r,browser:i,os:s,engine:o,ua:a})},nk=function(e){var n=e.renderWithFragment,r=e.children,i=ls(e,["renderWithFragment","children"]);return XC?n?rn.createElement(Or.Fragment,null,r):rn.createElement("div",i,r):null},rk=function(e){var n=e.renderWithFragment,r=e.children,i=ls(e,["renderWithFragment","children"]);return jC?n?rn.createElement(Or.Fragment,null,r):rn.createElement("div",i,r):null},ik=function(e){var n=e.renderWithFragment,r=e.children,i=ls(e,["renderWithFragment","children"]);return KC?n?rn.createElement(Or.Fragment,null,r):rn.createElement("div",i,r):null},sk=function(e){var n=e.renderWithFragment,r=e.children,i=ls(e,["renderWithFragment","children"]);return qC?n?rn.createElement(Or.Fragment,null,r):rn.createElement("div",i,r):null},ok=function(e){var n=e.renderWithFragment,r=e.children,i=ls(e,["renderWithFragment","children"]);return $m?n?rn.createElement(Or.Fragment,null,r):rn.createElement("div",i,r):null},ak=function(e){var n=e.renderWithFragment,r=e.children,i=ls(e,["renderWithFragment","children"]);return $C?n?rn.createElement(Or.Fragment,null,r):rn.createElement("div",i,r):null},lk=function(e){var n=e.renderWithFragment,r=e.children,i=ls(e,["renderWithFragment","children"]);return YC?n?rn.createElement(Or.Fragment,null,r):rn.createElement("div",i,r):null},ck=function(e){var n=e.renderWithFragment,r=e.children;e.viewClassName,e.style;var i=ls(e,["renderWithFragment","children","viewClassName","style"]);return GC?n?rn.createElement(Or.Fragment,null,r):rn.createElement("div",i,r):null},uk=function(e){var n=e.renderWithFragment,r=e.children,i=ls(e,["renderWithFragment","children"]);return VC?n?rn.createElement(Or.Fragment,null,r):rn.createElement("div",i,r):null},dk=function(e){var n=e.renderWithFragment,r=e.children,i=ls(e,["renderWithFragment","children"]);return HC?n?rn.createElement(Or.Fragment,null,r):rn.createElement("div",i,r):null},fk=function(e){var n=e.renderWithFragment,r=e.children,i=ls(e,["renderWithFragment","children"]);return WC?n?rn.createElement(Or.Fragment,null,r):rn.createElement("div",i,r):null},hk=function(e){var n=e.renderWithFragment,r=e.children;e.viewClassName,e.style;var i=e.condition,s=ls(e,["renderWithFragment","children","viewClassName","style","condition"]);return i?n?rn.createElement(Or.Fragment,null,r):rn.createElement("div",s,r):null};function pk(t){return function(e){oI(n,e);function n(r){var i;return nI(this,n),i=lI(this,x_(n).call(this,r)),i.isEventListenerAdded=!1,i.handleOrientationChange=i.handleOrientationChange.bind(up(i)),i.onOrientationChange=i.onOrientationChange.bind(up(i)),i.onPageLoad=i.onPageLoad.bind(up(i)),i.state={isLandscape:!1,isPortrait:!1},i}return iI(n,[{key:"handleOrientationChange",value:function(){this.isEventListenerAdded||(this.isEventListenerAdded=!0);var i=window.innerWidth>window.innerHeight?90:0;this.setState({isPortrait:i===0,isLandscape:i===90})}},{key:"onOrientationChange",value:function(){this.handleOrientationChange()}},{key:"onPageLoad",value:function(){this.handleOrientationChange()}},{key:"componentDidMount",value:function(){(typeof window>"u"?"undefined":Nd(window))!==void 0&&$m&&(this.isEventListenerAdded?window.removeEventListener("load",this.onPageLoad,!1):(this.handleOrientationChange(),window.addEventListener("load",this.onPageLoad,!1)),window.addEventListener("resize",this.onOrientationChange,!1))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.onOrientationChange,!1)}},{key:"render",value:function(){return rn.createElement(t,__({},this.props,{isLandscape:this.state.isLandscape,isPortrait:this.state.isPortrait}))}}]),n}(rn.Component)}function mk(){var t=Or.useState(function(){var s=window.innerWidth>window.innerHeight?90:0;return{isPortrait:s===0,isLandscape:s===90,orientation:s===0?"portrait":"landscape"}}),e=cI(t,2),n=e[0],r=e[1],i=Or.useCallback(function(){var s=window.innerWidth>window.innerHeight?90:0,o={isPortrait:s===0,isLandscape:s===90,orientation:s===0?"portrait":"landscape"};n.orientation!==o.orientation&&r(o)},[n.orientation]);return Or.useEffect(function(){return(typeof window>"u"?"undefined":Nd(window))!==void 0&&$m&&(i(),window.addEventListener("load",i,!1),window.addEventListener("resize",i,!1)),function(){window.removeEventListener("resize",i,!1),window.removeEventListener("load",i,!1)}},[i]),n}function ZC(t){var e=t||window.navigator.userAgent;return bf(e)}function gk(t){var e=t||window.navigator.userAgent,n=ZC(e),r=BC(n);return[r,n]}Ze.AndroidView=nk;Ze.BrowserTypes=gi;Ze.BrowserView=rk;Ze.ConsoleView=dk;Ze.CustomView=hk;Ze.IEView=ik;Ze.IOSView=sk;Ze.MobileOnlyView=ck;Ze.MobileView=ok;Ze.OsTypes=Ou;Ze.SmartTVView=uk;Ze.TabletView=ak;Ze.WearableView=fk;Ze.WinPhoneView=lk;Ze.browserName=UI;Ze.browserVersion=OI;Ze.deviceDetect=SI;Ze.deviceType=WI;Ze.engineName=FI;Ze.engineVersion=zI;Ze.fullBrowserVersion=NI;Ze.getSelectorsByUserAgent=tk;Ze.getUA=BI;Ze.isAndroid=XC;Ze.isBrowser=jC;Ze.isChrome=CI;Ze.isChromium=MI;Ze.isConsole=HC;var w_=Ze.isDesktop=TI;Ze.isEdge=VI;Ze.isEdgeChromium=qI;Ze.isElectron=YI;Ze.isEmbedded=bI;Ze.isFirefox=AI;Ze.isIE=KC;Ze.isIOS=qC;Ze.isIOS13=GI;Ze.isIPad13=$I;Ze.isIPhone13=jI;Ze.isIPod13=XI;Ze.isLegacyEdge=KI;Ze.isMIUI=JI;Ze.isMacOs=QI;Ze.isMobile=$m;Ze.isMobileOnly=GC;Ze.isMobileSafari=EI;Ze.isOpera=PI;Ze.isSafari=RI;Ze.isSamsungBrowser=ek;Ze.isSmartTV=VC;Ze.isTablet=$C;Ze.isWearable=WC;Ze.isWinPhone=YC;Ze.isWindows=ZI;Ze.isYandex=HI;Ze.mobileModel=kI;Ze.mobileVendor=II;Ze.osName=LI;Ze.osVersion=DI;Ze.parseUserAgent=bf;Ze.setUserAgent=gI;Ze.useDeviceData=ZC;Ze.useDeviceSelectors=gk;Ze.useMobileOrientation=mk;Ze.withOrientationChange=pk;function uy({url:t,children:e}){const n=U.useRef(document.querySelector("#root")),[r,i]=KU();return!navigator.share||w_?I.jsxs(Dm,{children:[I.jsx(vT,{asChild:!0,children:e}),I.jsxs(Lm,{container:n.current,children:[I.jsx(Nm,{className:"bg-black/70 fixed inset-0 z-50 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0"}),I.jsxs(Om,{className:"fixed top-[50%] left-[50%] translate-x-[-50%] translate-y-[-50%] z-50 duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%]",children:[I.jsxs("div",{className:"bg-[#1C1C1C] rounded-xl overflow-hidden p-3 pb-6 w-[340px]",children:[I.jsx("p",{className:"text-white font-bold text-xl mb-3",children:"分享"}),I.jsxs("div",{className:"flex justify-center items-center gap-8 text-2xl text-white font-medium",children:[I.jsxs("a",{href:`https://www.facebook.com/sharer/sharer.php?u=${t}`,target:"_blank",className:"flex flex-col items-center gap-1",children:[I.jsx(On,{name:"facebook"}),I.jsx("p",{className:"text-xs",children:"Facebook"})]}),I.jsxs("a",{href:`https://social-plugins.line.me/lineit/share?url=${t}&text=`,target:"_blank",className:"flex flex-col items-center gap-1",children:[I.jsx(On,{name:"line"}),I.jsx("p",{className:"text-xs",children:"聊天室"})]}),I.jsxs("button",{className:"flex flex-col items-center gap-1",onClick:()=>{i(t),aD.success("複製完成")},children:[I.jsx(On,{name:"copy"}),I.jsx("p",{className:"text-xs",children:"複製網址"})]})]})]}),I.jsx(kx,{asChild:!0,children:I.jsx("button",{className:"text-[#d3d3d3] absolute top-3 right-3","aria-label":"Close",children:I.jsx(On,{name:"close"})})})]})]})]}):I.jsx("button",{onClick:()=>{navigator.share({url:t})},children:e})}const Kp=t=>{const n=Math.log(101);return Math.log(t+1)/n*100};function qw({isLoading:t,isEntryView:e,id:n,campaignId:r,rank:i,progress:s}){var l,c,u,h;const[o,a]=U.useState(0);return U.useEffect(()=>{if(e){const d={num:s};Nu.from(d,{num:0,duration:1,ease:"power1.in",onUpdate(){a(Math.round(d.num))}})}},[e,s]),t?I.jsxs("div",{className:"relative w-full h-full rounded-2xl overflow-hidden",children:[I.jsx("span",{className:"absolute inset-0 pointer-events-none bg-gradient-to-b from-black to-[transparent]"}),I.jsxs("div",{className:"h-full flex flex-col border border-solid border-[#d9d9d9]/50 rounded-2xl px-2 py-3 pt-5 lg:px-3 lg:py-5 lg:pt-7",children:[I.jsxs("div",{className:"relative aspect-[1.82758621]",children:[I.jsx(bs,{className:"absolute top-0 left-0 w-full h-full"}),I.jsx("span",{className:"absolute inset-0 pointer-events-none bg-gradient-to-b from-black via-[transparent] to-black"})]}),I.jsxs("div",{className:"flex-1 flex flex-col relative -mt-10",children:[I.jsxs("div",{className:"mb-2 text-[#d9d9d9]",children:[I.jsx("p",{className:"text-lg sm:text-sm lg:text-lg font-bold",children:I.jsx(bs,{})}),I.jsx("p",{className:"text-xs lg:text-base font-medium break-keep break-words",children:I.jsx(bs,{})})]}),I.jsx("div",{className:"relative flex items-center justify-between gap-2 mt-auto mb-1 w-full sm:mb-0 lg:mb-2 ",children:I.jsx("p",{className:"font-bold text-xl sm:text-base lg:text-3xl",children:I.jsx(bs,{})})}),I.jsx("div",{className:"relative w-[120px] inline-flex items-center font-medium py-1.5 px-2 gap-2 rounded sm:w-[84px] lg:w-[144px] sm:py-1 sm:px-1 sm:gap-1 sm:text-xs lg:py-2 lg:px-2.5 lg:rounded-md lg:text-xl",children:I.jsx(bs,{className:"absolute top-0 left-0 w-full h-full"})})]})]})]}):I.jsxs("div",{className:"relative w-full h-full rounded-2xl overflow-hidden cursor-pointer",children:[I.jsx("span",{className:"absolute inset-0 pointer-events-none bg-gradient-to-b from-black to-[transparent]"}),I.jsxs("div",{className:"h-full flex flex-col border border-solid border-cp rounded-2xl px-2 py-3 pt-5 lg:px-3 lg:py-5 lg:pt-7",children:[I.jsxs("div",{className:"relative aspect-[1.82758621]",children:[I.jsxs("div",{className:"absolute top-0 left-0 -translate-y-1/2 text-white bg-cp rounded-full text-base italic font-extrabold z-10 pl-7 pr-2 flex items-center sm:text-xs sm:pr-2 sm:pl-6 lg:text-xl lg:pr-2 lg:pl-9",children:[I.jsx("img",{className:"absolute bottom-0 left-1 w-[25px] sm:w-[20px] lg:w-[30px]",src:"https://www.catchplay.com/campaigns/wp-content/uploads/2024/06/rank.png"}),"TOP ",i]}),I.jsx("img",{className:"w-full h-full object-cover",src:`https://www.catchplay.com/campaigns/wp-content/uploads/2024/06/l-${(l=vt.items[n])==null?void 0:l.name}.png`}),I.jsx("span",{className:"absolute inset-0 pointer-events-none bg-gradient-to-b from-black via-[transparent] to-black"})]}),I.jsxs("div",{className:"flex-1 flex flex-col relative -mt-10",children:[I.jsxs("div",{className:"mb-2 text-[#d9d9d9]",children:[I.jsx("p",{className:"text-lg sm:text-sm lg:text-lg font-bold",children:(c=vt.items[n])==null?void 0:c.name}),I.jsxs("p",{className:"text-xs lg:text-base font-medium break-keep break-words",children:["主演:",(u=vt.items[n])==null?void 0:u.cast]})]}),I.jsxs("div",{className:"relative flex items-center justify-between gap-2 mt-auto mb-1 w-full sm:mb-0 lg:mb-2",children:[I.jsx(Q2,{className:"relative overflow-hidden rounded-full w-[60%] h-[10px] sm:h-[6px] lg:h-[10px]",style:{transform:"translateZ(0)"},value:Kp(o),children:I.jsx(J2,{className:"bg-[red] w-full h-full transition-transform duration-[660ms] ease-[cubic-bezier(0.65, 0, 0.35, 1)]",style:{transform:`translateX(-${100-Kp(o)}%)`}})}),I.jsxs("p",{className:"text-[red] font-bold text-xl sm:text-base lg:text-3xl",children:[o,"%"]})]}),I.jsx("div",{onClick:d=>d.stopPropagation(),children:I.jsx(uy,{url:(h=vt.items[n])==null?void 0:h.shortUrl,children:I.jsxs("button",{"data-gtm-id":"share-vote",className:"inline-flex items-center font-medium text-white bg-btn-red hover:bg-[red] transition-all duration-300 py-1.5 px-2 gap-2 rounded sm:py-1 sm:px-1 sm:gap-1 sm:text-xs lg:py-2 lg:px-2.5 lg:rounded-md lg:text-xl",children:[I.jsx(On,{name:"share"}),r?"分享來拉票":"分享"]})})})]})]})]})}function Kw({isLoading:t,isEntryView:e,id:n,campaignId:r,rank:i,progress:s}){var l,c,u,h;const[o,a]=U.useState(0);return U.useEffect(()=>{if(e){const d={num:s};Nu.from(d,{num:0,duration:1,ease:"power1.in",onUpdate(){a(Math.round(d.num))}})}},[e,s]),t?I.jsxs("div",{className:"flex flex-col w-full h-full border-b border-solid border-[#d9d9d9]/50 pb-2 cursor-pointer",children:[I.jsxs("div",{className:"mb-2 sm:flex sm:flex-col sm:mb-1 lg:block lg:mb-2",children:[I.jsx("div",{className:"float-right relative aspect-[1.82758621] w-[75px] rounded overflow-hidden sm:float-none sm:order-2 sm:mb-2 lg:float-right lg:w-[105px] lg:mb-0",children:I.jsx(bs,{className:"absolute top-0 left-0 w-full h-full"})}),I.jsx("p",{className:"text-xs font-bold sm:mb-1 sm:order-1 lg:mb-0",children:I.jsx(bs,{className:"w-1/4"})}),I.jsx("p",{className:"whitespace-nowrap text-lg font-medium sm:order-3 sm:text-sm lg:text-lg",children:I.jsx(bs,{className:"w-1/3"})}),I.jsx("p",{className:"min-w-[240px] text-xs font-medium break-keep break-words sm:order-4 sm:text-xs sm:min-w-fit lg:text-base",children:I.jsx(bs,{className:"opacity-0"})})]}),I.jsx("div",{className:"relative flex items-center justify-between gap-2 mb-1 w-full sm:mb-2 lg:mb-1",children:I.jsx("p",{className:"font-bold text-xl sm:text-base lg:text-3xl",children:I.jsx(bs,{})})}),I.jsx("div",{className:"relative mt-auto w-[84px] inline-flex items-center font-medium rounded-sm text-xs py-1 px-1 gap-1 sm:w-[88px] lg:w-[104px] sm:px-1.5 sm:rounded lg:text-sm lg:py-1.5 lg:px-2",children:I.jsx(bs,{className:"absolute top-0 left-0 w-full h-full"})})]}):I.jsxs("div",{className:"flex flex-col w-full h-full border-b border-solid border-[#d9d9d9]/50 pb-2 cursor-pointer",children:[I.jsxs("div",{className:"mb-2 text-[#d9d9d9] sm:flex sm:flex-col sm:mb-1 lg:block lg:mb-2",children:[I.jsx("div",{className:"float-right relative aspect-[1.82758621] w-[75px] rounded overflow-hidden sm:float-none sm:order-2 sm:mb-2 lg:float-right lg:w-[105px] lg:mb-0",children:I.jsx("img",{className:"w-full h-full object-cover",src:`https://www.catchplay.com/campaigns/wp-content/uploads/2024/06/l-${(l=vt.items[n])==null?void 0:l.name}.png`})}),I.jsxs("p",{className:"text-xs font-bold sm:mb-1 sm:order-1 lg:mb-0",children:["第 ",i," 名"]}),I.jsx("p",{className:"whitespace-nowrap text-lg font-medium sm:order-3 sm:text-sm lg:text-lg",children:(c=vt.items[n])==null?void 0:c.name}),I.jsxs("p",{className:"min-w-[240px] text-xs font-medium break-keep break-words sm:order-4 sm:text-xs sm:min-w-fit lg:text-base",children:["主演:",(u=vt.items[n])==null?void 0:u.cast]})]}),I.jsxs("div",{className:"relative flex items-center justify-between gap-2 mb-1 w-full sm:mb-2 lg:mb-1",children:[I.jsx(Q2,{className:"relative overflow-hidden rounded-full w-[60%] h-[10px] sm:h-[6px] lg:h-[10px]",style:{transform:"translateZ(0)"},value:Kp(o),children:I.jsx(J2,{className:"bg-[red] w-full h-full transition-transform duration-[660ms] ease-[cubic-bezier(0.65, 0, 0.35, 1)]",style:{transform:`translateX(-${100-Kp(o)}%)`}})}),I.jsxs("p",{className:"text-[red] font-bold text-xl sm:text-base lg:text-3xl",children:[o,"%"]})]}),I.jsx("div",{className:"mt-auto",onClick:d=>d.stopPropagation(),children:I.jsx(uy,{url:(h=vt.items[n])==null?void 0:h.shortUrl,children:I.jsxs("button",{"data-gtm-id":"share-vote",className:"inline-flex items-center font-medium text-white bg-btn-red hover:bg-[red] transition-all duration-300 rounded-sm text-xs py-1 px-1 gap-1 sm:px-1.5 sm:rounded lg:text-sm lg:py-1.5 lg:px-2",children:[I.jsx(On,{name:"share"}),r?"分享來拉票":"分享"]})})})]})}function vk({id:t,campaignId:e,eligible:n,checked:r,onSelect:i}){var s,o,a,l,c;return I.jsxs("div",{className:"w-[90vw] max-w-[725px] bg-black rounded-2xl overflow-hidden",children:[I.jsx("div",{className:"flex justify-between items-center text-[#d3d3d3] py-2 px-4",children:I.jsx("p",{className:"text-xl font-medium",children:"投票內容"})}),I.jsxs("div",{className:"relative aspect-[1.77]",children:[I.jsx("img",{className:"w-full h-full object-cover",src:`https://www.catchplay.com/campaigns/wp-content/uploads/2024/06/l-${(s=vt.items[t])==null?void 0:s.name}.png`}),I.jsx("span",{className:"absolute left-0 bottom-0 pointer-events-none bg-gradient-to-t from-black to-[transparent] w-full h-1/2"})]}),I.jsxs("div",{className:"px-11 pb-8",children:[I.jsxs("div",{className:"relative text-center mb-4 -mt-8",children:[I.jsx("p",{className:"text-lg font-bold text-[red] sm:text-2xl",children:(o=vt.items[t])==null?void 0:o.name}),I.jsxs("p",{className:"text-xs font-medium text-[red] mb-1 sm:mb-4 sm:text-base ",children:["主演:",(a=vt.items[t])==null?void 0:a.cast]}),I.jsx("p",{className:"text-xs text font-medium text-[#d3d3d3] sm:text-base",children:(l=vt.items[t])==null?void 0:l.description})]}),I.jsxs("div",{className:"flex flex-col items-center justify-center gap-2.5",children:[e&&I.jsx("button",{disabled:!n,className:Ri("flex items-center justify-center gap-1 font-medium bg-[red] text-white rounded-lg p-1 w-[200px] hover:bg-white hover:text-[red] transition-all duration-300 text-lg sm:p-1.5 sm:text-xl",{"bg-white text-[red]":r,"bg-[#1E1E1E] text-[#A6A6A6] pointer-events-none":!n}),onClick:u=>{n&&(i==null||i(!r))},children:r?I.jsxs(I.Fragment,{children:[I.jsx(On,{name:"check"}),"已選擇"]}):n?"選擇":"已完成投票"}),I.jsx(uy,{url:(c=vt.items[t])==null?void 0:c.shortUrl,children:I.jsxs("button",{"data-gtm-id":"share-vote",className:"flex justify-center items-center gap-1 font-medium text-white bg-btn-red hover:bg-[red] transition-all duration-300 rounded-lg p-1 w-[200px] text-lg sm:p-1.5 sm:text-xl",children:[I.jsx(On,{name:"share"}),e?"分享來拉票":"分享"]})}),e&&!n&&I.jsx("p",{className:"text-xs text-[#d3d3d3] font-medium",children:"今日已投票,明日可重新投票"})]})]})]})}function QC(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)>=0)continue;n[r]=t[r]}return n}function S_(t,e){return S_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},S_(t,e)}function dy(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,S_(t,e)}function _k(t,e){return t.classList?!!e&&t.classList.contains(e):(" "+(t.className.baseVal||t.className)+" ").indexOf(" "+e+" ")!==-1}function xk(t,e){t.classList?t.classList.add(e):_k(t,e)||(typeof t.className=="string"?t.className=t.className+" "+e:t.setAttribute("class",(t.className&&t.className.baseVal||"")+" "+e))}function Zw(t,e){return t.replace(new RegExp("(^|\\s)"+e+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function yk(t,e){t.classList?t.classList.remove(e):typeof t.className=="string"?t.className=Zw(t.className,e):t.setAttribute("class",Zw(t.className&&t.className.baseVal||"",e))}const Qw={disabled:!1},fy=Re.createContext(null);var JC=function(e){return e.scrollTop},_d="unmounted",dl="exited",Zi="entering",Xs="entered",cf="exiting",Fo=function(t){dy(e,t);function e(r,i){var s;s=t.call(this,r,i)||this;var o=i,a=o&&!o.isMounting?r.enter:r.appear,l;return s.appearStatus=null,r.in?a?(l=dl,s.appearStatus=Zi):l=Xs:r.unmountOnExit||r.mountOnEnter?l=_d:l=dl,s.state={status:l},s.nextCallback=null,s}e.getDerivedStateFromProps=function(i,s){var o=i.in;return o&&s.status===_d?{status:dl}:null};var n=e.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(i){var s=null;if(i!==this.props){var o=this.state.status;this.props.in?o!==Zi&&o!==Xs&&(s=Zi):(o===Zi||o===Xs)&&(s=cf)}this.updateStatus(!1,s)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var i=this.props.timeout,s,o,a;return s=o=a=i,i!=null&&typeof i!="number"&&(s=i.exit,o=i.enter,a=i.appear!==void 0?i.appear:o),{exit:s,enter:o,appear:a}},n.updateStatus=function(i,s){if(i===void 0&&(i=!1),s!==null)if(this.cancelNextCallback(),s===Zi){if(this.props.unmountOnExit||this.props.mountOnEnter){var o=this.props.nodeRef?this.props.nodeRef.current:Bc.findDOMNode(this);o&&JC(o)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===dl&&this.setState({status:_d})},n.performEnter=function(i){var s=this,o=this.props.enter,a=this.context?this.context.isMounting:i,l=this.props.nodeRef?[a]:[Bc.findDOMNode(this),a],c=l[0],u=l[1],h=this.getTimeouts(),d=a?h.appear:h.enter;if(!i&&!o||Qw.disabled){this.safeSetState({status:Xs},function(){s.props.onEntered(c)});return}this.props.onEnter(c,u),this.safeSetState({status:Zi},function(){s.props.onEntering(c,u),s.onTransitionEnd(d,function(){s.safeSetState({status:Xs},function(){s.props.onEntered(c,u)})})})},n.performExit=function(){var i=this,s=this.props.exit,o=this.getTimeouts(),a=this.props.nodeRef?void 0:Bc.findDOMNode(this);if(!s||Qw.disabled){this.safeSetState({status:dl},function(){i.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:cf},function(){i.props.onExiting(a),i.onTransitionEnd(o.exit,function(){i.safeSetState({status:dl},function(){i.props.onExited(a)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(i,s){s=this.setNextCallback(s),this.setState(i,s)},n.setNextCallback=function(i){var s=this,o=!0;return this.nextCallback=function(a){o&&(o=!1,s.nextCallback=null,i(a))},this.nextCallback.cancel=function(){o=!1},this.nextCallback},n.onTransitionEnd=function(i,s){this.setNextCallback(s);var o=this.props.nodeRef?this.props.nodeRef.current:Bc.findDOMNode(this),a=i==null&&!this.props.addEndListener;if(!o||a){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[o,this.nextCallback],c=l[0],u=l[1];this.props.addEndListener(c,u)}i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===_d)return null;var s=this.props,o=s.children;s.in,s.mountOnEnter,s.unmountOnExit,s.appear,s.enter,s.exit,s.timeout,s.addEndListener,s.onEnter,s.onEntering,s.onEntered,s.onExit,s.onExiting,s.onExited,s.nodeRef;var a=QC(s,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Re.createElement(fy.Provider,{value:null},typeof o=="function"?o(i,a):Re.cloneElement(Re.Children.only(o),a))},e}(Re.Component);Fo.contextType=fy;Fo.propTypes={};function cc(){}Fo.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:cc,onEntering:cc,onEntered:cc,onExit:cc,onExiting:cc,onExited:cc};Fo.UNMOUNTED=_d;Fo.EXITED=dl;Fo.ENTERING=Zi;Fo.ENTERED=Xs;Fo.EXITING=cf;var wk=function(e,n){return e&&n&&n.split(" ").forEach(function(r){return xk(e,r)})},cg=function(e,n){return e&&n&&n.split(" ").forEach(function(r){return yk(e,r)})},jm=function(t){dy(e,t);function e(){for(var r,i=arguments.length,s=new Array(i),o=0;o<i;o++)s[o]=arguments[o];return r=t.call.apply(t,[this].concat(s))||this,r.appliedClasses={appear:{},enter:{},exit:{}},r.onEnter=function(a,l){var c=r.resolveArguments(a,l),u=c[0],h=c[1];r.removeClasses(u,"exit"),r.addClass(u,h?"appear":"enter","base"),r.props.onEnter&&r.props.onEnter(a,l)},r.onEntering=function(a,l){var c=r.resolveArguments(a,l),u=c[0],h=c[1],d=h?"appear":"enter";r.addClass(u,d,"active"),r.props.onEntering&&r.props.onEntering(a,l)},r.onEntered=function(a,l){var c=r.resolveArguments(a,l),u=c[0],h=c[1],d=h?"appear":"enter";r.removeClasses(u,d),r.addClass(u,d,"done"),r.props.onEntered&&r.props.onEntered(a,l)},r.onExit=function(a){var l=r.resolveArguments(a),c=l[0];r.removeClasses(c,"appear"),r.removeClasses(c,"enter"),r.addClass(c,"exit","base"),r.props.onExit&&r.props.onExit(a)},r.onExiting=function(a){var l=r.resolveArguments(a),c=l[0];r.addClass(c,"exit","active"),r.props.onExiting&&r.props.onExiting(a)},r.onExited=function(a){var l=r.resolveArguments(a),c=l[0];r.removeClasses(c,"exit"),r.addClass(c,"exit","done"),r.props.onExited&&r.props.onExited(a)},r.resolveArguments=function(a,l){return r.props.nodeRef?[r.props.nodeRef.current,a]:[a,l]},r.getClassNames=function(a){var l=r.props.classNames,c=typeof l=="string",u=c&&l?l+"-":"",h=c?""+u+a:l[a],d=c?h+"-active":l[a+"Active"],m=c?h+"-done":l[a+"Done"];return{baseClassName:h,activeClassName:d,doneClassName:m}},r}var n=e.prototype;return n.addClass=function(i,s,o){var a=this.getClassNames(s)[o+"ClassName"],l=this.getClassNames("enter"),c=l.doneClassName;s==="appear"&&o==="done"&&c&&(a+=" "+c),o==="active"&&i&&JC(i),a&&(this.appliedClasses[s][o]=a,wk(i,a))},n.removeClasses=function(i,s){var o=this.appliedClasses[s],a=o.base,l=o.active,c=o.done;this.appliedClasses[s]={},a&&cg(i,a),l&&cg(i,l),c&&cg(i,c)},n.render=function(){var i=this.props;i.classNames;var s=QC(i,["classNames"]);return Re.createElement(Fo,Un({},s,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},e}(Re.Component);jm.defaultProps={classNames:""};jm.propTypes={};var yh,wh;function Sk(t,e){return!(t===e||Re.isValidElement(t)&&Re.isValidElement(e)&&t.key!=null&&t.key===e.key)}var _u={out:"out-in",in:"in-out"},Zp=function(e,n,r){return function(){var i;e.props[n]&&(i=e.props)[n].apply(i,arguments),r()}},bk=(yh={},yh[_u.out]=function(t){var e=t.current,n=t.changeState;return Re.cloneElement(e,{in:!1,onExited:Zp(e,"onExited",function(){n(Zi,null)})})},yh[_u.in]=function(t){var e=t.current,n=t.changeState,r=t.children;return[e,Re.cloneElement(r,{in:!0,onEntered:Zp(r,"onEntered",function(){n(Zi)})})]},yh),Ek=(wh={},wh[_u.out]=function(t){var e=t.children,n=t.changeState;return Re.cloneElement(e,{in:!0,onEntered:Zp(e,"onEntered",function(){n(Xs,Re.cloneElement(e,{in:!0}))})})},wh[_u.in]=function(t){var e=t.current,n=t.children,r=t.changeState;return[Re.cloneElement(e,{in:!1,onExited:Zp(e,"onExited",function(){r(Xs,Re.cloneElement(n,{in:!0}))})}),Re.cloneElement(n,{in:!0})]},wh),Xm=function(t){dy(e,t);function e(){for(var r,i=arguments.length,s=new Array(i),o=0;oy.addEventListener("transitionend",w,!1),classNames:"fade",children:I.jsxs("div",{className:"flex lg:block",children:[I.jsxs("div",{className:"shrink-0 relative aspect-[0.75] w-[130px] lg:aspect-[1.77] lg:w-full",children:[I.jsx("img",{className:"w-full h-full object-cover",src:n?`https://www.catchplay.com/campaigns/wp-content/uploads/2024/06/l-${(s=vt.items[e])==null?void 0:s.name}.png`:`https://www.catchplay.com/campaigns/wp-content/uploads/2024/06/m-${(o=vt.items[e])==null?void 0:o.name}.png`}),I.jsx("span",{className:"hidden lg:block absolute left-0 bottom-0 pointer-events-none bg-gradient-to-t from-black to-[transparent] w-full h-1/3"})]}),I.jsxs("div",{className:"relative py-6 px-2.5 sm:pl-8 sm:pr-5 sm:flex sm:items-center sm:gap-6 lg:flex-col lg:pt-0 lg:px-14 lg:pb-8 lg:text-center lg:gap-5",children:[I.jsxs("div",{className:"absolute top-2 right-2",children:[Tn(i).isBefore((a=vt.items[e])==null?void 0:a.date,"day")&&I.jsx(On,{className:"text-[red] text-lg",name:"lock"}),Tn(i).isSame((l=vt.items[e])==null?void 0:l.date,"day")&&I.jsxs("div",{className:"text-[#D3D3D3] text-xs flex items-center gap-1",children:["今日更新",I.jsx(On,{className:"text-[red] text-lg",name:"location"})]}),Tn(i).isAfter((c=vt.items[e])==null?void 0:c.date,"day")&&I.jsx("div",{className:"text-[#D3D3D3] text-xs ",children:"熱播中"})]}),I.jsxs("div",{children:[I.jsx("p",{className:"text-[red] font-bold sm:text-xl lg:text-2xl",children:(u=vt.items[e])==null?void 0:u.name}),I.jsxs("p",{className:"text-[red] font-medium text-sm mb-1 sm:text-base lg:text-sm lg:mb-2",children:["主演:",(h=vt.items[e])==null?void 0:h.cast]}),I.jsx("p",{className:"text-xs text-[#d3d3d3] line-clamp-2 font-medium mb-4 sm:mb-0 sm:text-sm sm:line-clamp-none lg:text-base",children:r?(d=vt.items[e])==null?void 0:d.description:(m=vt.items[e])==null?void 0:m.shortDescription})]}),I.jsxs("div",{className:"flex justify-between items-end sm:shrink-0 sm:flex-col sm:items-center sm:gap-2 sm:mt-auto lg:gap-3",children:[t&&I.jsx("a",{href:Tn(i).isBefore((v=vt.items[e])==null?void 0:v.date,"day")?(p=vt.items[e])==null?void 0:p.trailerUrl:(g=vt.items[e])==null?void 0:g.url,target:"_blank",className:"py-2 px-5 bg-[red] text-white font-medium rounded-lg hover:bg-white hover:text-[red] transition-all duration-300",children:Tn(i).isBefore((f=vt.items[e])==null?void 0:f.date,"day")?"看更多":"立即觀看"}),Tn(i).isBefore((x=vt.items[e])==null?void 0:x.date,"day")&&I.jsxs("p",{className:"text-xs text-[red]",children:[Tn((_=vt.items[e])==null?void 0:_.date).format("MM/DD")," 上架"]})]})]})]})},e)})}function Tk(t){return Object.prototype.toString.call(t)==="[object Object]"}function Jw(t){return Tk(t)||Array.isArray(t)}function Ck(){return!!(typeof window{const a=t[o],l=e[o];return typeof a=="function"?`${a}`==`${l}`:!Jw(a)||!Jw(l)?a===l:hy(a,l)})}function eS(t){return t.concat().sort((e,n)=>e.name>n.name?1:-1).map(e=>e.options)}function Ak(t,e){if(t.length!==e.length)return!1;const n=eS(t),r=eS(e);return n.every((i,s)=>{const o=r[s];return hy(i,o)})}function py(t){return typeof t=="number"}function b_(t){return typeof t=="string"}function my(t){return typeof t=="boolean"}function tS(t){return Object.prototype.toString.call(t)==="[object Object]"}function pn(t){return Math.abs(t)}function gy(t){return Math.sign(t)}function Od(t,e){return pn(t-e)}function Rk(t,e){if(t===0||e===0||pn(t)e+r)}function df(t){return Object.keys(t)}function eA(t,e){return[t,e].reduce((n,r)=>(df(r).forEach(i=>{const s=n[i],o=r[i],a=tS(s)&&tS(o);n[i]=a?eA(s,o):o}),n),{})}function E_(t,e){return typeof e.MouseEventi.removeEventListener(s,o,a);else{const c=i;c.addListener(o),l=()=>c.removeListener(o)}return t.push(l),r}function n(){t=t.filter(i=>i())}const r={add:e,clear:n};return r}function Dk(t,e,n,r){const i=ff(),s=1e3/60;let o=null,a=0,l=0;function c(){i.add(t,"visibilitychange",()=>{t.hidden&&v()})}function u(){m(),i.clear()}function h(g){if(!l)return;o||(o=g);const f=g-o;for(o=g,a+=f;a>=s;)n(),a-=s;const x=pn(a/s);r(x),l&&e.requestAnimationFrame(h)}function d(){l||(l=e.requestAnimationFrame(h))}function m(){e.cancelAnimationFrame(l),o=null,a=0,l=0}function v(){o=null,a=0}return{init:c,destroy:u,start:d,stop:m,update:n,render:r}}function Lk(t,e){const n=e==="rtl",r=t==="y",i=r?"y":"x",s=r?"x":"y",o=!r&&n?-1:1,a=u(),l=h();function c(v){const{height:p,width:g}=v;return r?p:g}function u(){return r?"top":n?"right":"left"}function h(){return r?"bottom":n?"left":"right"}function d(v){return v*o}return{scroll:i,cross:s,startEdge:a,endEdge:l,measureSize:c,direction:d}}function Hl(t=0,e=0){const n=pn(t-e);function r(c){return ce}function s(c){return r(c)||i(c)}function o(c){return s(c)?r(c)?t:e:c}function a(c){return n?c-n*Math.ceil((c-e)/n):c}return{length:n,max:e,min:t,constrain:o,reachedAny:s,reachedMax:i,reachedMin:r,removeOffset:a}}function tA(t,e,n){const{constrain:r}=Hl(0,t),i=t+1;let s=o(e);function o(d){return n?pn((i+d)%i):r(d)}function a(){return s}function l(d){return s=o(d),h}function c(d){return u().set(a()+d)}function u(){return tA(t,a(),n)}const h={get:a,set:l,add:c,clone:u};return h}function Nk(t,e,n,r,i,s,o,a,l,c,u,h,d,m,v,p,g,f,x){const{cross:_,direction:y}=t,w=["INPUT","SELECT","TEXTAREA"],T={passive:!1},b=ff(),E=ff(),M=Hl(50,225).constrain(m.measure(20)),S={mouse:300,touch:400},P={mouse:500,touch:600},V=v?43:25;let H=!1,G=0,$=0,F=!1,W=!1,A=!1,X=!1;function q(z){if(!x)return;function Y(de){(my(x)||x(z,de))&&ye(de)}const be=e;b.add(be,"dragstart",de=>de.preventDefault(),T).add(be,"touchmove",()=>{},T).add(be,"touchend",()=>{}).add(be,"touchstart",Y).add(be,"mousedown",Y).add(be,"touchcancel",he).add(be,"contextmenu",he).add(be,"click",He,!0)}function K(){b.clear(),E.clear()}function oe(){const z=X?n:e;E.add(z,"touchmove",ge,T).add(z,"touchend",he).add(z,"mousemove",ge,T).add(z,"mouseup",he)}function Ce(z){const Y=z.nodeName||"";return w.includes(Y)}function Q(){return(v?P:S)[X?"mouse":"touch"]}function le(z,Y){const be=h.add(gy(z)*-1),de=u.byDistance(z,!v).distance;return v||pn(z)=2,!(Y&&z.button!==0)&&(Ce(z.target)||(F=!0,s.pointerDown(z),c.useFriction(0).useDuration(0),i.set(o),oe(),G=s.readPoint(z),$=s.readPoint(z,_),d.emit("pointerDown")))}function ge(z){if(!E_(z,r)&&z.touches.length>=2)return he(z);const be=s.readPoint(z),de=s.readPoint(z,_),Ne=Od(be,G),Be=Od(de,$);if(!W&&!X&&(!z.cancelable||(W=Ne>Be,!W)))return he(z);const Me=s.pointerMove(z);Ne>p&&(A=!0),c.useFriction(.3).useDuration(.75),a.start(),i.add(y(Me)),z.preventDefault()}function he(z){const be=u.byDistance(0,!1).index!==h.get(),de=s.pointerUp(z)*Q(),Ne=le(y(de),be),Be=Rk(de,Ne),Me=V-10*Be,Oe=f+Be/50;W=!1,F=!1,E.clear(),c.useDuration(Me).useFriction(Oe),l.distance(Ne,!v),X=!1,d.emit("pointerUp")}function He(z){A&&(z.stopPropagation(),z.preventDefault(),A=!1)}function Se(){return F}return{init:q,destroy:K,pointerDown:Se}}function Ok(t,e){let r,i;function s(h){return h.timeStamp}function o(h,d){const v=`client${(d||t.scroll)==="x"?"X":"Y"}`;return(E_(h,e)?h:h.touches[0])[v]}function a(h){return r=h,i=h,o(h)}function l(h){const d=o(h)-o(i),m=s(h)-s(r)>170;return i=h,m&&(r=h),d}function c(h){if(!r||!i)return 0;const d=o(i)-o(r),m=s(h)-s(r),v=s(h)-s(i)>170,p=d/m;return m&&!v&&pn(p)>.1?p:0}return{pointerDown:a,pointerMove:l,pointerUp:c,readPoint:o}}function Uk(){function t(n){const{offsetTop:r,offsetLeft:i,offsetWidth:s,offsetHeight:o}=n;return{top:r,right:i+s,bottom:r+o,left:i,width:s,height:o}}return{measure:t}}function Ik(t){function e(r){return t*(r/100)}return{measure:e}}function kk(t,e,n,r,i,s,o){let a,l,c=[],u=!1;function h(p){return i.measureSize(o.measure(p))}function d(p){if(!s)return;l=h(t),c=r.map(h);function g(x){for(const _ of x){const y=_.target===t,w=r.indexOf(_.target),T=y?l:c[w],b=h(y?t:r[w]);if(pn(b-T)>=.5){n.requestAnimationFrame(()=>{p.reInit(),e.emit("resize")});break}}}a=new ResizeObserver(x=>{u||(my(s)||s(p,x))&&g(x)}),[t].concat(r).forEach(x=>a.observe(x))}function m(){a&&a.disconnect(),u=!0}return{init:d,destroy:m}}function Fk(t,e,n,r,i){let s=0,o=0,a=r,l=i,c=t.get(),u=0;function h(){const w=n.get()-t.get(),T=!a;let b=0;return T?(s=0,t.set(n),b=w):(s+=w/a,s*=l,c+=s,t.add(s),b=c-u),o=gy(b),u=c,y}function d(){const w=n.get()-e.get();return pn(w)<.001}function m(){return a}function v(){return o}function p(){return s}function g(){return x(r)}function f(){return _(i)}function x(w){return a=w,y}function _(w){return l=w,y}const y={direction:v,duration:m,velocity:p,seek:h,settled:d,useBaseFriction:f,useBaseDuration:g,useFriction:_,useDuration:x};return y}function zk(t,e,n,r,i){const s=i.measure(10),o=i.measure(50),a=Hl(.1,.99);let l=!1;function c(){return!(l||!t.reachedAny(n.get())||!t.reachedAny(e.get()))}function u(m){if(!c())return;const v=t.reachedMin(e.get())?"min":"max",p=pn(t[v]-e.get()),g=n.get()-e.get(),f=a.constrain(p/o);n.subtract(g*f),!m&&pn(g)<s&&(n.set(t.constrain(n.get())),r.useDuration(25).useBaseFriction())}function h(m){l=!m}return{constrain:u,toggleActive:h}}function Bk(t,e,n,r,i){const s=Hl(-e+t,0),o=h(),a=u(),l=d();function c(v,p){return Od(v,p){const{min:g,max:f}=s,x=s.constrain(v),_=!p,y=vy(n,p);return _?f:y||c(g,x)?g:c(f,x)?f:x}).map(v=>parseFloat(v.toFixed(3)))}function d(){if(ev.add(m))}return{loop:u}}function Wk(t){const{max:e,length:n}=t;function r(s){const o=s-e;return n?o/-n:0}return{get:r}}function Gk(t,e,n,r,i){const{startEdge:s,endEdge:o}=t,{groupSlides:a}=i,l=h().map(e.measure),c=d(),u=m();function h(){return a(r).map(p=>Ds(p)[o]-p[0][s]).map(pn)}function d(){return r.map(p=>n[s]-p[s]).map(p=>-pn(p))}function m(){return a(c).map(p=>p[0]).map((p,g)=>p+l[g])}return{snaps:c,snapsAligned:u}}function $k(t,e,n,r,i,s){const{groupSlides:o}=i,{min:a,max:l}=r,c=u();function u(){const d=o(s),m=!t||e==="keepSnaps";return n.length===1?[s]:m?d:d.slice(a,l).map((v,p,g)=>{const f=!p,x=vy(g,p);if(f){const _=Ds(g[0])+1;return nS(_)}if(x){const _=Ef(s)-Ds(g)[0]+1;return nS(_,Ds(g)[0])}return v})}return{slideRegistry:c}}function jk(t,e,n,r,i){const{reachedAny:s,removeOffset:o,constrain:a}=r;function l(v){return v.concat().sort((p,g)=>pn(p)-pn(g))[0]}function c(v){const p=t?o(v):a(v),g=e.map((x,_)=>({diff:u(x-p,0),index:_})).sort((x,_)=>pn(x.diff)-pn(_.diff)),{index:f}=g[0];return{index:f,distance:p}}function u(v,p){const g=[v,v+n,v-n];if(!t)return v;if(!p)return l(g);const f=g.filter(x=>gy(x)===p);return f.length?l(f):Ds(g)-n}function h(v,p){const g=e[v]-i.get(),f=u(g,p);return{index:v,distance:f}}function d(v,p){const g=i.get()+v,{index:f,distance:x}=c(g),_=!t&&s(g);if(!p||_)return{index:f,distance:v};const y=e[f]-x,w=v+u(y,0);return{index:f,distance:w}}return{byDistance:d,byIndex:h,shortcut:u}}function Xk(t,e,n,r,i,s,o){function a(h){const d=h.distance,m=h.index!==e.get();s.add(d),d&&(r.duration()?t.start():(t.update(),t.render(1),t.update())),m&&(n.set(e.get()),e.set(h.index),o.emit("select"))}function l(h,d){const m=i.byDistance(h,d);a(m)}function c(h,d){const m=e.clone().set(h),v=i.byIndex(m.get(),d);a(v)}return{distance:l,index:c}}function Yk(t,e,n,r,i,s,o){let a=0;function l(){s.add(document,"keydown",c,!1),e.forEach(u)}function c(d){d.code==="Tab"&&(a=new Date().getTime())}function u(d){const m=()=>{if(new Date().getTime()-a>10)return;t.scrollLeft=0;const g=e.indexOf(d),f=n.findIndex(x=>x.includes(g));py(f)&&(i.useDuration(0),r.index(f,0),o.emit("slideFocus"))};s.add(d,"focus",m,{passive:!0,capture:!0})}return{init:l}}function dp(t){let e=t;function n(){return e}function r(l){e=o(l)}function i(l){e+=o(l)}function s(l){e-=o(l)}function o(l){return py(l)?l:l.get()}return{get:n,set:r,add:i,subtract:s}}function nA(t,e){const n=t.scroll==="x"?s:o,r=e.style;let i=!1;function s(h){return`translate3d(${h}px,0px,0px)`}function o(h){return`translate3d(0px,${h}px,0px)`}function a(h){i||(r.transform=n(t.direction(h)))}function l(h){i=!h}function c(){i||(r.transform="",e.getAttribute("style")||e.removeAttribute("style"))}return{clear:c,to:a,toggleActive:l}}function qk(t,e,n,r,i,s,o,a,l){const u=uf(i),h=uf(i).reverse(),d=f().concat(x());function m(b,E){return b.reduce((M,S)=>M-i[S],E)}function v(b,E){return b.reduce((M,S)=>m(M,E)>0?M.concat([S]):M,[])}function p(b){return s.map((E,M)=>({start:E-r[M]+.5+b,end:E+e-.5+b}))}function g(b,E,M){const S=p(E);return b.map(P=>{const V=M?0:-n,H=M?n:0,G=M?"end":"start",$=S[P][G];return{index:P,loopPoint:$,slideLocation:dp(-1),translate:nA(t,l[P]),target:()=>a.get()>$?V:H}})}function f(){const b=o[0],E=v(h,b);return g(E,n,!1)}function x(){const b=e-o[0]-1,E=v(u,b);return g(E,-n,!0)}function _(){return d.every(({index:b})=>{const E=u.filter(M=>M!==b);return m(E,e){const{target:E,translate:M,slideLocation:S}=b,P=E();P!==S.get()&&(M.to(P),S.set(P))})}function w(){d.forEach(b=>b.translate.clear())}return{canLoop:_,clear:w,loop:y,loopPoints:d}}function Kk(t,e,n){let r,i=!1;function s(l){if(!n)return;function c(u){for(const h of u)if(h.type==="childList"){l.reInit(),e.emit("slidesChanged");break}}r=new MutationObserver(u=>{i||(my(n)||n(l,u))&&c(u)}),r.observe(t,{childList:!0})}function o(){r&&r.disconnect(),i=!0}return{init:s,destroy:o}}function Zk(t,e,n,r){const i={};let s=null,o=null,a,l=!1;function c(){a=new IntersectionObserver(v=>{l||(v.forEach(p=>{const g=e.indexOf(p.target);i[g]=p}),s=null,o=null,n.emit("slidesInView"))},{root:t.parentElement,threshold:r}),e.forEach(v=>a.observe(v))}function u(){a&&a.disconnect(),l=!0}function h(v){return df(i).reduce((p,g)=>{const f=parseInt(g),{isIntersecting:x}=i[f];return(v&&x||!v&&!x)&&p.push(f),p},[])}function d(v=!0){if(v&&s)return s;if(!v&&o)return o;const p=h(v);return v&&(s=p),v||(o=p),p}return{init:c,destroy:u,get:d}}function Qk(t,e,n,r,i,s){const{measureSize:o,startEdge:a,endEdge:l}=t,c=n[0]&&i,u=v(),h=p(),d=n.map(o),m=g();function v(){if(!c)return 0;const x=n[0];return pn(e[a]-x[a])}function p(){if(!c)return 0;const x=s.getComputedStyle(Ds(r));return parseFloat(x.getPropertyValue(`margin-${l}`))}function g(){return n.map((x,_,y)=>{const w=!_,T=vy(y,_);return w?d[_]+u:T?d[_]+h:y[_+1][a]-x[a]}).map(pn)}return{slideSizes:d,slideSizesWithGaps:m,startGap:u,endGap:h}}function Jk(t,e,n,r,i,s,o,a,l){const{startEdge:c,endEdge:u,direction:h}=t,d=py(n);function m(f,x){return uf(f).filter(_=>_%x===0).map(_=>f.slice(_,_+x))}function v(f){return f.length?uf(f).reduce((x,_,y)=>{const w=Ds(x)||0,T=w===0,b=_===Ef(f),E=i[c]-s[w][c],M=i[c]-s[_][u],S=!r&&T?h(o):0,P=!r&&b?h(a):0,V=pn(M-P-(E+S));return y&&V>e+l&&x.push(_),b&&x.push(f.length),x},[]).map((x,_,y)=>{const w=Math.max(y[_-1]||0);return f.slice(w,x)}):[]}function p(f){return d?m(f,n):v(f)}return{groupSlides:p}}function eF(t,e,n,r,i,s,o){const{align:a,axis:l,direction:c,startIndex:u,loop:h,duration:d,dragFree:m,dragThreshold:v,inViewThreshold:p,slidesToScroll:g,skipSnaps:f,containScroll:x,watchResize:_,watchSlides:y,watchDrag:w}=s,T=2,b=Uk(),E=b.measure(e),M=n.map(b.measure),S=Lk(l,c),P=S.measureSize(E),V=Ik(P),H=Pk(a,P),G=!h&&!!x,$=h||!!x,{slideSizes:F,slideSizesWithGaps:W,startGap:A,endGap:X}=Qk(S,E,M,n,$,i),q=Jk(S,P,g,h,E,M,A,X,T),{snaps:K,snapsAligned:oe}=Gk(S,H,E,M,q),Ce=-Ds(K)+Ds(W),{snapsContained:Q,scrollContainLimit:le}=Bk(P,Ce,oe,x,T),ye=G?Q:oe,{limit:ge}=Vk(Ce,ye,h),he=tA(Ef(ye),u,h),He=he.clone(),Se=uf(n),k=({dragHandler:Ee,scrollBody:Je,scrollBounds:Ae,options:{loop:Ue}})=>{Ue||Ae.constrain(Ee.pointerDown()),Je.seek()},z=({scrollBody:Ee,translate:Je,location:Ae,offsetLocation:Ue,scrollLooper:Fe,slideLooper:Qe,dragHandler:Ve,animation:st,eventHandler:ot,options:{loop:zt}},B)=>{const Le=Ee.velocity(),ce=Ee.settled();ce&&!Ve.pointerDown()&&(st.stop(),ot.emit("settle")),ce||ot.emit("scroll"),Ue.set(Ae.get()-Le+Le*B),zt&&(Fe.loop(Ee.direction()),Qe.loop()),Je.to(Ue.get())},Y=Dk(r,i,()=>k(ve),Ee=>z(ve,Ee)),be=.68,de=ye[he.get()],Ne=dp(de),Be=dp(de),Me=dp(de),Oe=Fk(Ne,Be,Me,d,be),O=jk(h,ye,Ce,ge,Me),R=Xk(Y,he,He,Oe,O,Me,o),ne=Wk(ge),pe=ff(),fe=Zk(e,n,o,p),{slideRegistry:te}=$k(G,x,ye,le,q,Se),Pe=Yk(t,n,te,R,Oe,pe,o),ve={ownerDocument:r,ownerWindow:i,eventHandler:o,containerRect:E,slideRects:M,animation:Y,axis:S,dragHandler:Nk(S,t,r,i,Me,Ok(S,i),Ne,Y,R,Oe,O,he,o,V,m,v,f,be,w),eventStore:pe,percentOfView:V,index:he,indexPrevious:He,limit:ge,location:Ne,offsetLocation:Be,options:s,resizeHandler:kk(e,o,i,n,S,_,b),scrollBody:Oe,scrollBounds:zk(ge,Be,Me,Oe,V),scrollLooper:Hk(Ce,ge,Be,[Ne,Be,Me]),scrollProgress:ne,scrollSnapList:ye.map(ne.get),scrollSnaps:ye,scrollTarget:O,scrollTo:R,slideLooper:qk(S,P,Ce,F,W,K,ye,Be,n),slideFocus:Pe,slidesHandler:Kk(e,o,y),slidesInView:fe,slideIndexes:Se,slideRegistry:te,slidesToScroll:q,target:Me,translate:nA(S,e)};return ve}function tF(){let t={},e;function n(c){e=c}function r(c){return t[c]||[]}function i(c){return r(c).forEach(u=>u(e,c)),l}function s(c,u){return t[c]=r(c).concat([u]),l}function o(c,u){return t[c]=r(c).filter(h=>h!==u),l}function a(){t={}}const l={init:n,emit:i,off:o,on:s,clear:a};return l}const nF={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0};function rF(t){function e(s,o){return eA(s,o||{})}function n(s){const o=s.breakpoints||{},a=df(o).filter(l=>t.matchMedia(l).matches).map(l=>o[l]).reduce((l,c)=>e(l,c),{});return e(s,a)}function r(s){return s.map(o=>df(o.breakpoints||{})).reduce((o,a)=>o.concat(a),[]).map(t.matchMedia)}return{mergeOptions:e,optionsAtMedia:n,optionsMediaQueries:r}}function iF(t){let e=[];function n(s,o){return e=o.filter(({options:a})=>t.optionsAtMedia(a).active!==!1),e.forEach(a=>a.init(s,t)),o.reduce((a,l)=>Object.assign(a,{[l.name]:l}),{})}function r(){e=e.filter(s=>s.destroy())}return{init:n,destroy:r}}function Qp(t,e,n){const r=t.ownerDocument,i=r.defaultView,s=rF(i),o=iF(s),a=ff(),l=tF(),{mergeOptions:c,optionsAtMedia:u,optionsMediaQueries:h}=s,{on:d,off:m,emit:v}=l,p=P;let g=!1,f,x=c(nF,Qp.globalOptions),_=c(x),y=[],w,T,b;function E(){const{container:k,slides:z}=_;T=(b_(k)?t.querySelector(k):k)||t.children[0];const be=b_(z)?T.querySelectorAll(z):z;b=[].slice.call(be||T.children)}function M(k){const z=eF(t,T,b,r,i,k,l);if(k.loop&&!z.slideLooper.canLoop()){const Y=Object.assign({},k,{loop:!1});return M(Y)}return z}function S(k,z){g||(x=c(x,k),_=u(x),y=z||y,E(),f=M(_),h([x,...y.map(({options:Y})=>Y)]).forEach(Y=>a.add(Y,"change",P)),_.active&&(f.translate.to(f.location.get()),f.animation.init(),f.slidesInView.init(),f.slideFocus.init(),f.eventHandler.init(Se),f.resizeHandler.init(Se),f.slidesHandler.init(Se),f.options.loop&&f.slideLooper.loop(),T.offsetParent&&b.length&&f.dragHandler.init(Se),w=o.init(Se,y)))}function P(k,z){const Y=K();V(),S(c({startIndex:Y},k),z),l.emit("reInit")}function V(){f.dragHandler.destroy(),f.eventStore.clear(),f.translate.clear(),f.slideLooper.clear(),f.resizeHandler.destroy(),f.slidesHandler.destroy(),f.slidesInView.destroy(),f.animation.destroy(),o.destroy(),a.clear()}function H(){g||(g=!0,a.clear(),V(),l.emit("destroy"),l.clear())}function G(k,z,Y){!_.active||g||(f.scrollBody.useBaseFriction().useDuration(z===!0?0:_.duration),f.scrollTo.index(k,Y||0))}function $(k){const z=f.index.add(1).get();G(z,k,-1)}function F(k){const z=f.index.add(-1).get();G(z,k,1)}function W(){return f.index.add(1).get()!==K()}function A(){return f.index.add(-1).get()!==K()}function X(){return f.scrollSnapList}function q(){return f.scrollProgress.get(f.location.get())}function K(){return f.index.get()}function oe(){return f.indexPrevious.get()}function Ce(){return f.slidesInView.get()}function Q(){return f.slidesInView.get(!1)}function le(){return w}function ye(){return f}function ge(){return t}function he(){return T}function He(){return b}const Se={canScrollNext:W,canScrollPrev:A,containerNode:he,internalEngine:ye,destroy:H,off:m,on:d,emit:v,plugins:le,previousScrollSnap:oe,reInit:p,rootNode:ge,scrollNext:$,scrollPrev:F,scrollProgress:q,scrollSnapList:X,scrollTo:G,selectedScrollSnap:K,slideNodes:He,slidesInView:Ce,slidesNotInView:Q};return S(e,n),setTimeout(()=>l.emit("init"),0),Se}Qp.globalOptions=void 0;function _y(t={},e=[]){const n=U.useRef(t),r=U.useRef(e),[i,s]=U.useState(),[o,a]=U.useState(),l=U.useCallback(()=>{i&&i.reInit(n.current,r.current)},[i]);return U.useEffect(()=>{if(Ck()&&o){Qp.globalOptions=_y.globalOptions;const c=Qp(o,n.current,r.current);return s(c),()=>c.destroy()}else s(void 0)},[o,s]),U.useEffect(()=>{hy(n.current,t)||(n.current=t,l())},[t,l]),U.useEffect(()=>{Ak(r.current,e)||(r.current=e,l())},[e,l]),[a,i]}_y.globalOptions=void 0;const sF=Object.values(vt.items);function oF({pastIds:t,currentIds:e,focusId:n,onSelect:r}){const[i,s]=_y({dragFree:!0}),o=()=>{s&&s.scrollPrev()},a=()=>{s&&s.scrollNext()};return U.useEffect(()=>{const l=sF.findIndex(c=>e.includes(c.id));s&&l!==-1&&s.scrollTo(l)},[e,s]),I.jsxs("div",{className:"embla relative overflow-hidden p-2.5",ref:i,children:[I.jsx("div",{className:"embla__container flex gap-2.5 mx-[80px]",children:vt.map.items.map(l=>{var c;return I.jsxs("button",{className:Ri("embla__slide shrink-0 grow-0 min-w-0 px-2.5 py-2 leading-none font-medium text-[#D9D9D9] bg-gray-600 rounded-md flex gap-1 items-center shadow-md cursor-pointer select-none",{"bg-[red]":e.includes(l.id),"bg-transparent border-2 border-solid border-[red]":t.includes(l.id)}),onClick:()=>{r==null||r(l.id)},children:[!e.includes(l.id)&&!t.includes(l.id)&&I.jsx("span",{children:Tn((c=vt.items[l.id])==null?void 0:c.date).format("MM/DD")}),e.includes(l.id)&&I.jsx(On,{name:"location"}),l.name]},l.id)})}),I.jsx("button",{className:"absolute top-0 left-0 text-white w-[90px] h-full p-2 bg-gradient-to-l from-[transparent] to-black pl-6",onClick:o,children:I.jsx(On,{name:"right",className:"scale-x-[-1]"})}),I.jsx("button",{className:"absolute top-0 right-0 text-white w-[90px] h-full p-2 bg-gradient-to-r from-[transparent] to-black pr-6",onClick:a,children:I.jsx(On,{name:"right",className:"ml-auto"})})]})}const aF=U.forwardRef((t,e)=>{const{ratio:n=1,style:r,...i}=t;return U.createElement("div",{style:{position:"relative",width:"100%",paddingBottom:`${100/n}%`},"data-radix-aspect-ratio-wrapper":""},U.createElement(Io.div,Un({},i,{ref:e,style:{...r,position:"absolute",top:0,right:0,bottom:0,left:0}})))}),lF=aF;/**
* @license
* Copyright 2010-2024 Three.js Authors
* SPDX-License-Identifier: MIT
*/const xy="165",cF=0,rS=1,uF=2,rA=1,dF=2,mo=3,Oa=0,hi=1,wo=2,Aa=0,nu=1,iS=2,sS=3,oS=4,fF=5,pl=100,hF=101,pF=102,mF=103,gF=104,vF=200,_F=201,xF=202,yF=203,M_=204,T_=205,wF=206,SF=207,bF=208,EF=209,MF=210,TF=211,CF=212,AF=213,RF=214,PF=0,DF=1,LF=2,Jp=3,NF=4,OF=5,UF=6,IF=7,iA=0,kF=1,FF=2,Ra=0,zF=1,BF=2,VF=3,HF=4,WF=5,GF=6,$F=7,sA=300,xu=301,yu=302,C_=303,A_=304,Ym=306,R_=1e3,wl=1001,P_=1002,ts=1003,jF=1004,Sh=1005,Ts=1006,ug=1007,Sl=1008,Ua=1009,XF=1010,YF=1011,em=1012,oA=1013,wu=1014,ga=1015,qm=1016,aA=1017,lA=1018,Su=1020,qF=35902,KF=1021,ZF=1022,Ks=1023,QF=1024,JF=1025,ru=1026,bu=1027,e5=1028,cA=1029,t5=1030,uA=1031,dA=1033,dg=33776,fg=33777,hg=33778,pg=33779,aS=35840,lS=35841,cS=35842,uS=35843,dS=36196,fS=37492,hS=37496,pS=37808,mS=37809,gS=37810,vS=37811,_S=37812,xS=37813,yS=37814,wS=37815,SS=37816,bS=37817,ES=37818,MS=37819,TS=37820,CS=37821,mg=36492,AS=36494,RS=36495,n5=36283,PS=36284,DS=36285,LS=36286,r5=3200,i5=3201,s5=0,o5=1,ca="",Vs="srgb",Ha="srgb-linear",yy="display-p3",Km="display-p3-linear",tm="linear",an="srgb",nm="rec709",rm="p3",uc=7680,NS=519,a5=512,l5=513,c5=514,fA=515,u5=516,d5=517,f5=518,h5=519,OS=35044,US="300 es",Eo=2e3,im=2001;class Uu{addEventListener(e,n){this._listeners===void 0&&(this._listeners={});const r=this._listeners;r[e]===void 0&&(r[e]=[]),r[e].indexOf(n)===-1&&r[e].push(n)}hasEventListener(e,n){if(this._listeners===void 0)return!1;const r=this._listeners;return r[e]!==void 0&&r[e].indexOf(n)!==-1}removeEventListener(e,n){if(this._listeners===void 0)return;const i=this._listeners[e];if(i!==void 0){const s=i.indexOf(n);s!==-1&&i.splice(s,1)}}dispatchEvent(e){if(this._listeners===void 0)return;const r=this._listeners[e.type];if(r!==void 0){e.target=this;const i=r.slice(0);for(let s=0,o=i.length;s>8&255]+Cr[t>>16&255]+Cr[t>>24&255]+"-"+Cr[e&255]+Cr[e>>8&255]+"-"+Cr[e>>16&15|64]+Cr[e>>24&255]+"-"+Cr[n&63|128]+Cr[n>>8&255]+"-"+Cr[n>>16&255]+Cr[n>>24&255]+Cr[r&255]+Cr[r>>8&255]+Cr[r>>16&255]+Cr[r>>24&255]).toLowerCase()}function ni(t,e,n){return Math.max(e,Math.min(n,t))}function p5(t,e){return(t%e+e)%e}function vg(t,e,n){return(1-n)*t+n*e}function ad(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 ei(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.")}}class Wt{constructor(e=0,n=0){Wt.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,r=this.y,i=e.elements;return this.x=i[0]*n+i[3]*r+i[6],this.y=i[1]*n+i[4]*r+i[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 r=this.length();return this.divideScalar(r||1).multiplyScalar(Math.max(e,Math.min(n,r)))}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=Math.trunc(this.x),this.y=Math.trunc(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 r=this.dot(e)/n;return Math.acos(ni(r,-1,1))}distanceTo(e){return Math.sqrt(this.distanceToSquared(e))}distanceToSquared(e){const n=this.x-e.x,r=this.y-e.y;return n*n+r*r}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,r){return this.x=e.x+(n.x-e.x)*r,this.y=e.y+(n.y-e.y)*r,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 r=Math.cos(n),i=Math.sin(n),s=this.x-e.x,o=this.y-e.y;return this.x=s*r-o*i+e.x,this.y=s*i+o*r+e.y,this}random(){return this.x=Math.random(),this.y=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y}}class Mt{constructor(e,n,r,i,s,o,a,l,c){Mt.prototype.isMatrix3=!0,this.elements=[1,0,0,0,1,0,0,0,1],e!==void 0&&this.set(e,n,r,i,s,o,a,l,c)}set(e,n,r,i,s,o,a,l,c){const u=this.elements;return u[0]=e,u[1]=i,u[2]=a,u[3]=n,u[4]=s,u[5]=l,u[6]=r,u[7]=o,u[8]=c,this}identity(){return this.set(1,0,0,0,1,0,0,0,1),this}copy(e){const n=this.elements,r=e.elements;return n[0]=r[0],n[1]=r[1],n[2]=r[2],n[3]=r[3],n[4]=r[4],n[5]=r[5],n[6]=r[6],n[7]=r[7],n[8]=r[8],this}extractBasis(e,n,r){return e.setFromMatrix3Column(this,0),n.setFromMatrix3Column(this,1),r.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 r=e.elements,i=n.elements,s=this.elements,o=r[0],a=r[3],l=r[6],c=r[1],u=r[4],h=r[7],d=r[2],m=r[5],v=r[8],p=i[0],g=i[3],f=i[6],x=i[1],_=i[4],y=i[7],w=i[2],T=i[5],b=i[8];return s[0]=o*p+a*x+l*w,s[3]=o*g+a*_+l*T,s[6]=o*f+a*y+l*b,s[1]=c*p+u*x+h*w,s[4]=c*g+u*_+h*T,s[7]=c*f+u*y+h*b,s[2]=d*p+m*x+v*w,s[5]=d*g+m*_+v*T,s[8]=d*f+m*y+v*b,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],r=e[1],i=e[2],s=e[3],o=e[4],a=e[5],l=e[6],c=e[7],u=e[8];return n*o*u-n*a*c-r*s*u+r*a*l+i*s*c-i*o*l}invert(){const e=this.elements,n=e[0],r=e[1],i=e[2],s=e[3],o=e[4],a=e[5],l=e[6],c=e[7],u=e[8],h=u*o-a*c,d=a*l-u*s,m=c*s-o*l,v=n*h+r*d+i*m;if(v===0)return this.set(0,0,0,0,0,0,0,0,0);const p=1/v;return e[0]=h*p,e[1]=(i*c-u*r)*p,e[2]=(a*r-i*o)*p,e[3]=d*p,e[4]=(u*n-i*l)*p,e[5]=(i*s-a*n)*p,e[6]=m*p,e[7]=(r*l-c*n)*p,e[8]=(o*n-r*s)*p,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,r,i,s,o,a){const l=Math.cos(s),c=Math.sin(s);return this.set(r*l,r*c,-r*(l*o+c*a)+o+e,-i*c,i*l,-i*(-c*o+l*a)+a+n,0,0,1),this}scale(e,n){return this.premultiply(_g.makeScale(e,n)),this}rotate(e){return this.premultiply(_g.makeRotation(-e)),this}translate(e,n){return this.premultiply(_g.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),r=Math.sin(e);return this.set(n,-r,0,r,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,r=e.elements;for(let i=0;i<9;i++)if(n[i]!==r[i])return!1;return!0}fromArray(e,n=0){for(let r=0;r=0;--e)if(t[e]>=65535)return!0;return!1}function sm(t){return document.createElementNS("http://www.w3.org/1999/xhtml",t)}function m5(){const t=sm("canvas");return t.style.display="block",t}const IS={};function pA(t){t in IS||(IS[t]=!0,console.warn(t))}function g5(t,e,n){return new Promise(function(r,i){function s(){switch(t.clientWaitSync(e,t.SYNC_FLUSH_COMMANDS_BIT,0)){case t.WAIT_FAILED:i();break;case t.TIMEOUT_EXPIRED:setTimeout(s,n);break;default:r()}}setTimeout(s,n)})}const kS=new Mt().set(.8224621,.177538,0,.0331941,.9668058,0,.0170827,.0723974,.9105199),FS=new Mt().set(1.2249401,-.2249404,0,-.0420569,1.0420571,0,-.0196376,-.0786361,1.0982735),bh={[Ha]:{transfer:tm,primaries:nm,toReference:t=>t,fromReference:t=>t},[Vs]:{transfer:an,primaries:nm,toReference:t=>t.convertSRGBToLinear(),fromReference:t=>t.convertLinearToSRGB()},[Km]:{transfer:tm,primaries:rm,toReference:t=>t.applyMatrix3(FS),fromReference:t=>t.applyMatrix3(kS)},[yy]:{transfer:an,primaries:rm,toReference:t=>t.convertSRGBToLinear().applyMatrix3(FS),fromReference:t=>t.applyMatrix3(kS).convertLinearToSRGB()}},v5=new Set([Ha,Km]),jt={enabled:!0,_workingColorSpace:Ha,get workingColorSpace(){return this._workingColorSpace},set workingColorSpace(t){if(!v5.has(t))throw new Error(`Unsupported working color space, "${t}".`);this._workingColorSpace=t},convert:function(t,e,n){if(this.enabled===!1||e===n||!e||!n)return t;const r=bh[e].toReference,i=bh[n].fromReference;return i(r(t))},fromWorkingColorSpace:function(t,e){return this.convert(t,this._workingColorSpace,e)},toWorkingColorSpace:function(t,e){return this.convert(t,e,this._workingColorSpace)},getPrimaries:function(t){return bh[t].primaries},getTransfer:function(t){return t===ca?tm:bh[t].transfer}};function iu(t){return t<.04045?t*.0773993808:Math.pow(t*.9478672986+.0521327014,2.4)}function xg(t){return t"u")return e.src;let n;if(e instanceof HTMLCanvasElement)n=e;else{dc===void 0&&(dc=sm("canvas")),dc.width=e.width,dc.height=e.height;const r=dc.getContext("2d");e instanceof ImageData?r.putImageData(e,0,0):r.drawImage(e,0,0,e.width,e.height),n=dc}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=sm("canvas");n.width=e.width,n.height=e.height;const r=n.getContext("2d");r.drawImage(e,0,0,e.width,e.height);const i=r.getImageData(0,0,e.width,e.height),s=i.data;for(let o=0;o<s.length;o++)s[o]=iu(s[o]/255)*255;return r.putImageData(i,0,0),n}else if(e.data){const n=e.data.slice(0);for(let r=0;r<n.length;r++)n instanceof Uint8Array||n instanceof Uint8ClampedArray?n[r]=Math.floor(iu(n[r]/255)*255):n[r]=iu(n[r]);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 x5=0;class mA{constructor(e=null){this.isSource=!0,Object.defineProperty(this,"id",{value:x5++}),this.uuid=Mf(),this.data=e,this.dataReady=!0,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 r={uuid:this.uuid,url:""},i=this.data;if(i!==null){let s;if(Array.isArray(i)){s=[];for(let o=0,a=i.length;o<a;o++)i[o].isDataTexture?s.push(yg(i[o].image)):s.push(yg(i[o]))}else s=yg(i);r.url=s}return n||(e.images[this.uuid]=r),r}}function yg(t){return typeof HTMLImageElement<"u"&&t instanceof HTMLImageElement||typeof HTMLCanvasElement<"u"&&t instanceof HTMLCanvasElement||typeof ImageBitmap0&&(r.userData=this.userData),n||(e.textures[this.uuid]=r),r}dispose(){this.dispatchEvent({type:"dispose"})}transformUv(e){if(this.mapping!==sA)return e;if(e.applyMatrix3(this.matrix),e.x1)switch(this.wrapS){case R_:e.x=e.x-Math.floor(e.x);break;case wl:e.x=e.x<0?0:1;break;case P_: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.y1)switch(this.wrapT){case R_:e.y=e.y-Math.floor(e.y);break;case wl:e.y=e.y<0?0:1;break;case P_: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)}set needsPMREMUpdate(e){e===!0&&this.pmremVersion++}}pi.DEFAULT_IMAGE=null;pi.DEFAULT_MAPPING=sA;pi.DEFAULT_ANISOTROPY=1;class gr{constructor(e=0,n=0,r=0,i=1){gr.prototype.isVector4=!0,this.x=e,this.y=n,this.z=r,this.w=i}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,r,i){return this.x=e,this.y=n,this.z=r,this.w=i,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,r=this.y,i=this.z,s=this.w,o=e.elements;return this.x=o[0]*n+o[4]*r+o[8]*i+o[12]*s,this.y=o[1]*n+o[5]*r+o[9]*i+o[13]*s,this.z=o[2]*n+o[6]*r+o[10]*i+o[14]*s,this.w=o[3]*n+o[7]*r+o[11]*i+o[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,r,i,s;const l=e.elements,c=l[0],u=l[4],h=l[8],d=l[1],m=l[5],v=l[9],p=l[2],g=l[6],f=l[10];if(Math.abs(u-d)<.01&&Math.abs(h-p)<.01&&Math.abs(v-g)<.01){if(Math.abs(u+d)<.1&&Math.abs(h+p)<.1&&Math.abs(v+g)<.1&&Math.abs(c+m+f-3)y&&_>w?_w?y<.01?(r=.707106781,i=0,s=.707106781):(i=Math.sqrt(y),r=T/i,s=E/i):w<.01?(r=.707106781,i=.707106781,s=0):(s=Math.sqrt(w),r=b/s,i=E/s),this.set(r,i,s,n),this}let x=Math.sqrt((g-v)*(g-v)+(h-p)*(h-p)+(d-u)*(d-u));return Math.abs(x)<.001&&(x=1),this.x=(g-v)/x,this.y=(h-p)/x,this.z=(d-u)/x,this.w=Math.acos((c+m+f-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 r=this.length();return this.divideScalar(r||1).multiplyScalar(Math.max(e,Math.min(n,r)))}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=Math.trunc(this.x),this.y=Math.trunc(this.y),this.z=Math.trunc(this.z),this.w=Math.trunc(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,r){return this.x=e.x+(n.x-e.x)*r,this.y=e.y+(n.y-e.y)*r,this.z=e.z+(n.z-e.z)*r,this.w=e.w+(n.w-e.w)*r,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 w5 extends Uu{constructor(e=1,n=1,r={}){super(),this.isRenderTarget=!0,this.width=e,this.height=n,this.depth=1,this.scissor=new gr(0,0,e,n),this.scissorTest=!1,this.viewport=new gr(0,0,e,n);const i={width:e,height:n,depth:1};r=Object.assign({generateMipmaps:!1,internalFormat:null,minFilter:Ts,depthBuffer:!0,stencilBuffer:!1,resolveDepthBuffer:!0,resolveStencilBuffer:!0,depthTexture:null,samples:0,count:1},r);const s=new pi(i,r.mapping,r.wrapS,r.wrapT,r.magFilter,r.minFilter,r.format,r.type,r.anisotropy,r.colorSpace);s.flipY=!1,s.generateMipmaps=r.generateMipmaps,s.internalFormat=r.internalFormat,this.textures=[];const o=r.count;for(let a=0;a<o;a++)this.textures[a]=s.clone(),this.textures[a].isRenderTargetTexture=!0;this.depthBuffer=r.depthBuffer,this.stencilBuffer=r.stencilBuffer,this.resolveDepthBuffer=r.resolveDepthBuffer,this.resolveStencilBuffer=r.resolveStencilBuffer,this.depthTexture=r.depthTexture,this.samples=r.samples}get texture(){return this.textures[0]}set texture(e){this.textures[0]=e}setSize(e,n,r=1){if(this.width!==e||this.height!==n||this.depth!==r){this.width=e,this.height=n,this.depth=r;for(let i=0,s=this.textures.length;i<s;i++)this.textures[i].image.width=e,this.textures[i].image.height=n,this.textures[i].image.depth=r;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.textures.length=0;for(let r=0,i=e.textures.length;r=0?1:-1,_=1-f*f;if(_>Number.EPSILON){const w=Math.sqrt(_),T=Math.atan2(w,f*x);g=Math.sin(g*T)/w,a=Math.sin(a*T)/w}const y=a*x;if(l=l*g+d*y,c=c*g+m*y,u=u*g+v*y,h=h*g+p*y,g===1-a){const w=1/Math.sqrt(l*l+c*c+u*u+h*h);l*=w,c*=w,u*=w,h*=w}}e[n]=l,e[n+1]=c,e[n+2]=u,e[n+3]=h}static multiplyQuaternionsFlat(e,n,r,i,s,o){const a=r[i],l=r[i+1],c=r[i+2],u=r[i+3],h=s[o],d=s[o+1],m=s[o+2],v=s[o+3];return e[n]=a*v+u*h+l*m-c*d,e[n+1]=l*v+u*d+c*h-a*m,e[n+2]=c*v+u*m+a*d-l*h,e[n+3]=u*v-a*h-l*d-c*m,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,r,i){return this._x=e,this._y=n,this._z=r,this._w=i,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=!0){const r=e._x,i=e._y,s=e._z,o=e._order,a=Math.cos,l=Math.sin,c=a(r/2),u=a(i/2),h=a(s/2),d=l(r/2),m=l(i/2),v=l(s/2);switch(o){case"XYZ":this._x=d*u*h+c*m*v,this._y=c*m*h-d*u*v,this._z=c*u*v+d*m*h,this._w=c*u*h-d*m*v;break;case"YXZ":this._x=d*u*h+c*m*v,this._y=c*m*h-d*u*v,this._z=c*u*v-d*m*h,this._w=c*u*h+d*m*v;break;case"ZXY":this._x=d*u*h-c*m*v,this._y=c*m*h+d*u*v,this._z=c*u*v+d*m*h,this._w=c*u*h-d*m*v;break;case"ZYX":this._x=d*u*h-c*m*v,this._y=c*m*h+d*u*v,this._z=c*u*v-d*m*h,this._w=c*u*h+d*m*v;break;case"YZX":this._x=d*u*h+c*m*v,this._y=c*m*h+d*u*v,this._z=c*u*v-d*m*h,this._w=c*u*h-d*m*v;break;case"XZY":this._x=d*u*h-c*m*v,this._y=c*m*h-d*u*v,this._z=c*u*v+d*m*h,this._w=c*u*h+d*m*v;break;default:console.warn("THREE.Quaternion: .setFromEuler() encountered an unknown order: "+o)}return n===!0&&this._onChangeCallback(),this}setFromAxisAngle(e,n){const r=n/2,i=Math.sin(r);return this._x=e.x*i,this._y=e.y*i,this._z=e.z*i,this._w=Math.cos(r),this._onChangeCallback(),this}setFromRotationMatrix(e){const n=e.elements,r=n[0],i=n[4],s=n[8],o=n[1],a=n[5],l=n[9],c=n[2],u=n[6],h=n[10],d=r+a+h;if(d>0){const m=.5/Math.sqrt(d+1);this._w=.25/m,this._x=(u-l)*m,this._y=(s-c)*m,this._z=(o-i)*m}else if(r>a&&r>h){const m=2*Math.sqrt(1+r-a-h);this._w=(u-l)/m,this._x=.25*m,this._y=(i+o)/m,this._z=(s+c)/m}else if(a>h){const m=2*Math.sqrt(1+a-r-h);this._w=(s-c)/m,this._x=(i+o)/m,this._y=.25*m,this._z=(l+u)/m}else{const m=2*Math.sqrt(1+h-r-a);this._w=(o-i)/m,this._x=(s+c)/m,this._y=(l+u)/m,this._z=.25*m}return this._onChangeCallback(),this}setFromUnitVectors(e,n){let r=e.dot(n)+1;return rMath.abs(e.z)?(this._x=-e.y,this._y=e.x,this._z=0,this._w=r):(this._x=0,this._y=-e.z,this._z=e.y,this._w=r)):(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=r),this.normalize()}angleTo(e){return 2*Math.acos(Math.abs(ni(this.dot(e),-1,1)))}rotateTowards(e,n){const r=this.angleTo(e);if(r===0)return this;const i=Math.min(1,n/r);return this.slerp(e,i),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 r=e._x,i=e._y,s=e._z,o=e._w,a=n._x,l=n._y,c=n._z,u=n._w;return this._x=r*u+o*a+i*c-s*l,this._y=i*u+o*l+s*a-r*c,this._z=s*u+o*c+r*l-i*a,this._w=o*u-r*a-i*l-s*c,this._onChangeCallback(),this}slerp(e,n){if(n===0)return this;if(n===1)return this.copy(e);const r=this._x,i=this._y,s=this._z,o=this._w;let a=o*e._w+r*e._x+i*e._y+s*e._z;if(a=1)return this._w=o,this._x=r,this._y=i,this._z=s,this;const l=1-a*a;if(l<=Number.EPSILON){const m=1-n;return this._w=m*o+n*this._w,this._x=m*r+n*this._x,this._y=m*i+n*this._y,this._z=m*s+n*this._z,this.normalize(),this}const c=Math.sqrt(l),u=Math.atan2(c,a),h=Math.sin((1-n)*u)/c,d=Math.sin(n*u)/c;return this._w=o*h+this._w*d,this._x=r*h+this._x*d,this._y=i*h+this._y*d,this._z=s*h+this._z*d,this._onChangeCallback(),this}slerpQuaternions(e,n,r){return this.copy(e).slerp(n,r)}random(){const e=2*Math.PI*Math.random(),n=2*Math.PI*Math.random(),r=Math.random(),i=Math.sqrt(1-r),s=Math.sqrt(r);return this.set(i*Math.sin(e),i*Math.cos(e),s*Math.sin(n),s*Math.cos(n))}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._onChangeCallback(),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 me{constructor(e=0,n=0,r=0){me.prototype.isVector3=!0,this.x=e,this.y=n,this.z=r}set(e,n,r){return r===void 0&&(r=this.z),this.x=e,this.y=n,this.z=r,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(zS.setFromEuler(e))}applyAxisAngle(e,n){return this.applyQuaternion(zS.setFromAxisAngle(e,n))}applyMatrix3(e){const n=this.x,r=this.y,i=this.z,s=e.elements;return this.x=s[0]*n+s[3]*r+s[6]*i,this.y=s[1]*n+s[4]*r+s[7]*i,this.z=s[2]*n+s[5]*r+s[8]*i,this}applyNormalMatrix(e){return this.applyMatrix3(e).normalize()}applyMatrix4(e){const n=this.x,r=this.y,i=this.z,s=e.elements,o=1/(s[3]*n+s[7]*r+s[11]*i+s[15]);return this.x=(s[0]*n+s[4]*r+s[8]*i+s[12])*o,this.y=(s[1]*n+s[5]*r+s[9]*i+s[13])*o,this.z=(s[2]*n+s[6]*r+s[10]*i+s[14])*o,this}applyQuaternion(e){const n=this.x,r=this.y,i=this.z,s=e.x,o=e.y,a=e.z,l=e.w,c=2*(o*i-a*r),u=2*(a*n-s*i),h=2*(s*r-o*n);return this.x=n+l*c+o*h-a*u,this.y=r+l*u+a*c-s*h,this.z=i+l*h+s*u-o*c,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,r=this.y,i=this.z,s=e.elements;return this.x=s[0]*n+s[4]*r+s[8]*i,this.y=s[1]*n+s[5]*r+s[9]*i,this.z=s[2]*n+s[6]*r+s[10]*i,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 r=this.length();return this.divideScalar(r||1).multiplyScalar(Math.max(e,Math.min(n,r)))}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=Math.trunc(this.x),this.y=Math.trunc(this.y),this.z=Math.trunc(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,r){return this.x=e.x+(n.x-e.x)*r,this.y=e.y+(n.y-e.y)*r,this.z=e.z+(n.z-e.z)*r,this}cross(e){return this.crossVectors(this,e)}crossVectors(e,n){const r=e.x,i=e.y,s=e.z,o=n.x,a=n.y,l=n.z;return this.x=i*l-s*a,this.y=s*o-r*l,this.z=r*a-i*o,this}projectOnVector(e){const n=e.lengthSq();if(n===0)return this.set(0,0,0);const r=e.dot(this)/n;return this.copy(e).multiplyScalar(r)}projectOnPlane(e){return wg.copy(this).projectOnVector(e),this.sub(wg)}reflect(e){return this.sub(wg.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 r=this.dot(e)/n;return Math.acos(ni(r,-1,1))}distanceTo(e){return Math.sqrt(this.distanceToSquared(e))}distanceToSquared(e){const n=this.x-e.x,r=this.y-e.y,i=this.z-e.z;return n*n+r*r+i*i}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,r){const i=Math.sin(n)*e;return this.x=i*Math.sin(r),this.y=Math.cos(n)*e,this.z=i*Math.cos(r),this}setFromCylindrical(e){return this.setFromCylindricalCoords(e.radius,e.theta,e.y)}setFromCylindricalCoords(e,n,r){return this.x=e*Math.sin(n),this.y=r,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(),r=this.setFromMatrixColumn(e,1).length(),i=this.setFromMatrixColumn(e,2).length();return this.x=n,this.y=r,this.z=i,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()*Math.PI*2,n=Math.random()*2-1,r=Math.sqrt(1-n*n);return this.x=r*Math.cos(e),this.y=n,this.z=r*Math.sin(e),this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z}}const wg=new me,zS=new Tf;class Cf{constructor(e=new me(1/0,1/0,1/0),n=new me(-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,r=e.length;n<r;n+=3)this.expandByPoint(vs.fromArray(e,n));return this}setFromBufferAttribute(e){this.makeEmpty();for(let n=0,r=e.count;n<r;n++)this.expandByPoint(vs.fromBufferAttribute(e,n));return this}setFromPoints(e){this.makeEmpty();for(let n=0,r=e.length;n<r;n++)this.expandByPoint(e[n]);return this}setFromCenterAndSize(e,n){const r=vs.copy(n).multiplyScalar(.5);return this.min.copy(e).sub(r),this.max.copy(e).add(r),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){e.updateWorldMatrix(!1,!1);const r=e.geometry;if(r!==void 0){const s=r.getAttribute("position");if(n===!0&&s!==void 0&&e.isInstancedMesh!==!0)for(let o=0,a=s.count;o<a;o++)e.isMesh===!0?e.getVertexPosition(o,vs):vs.fromBufferAttribute(s,o),vs.applyMatrix4(e.matrixWorld),this.expandByPoint(vs);else e.boundingBox!==void 0?(e.boundingBox===null&&e.computeBoundingBox(),Eh.copy(e.boundingBox)):(r.boundingBox===null&&r.computeBoundingBox(),Eh.copy(r.boundingBox)),Eh.applyMatrix4(e.matrixWorld),this.union(Eh)}const i=e.children;for(let s=0,o=i.length;s<o;s++)this.expandByObject(i[s],n);return this}containsPoint(e){return!(e.xthis.max.x||e.ythis.max.y||e.zthis.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.xthis.max.x||e.max.ythis.max.y||e.max.zthis.max.z)}intersectsSphere(e){return this.clampPoint(e.center,vs),vs.distanceToSquared(e.center)0?(n=e.normal.x*this.min.x,r=e.normal.x*this.max.x):(n=e.normal.x*this.max.x,r=e.normal.x*this.min.x),e.normal.y>0?(n+=e.normal.y*this.min.y,r+=e.normal.y*this.max.y):(n+=e.normal.y*this.max.y,r+=e.normal.y*this.min.y),e.normal.z>0?(n+=e.normal.z*this.min.z,r+=e.normal.z*this.max.z):(n+=e.normal.z*this.max.z,r+=e.normal.z*this.min.z),n=-e.constant}intersectsTriangle(e){if(this.isEmpty())return!1;this.getCenter(ld),Mh.subVectors(this.max,ld),fc.subVectors(e.a,ld),hc.subVectors(e.b,ld),pc.subVectors(e.c,ld),Qo.subVectors(hc,fc),Jo.subVectors(pc,hc),nl.subVectors(fc,pc);let n=[0,-Qo.z,Qo.y,0,-Jo.z,Jo.y,0,-nl.z,nl.y,Qo.z,0,-Qo.x,Jo.z,0,-Jo.x,nl.z,0,-nl.x,-Qo.y,Qo.x,0,-Jo.y,Jo.x,0,-nl.y,nl.x,0];return!Sg(n,fc,hc,pc,Mh)||(n=[1,0,0,0,1,0,0,0,1],!Sg(n,fc,hc,pc,Mh))?!1:(Th.crossVectors(Qo,Jo),n=[Th.x,Th.y,Th.z],Sg(n,fc,hc,pc,Mh))}clampPoint(e,n){return n.copy(e).clamp(this.min,this.max)}distanceToPoint(e){return this.clampPoint(e,vs).distanceTo(e)}getBoundingSphere(e){return this.isEmpty()?e.makeEmpty():(this.getCenter(e.center),e.radius=this.getSize(vs).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:(co[0].set(this.min.x,this.min.y,this.min.z).applyMatrix4(e),co[1].set(this.min.x,this.min.y,this.max.z).applyMatrix4(e),co[2].set(this.min.x,this.max.y,this.min.z).applyMatrix4(e),co[3].set(this.min.x,this.max.y,this.max.z).applyMatrix4(e),co[4].set(this.max.x,this.min.y,this.min.z).applyMatrix4(e),co[5].set(this.max.x,this.min.y,this.max.z).applyMatrix4(e),co[6].set(this.max.x,this.max.y,this.min.z).applyMatrix4(e),co[7].set(this.max.x,this.max.y,this.max.z).applyMatrix4(e),this.setFromPoints(co),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 co=[new me,new me,new me,new me,new me,new me,new me,new me],vs=new me,Eh=new Cf,fc=new me,hc=new me,pc=new me,Qo=new me,Jo=new me,nl=new me,ld=new me,Mh=new me,Th=new me,rl=new me;function Sg(t,e,n,r,i){for(let s=0,o=t.length-3;sa)return!1}return!0}const b5=new Cf,cd=new me,bg=new me;class wy{constructor(e=new me,n=-1){this.isSphere=!0,this.center=e,this.radius=n}set(e,n){return this.center.copy(e),this.radius=n,this}setFromPoints(e,n){const r=this.center;n!==void 0?r.copy(n):b5.setFromPoints(e).getCenter(r);let i=0;for(let s=0,o=e.length;s<o;s++)i=Math.max(i,r.distanceToSquared(e[s]));return this.radius=Math.sqrt(i),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*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;cd.subVectors(e,this.center);const n=cd.lengthSq();if(n>this.radius*this.radius){const r=Math.sqrt(n),i=(r-this.radius)*.5;this.center.addScaledVector(cd,i/r),this.radius+=i}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):(bg.subVectors(e.center,this.center).setLength(e.radius),this.expandByPoint(cd.copy(e.center).add(bg)),this.expandByPoint(cd.copy(e.center).sub(bg))),this)}equals(e){return e.center.equals(this.center)&&e.radius===this.radius}clone(){return new this.constructor().copy(this)}}const uo=new me,Eg=new me,Ch=new me,ea=new me,Mg=new me,Ah=new me,Tg=new me;class E5{constructor(e=new me,n=new me(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,uo)),this}closestPointToPoint(e,n){n.subVectors(e,this.origin);const r=n.dot(this.direction);return r<0?n.copy(this.origin):n.copy(this.origin).addScaledVector(this.direction,r)}distanceToPoint(e){return Math.sqrt(this.distanceSqToPoint(e))}distanceSqToPoint(e){const n=uo.subVectors(e,this.origin).dot(this.direction);return n0)if(h=o*l-a,d=o*a-l,v=s*u,h>=0)if(d>=-v)if(d<=v){const p=1/u;h*=p,d*=p,m=h*(h+o*d+2*a)+d*(o*h+d+2*l)+c}else d=s,h=Math.max(0,-(o*d+a)),m=-h*h+d*(d+2*l)+c;else d=-s,h=Math.max(0,-(o*d+a)),m=-h*h+d*(d+2*l)+c;else d0?-s:Math.min(Math.max(-s,-l),s),m=-h*h+d*(d+2*l)+c):d0?s:Math.min(Math.max(-s,-l),s),m=-h*h+d*(d+2*l)+c);else d=o>0?-s:s,h=Math.max(0,-(o*d+a)),m=-h*h+d*(d+2*l)+c;return r&&r.copy(this.origin).addScaledVector(this.direction,h),i&&i.copy(Eg).addScaledVector(Ch,d),m}intersectSphere(e,n){uo.subVectors(e.center,this.origin);const r=uo.dot(this.direction),i=uo.dot(uo)-r*r,s=e.radius*e.radius;if(i>s)return null;const o=Math.sqrt(s-i),a=r-o,l=r+o;return l<0?null:a<0?this.at(l,n):this.at(a,n)}intersectsSphere(e){return this.distanceSqToPoint(e.center)=0?r:null}intersectPlane(e,n){const r=this.distanceToPlane(e);return r===null?null:this.at(r,n)}intersectsPlane(e){const n=e.distanceToPoint(this.origin);return n===0||e.normal.dot(this.direction)*n=0?(r=(e.min.x-d.x)*c,i=(e.max.x-d.x)*c):(r=(e.max.x-d.x)*c,i=(e.min.x-d.x)*c),u>=0?(s=(e.min.y-d.y)*u,o=(e.max.y-d.y)*u):(s=(e.max.y-d.y)*u,o=(e.min.y-d.y)*u),r>o||s>i||((s>r||isNaN(r))&&(r=s),(o=0?(a=(e.min.z-d.z)*h,l=(e.max.z-d.z)*h):(a=(e.max.z-d.z)*h,l=(e.min.z-d.z)*h),r>l||a>i)||((a>r||r!==r)&&(r=a),(l<i||i!==i)&&(i=l),i=0?r:i,n)}intersectsBox(e){return this.intersectBox(e,uo)!==null}intersectTriangle(e,n,r,i,s){Mg.subVectors(n,e),Ah.subVectors(r,e),Tg.crossVectors(Mg,Ah);let o=this.direction.dot(Tg),a;if(o>0){if(i)return null;a=1}else if(o<0)a=-1,o=-o;else return null;ea.subVectors(this.origin,e);const l=a*this.direction.dot(Ah.crossVectors(ea,Ah));if(l<0)return null;const c=a*this.direction.dot(Mg.cross(ea));if(co)return null;const u=-a*ea.dot(Tg);return u<0?null:this.at(u/o,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 Qn{constructor(e,n,r,i,s,o,a,l,c,u,h,d,m,v,p,g){Qn.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,r,i,s,o,a,l,c,u,h,d,m,v,p,g)}set(e,n,r,i,s,o,a,l,c,u,h,d,m,v,p,g){const f=this.elements;return f[0]=e,f[4]=n,f[8]=r,f[12]=i,f[1]=s,f[5]=o,f[9]=a,f[13]=l,f[2]=c,f[6]=u,f[10]=h,f[14]=d,f[3]=m,f[7]=v,f[11]=p,f[15]=g,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 Qn().fromArray(this.elements)}copy(e){const n=this.elements,r=e.elements;return n[0]=r[0],n[1]=r[1],n[2]=r[2],n[3]=r[3],n[4]=r[4],n[5]=r[5],n[6]=r[6],n[7]=r[7],n[8]=r[8],n[9]=r[9],n[10]=r[10],n[11]=r[11],n[12]=r[12],n[13]=r[13],n[14]=r[14],n[15]=r[15],this}copyPosition(e){const n=this.elements,r=e.elements;return n[12]=r[12],n[13]=r[13],n[14]=r[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,r){return e.setFromMatrixColumn(this,0),n.setFromMatrixColumn(this,1),r.setFromMatrixColumn(this,2),this}makeBasis(e,n,r){return this.set(e.x,n.x,r.x,0,e.y,n.y,r.y,0,e.z,n.z,r.z,0,0,0,0,1),this}extractRotation(e){const n=this.elements,r=e.elements,i=1/mc.setFromMatrixColumn(e,0).length(),s=1/mc.setFromMatrixColumn(e,1).length(),o=1/mc.setFromMatrixColumn(e,2).length();return n[0]=r[0]*i,n[1]=r[1]*i,n[2]=r[2]*i,n[3]=0,n[4]=r[4]*s,n[5]=r[5]*s,n[6]=r[6]*s,n[7]=0,n[8]=r[8]*o,n[9]=r[9]*o,n[10]=r[10]*o,n[11]=0,n[12]=0,n[13]=0,n[14]=0,n[15]=1,this}makeRotationFromEuler(e){const n=this.elements,r=e.x,i=e.y,s=e.z,o=Math.cos(r),a=Math.sin(r),l=Math.cos(i),c=Math.sin(i),u=Math.cos(s),h=Math.sin(s);if(e.order==="XYZ"){const d=o*u,m=o*h,v=a*u,p=a*h;n[0]=l*u,n[4]=-l*h,n[8]=c,n[1]=m+v*c,n[5]=d-p*c,n[9]=-a*l,n[2]=p-d*c,n[6]=v+m*c,n[10]=o*l}else if(e.order==="YXZ"){const d=l*u,m=l*h,v=c*u,p=c*h;n[0]=d+p*a,n[4]=v*a-m,n[8]=o*c,n[1]=o*h,n[5]=o*u,n[9]=-a,n[2]=m*a-v,n[6]=p+d*a,n[10]=o*l}else if(e.order==="ZXY"){const d=l*u,m=l*h,v=c*u,p=c*h;n[0]=d-p*a,n[4]=-o*h,n[8]=v+m*a,n[1]=m+v*a,n[5]=o*u,n[9]=p-d*a,n[2]=-o*c,n[6]=a,n[10]=o*l}else if(e.order==="ZYX"){const d=o*u,m=o*h,v=a*u,p=a*h;n[0]=l*u,n[4]=v*c-m,n[8]=d*c+p,n[1]=l*h,n[5]=p*c+d,n[9]=m*c-v,n[2]=-c,n[6]=a*l,n[10]=o*l}else if(e.order==="YZX"){const d=o*l,m=o*c,v=a*l,p=a*c;n[0]=l*u,n[4]=p-d*h,n[8]=v*h+m,n[1]=h,n[5]=o*u,n[9]=-a*u,n[2]=-c*u,n[6]=m*h+v,n[10]=d-p*h}else if(e.order==="XZY"){const d=o*l,m=o*c,v=a*l,p=a*c;n[0]=l*u,n[4]=-h,n[8]=c*u,n[1]=d*h+p,n[5]=o*u,n[9]=m*h-v,n[2]=v*h-m,n[6]=a*u,n[10]=p*h+d}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(M5,e,T5)}lookAt(e,n,r){const i=this.elements;return Ei.subVectors(e,n),Ei.lengthSq()===0&&(Ei.z=1),Ei.normalize(),ta.crossVectors(r,Ei),ta.lengthSq()===0&&(Math.abs(r.z)===1?Ei.x+=1e-4:Ei.z+=1e-4,Ei.normalize(),ta.crossVectors(r,Ei)),ta.normalize(),Rh.crossVectors(Ei,ta),i[0]=ta.x,i[4]=Rh.x,i[8]=Ei.x,i[1]=ta.y,i[5]=Rh.y,i[9]=Ei.y,i[2]=ta.z,i[6]=Rh.z,i[10]=Ei.z,this}multiply(e){return this.multiplyMatrices(this,e)}premultiply(e){return this.multiplyMatrices(e,this)}multiplyMatrices(e,n){const r=e.elements,i=n.elements,s=this.elements,o=r[0],a=r[4],l=r[8],c=r[12],u=r[1],h=r[5],d=r[9],m=r[13],v=r[2],p=r[6],g=r[10],f=r[14],x=r[3],_=r[7],y=r[11],w=r[15],T=i[0],b=i[4],E=i[8],M=i[12],S=i[1],P=i[5],V=i[9],H=i[13],G=i[2],$=i[6],F=i[10],W=i[14],A=i[3],X=i[7],q=i[11],K=i[15];return s[0]=o*T+a*S+l*G+c*A,s[4]=o*b+a*P+l*$+c*X,s[8]=o*E+a*V+l*F+c*q,s[12]=o*M+a*H+l*W+c*K,s[1]=u*T+h*S+d*G+m*A,s[5]=u*b+h*P+d*$+m*X,s[9]=u*E+h*V+d*F+m*q,s[13]=u*M+h*H+d*W+m*K,s[2]=v*T+p*S+g*G+f*A,s[6]=v*b+p*P+g*$+f*X,s[10]=v*E+p*V+g*F+f*q,s[14]=v*M+p*H+g*W+f*K,s[3]=x*T+_*S+y*G+w*A,s[7]=x*b+_*P+y*$+w*X,s[11]=x*E+_*V+y*F+w*q,s[15]=x*M+_*H+y*W+w*K,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],r=e[4],i=e[8],s=e[12],o=e[1],a=e[5],l=e[9],c=e[13],u=e[2],h=e[6],d=e[10],m=e[14],v=e[3],p=e[7],g=e[11],f=e[15];return v*(+s*l*h-i*c*h-s*a*d+r*c*d+i*a*m-r*l*m)+p*(+n*l*m-n*c*d+s*o*d-i*o*m+i*c*u-s*l*u)+g*(+n*c*h-n*a*m-s*o*h+r*o*m+s*a*u-r*c*u)+f*(-i*a*u-n*l*h+n*a*d+i*o*h-r*o*d+r*l*u)}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,r){const i=this.elements;return e.isVector3?(i[12]=e.x,i[13]=e.y,i[14]=e.z):(i[12]=e,i[13]=n,i[14]=r),this}invert(){const e=this.elements,n=e[0],r=e[1],i=e[2],s=e[3],o=e[4],a=e[5],l=e[6],c=e[7],u=e[8],h=e[9],d=e[10],m=e[11],v=e[12],p=e[13],g=e[14],f=e[15],x=h*g*c-p*d*c+p*l*m-a*g*m-h*l*f+a*d*f,_=v*d*c-u*g*c-v*l*m+o*g*m+u*l*f-o*d*f,y=u*p*c-v*h*c+v*a*m-o*p*m-u*a*f+o*h*f,w=v*h*l-u*p*l-v*a*d+o*p*d+u*a*g-o*h*g,T=n*x+r*_+i*y+s*w;if(T===0)return this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);const b=1/T;return e[0]=x*b,e[1]=(p*d*s-h*g*s-p*i*m+r*g*m+h*i*f-r*d*f)*b,e[2]=(a*g*s-p*l*s+p*i*c-r*g*c-a*i*f+r*l*f)*b,e[3]=(h*l*s-a*d*s-h*i*c+r*d*c+a*i*m-r*l*m)*b,e[4]=_*b,e[5]=(u*g*s-v*d*s+v*i*m-n*g*m-u*i*f+n*d*f)*b,e[6]=(v*l*s-o*g*s-v*i*c+n*g*c+o*i*f-n*l*f)*b,e[7]=(o*d*s-u*l*s+u*i*c-n*d*c-o*i*m+n*l*m)*b,e[8]=y*b,e[9]=(v*h*s-u*p*s-v*r*m+n*p*m+u*r*f-n*h*f)*b,e[10]=(o*p*s-v*a*s+v*r*c-n*p*c-o*r*f+n*a*f)*b,e[11]=(u*a*s-o*h*s-u*r*c+n*h*c+o*r*m-n*a*m)*b,e[12]=w*b,e[13]=(u*p*i-v*h*i+v*r*d-n*p*d-u*r*g+n*h*g)*b,e[14]=(v*a*i-o*p*i-v*r*l+n*p*l+o*r*g-n*a*g)*b,e[15]=(o*h*i-u*a*i+u*r*l-n*h*l-o*r*d+n*a*d)*b,this}scale(e){const n=this.elements,r=e.x,i=e.y,s=e.z;return n[0]*=r,n[4]*=i,n[8]*=s,n[1]*=r,n[5]*=i,n[9]*=s,n[2]*=r,n[6]*=i,n[10]*=s,n[3]*=r,n[7]*=i,n[11]*=s,this}getMaxScaleOnAxis(){const e=this.elements,n=e[0]*e[0]+e[1]*e[1]+e[2]*e[2],r=e[4]*e[4]+e[5]*e[5]+e[6]*e[6],i=e[8]*e[8]+e[9]*e[9]+e[10]*e[10];return Math.sqrt(Math.max(n,r,i))}makeTranslation(e,n,r){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,r,0,0,0,1),this}makeRotationX(e){const n=Math.cos(e),r=Math.sin(e);return this.set(1,0,0,0,0,n,-r,0,0,r,n,0,0,0,0,1),this}makeRotationY(e){const n=Math.cos(e),r=Math.sin(e);return this.set(n,0,r,0,0,1,0,0,-r,0,n,0,0,0,0,1),this}makeRotationZ(e){const n=Math.cos(e),r=Math.sin(e);return this.set(n,-r,0,0,r,n,0,0,0,0,1,0,0,0,0,1),this}makeRotationAxis(e,n){const r=Math.cos(n),i=Math.sin(n),s=1-r,o=e.x,a=e.y,l=e.z,c=s*o,u=s*a;return this.set(c*o+r,c*a-i*l,c*l+i*a,0,c*a+i*l,u*a+r,u*l-i*o,0,c*l-i*a,u*l+i*o,s*l*l+r,0,0,0,0,1),this}makeScale(e,n,r){return this.set(e,0,0,0,0,n,0,0,0,0,r,0,0,0,0,1),this}makeShear(e,n,r,i,s,o){return this.set(1,r,s,0,e,1,o,0,n,i,1,0,0,0,0,1),this}compose(e,n,r){const i=this.elements,s=n._x,o=n._y,a=n._z,l=n._w,c=s+s,u=o+o,h=a+a,d=s*c,m=s*u,v=s*h,p=o*u,g=o*h,f=a*h,x=l*c,_=l*u,y=l*h,w=r.x,T=r.y,b=r.z;return i[0]=(1-(p+f))*w,i[1]=(m+y)*w,i[2]=(v-_)*w,i[3]=0,i[4]=(m-y)*T,i[5]=(1-(d+f))*T,i[6]=(g+x)*T,i[7]=0,i[8]=(v+_)*b,i[9]=(g-x)*b,i[10]=(1-(d+p))*b,i[11]=0,i[12]=e.x,i[13]=e.y,i[14]=e.z,i[15]=1,this}decompose(e,n,r){const i=this.elements;let s=mc.set(i[0],i[1],i[2]).length();const o=mc.set(i[4],i[5],i[6]).length(),a=mc.set(i[8],i[9],i[10]).length();this.determinant()<0&&(s=-s),e.x=i[12],e.y=i[13],e.z=i[14],_s.copy(this);const c=1/s,u=1/o,h=1/a;return _s.elements[0]*=c,_s.elements[1]*=c,_s.elements[2]*=c,_s.elements[4]*=u,_s.elements[5]*=u,_s.elements[6]*=u,_s.elements[8]*=h,_s.elements[9]*=h,_s.elements[10]*=h,n.setFromRotationMatrix(_s),r.x=s,r.y=o,r.z=a,this}makePerspective(e,n,r,i,s,o,a=Eo){const l=this.elements,c=2*s/(n-e),u=2*s/(r-i),h=(n+e)/(n-e),d=(r+i)/(r-i);let m,v;if(a===Eo)m=-(o+s)/(o-s),v=-2*o*s/(o-s);else if(a===im)m=-o/(o-s),v=-o*s/(o-s);else throw new Error("THREE.Matrix4.makePerspective(): Invalid coordinate system: "+a);return l[0]=c,l[4]=0,l[8]=h,l[12]=0,l[1]=0,l[5]=u,l[9]=d,l[13]=0,l[2]=0,l[6]=0,l[10]=m,l[14]=v,l[3]=0,l[7]=0,l[11]=-1,l[15]=0,this}makeOrthographic(e,n,r,i,s,o,a=Eo){const l=this.elements,c=1/(n-e),u=1/(r-i),h=1/(o-s),d=(n+e)*c,m=(r+i)*u;let v,p;if(a===Eo)v=(o+s)*h,p=-2*h;else if(a===im)v=s*h,p=-1*h;else throw new Error("THREE.Matrix4.makeOrthographic(): Invalid coordinate system: "+a);return l[0]=2*c,l[4]=0,l[8]=0,l[12]=-d,l[1]=0,l[5]=2*u,l[9]=0,l[13]=-m,l[2]=0,l[6]=0,l[10]=p,l[14]=-v,l[3]=0,l[7]=0,l[11]=0,l[15]=1,this}equals(e){const n=this.elements,r=e.elements;for(let i=0;i<16;i++)if(n[i]!==r[i])return!1;return!0}fromArray(e,n=0){for(let r=0;r<16;r++)this.elements[r]=e[r+n];return this}toArray(e=[],n=0){const r=this.elements;return e[n]=r[0],e[n+1]=r[1],e[n+2]=r[2],e[n+3]=r[3],e[n+4]=r[4],e[n+5]=r[5],e[n+6]=r[6],e[n+7]=r[7],e[n+8]=r[8],e[n+9]=r[9],e[n+10]=r[10],e[n+11]=r[11],e[n+12]=r[12],e[n+13]=r[13],e[n+14]=r[14],e[n+15]=r[15],e}}const mc=new me,_s=new Qn,M5=new me(0,0,0),T5=new me(1,1,1),ta=new me,Rh=new me,Ei=new me,BS=new Qn,VS=new Tf;class No{constructor(e=0,n=0,r=0,i=No.DEFAULT_ORDER){this.isEuler=!0,this._x=e,this._y=n,this._z=r,this._order=i}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,r,i=this._order){return this._x=e,this._y=n,this._z=r,this._order=i,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,r=!0){const i=e.elements,s=i[0],o=i[4],a=i[8],l=i[1],c=i[5],u=i[9],h=i[2],d=i[6],m=i[10];switch(n){case"XYZ":this._y=Math.asin(ni(a,-1,1)),Math.abs(a)<.9999999?(this._x=Math.atan2(-u,m),this._z=Math.atan2(-o,s)):(this._x=Math.atan2(d,c),this._z=0);break;case"YXZ":this._x=Math.asin(-ni(u,-1,1)),Math.abs(u)<.9999999?(this._y=Math.atan2(a,m),this._z=Math.atan2(l,c)):(this._y=Math.atan2(-h,s),this._z=0);break;case"ZXY":this._x=Math.asin(ni(d,-1,1)),Math.abs(d)<.9999999?(this._y=Math.atan2(-h,m),this._z=Math.atan2(-o,c)):(this._y=0,this._z=Math.atan2(l,s));break;case"ZYX":this._y=Math.asin(-ni(h,-1,1)),Math.abs(h)<.9999999?(this._x=Math.atan2(d,m),this._z=Math.atan2(l,s)):(this._x=0,this._z=Math.atan2(-o,c));break;case"YZX":this._z=Math.asin(ni(l,-1,1)),Math.abs(l)<.9999999?(this._x=Math.atan2(-u,c),this._y=Math.atan2(-h,s)):(this._x=0,this._y=Math.atan2(a,m));break;case"XZY":this._z=Math.asin(-ni(o,-1,1)),Math.abs(o)<.9999999?(this._x=Math.atan2(d,c),this._y=Math.atan2(a,s)):(this._x=Math.atan2(-u,m),this._y=0);break;default:console.warn("THREE.Euler: .setFromRotationMatrix() encountered an unknown order: "+n)}return this._order=n,r===!0&&this._onChangeCallback(),this}setFromQuaternion(e,n,r){return BS.makeRotationFromQuaternion(e),this.setFromRotationMatrix(BS,n,r)}setFromVector3(e,n=this._order){return this.set(e.x,e.y,e.z,n)}reorder(e){return VS.setFromEuler(this),this.setFromQuaternion(VS,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}}No.DEFAULT_ORDER="XYZ";class vA{constructor(){this.mask=1}set(e){this.mask=(1<>>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<1){for(let n=0;n1){for(let r=0;r<arguments.length;r++)this.remove(arguments[r]);return this}const n=this.children.indexOf(e);return n!==-1&&(e.parent=null,this.children.splice(n,1),e.dispatchEvent(P5),Cg.child=e,this.dispatchEvent(Cg),Cg.child=null),this}removeFromParent(){const e=this.parent;return e!==null&&e.remove(this),this}clear(){return this.remove(...this.children)}attach(e){return this.updateWorldMatrix(!0,!1),fo.copy(this.matrixWorld).invert(),e.parent!==null&&(e.parent.updateWorldMatrix(!0,!1),fo.multiply(e.parent.matrixWorld)),e.applyMatrix4(fo),e.removeFromParent(),e.parent=this,this.children.push(e),e.updateWorldMatrix(!1,!0),e.dispatchEvent(jS),vc.child=e,this.dispatchEvent(vc),vc.child=null,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 r=0,i=this.children.length;r<i;r++){const o=this.children[r].getObjectByProperty(e,n);if(o!==void 0)return o}}getObjectsByProperty(e,n,r=[]){this[e]===n&&r.push(this);const i=this.children;for(let s=0,o=i.length;s<o;s++)i[s].getObjectsByProperty(e,n,r);return r}getWorldPosition(e){return this.updateWorldMatrix(!0,!1),e.setFromMatrixPosition(this.matrixWorld)}getWorldQuaternion(e){return this.updateWorldMatrix(!0,!1),this.matrixWorld.decompose(ud,e,A5),e}getWorldScale(e){return this.updateWorldMatrix(!0,!1),this.matrixWorld.decompose(ud,R5,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 r=0,i=n.length;r<i;r++)n[r].traverse(e)}traverseVisible(e){if(this.visible===!1)return;e(this);const n=this.children;for(let r=0,i=n.length;r<i;r++)n[r].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 r=0,i=n.length;r<i;r++){const s=n[r];(s.matrixWorldAutoUpdate===!0||e===!0)&&s.updateMatrixWorld(e)}}updateWorldMatrix(e,n){const r=this.parent;if(e===!0&&r!==null&&r.matrixWorldAutoUpdate===!0&&r.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 i=this.children;for(let s=0,o=i.length;s0&&(i.userData=this.userData),i.layers=this.layers.mask,i.matrix=this.matrix.toArray(),i.up=this.up.toArray(),this.matrixAutoUpdate===!1&&(i.matrixAutoUpdate=!1),this.isInstancedMesh&&(i.type="InstancedMesh",i.count=this.count,i.instanceMatrix=this.instanceMatrix.toJSON(),this.instanceColor!==null&&(i.instanceColor=this.instanceColor.toJSON())),this.isBatchedMesh&&(i.type="BatchedMesh",i.perObjectFrustumCulled=this.perObjectFrustumCulled,i.sortObjects=this.sortObjects,i.drawRanges=this._drawRanges,i.reservedRanges=this._reservedRanges,i.visibility=this._visibility,i.active=this._active,i.bounds=this._bounds.map(a=>({boxInitialized:a.boxInitialized,boxMin:a.box.min.toArray(),boxMax:a.box.max.toArray(),sphereInitialized:a.sphereInitialized,sphereRadius:a.sphere.radius,sphereCenter:a.sphere.center.toArray()})),i.maxGeometryCount=this._maxGeometryCount,i.maxVertexCount=this._maxVertexCount,i.maxIndexCount=this._maxIndexCount,i.geometryInitialized=this._geometryInitialized,i.geometryCount=this._geometryCount,i.matricesTexture=this._matricesTexture.toJSON(e),this._colorsTexture!==null&&(i.colorsTexture=this._colorsTexture.toJSON(e)),this.boundingSphere!==null&&(i.boundingSphere={center:i.boundingSphere.center.toArray(),radius:i.boundingSphere.radius}),this.boundingBox!==null&&(i.boundingBox={min:i.boundingBox.min.toArray(),max:i.boundingBox.max.toArray()}));function s(a,l){return a[l.uuid]===void 0&&(a[l.uuid]=l.toJSON(e)),l.uuid}if(this.isScene)this.background&&(this.background.isColor?i.background=this.background.toJSON():this.background.isTexture&&(i.background=this.background.toJSON(e).uuid)),this.environment&&this.environment.isTexture&&this.environment.isRenderTargetTexture!==!0&&(i.environment=this.environment.toJSON(e).uuid);else if(this.isMesh||this.isLine||this.isPoints){i.geometry=s(e.geometries,this.geometry);const a=this.geometry.parameters;if(a!==void 0&&a.shapes!==void 0){const l=a.shapes;if(Array.isArray(l))for(let c=0,u=l.length;c<u;c++){const h=l[c];s(e.shapes,h)}else s(e.shapes,l)}}if(this.isSkinnedMesh&&(i.bindMode=this.bindMode,i.bindMatrix=this.bindMatrix.toArray(),this.skeleton!==void 0&&(s(e.skeletons,this.skeleton),i.skeleton=this.skeleton.uuid)),this.material!==void 0)if(Array.isArray(this.material)){const a=[];for(let l=0,c=this.material.length;l0){i.children=[];for(let a=0;a0){i.animations=[];for(let a=0;a0&&(r.geometries=a),l.length>0&&(r.materials=l),c.length>0&&(r.textures=c),u.length>0&&(r.images=u),h.length>0&&(r.shapes=h),d.length>0&&(r.skeletons=d),m.length>0&&(r.animations=m),v.length>0&&(r.nodes=v)}return r.object=i,r;function o(a){const l=[];for(const c in a){const u=a[c];delete u.metadata,l.push(u)}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.matrixWorldAutoUpdate=e.matrixWorldAutoUpdate,this.matrixWorldNeedsUpdate=e.matrixWorldNeedsUpdate,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 r=0;r0?i.multiplyScalar(1/Math.sqrt(s)):i.set(0,0,0)}static getBarycoord(e,n,r,i,s){xs.subVectors(i,n),ho.subVectors(r,n),Ag.subVectors(e,n);const o=xs.dot(xs),a=xs.dot(ho),l=xs.dot(Ag),c=ho.dot(ho),u=ho.dot(Ag),h=o*c-a*a;if(h===0)return s.set(0,0,0),null;const d=1/h,m=(c*l-a*u)*d,v=(o*u-a*l)*d;return s.set(1-m-v,v,m)}static containsPoint(e,n,r,i){return this.getBarycoord(e,n,r,i,po)===null?!1:po.x>=0&&po.y>=0&&po.x+po.y<=1}static getInterpolation(e,n,r,i,s,o,a,l){return this.getBarycoord(e,n,r,i,po)===null?(l.x=0,l.y=0,"z"in l&&(l.z=0),"w"in l&&(l.w=0),null):(l.setScalar(0),l.addScaledVector(s,po.x),l.addScaledVector(o,po.y),l.addScaledVector(a,po.z),l)}static isFrontFacing(e,n,r,i){return xs.subVectors(r,n),ho.subVectors(e,n),xs.cross(ho).dot(i)<0}set(e,n,r){return this.a.copy(e),this.b.copy(n),this.c.copy(r),this}setFromPointsAndIndices(e,n,r,i){return this.a.copy(e[n]),this.b.copy(e[r]),this.c.copy(e[i]),this}setFromAttributeAndIndices(e,n,r,i){return this.a.fromBufferAttribute(e,n),this.b.fromBufferAttribute(e,r),this.c.fromBufferAttribute(e,i),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 xs.subVectors(this.c,this.b),ho.subVectors(this.a,this.b),xs.cross(ho).length()*.5}getMidpoint(e){return e.addVectors(this.a,this.b).add(this.c).multiplyScalar(1/3)}getNormal(e){return Ys.getNormal(this.a,this.b,this.c,e)}getPlane(e){return e.setFromCoplanarPoints(this.a,this.b,this.c)}getBarycoord(e,n){return Ys.getBarycoord(e,this.a,this.b,this.c,n)}getInterpolation(e,n,r,i,s){return Ys.getInterpolation(e,this.a,this.b,this.c,n,r,i,s)}containsPoint(e){return Ys.containsPoint(e,this.a,this.b,this.c)}isFrontFacing(e){return Ys.isFrontFacing(this.a,this.b,this.c,e)}intersectsBox(e){return e.intersectsTriangle(this)}closestPointToPoint(e,n){const r=this.a,i=this.b,s=this.c;let o,a;_c.subVectors(i,r),xc.subVectors(s,r),Rg.subVectors(e,r);const l=_c.dot(Rg),c=xc.dot(Rg);if(l<=0&&c=0&&h<=u)return n.copy(i);const d=l*h-u*c;if(d=0&&u=0&&m<=v)return n.copy(s);const p=m*c-l*v;if(p=0&&v<=0)return a=c/(c-v),n.copy(r).addScaledVector(xc,a);const g=u*v-m*h;if(g=0&&m-v>=0)return XS.subVectors(s,i),a=(h-u)/(h-u+(m-v)),n.copy(i).addScaledVector(XS,a);const f=1/(g+p+d);return o=p*f,a=d*f,n.copy(r).addScaledVector(_c,o).addScaledVector(xc,a)}equals(e){return e.a.equals(this.a)&&e.b.equals(this.b)&&e.c.equals(this.c)}}const _A={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},na={h:0,s:0,l:0},Dh={h:0,s:0,l:0};function Lg(t,e,n){return n1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n>16&255)/255,this.g=(e>>8&255)/255,this.b=(e&255)/255,jt.toWorkingColorSpace(this,n),this}setRGB(e,n,r,i=jt.workingColorSpace){return this.r=e,this.g=n,this.b=r,jt.toWorkingColorSpace(this,i),this}setHSL(e,n,r,i=jt.workingColorSpace){if(e=p5(e,1),n=ni(n,0,1),r=ni(r,0,1),n===0)this.r=this.g=this.b=r;else{const s=r<=.5?r*(1+n):r+n-r*n,o=2*r-s;this.r=Lg(o,s,e+1/3),this.g=Lg(o,s,e),this.b=Lg(o,s,e-1/3)}return jt.toWorkingColorSpace(this,i),this}setStyle(e,n=Vs){function r(s){s!==void 0&&parseFloat(s)0)return this.setColorName(e,n);return this}setColorName(e,n=Vs){const r=_A[e.toLowerCase()];return r!==void 0?this.setHex(r,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=iu(e.r),this.g=iu(e.g),this.b=iu(e.b),this}copyLinearToSRGB(e){return this.r=xg(e.r),this.g=xg(e.g),this.b=xg(e.b),this}convertSRGBToLinear(){return this.copySRGBToLinear(this),this}convertLinearToSRGB(){return this.copyLinearToSRGB(this),this}getHex(e=Vs){return jt.fromWorkingColorSpace(Ar.copy(this),e),Math.round(ni(Ar.r*255,0,255))*65536+Math.round(ni(Ar.g*255,0,255))*256+Math.round(ni(Ar.b*255,0,255))}getHexString(e=Vs){return("000000"+this.getHex(e).toString(16)).slice(-6)}getHSL(e,n=jt.workingColorSpace){jt.fromWorkingColorSpace(Ar.copy(this),n);const r=Ar.r,i=Ar.g,s=Ar.b,o=Math.max(r,i,s),a=Math.min(r,i,s);let l,c;const u=(a+o)/2;if(a===o)l=0,c=0;else{const h=o-a;switch(c=u<=.5?h/(o+a):h/(2-o-a),o){case r:l=(i-s)/h+(i0!=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 r=e[n];if(r===void 0){console.warn(`THREE.Material: parameter '${n}' has value of undefined.`);continue}const i=this[n];if(i===void 0){console.warn(`THREE.Material: '${n}' is not a property of THREE.${this.type}.`);continue}i&&i.isColor?i.set(r):i&&i.isVector3&&r&&r.isVector3?i.copy(r):this[n]=r}}toJSON(e){const n=e===void 0||typeof e=="string";n&&(e={textures:{},images:{}});const r={metadata:{version:4.6,type:"Material",generator:"Material.toJSON"}};r.uuid=this.uuid,r.type=this.type,this.name!==""&&(r.name=this.name),this.color&&this.color.isColor&&(r.color=this.color.getHex()),this.roughness!==void 0&&(r.roughness=this.roughness),this.metalness!==void 0&&(r.metalness=this.metalness),this.sheen!==void 0&&(r.sheen=this.sheen),this.sheenColor&&this.sheenColor.isColor&&(r.sheenColor=this.sheenColor.getHex()),this.sheenRoughness!==void 0&&(r.sheenRoughness=this.sheenRoughness),this.emissive&&this.emissive.isColor&&(r.emissive=this.emissive.getHex()),this.emissiveIntensity!==void 0&&this.emissiveIntensity!==1&&(r.emissiveIntensity=this.emissiveIntensity),this.specular&&this.specular.isColor&&(r.specular=this.specular.getHex()),this.specularIntensity!==void 0&&(r.specularIntensity=this.specularIntensity),this.specularColor&&this.specularColor.isColor&&(r.specularColor=this.specularColor.getHex()),this.shininess!==void 0&&(r.shininess=this.shininess),this.clearcoat!==void 0&&(r.clearcoat=this.clearcoat),this.clearcoatRoughness!==void 0&&(r.clearcoatRoughness=this.clearcoatRoughness),this.clearcoatMap&&this.clearcoatMap.isTexture&&(r.clearcoatMap=this.clearcoatMap.toJSON(e).uuid),this.clearcoatRoughnessMap&&this.clearcoatRoughnessMap.isTexture&&(r.clearcoatRoughnessMap=this.clearcoatRoughnessMap.toJSON(e).uuid),this.clearcoatNormalMap&&this.clearcoatNormalMap.isTexture&&(r.clearcoatNormalMap=this.clearcoatNormalMap.toJSON(e).uuid,r.clearcoatNormalScale=this.clearcoatNormalScale.toArray()),this.dispersion!==void 0&&(r.dispersion=this.dispersion),this.iridescence!==void 0&&(r.iridescence=this.iridescence),this.iridescenceIOR!==void 0&&(r.iridescenceIOR=this.iridescenceIOR),this.iridescenceThicknessRange!==void 0&&(r.iridescenceThicknessRange=this.iridescenceThicknessRange),this.iridescenceMap&&this.iridescenceMap.isTexture&&(r.iridescenceMap=this.iridescenceMap.toJSON(e).uuid),this.iridescenceThicknessMap&&this.iridescenceThicknessMap.isTexture&&(r.iridescenceThicknessMap=this.iridescenceThicknessMap.toJSON(e).uuid),this.anisotropy!==void 0&&(r.anisotropy=this.anisotropy),this.anisotropyRotation!==void 0&&(r.anisotropyRotation=this.anisotropyRotation),this.anisotropyMap&&this.anisotropyMap.isTexture&&(r.anisotropyMap=this.anisotropyMap.toJSON(e).uuid),this.map&&this.map.isTexture&&(r.map=this.map.toJSON(e).uuid),this.matcap&&this.matcap.isTexture&&(r.matcap=this.matcap.toJSON(e).uuid),this.alphaMap&&this.alphaMap.isTexture&&(r.alphaMap=this.alphaMap.toJSON(e).uuid),this.lightMap&&this.lightMap.isTexture&&(r.lightMap=this.lightMap.toJSON(e).uuid,r.lightMapIntensity=this.lightMapIntensity),this.aoMap&&this.aoMap.isTexture&&(r.aoMap=this.aoMap.toJSON(e).uuid,r.aoMapIntensity=this.aoMapIntensity),this.bumpMap&&this.bumpMap.isTexture&&(r.bumpMap=this.bumpMap.toJSON(e).uuid,r.bumpScale=this.bumpScale),this.normalMap&&this.normalMap.isTexture&&(r.normalMap=this.normalMap.toJSON(e).uuid,r.normalMapType=this.normalMapType,r.normalScale=this.normalScale.toArray()),this.displacementMap&&this.displacementMap.isTexture&&(r.displacementMap=this.displacementMap.toJSON(e).uuid,r.displacementScale=this.displacementScale,r.displacementBias=this.displacementBias),this.roughnessMap&&this.roughnessMap.isTexture&&(r.roughnessMap=this.roughnessMap.toJSON(e).uuid),this.metalnessMap&&this.metalnessMap.isTexture&&(r.metalnessMap=this.metalnessMap.toJSON(e).uuid),this.emissiveMap&&this.emissiveMap.isTexture&&(r.emissiveMap=this.emissiveMap.toJSON(e).uuid),this.specularMap&&this.specularMap.isTexture&&(r.specularMap=this.specularMap.toJSON(e).uuid),this.specularIntensityMap&&this.specularIntensityMap.isTexture&&(r.specularIntensityMap=this.specularIntensityMap.toJSON(e).uuid),this.specularColorMap&&this.specularColorMap.isTexture&&(r.specularColorMap=this.specularColorMap.toJSON(e).uuid),this.envMap&&this.envMap.isTexture&&(r.envMap=this.envMap.toJSON(e).uuid,this.combine!==void 0&&(r.combine=this.combine)),this.envMapRotation!==void 0&&(r.envMapRotation=this.envMapRotation.toArray()),this.envMapIntensity!==void 0&&(r.envMapIntensity=this.envMapIntensity),this.reflectivity!==void 0&&(r.reflectivity=this.reflectivity),this.refractionRatio!==void 0&&(r.refractionRatio=this.refractionRatio),this.gradientMap&&this.gradientMap.isTexture&&(r.gradientMap=this.gradientMap.toJSON(e).uuid),this.transmission!==void 0&&(r.transmission=this.transmission),this.transmissionMap&&this.transmissionMap.isTexture&&(r.transmissionMap=this.transmissionMap.toJSON(e).uuid),this.thickness!==void 0&&(r.thickness=this.thickness),this.thicknessMap&&this.thicknessMap.isTexture&&(r.thicknessMap=this.thicknessMap.toJSON(e).uuid),this.attenuationDistance!==void 0&&this.attenuationDistance!==1/0&&(r.attenuationDistance=this.attenuationDistance),this.attenuationColor!==void 0&&(r.attenuationColor=this.attenuationColor.getHex()),this.size!==void 0&&(r.size=this.size),this.shadowSide!==null&&(r.shadowSide=this.shadowSide),this.sizeAttenuation!==void 0&&(r.sizeAttenuation=this.sizeAttenuation),this.blending!==nu&&(r.blending=this.blending),this.side!==Oa&&(r.side=this.side),this.vertexColors===!0&&(r.vertexColors=!0),this.opacity0&&(r.alphaTest=this.alphaTest),this.alphaHash===!0&&(r.alphaHash=!0),this.alphaToCoverage===!0&&(r.alphaToCoverage=!0),this.premultipliedAlpha===!0&&(r.premultipliedAlpha=!0),this.forceSinglePass===!0&&(r.forceSinglePass=!0),this.wireframe===!0&&(r.wireframe=!0),this.wireframeLinewidth>1&&(r.wireframeLinewidth=this.wireframeLinewidth),this.wireframeLinecap!=="round"&&(r.wireframeLinecap=this.wireframeLinecap),this.wireframeLinejoin!=="round"&&(r.wireframeLinejoin=this.wireframeLinejoin),this.flatShading===!0&&(r.flatShading=!0),this.visible===!1&&(r.visible=!1),this.toneMapped===!1&&(r.toneMapped=!1),this.fog===!1&&(r.fog=!1),Object.keys(this.userData).length>0&&(r.userData=this.userData);function i(s){const o=[];for(const a in s){const l=s[a];delete l.metadata,o.push(l)}return o}if(n){const s=i(e.textures),o=i(e.images);s.length>0&&(r.textures=s),o.length>0&&(r.images=o)}return r}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.blendColor.copy(e.blendColor),this.blendAlpha=e.blendAlpha,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 r=null;if(n!==null){const i=n.length;r=new Array(i);for(let s=0;s!==i;++s)r[s]=n[s].clone()}return this.clippingPlanes=r,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++}}class xA extends Zm{constructor(e){super(),this.isMeshBasicMaterial=!0,this.type="MeshBasicMaterial",this.color=new qt(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.envMapRotation=new No,this.combine=iA,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.envMapRotation.copy(e.envMapRotation),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 Hn=new me,Lh=new Wt;class eo{constructor(e,n,r=!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=r,this.usage=OS,this._updateRange={offset:0,count:-1},this.updateRanges=[],this.gpuType=ga,this.version=0}onUploadCallback(){}set needsUpdate(e){e===!0&&this.version++}get updateRange(){return pA("THREE.BufferAttribute: updateRange() is deprecated and will be removed in r169. Use addUpdateRange() instead."),this._updateRange}setUsage(e){return this.usage=e,this}addUpdateRange(e,n){this.updateRanges.push({start:e,count:n})}clearUpdateRanges(){this.updateRanges.length=0}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,r){e*=this.itemSize,r*=n.itemSize;for(let i=0,s=this.itemSize;i<s;i++)this.array[e+i]=n.array[r+i];return this}copyArray(e){return this.array.set(e),this}applyMatrix3(e){if(this.itemSize===2)for(let n=0,r=this.count;n<r;n++)Lh.fromBufferAttribute(this,n),Lh.applyMatrix3(e),this.setXY(n,Lh.x,Lh.y);else if(this.itemSize===3)for(let n=0,r=this.count;n<r;n++)Hn.fromBufferAttribute(this,n),Hn.applyMatrix3(e),this.setXYZ(n,Hn.x,Hn.y,Hn.z);return this}applyMatrix4(e){for(let n=0,r=this.count;n<r;n++)Hn.fromBufferAttribute(this,n),Hn.applyMatrix4(e),this.setXYZ(n,Hn.x,Hn.y,Hn.z);return this}applyNormalMatrix(e){for(let n=0,r=this.count;n<r;n++)Hn.fromBufferAttribute(this,n),Hn.applyNormalMatrix(e),this.setXYZ(n,Hn.x,Hn.y,Hn.z);return this}transformDirection(e){for(let n=0,r=this.count;n<r;n++)Hn.fromBufferAttribute(this,n),Hn.transformDirection(e),this.setXYZ(n,Hn.x,Hn.y,Hn.z);return this}set(e,n=0){return this.array.set(e,n),this}getComponent(e,n){let r=this.array[e*this.itemSize+n];return this.normalized&&(r=ad(r,this.array)),r}setComponent(e,n,r){return this.normalized&&(r=ei(r,this.array)),this.array[e*this.itemSize+n]=r,this}getX(e){let n=this.array[e*this.itemSize];return this.normalized&&(n=ad(n,this.array)),n}setX(e,n){return this.normalized&&(n=ei(n,this.array)),this.array[e*this.itemSize]=n,this}getY(e){let n=this.array[e*this.itemSize+1];return this.normalized&&(n=ad(n,this.array)),n}setY(e,n){return this.normalized&&(n=ei(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=ad(n,this.array)),n}setZ(e,n){return this.normalized&&(n=ei(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=ad(n,this.array)),n}setW(e,n){return this.normalized&&(n=ei(n,this.array)),this.array[e*this.itemSize+3]=n,this}setXY(e,n,r){return e*=this.itemSize,this.normalized&&(n=ei(n,this.array),r=ei(r,this.array)),this.array[e+0]=n,this.array[e+1]=r,this}setXYZ(e,n,r,i){return e*=this.itemSize,this.normalized&&(n=ei(n,this.array),r=ei(r,this.array),i=ei(i,this.array)),this.array[e+0]=n,this.array[e+1]=r,this.array[e+2]=i,this}setXYZW(e,n,r,i,s){return e*=this.itemSize,this.normalized&&(n=ei(n,this.array),r=ei(r,this.array),i=ei(i,this.array),s=ei(s,this.array)),this.array[e+0]=n,this.array[e+1]=r,this.array[e+2]=i,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!==OS&&(e.usage=this.usage),e}}class yA extends eo{constructor(e,n,r){super(new Uint16Array(e),n,r)}}class wA extends eo{constructor(e,n,r){super(new Uint32Array(e),n,r)}}class Pl extends eo{constructor(e,n,r){super(new Float32Array(e),n,r)}}let L5=0;const Xi=new Qn,Ng=new Ui,yc=new me,Mi=new Cf,dd=new Cf,sr=new me;class Yl extends Uu{constructor(){super(),this.isBufferGeometry=!0,Object.defineProperty(this,"id",{value:L5++}),this.uuid=Mf(),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(hA(e)?wA:yA)(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,r=0){this.groups.push({start:e,count:n,materialIndex:r})}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 r=this.attributes.normal;if(r!==void 0){const s=new Mt().getNormalMatrix(e);r.applyNormalMatrix(s),r.needsUpdate=!0}const i=this.attributes.tangent;return i!==void 0&&(i.transformDirection(e),i.needsUpdate=!0),this.boundingBox!==null&&this.computeBoundingBox(),this.boundingSphere!==null&&this.computeBoundingSphere(),this}applyQuaternion(e){return Xi.makeRotationFromQuaternion(e),this.applyMatrix4(Xi),this}rotateX(e){return Xi.makeRotationX(e),this.applyMatrix4(Xi),this}rotateY(e){return Xi.makeRotationY(e),this.applyMatrix4(Xi),this}rotateZ(e){return Xi.makeRotationZ(e),this.applyMatrix4(Xi),this}translate(e,n,r){return Xi.makeTranslation(e,n,r),this.applyMatrix4(Xi),this}scale(e,n,r){return Xi.makeScale(e,n,r),this.applyMatrix4(Xi),this}lookAt(e){return Ng.lookAt(e),Ng.updateMatrix(),this.applyMatrix4(Ng.matrix),this}center(){return this.computeBoundingBox(),this.boundingBox.getCenter(yc).negate(),this.translate(yc.x,yc.y,yc.z),this}setFromPoints(e){const n=[];for(let r=0,i=e.length;r<i;r++){const s=e[r];n.push(s.x,s.y,s.z||0)}return this.setAttribute("position",new Pl(n,3)),this}computeBoundingBox(){this.boundingBox===null&&(this.boundingBox=new Cf);const e=this.attributes.position,n=this.morphAttributes.position;if(e&&e.isGLBufferAttribute){console.error("THREE.BufferGeometry.computeBoundingBox(): GLBufferAttribute requires a manual bounding box.",this),this.boundingBox.set(new me(-1/0,-1/0,-1/0),new me(1/0,1/0,1/0));return}if(e!==void 0){if(this.boundingBox.setFromBufferAttribute(e),n)for(let r=0,i=n.length;r<i;r++){const s=n[r];Mi.setFromBufferAttribute(s),this.morphTargetsRelative?(sr.addVectors(this.boundingBox.min,Mi.min),this.boundingBox.expandByPoint(sr),sr.addVectors(this.boundingBox.max,Mi.max),this.boundingBox.expandByPoint(sr)):(this.boundingBox.expandByPoint(Mi.min),this.boundingBox.expandByPoint(Mi.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 wy);const e=this.attributes.position,n=this.morphAttributes.position;if(e&&e.isGLBufferAttribute){console.error("THREE.BufferGeometry.computeBoundingSphere(): GLBufferAttribute requires a manual bounding sphere.",this),this.boundingSphere.set(new me,1/0);return}if(e){const r=this.boundingSphere.center;if(Mi.setFromBufferAttribute(e),n)for(let s=0,o=n.length;s<o;s++){const a=n[s];dd.setFromBufferAttribute(a),this.morphTargetsRelative?(sr.addVectors(Mi.min,dd.min),Mi.expandByPoint(sr),sr.addVectors(Mi.max,dd.max),Mi.expandByPoint(sr)):(Mi.expandByPoint(dd.min),Mi.expandByPoint(dd.max))}Mi.getCenter(r);let i=0;for(let s=0,o=e.count;s<o;s++)sr.fromBufferAttribute(e,s),i=Math.max(i,r.distanceToSquared(sr));if(n)for(let s=0,o=n.length;s<o;s++){const a=n[s],l=this.morphTargetsRelative;for(let c=0,u=a.count;c<u;c++)sr.fromBufferAttribute(a,c),l&&(yc.fromBufferAttribute(e,c),sr.add(yc)),i=Math.max(i,r.distanceToSquared(sr))}this.boundingSphere.radius=Math.sqrt(i),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 r=n.position,i=n.normal,s=n.uv;this.hasAttribute("tangent")===!1&&this.setAttribute("tangent",new eo(new Float32Array(4*r.count),4));const o=this.getAttribute("tangent"),a=[],l=[];for(let E=0;E<r.count;E++)a[E]=new me,l[E]=new me;const c=new me,u=new me,h=new me,d=new Wt,m=new Wt,v=new Wt,p=new me,g=new me;function f(E,M,S){c.fromBufferAttribute(r,E),u.fromBufferAttribute(r,M),h.fromBufferAttribute(r,S),d.fromBufferAttribute(s,E),m.fromBufferAttribute(s,M),v.fromBufferAttribute(s,S),u.sub(c),h.sub(c),m.sub(d),v.sub(d);const P=1/(m.x*v.y-v.x*m.y);isFinite(P)&&(p.copy(u).multiplyScalar(v.y).addScaledVector(h,-m.y).multiplyScalar(P),g.copy(h).multiplyScalar(m.x).addScaledVector(u,-v.x).multiplyScalar(P),a[E].add(p),a[M].add(p),a[S].add(p),l[E].add(g),l[M].add(g),l[S].add(g))}let x=this.groups;x.length===0&&(x=[{start:0,count:e.count}]);for(let E=0,M=x.length;E<M;++E){const S=x[E],P=S.start,V=S.count;for(let H=P,G=P+V;H<G;H+=3)f(e.getX(H+0),e.getX(H+1),e.getX(H+2))}const _=new me,y=new me,w=new me,T=new me;function b(E){w.fromBufferAttribute(i,E),T.copy(w);const M=a[E];_.copy(M),_.sub(w.multiplyScalar(w.dot(M))).normalize(),y.crossVectors(T,M);const P=y.dot(l[E])<0?-1:1;o.setXYZW(E,_.x,_.y,_.z,P)}for(let E=0,M=x.length;E<M;++E){const S=x[E],P=S.start,V=S.count;for(let H=P,G=P+V;H<G;H+=3)b(e.getX(H+0)),b(e.getX(H+1)),b(e.getX(H+2))}}computeVertexNormals(){const e=this.index,n=this.getAttribute("position");if(n!==void 0){let r=this.getAttribute("normal");if(r===void 0)r=new eo(new Float32Array(n.count*3),3),this.setAttribute("normal",r);else for(let d=0,m=r.count;d<m;d++)r.setXYZ(d,0,0,0);const i=new me,s=new me,o=new me,a=new me,l=new me,c=new me,u=new me,h=new me;if(e)for(let d=0,m=e.count;d<m;d+=3){const v=e.getX(d+0),p=e.getX(d+1),g=e.getX(d+2);i.fromBufferAttribute(n,v),s.fromBufferAttribute(n,p),o.fromBufferAttribute(n,g),u.subVectors(o,s),h.subVectors(i,s),u.cross(h),a.fromBufferAttribute(r,v),l.fromBufferAttribute(r,p),c.fromBufferAttribute(r,g),a.add(u),l.add(u),c.add(u),r.setXYZ(v,a.x,a.y,a.z),r.setXYZ(p,l.x,l.y,l.z),r.setXYZ(g,c.x,c.y,c.z)}else for(let d=0,m=n.count;d<m;d+=3)i.fromBufferAttribute(n,d+0),s.fromBufferAttribute(n,d+1),o.fromBufferAttribute(n,d+2),u.subVectors(o,s),h.subVectors(i,s),u.cross(h),r.setXYZ(d+0,u.x,u.y,u.z),r.setXYZ(d+1,u.x,u.y,u.z),r.setXYZ(d+2,u.x,u.y,u.z);this.normalizeNormals(),r.needsUpdate=!0}}normalizeNormals(){const e=this.attributes.normal;for(let n=0,r=e.count;n<r;n++)sr.fromBufferAttribute(e,n),sr.normalize(),e.setXYZ(n,sr.x,sr.y,sr.z)}toNonIndexed(){function e(a,l){const c=a.array,u=a.itemSize,h=a.normalized,d=new c.constructor(l.length*u);let m=0,v=0;for(let p=0,g=l.length;p<g;p++){a.isInterleavedBufferAttribute?m=l[p]*a.data.stride+a.offset:m=l[p]*u;for(let f=0;f<u;f++)d[v++]=c[m++]}return new eo(d,u,h)}if(this.index===null)return console.warn("THREE.BufferGeometry.toNonIndexed(): BufferGeometry is already non-indexed."),this;const n=new Yl,r=this.index.array,i=this.attributes;for(const a in i){const l=i[a],c=e(l,r);n.setAttribute(a,c)}const s=this.morphAttributes;for(const a in s){const l=[],c=s[a];for(let u=0,h=c.length;u<h;u++){const d=c[u],m=e(d,r);l.push(m)}n.morphAttributes[a]=l}n.morphTargetsRelative=this.morphTargetsRelative;const o=this.groups;for(let a=0,l=o.length;a0&&(e.userData=this.userData),this.parameters!==void 0){const l=this.parameters;for(const c in l)l[c]!==void 0&&(e[c]=l[c]);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 r=this.attributes;for(const l in r){const c=r[l];e.data.attributes[l]=c.toJSON(e.data)}const i={};let s=!1;for(const l in this.morphAttributes){const c=this.morphAttributes[l],u=[];for(let h=0,d=c.length;h0&&(i[l]=u,s=!0)}s&&(e.data.morphAttributes=i,e.data.morphTargetsRelative=this.morphTargetsRelative);const o=this.groups;o.length>0&&(e.data.groups=JSON.parse(JSON.stringify(o)));const a=this.boundingSphere;return a!==null&&(e.data.boundingSphere={center:a.center.toArray(),radius:a.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 r=e.index;r!==null&&this.setIndex(r.clone(n));const i=e.attributes;for(const c in i){const u=i[c];this.setAttribute(c,u.clone(n))}const s=e.morphAttributes;for(const c in s){const u=[],h=s[c];for(let d=0,m=h.length;d<m;d++)u.push(h[d].clone(n));this.morphAttributes[c]=u}this.morphTargetsRelative=e.morphTargetsRelative;const o=e.groups;for(let c=0,u=o.length;c0){const i=n[r[0]];if(i!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let s=0,o=i.length;s<o;s++){const a=i[s].name||String(s);this.morphTargetInfluences.push(0),this.morphTargetDictionary[a]=s}}}}getVertexPosition(e,n){const r=this.geometry,i=r.attributes.position,s=r.morphAttributes.position,o=r.morphTargetsRelative;n.fromBufferAttribute(i,e);const a=this.morphTargetInfluences;if(s&&a){Oh.set(0,0,0);for(let l=0,c=s.length;l(e.far-e.near)**2))&&(YS.copy(s).invert(),il.copy(e.ray).applyMatrix4(YS),!(r.boundingBox!==null&&il.intersectsBox(r.boundingBox)===!1)&&this._computeIntersections(e,n,il)))}_computeIntersections(e,n,r){let i;const s=this.geometry,o=this.material,a=s.index,l=s.attributes.position,c=s.attributes.uv,u=s.attributes.uv1,h=s.attributes.normal,d=s.groups,m=s.drawRange;if(a!==null)if(Array.isArray(o))for(let v=0,p=d.length;v<p;v++){const g=d[v],f=o[g.materialIndex],x=Math.max(g.start,m.start),_=Math.min(a.count,Math.min(g.start+g.count,m.start+m.count));for(let y=x,w=_;y<w;y+=3){const T=a.getX(y),b=a.getX(y+1),E=a.getX(y+2);i=Bh(this,f,e,r,c,u,h,T,b,E),i&&(i.faceIndex=Math.floor(y/3),i.face.materialIndex=g.materialIndex,n.push(i))}}else{const v=Math.max(0,m.start),p=Math.min(a.count,m.start+m.count);for(let g=v,f=p;g<f;g+=3){const x=a.getX(g),_=a.getX(g+1),y=a.getX(g+2);i=Bh(this,o,e,r,c,u,h,x,_,y),i&&(i.faceIndex=Math.floor(g/3),n.push(i))}}else if(l!==void 0)if(Array.isArray(o))for(let v=0,p=d.length;v<p;v++){const g=d[v],f=o[g.materialIndex],x=Math.max(g.start,m.start),_=Math.min(l.count,Math.min(g.start+g.count,m.start+m.count));for(let y=x,w=_;y<w;y+=3){const T=y,b=y+1,E=y+2;i=Bh(this,f,e,r,c,u,h,T,b,E),i&&(i.faceIndex=Math.floor(y/3),i.face.materialIndex=g.materialIndex,n.push(i))}}else{const v=Math.max(0,m.start),p=Math.min(l.count,m.start+m.count);for(let g=v,f=p;g<f;g+=3){const x=g,_=g+1,y=g+2;i=Bh(this,o,e,r,c,u,h,x,_,y),i&&(i.faceIndex=Math.floor(g/3),n.push(i))}}}}function N5(t,e,n,r,i,s,o,a){let l;if(e.side===hi?l=r.intersectTriangle(o,s,i,!0,a):l=r.intersectTriangle(i,s,o,e.side===Oa,a),l===null)return null;zh.copy(a),zh.applyMatrix4(t.matrixWorld);const c=n.ray.origin.distanceTo(zh);return cn.far?null:{distance:c,point:zh.clone(),object:t}}function Bh(t,e,n,r,i,s,o,a,l,c){t.getVertexPosition(a,wc),t.getVertexPosition(l,Sc),t.getVertexPosition(c,bc);const u=N5(t,e,n,r,wc,Sc,bc,Fh);if(u){i&&(Uh.fromBufferAttribute(i,a),Ih.fromBufferAttribute(i,l),kh.fromBufferAttribute(i,c),u.uv=Ys.getInterpolation(Fh,wc,Sc,bc,Uh,Ih,kh,new Wt)),s&&(Uh.fromBufferAttribute(s,a),Ih.fromBufferAttribute(s,l),kh.fromBufferAttribute(s,c),u.uv1=Ys.getInterpolation(Fh,wc,Sc,bc,Uh,Ih,kh,new Wt)),o&&(KS.fromBufferAttribute(o,a),ZS.fromBufferAttribute(o,l),QS.fromBufferAttribute(o,c),u.normal=Ys.getInterpolation(Fh,wc,Sc,bc,KS,ZS,QS,new me),u.normal.dot(r.direction)>0&&u.normal.multiplyScalar(-1));const h={a,b:l,c,normal:new me,materialIndex:0};Ys.getNormal(wc,Sc,bc,h.normal),u.face=h}return u}class Af extends Yl{constructor(e=1,n=1,r=1,i=1,s=1,o=1){super(),this.type="BoxGeometry",this.parameters={width:e,height:n,depth:r,widthSegments:i,heightSegments:s,depthSegments:o};const a=this;i=Math.floor(i),s=Math.floor(s),o=Math.floor(o);const l=[],c=[],u=[],h=[];let d=0,m=0;v("z","y","x",-1,-1,r,n,e,o,s,0),v("z","y","x",1,-1,r,n,-e,o,s,1),v("x","z","y",1,1,e,r,n,i,o,2),v("x","z","y",1,-1,e,r,-n,i,o,3),v("x","y","z",1,-1,e,n,r,i,s,4),v("x","y","z",-1,-1,e,n,-r,i,s,5),this.setIndex(l),this.setAttribute("position",new Pl(c,3)),this.setAttribute("normal",new Pl(u,3)),this.setAttribute("uv",new Pl(h,2));function v(p,g,f,x,_,y,w,T,b,E,M){const S=y/b,P=w/E,V=y/2,H=w/2,G=T/2,$=b+1,F=E+1;let W=0,A=0;const X=new me;for(let q=0;q<F;q++){const K=q*P-H;for(let oe=0;oe0?1:-1,u.push(X.x,X.y,X.z),h.push(oe/b),h.push(1-q/E),W+=1}}for(let q=0;q<E;q++)for(let K=0;K<b;K++){const oe=d+K+$*q,Ce=d+K+$*(q+1),Q=d+(K+1)+$*(q+1),le=d+(K+1)+$*q;l.push(oe,Ce,le),l.push(Ce,Q,le),A+=6}a.addGroup(m,A,M),m+=A,d+=W}}copy(e){return super.copy(e),this.parameters=Object.assign({},e.parameters),this}static fromJSON(e){return new Af(e.width,e.height,e.depth,e.widthSegments,e.heightSegments,e.depthSegments)}}function Eu(t){const e={};for(const n in t){e[n]={};for(const r in t[n]){const i=t[n][r];i&&(i.isColor||i.isMatrix3||i.isMatrix4||i.isVector2||i.isVector3||i.isVector4||i.isTexture||i.isQuaternion)?i.isRenderTargetTexture?(console.warn("UniformsUtils: Textures of render targets cannot be cloned via cloneUniforms() or mergeUniforms()."),e[n][r]=null):e[n][r]=i.clone():Array.isArray(i)?e[n][r]=i.slice():e[n][r]=i}}return e}function Gr(t){const e={};for(let n=0;n<t.length;n++){const r=Eu(t[n]);for(const i in r)e[i]=r[i]}return e}function O5(t){const e=[];for(let n=0;n0&&(n.defines=this.defines),n.vertexShader=this.vertexShader,n.fragmentShader=this.fragmentShader,n.lights=this.lights,n.clipping=this.clipping;const r={};for(const i in this.extensions)this.extensions[i]===!0&&(r[i]=!0);return Object.keys(r).length>0&&(n.extensions=r),n}}class bA extends Ui{constructor(){super(),this.isCamera=!0,this.type="Camera",this.matrixWorldInverse=new Qn,this.projectionMatrix=new Qn,this.projectionMatrixInverse=new Qn,this.coordinateSystem=Eo}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){return super.getWorldDirection(e).negate()}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)}}const ra=new me,JS=new Wt,eb=new Wt;class Es extends bA{constructor(e=50,n=1,r=.1,i=2e3){super(),this.isPerspectiveCamera=!0,this.type="PerspectiveCamera",this.fov=e,this.zoom=1,this.near=r,this.far=i,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=D_*2*Math.atan(n),this.updateProjectionMatrix()}getFocalLength(){const e=Math.tan(gg*.5*this.fov);return .5*this.getFilmHeight()/e}getEffectiveFOV(){return D_*2*Math.atan(Math.tan(gg*.5*this.fov)/this.zoom)}getFilmWidth(){return this.filmGauge*Math.min(this.aspect,1)}getFilmHeight(){return this.filmGauge/Math.max(this.aspect,1)}getViewBounds(e,n,r){ra.set(-1,-1,.5).applyMatrix4(this.projectionMatrixInverse),n.set(ra.x,ra.y).multiplyScalar(-e/ra.z),ra.set(1,1,.5).applyMatrix4(this.projectionMatrixInverse),r.set(ra.x,ra.y).multiplyScalar(-e/ra.z)}getViewSize(e,n){return this.getViewBounds(e,JS,eb),n.subVectors(eb,JS)}setViewOffset(e,n,r,i,s,o){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=r,this.view.offsetY=i,this.view.width=s,this.view.height=o,this.updateProjectionMatrix()}clearViewOffset(){this.view!==null&&(this.view.enabled=!1),this.updateProjectionMatrix()}updateProjectionMatrix(){const e=this.near;let n=e*Math.tan(gg*.5*this.fov)/this.zoom,r=2*n,i=this.aspect*r,s=-.5*i;const o=this.view;if(this.view!==null&&this.view.enabled){const l=o.fullWidth,c=o.fullHeight;s+=o.offsetX*i/l,n-=o.offsetY*r/c,i*=o.width/l,r*=o.height/c}const a=this.filmOffset;a!==0&&(s+=e*a/this.getFilmWidth()),this.projectionMatrix.makePerspective(s,s+i,n,n-r,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 Ec=-90,Mc=1;class F5 extends Ui{constructor(e,n,r){super(),this.type="CubeCamera",this.renderTarget=r,this.coordinateSystem=null,this.activeMipmapLevel=0;const i=new Es(Ec,Mc,e,n);i.layers=this.layers,this.add(i);const s=new Es(Ec,Mc,e,n);s.layers=this.layers,this.add(s);const o=new Es(Ec,Mc,e,n);o.layers=this.layers,this.add(o);const a=new Es(Ec,Mc,e,n);a.layers=this.layers,this.add(a);const l=new Es(Ec,Mc,e,n);l.layers=this.layers,this.add(l);const c=new Es(Ec,Mc,e,n);c.layers=this.layers,this.add(c)}updateCoordinateSystem(){const e=this.coordinateSystem,n=this.children.concat(),[r,i,s,o,a,l]=n;for(const c of n)this.remove(c);if(e===Eo)r.up.set(0,1,0),r.lookAt(1,0,0),i.up.set(0,1,0),i.lookAt(-1,0,0),s.up.set(0,0,-1),s.lookAt(0,1,0),o.up.set(0,0,1),o.lookAt(0,-1,0),a.up.set(0,1,0),a.lookAt(0,0,1),l.up.set(0,1,0),l.lookAt(0,0,-1);else if(e===im)r.up.set(0,-1,0),r.lookAt(-1,0,0),i.up.set(0,-1,0),i.lookAt(1,0,0),s.up.set(0,0,1),s.lookAt(0,1,0),o.up.set(0,0,-1),o.lookAt(0,-1,0),a.up.set(0,-1,0),a.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 c of n)this.add(c),c.updateMatrixWorld()}update(e,n){this.parent===null&&this.updateMatrixWorld();const{renderTarget:r,activeMipmapLevel:i}=this;this.coordinateSystem!==e.coordinateSystem&&(this.coordinateSystem=e.coordinateSystem,this.updateCoordinateSystem());const[s,o,a,l,c,u]=this.children,h=e.getRenderTarget(),d=e.getActiveCubeFace(),m=e.getActiveMipmapLevel(),v=e.xr.enabled;e.xr.enabled=!1;const p=r.texture.generateMipmaps;r.texture.generateMipmaps=!1,e.setRenderTarget(r,0,i),e.render(n,s),e.setRenderTarget(r,1,i),e.render(n,o),e.setRenderTarget(r,2,i),e.render(n,a),e.setRenderTarget(r,3,i),e.render(n,l),e.setRenderTarget(r,4,i),e.render(n,c),r.texture.generateMipmaps=p,e.setRenderTarget(r,5,i),e.render(n,u),e.setRenderTarget(h,d,m),e.xr.enabled=v,r.texture.needsPMREMUpdate=!0}}class EA extends pi{constructor(e,n,r,i,s,o,a,l,c,u){e=e!==void 0?e:[],n=n!==void 0?n:xu,super(e,n,r,i,s,o,a,l,c,u),this.isCubeTexture=!0,this.flipY=!1}get images(){return this.image}set images(e){this.image=e}}class z5 extends Wl{constructor(e=1,n={}){super(e,e,n),this.isWebGLCubeRenderTarget=!0;const r={width:e,height:e,depth:1},i=[r,r,r,r,r,r];this.texture=new EA(i,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:Ts}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 r={uniforms:{tEquirect:{value:null}},vertexShader:`
varying vec3 vWorldDirection;
vec3 transformDirection( in vec3 dir, in mat4 matrix ) {
return normalize( ( matrix * vec4( dir, 0.0 ) ).xyz );
}
void main() {
vWorldDirection = transformDirection( position, modelMatrix );
#include
#include
}
`,fragmentShader:`
uniform sampler2D tEquirect;
varying vec3 vWorldDirection;
#include
void main() {
vec3 direction = normalize( vWorldDirection );
vec2 sampleUV = equirectUv( direction );
gl_FragColor = texture2D( tEquirect, sampleUV );
}
`},i=new Af(5,5,5),s=new Oo({name:"CubemapFromEquirect",uniforms:Eu(r.uniforms),vertexShader:r.vertexShader,fragmentShader:r.fragmentShader,side:hi,blending:Aa});s.uniforms.tEquirect.value=n;const o=new Cs(i,s),a=n.minFilter;return n.minFilter===Sl&&(n.minFilter=Ts),new F5(1,10,this).update(e,o),n.minFilter=a,o.geometry.dispose(),o.material.dispose(),this}clear(e,n,r,i){const s=e.getRenderTarget();for(let o=0;o<6;o++)e.setRenderTarget(this,o),e.clear(n,r,i);e.setRenderTarget(s)}}const Ug=new me,B5=new me,V5=new Mt;class fl{constructor(e=new me(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,r,i){return this.normal.set(e,n,r),this.constant=i,this}setFromNormalAndCoplanarPoint(e,n){return this.normal.copy(e),this.constant=-n.dot(this.normal),this}setFromCoplanarPoints(e,n,r){const i=Ug.subVectors(r,n).cross(B5.subVectors(e,n)).normalize();return this.setFromNormalAndCoplanarPoint(i,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 r=e.delta(Ug),i=this.normal.dot(r);if(i===0)return this.distanceToPoint(e.start)===0?n.copy(e.start):null;const s=-(e.start.dot(this.normal)+this.constant)/i;return s1?null:n.copy(e.start).addScaledVector(r,s)}intersectsLine(e){const n=this.distanceToPoint(e.start),r=this.distanceToPoint(e.end);return n0||r0}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 r=n||V5.getNormalMatrix(e),i=this.coplanarPoint(Ug).applyMatrix4(e),s=this.normal.applyMatrix3(r).normalize();return this.constant=-i.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 sl=new wy,Vh=new me;class MA{constructor(e=new fl,n=new fl,r=new fl,i=new fl,s=new fl,o=new fl){this.planes=[e,n,r,i,s,o]}set(e,n,r,i,s,o){const a=this.planes;return a[0].copy(e),a[1].copy(n),a[2].copy(r),a[3].copy(i),a[4].copy(s),a[5].copy(o),this}copy(e){const n=this.planes;for(let r=0;r<6;r++)n[r].copy(e.planes[r]);return this}setFromProjectionMatrix(e,n=Eo){const r=this.planes,i=e.elements,s=i[0],o=i[1],a=i[2],l=i[3],c=i[4],u=i[5],h=i[6],d=i[7],m=i[8],v=i[9],p=i[10],g=i[11],f=i[12],x=i[13],_=i[14],y=i[15];if(r[0].setComponents(l-s,d-c,g-m,y-f).normalize(),r[1].setComponents(l+s,d+c,g+m,y+f).normalize(),r[2].setComponents(l+o,d+u,g+v,y+x).normalize(),r[3].setComponents(l-o,d-u,g-v,y-x).normalize(),r[4].setComponents(l-a,d-h,g-p,y-_).normalize(),n===Eo)r[5].setComponents(l+a,d+h,g+p,y+_).normalize();else if(n===im)r[5].setComponents(a,h,p,_).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(),sl.copy(e.boundingSphere).applyMatrix4(e.matrixWorld);else{const n=e.geometry;n.boundingSphere===null&&n.computeBoundingSphere(),sl.copy(n.boundingSphere).applyMatrix4(e.matrixWorld)}return this.intersectsSphere(sl)}intersectsSprite(e){return sl.center.set(0,0,0),sl.radius=.7071067811865476,sl.applyMatrix4(e.matrixWorld),this.intersectsSphere(sl)}intersectsSphere(e){const n=this.planes,r=e.center,i=-e.radius;for(let s=0;s<6;s++)if(n[s].distanceToPoint(r)<i)return!1;return!0}intersectsBox(e){const n=this.planes;for(let r=0;r0?e.max.x:e.min.x,Vh.y=i.normal.y>0?e.max.y:e.min.y,Vh.z=i.normal.z>0?e.max.z:e.min.z,i.distanceToPoint(Vh)<0)return!1}return!0}containsPoint(e){const n=this.planes;for(let r=0;r<6;r++)if(n[r].distanceToPoint(e)<0)return!1;return!0}clone(){return new this.constructor().copy(this)}}function TA(){let t=null,e=!1,n=null,r=null;function i(s,o){n(s,o),r=t.requestAnimationFrame(i)}return{start:function(){e!==!0&&n!==null&&(r=t.requestAnimationFrame(i),e=!0)},stop:function(){t.cancelAnimationFrame(r),e=!1},setAnimationLoop:function(s){n=s},setContext:function(s){t=s}}}function H5(t){const e=new WeakMap;function n(a,l){const c=a.array,u=a.usage,h=c.byteLength,d=t.createBuffer();t.bindBuffer(l,d),t.bufferData(l,c,u),a.onUploadCallback();let m;if(c instanceof Float32Array)m=t.FLOAT;else if(c instanceof Uint16Array)a.isFloat16BufferAttribute?m=t.HALF_FLOAT:m=t.UNSIGNED_SHORT;else if(c instanceof Int16Array)m=t.SHORT;else if(c instanceof Uint32Array)m=t.UNSIGNED_INT;else if(c instanceof Int32Array)m=t.INT;else if(c instanceof Int8Array)m=t.BYTE;else if(c instanceof Uint8Array)m=t.UNSIGNED_BYTE;else if(c instanceof Uint8ClampedArray)m=t.UNSIGNED_BYTE;else throw new Error("THREE.WebGLAttributes: Unsupported buffer data format: "+c);return{buffer:d,type:m,bytesPerElement:c.BYTES_PER_ELEMENT,version:a.version,size:h}}function r(a,l,c){const u=l.array,h=l._updateRange,d=l.updateRanges;if(t.bindBuffer(c,a),h.count===-1&&d.length===0&&t.bufferSubData(c,0,u),d.length!==0){for(let m=0,v=d.length;m<v;m++){const p=d[m];t.bufferSubData(c,p.start*u.BYTES_PER_ELEMENT,u,p.start,p.count)}l.clearUpdateRanges()}h.count!==-1&&(t.bufferSubData(c,h.offset*u.BYTES_PER_ELEMENT,u,h.offset,h.count),h.count=-1),l.onUploadCallback()}function i(a){return a.isInterleavedBufferAttribute&&(a=a.data),e.get(a)}function s(a){a.isInterleavedBufferAttribute&&(a=a.data);const l=e.get(a);l&&(t.deleteBuffer(l.buffer),e.delete(a))}function o(a,l){if(a.isGLBufferAttribute){const u=e.get(a);(!u||u.version<a.version)&&e.set(a,{buffer:a.buffer,type:a.type,bytesPerElement:a.elementSize,version:a.version});return}a.isInterleavedBufferAttribute&&(a=a.data);const c=e.get(a);if(c===void 0)e.set(a,n(a,l));else if(c.version<a.version){if(c.size!==a.array.byteLength)throw new Error("THREE.WebGLAttributes: The size of the buffer attribute's array buffer does not match the original size. Resizing buffer attributes is not supported.");r(c.buffer,a,l),c.version=a.version}}return{get:i,remove:s,update:o}}class Rf extends Yl{constructor(e=1,n=1,r=1,i=1){super(),this.type="PlaneGeometry",this.parameters={width:e,height:n,widthSegments:r,heightSegments:i};const s=e/2,o=n/2,a=Math.floor(r),l=Math.floor(i),c=a+1,u=l+1,h=e/a,d=n/l,m=[],v=[],p=[],g=[];for(let f=0;f<u;f++){const x=f*d-o;for(let _=0;_<c;_++){const y=_*h-s;v.push(y,-x,0),p.push(0,0,1),g.push(_/a),g.push(1-f/l)}}for(let f=0;f<l;f++)for(let x=0;x<a;x++){const _=x+c*f,y=x+c*(f+1),w=x+1+c*(f+1),T=x+1+c*f;m.push(_,y,T),m.push(y,w,T)}this.setIndex(m),this.setAttribute("position",new Pl(v,3)),this.setAttribute("normal",new Pl(p,3)),this.setAttribute("uv",new Pl(g,2))}copy(e){return super.copy(e),this.parameters=Object.assign({},e.parameters),this}static fromJSON(e){return new Rf(e.width,e.height,e.widthSegments,e.heightSegments)}}var W5=`#ifdef USE_ALPHAHASH
if ( diffuseColor.a < getAlphaHashThreshold( vPosition ) ) discard;
#endif`,G5=`#ifdef USE_ALPHAHASH
const float ALPHA_HASH_SCALE = 0.05;
float hash2D( vec2 value ) {
return fract( 1.0e4 * sin( 17.0 * value.x + 0.1 * value.y ) * ( 0.1 + abs( sin( 13.0 * value.y + value.x ) ) ) );
}
float hash3D( vec3 value ) {
return hash2D( vec2( hash2D( value.xy ), value.z ) );
}
float getAlphaHashThreshold( vec3 position ) {
float maxDeriv = max(
length( dFdx( position.xyz ) ),
length( dFdy( position.xyz ) )
);
float pixScale = 1.0 / ( ALPHA_HASH_SCALE * maxDeriv );
vec2 pixScales = vec2(
exp2( floor( log2( pixScale ) ) ),
exp2( ceil( log2( pixScale ) ) )
);
vec2 alpha = vec2(
hash3D( floor( pixScales.x * position.xyz ) ),
hash3D( floor( pixScales.y * position.xyz ) )
);
float lerpFactor = fract( log2( pixScale ) );
float x = ( 1.0 - lerpFactor ) * alpha.x + lerpFactor * alpha.y;
float a = min( lerpFactor, 1.0 - lerpFactor );
vec3 cases = vec3(
x * x / ( 2.0 * a * ( 1.0 - a ) ),
( x - 0.5 * a ) / ( 1.0 - a ),
1.0 - ( ( 1.0 - x ) * ( 1.0 - x ) / ( 2.0 * a * ( 1.0 - a ) ) )
);
float threshold = ( x < ( 1.0 - a ) )
? ( ( x < a ) ? cases.x : cases.y )
: cases.z;
return clamp( threshold , 1.0e-6, 1.0 );
}
#endif`,$5=`#ifdef USE_ALPHAMAP
diffuseColor.a *= texture2D( alphaMap, vAlphaMapUv ).g;
#endif`,j5=`#ifdef USE_ALPHAMAP
uniform sampler2D alphaMap;
#endif`,X5=`#ifdef USE_ALPHATEST
#ifdef ALPHA_TO_COVERAGE
diffuseColor.a = smoothstep( alphaTest, alphaTest + fwidth( diffuseColor.a ), diffuseColor.a );
if ( diffuseColor.a == 0.0 ) discard;
#else
if ( diffuseColor.a < alphaTest ) discard;
#endif
#endif`,Y5=`#ifdef USE_ALPHATEST
uniform float alphaTest;
#endif`,q5=`#ifdef USE_AOMAP
float ambientOcclusion = ( texture2D( aoMap, vAoMapUv ).r - 1.0 ) * aoMapIntensity + 1.0;
reflectedLight.indirectDiffuse *= ambientOcclusion;
#if defined( USE_CLEARCOAT )
clearcoatSpecularIndirect *= ambientOcclusion;
#endif
#if defined( USE_SHEEN )
sheenSpecularIndirect *= ambientOcclusion;
#endif
#if defined( USE_ENVMAP ) && defined( STANDARD )
float dotNV = saturate( dot( geometryNormal, geometryViewDir ) );
reflectedLight.indirectSpecular *= computeSpecularOcclusion( dotNV, ambientOcclusion, material.roughness );
#endif
#endif`,K5=`#ifdef USE_AOMAP
uniform sampler2D aoMap;
uniform float aoMapIntensity;
#endif`,Z5=`#ifdef USE_BATCHING
attribute float batchId;
uniform highp sampler2D batchingTexture;
mat4 getBatchingMatrix( const in float i ) {
int size = textureSize( batchingTexture, 0 ).x;
int j = int( i ) * 4;
int x = j % size;
int y = j / size;
vec4 v1 = texelFetch( batchingTexture, ivec2( x, y ), 0 );
vec4 v2 = texelFetch( batchingTexture, ivec2( x + 1, y ), 0 );
vec4 v3 = texelFetch( batchingTexture, ivec2( x + 2, y ), 0 );
vec4 v4 = texelFetch( batchingTexture, ivec2( x + 3, y ), 0 );
return mat4( v1, v2, v3, v4 );
}
#endif
#ifdef USE_BATCHING_COLOR
uniform sampler2D batchingColorTexture;
vec3 getBatchingColor( const in float i ) {
int size = textureSize( batchingColorTexture, 0 ).x;
int j = int( i );
int x = j % size;
int y = j / size;
return texelFetch( batchingColorTexture, ivec2( x, y ), 0 ).rgb;
}
#endif`,Q5=`#ifdef USE_BATCHING
mat4 batchingMatrix = getBatchingMatrix( batchId );
#endif`,J5=`vec3 transformed = vec3( position );
#ifdef USE_ALPHAHASH
vPosition = vec3( position );
#endif`,e6=`vec3 objectNormal = vec3( normal );
#ifdef USE_TANGENT
vec3 objectTangent = vec3( tangent.xyz );
#endif`,t6=`float G_BlinnPhong_Implicit( ) {
return 0.25;
}
float D_BlinnPhong( const in float shininess, const in float dotNH ) {
return RECIPROCAL_PI * ( shininess * 0.5 + 1.0 ) * pow( dotNH, shininess );
}
vec3 BRDF_BlinnPhong( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in vec3 specularColor, const in float shininess ) {
vec3 halfDir = normalize( lightDir + viewDir );
float dotNH = saturate( dot( normal, halfDir ) );
float dotVH = saturate( dot( viewDir, halfDir ) );
vec3 F = F_Schlick( specularColor, 1.0, dotVH );
float G = G_BlinnPhong_Implicit( );
float D = D_BlinnPhong( shininess, dotNH );
return F * ( G * D );
} // validated`,n6=`#ifdef USE_IRIDESCENCE
const mat3 XYZ_TO_REC709 = mat3(
3.2404542, -0.9692660, 0.0556434,
-1.5371385, 1.8760108, -0.2040259,
-0.4985314, 0.0415560, 1.0572252
);
vec3 Fresnel0ToIor( vec3 fresnel0 ) {
vec3 sqrtF0 = sqrt( fresnel0 );
return ( vec3( 1.0 ) + sqrtF0 ) / ( vec3( 1.0 ) - sqrtF0 );
}
vec3 IorToFresnel0( vec3 transmittedIor, float incidentIor ) {
return pow2( ( transmittedIor - vec3( incidentIor ) ) / ( transmittedIor + vec3( incidentIor ) ) );
}
float IorToFresnel0( float transmittedIor, float incidentIor ) {
return pow2( ( transmittedIor - incidentIor ) / ( transmittedIor + incidentIor ));
}
vec3 evalSensitivity( float OPD, vec3 shift ) {
float phase = 2.0 * PI * OPD * 1.0e-9;
vec3 val = vec3( 5.4856e-13, 4.4201e-13, 5.2481e-13 );
vec3 pos = vec3( 1.6810e+06, 1.7953e+06, 2.2084e+06 );
vec3 var = vec3( 4.3278e+09, 9.3046e+09, 6.6121e+09 );
vec3 xyz = val * sqrt( 2.0 * PI * var ) * cos( pos * phase + shift ) * exp( - pow2( phase ) * var );
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 ) );
xyz /= 1.0685e-7;
vec3 rgb = XYZ_TO_REC709 * xyz;
return rgb;
}
vec3 evalIridescence( float outsideIOR, float eta2, float cosTheta1, float thinFilmThickness, vec3 baseF0 ) {
vec3 I;
float iridescenceIOR = mix( outsideIOR, eta2, smoothstep( 0.0, 0.03, thinFilmThickness ) );
float sinTheta2Sq = pow2( outsideIOR / iridescenceIOR ) * ( 1.0 - pow2( cosTheta1 ) );
float cosTheta2Sq = 1.0 - sinTheta2Sq;
if ( cosTheta2Sq < 0.0 ) {
return vec3( 1.0 );
}
float cosTheta2 = sqrt( cosTheta2Sq );
float R0 = IorToFresnel0( iridescenceIOR, outsideIOR );
float R12 = F_Schlick( R0, 1.0, cosTheta1 );
float T121 = 1.0 - R12;
float phi12 = 0.0;
if ( iridescenceIOR < outsideIOR ) phi12 = PI;
float phi21 = PI - phi12;
vec3 baseIOR = Fresnel0ToIor( clamp( baseF0, 0.0, 0.9999 ) ); vec3 R1 = IorToFresnel0( baseIOR, iridescenceIOR );
vec3 R23 = F_Schlick( R1, 1.0, cosTheta2 );
vec3 phi23 = vec3( 0.0 );
if ( baseIOR[ 0 ] < iridescenceIOR ) phi23[ 0 ] = PI;
if ( baseIOR[ 1 ] < iridescenceIOR ) phi23[ 1 ] = PI;
if ( baseIOR[ 2 ] < iridescenceIOR ) phi23[ 2 ] = PI;
float OPD = 2.0 * iridescenceIOR * thinFilmThickness * cosTheta2;
vec3 phi = vec3( phi21 ) + phi23;
vec3 R123 = clamp( R12 * R23, 1e-5, 0.9999 );
vec3 r123 = sqrt( R123 );
vec3 Rs = pow2( T121 ) * R23 / ( vec3( 1.0 ) - R123 );
vec3 C0 = R12 + Rs;
I = C0;
vec3 Cm = Rs - T121;
for ( int m = 1; m 0
vec4 plane;
#ifdef ALPHA_TO_COVERAGE
float distanceToPlane, distanceGradient;
float clipOpacity = 1.0;
#pragma unroll_loop_start
for ( int i = 0; i < UNION_CLIPPING_PLANES; i ++ ) {
plane = clippingPlanes[ i ];
distanceToPlane = - dot( vClipPosition, plane.xyz ) + plane.w;
distanceGradient = fwidth( distanceToPlane ) / 2.0;
clipOpacity *= smoothstep( - distanceGradient, distanceGradient, distanceToPlane );
if ( clipOpacity == 0.0 ) discard;
}
#pragma unroll_loop_end
#if UNION_CLIPPING_PLANES < NUM_CLIPPING_PLANES
float unionClipOpacity = 1.0;
#pragma unroll_loop_start
for ( int i = UNION_CLIPPING_PLANES; i < NUM_CLIPPING_PLANES; i ++ ) {
plane = clippingPlanes[ i ];
distanceToPlane = - dot( vClipPosition, plane.xyz ) + plane.w;
distanceGradient = fwidth( distanceToPlane ) / 2.0;
unionClipOpacity *= 1.0 - smoothstep( - distanceGradient, distanceGradient, distanceToPlane );
}
#pragma unroll_loop_end
clipOpacity *= 1.0 - unionClipOpacity;
#endif
diffuseColor.a *= clipOpacity;
if ( diffuseColor.a == 0.0 ) discard;
#else
#pragma unroll_loop_start
for ( int i = 0; i plane.w ) discard;
}
#pragma unroll_loop_end
#if UNION_CLIPPING_PLANES < NUM_CLIPPING_PLANES
bool clipped = true;
#pragma unroll_loop_start
for ( int i = UNION_CLIPPING_PLANES; i plane.w ) && clipped;
}
#pragma unroll_loop_end
if ( clipped ) discard;
#endif
#endif
#endif`,s6=`#if NUM_CLIPPING_PLANES > 0
varying vec3 vClipPosition;
uniform vec4 clippingPlanes[ NUM_CLIPPING_PLANES ];
#endif`,o6=`#if NUM_CLIPPING_PLANES > 0
varying vec3 vClipPosition;
#endif`,a6=`#if NUM_CLIPPING_PLANES > 0
vClipPosition = - mvPosition.xyz;
#endif`,l6=`#if defined( USE_COLOR_ALPHA )
diffuseColor *= vColor;
#elif defined( USE_COLOR )
diffuseColor.rgb *= vColor;
#endif`,c6=`#if defined( USE_COLOR_ALPHA )
varying vec4 vColor;
#elif defined( USE_COLOR )
varying vec3 vColor;
#endif`,u6=`#if defined( USE_COLOR_ALPHA )
varying vec4 vColor;
#elif defined( USE_COLOR ) || defined( USE_INSTANCING_COLOR ) || defined( USE_BATCHING_COLOR )
varying vec3 vColor;
#endif`,d6=`#if defined( USE_COLOR_ALPHA )
vColor = vec4( 1.0 );
#elif defined( USE_COLOR ) || defined( USE_INSTANCING_COLOR ) || defined( USE_BATCHING_COLOR )
vColor = vec3( 1.0 );
#endif
#ifdef USE_COLOR
vColor *= color;
#endif
#ifdef USE_INSTANCING_COLOR
vColor.xyz *= instanceColor.xyz;
#endif
#ifdef USE_BATCHING_COLOR
vec3 batchingColor = getBatchingColor( batchId );
vColor.xyz *= batchingColor.xyz;
#endif`,f6=`#define PI 3.141592653589793
#define PI2 6.283185307179586
#define PI_HALF 1.5707963267948966
#define RECIPROCAL_PI 0.3183098861837907
#define RECIPROCAL_PI2 0.15915494309189535
#define EPSILON 1e-6
#ifndef saturate
#define saturate( a ) clamp( a, 0.0, 1.0 )
#endif
#define whiteComplement( a ) ( 1.0 - saturate( a ) )
float pow2( const in float x ) { return x*x; }
vec3 pow2( const in vec3 x ) { return x*x; }
float pow3( const in float x ) { return x*x*x; }
float pow4( const in float x ) { float x2 = x*x; return x2*x2; }
float max3( const in vec3 v ) { return max( max( v.x, v.y ), v.z ); }
float average( const in vec3 v ) { return dot( v, vec3( 0.3333333 ) ); }
highp float rand( const in vec2 uv ) {
const highp float a = 12.9898, b = 78.233, c = 43758.5453;
highp float dt = dot( uv.xy, vec2( a,b ) ), sn = mod( dt, PI );
return fract( sin( sn ) * c );
}
#ifdef HIGH_PRECISION
float precisionSafeLength( vec3 v ) { return length( v ); }
#else
float precisionSafeLength( vec3 v ) {
float maxComponent = max3( abs( v ) );
return length( v / maxComponent ) * maxComponent;
}
#endif
struct IncidentLight {
vec3 color;
vec3 direction;
bool visible;
};
struct ReflectedLight {
vec3 directDiffuse;
vec3 directSpecular;
vec3 indirectDiffuse;
vec3 indirectSpecular;
};
#ifdef USE_ALPHAHASH
varying vec3 vPosition;
#endif
vec3 transformDirection( in vec3 dir, in mat4 matrix ) {
return normalize( ( matrix * vec4( dir, 0.0 ) ).xyz );
}
vec3 inverseTransformDirection( in vec3 dir, in mat4 matrix ) {
return normalize( ( vec4( dir, 0.0 ) * matrix ).xyz );
}
mat3 transposeMat3( const in mat3 m ) {
mat3 tmp;
tmp[ 0 ] = vec3( m[ 0 ].x, m[ 1 ].x, m[ 2 ].x );
tmp[ 1 ] = vec3( m[ 0 ].y, m[ 1 ].y, m[ 2 ].y );
tmp[ 2 ] = vec3( m[ 0 ].z, m[ 1 ].z, m[ 2 ].z );
return tmp;
}
float luminance( const in vec3 rgb ) {
const vec3 weights = vec3( 0.2126729, 0.7151522, 0.0721750 );
return dot( weights, rgb );
}
bool isPerspectiveMatrix( mat4 m ) {
return m[ 2 ][ 3 ] == - 1.0;
}
vec2 equirectUv( in vec3 dir ) {
float u = atan( dir.z, dir.x ) * RECIPROCAL_PI2 + 0.5;
float v = asin( clamp( dir.y, - 1.0, 1.0 ) ) * RECIPROCAL_PI + 0.5;
return vec2( u, v );
}
vec3 BRDF_Lambert( const in vec3 diffuseColor ) {
return RECIPROCAL_PI * diffuseColor;
}
vec3 F_Schlick( const in vec3 f0, const in float f90, const in float dotVH ) {
float fresnel = exp2( ( - 5.55473 * dotVH - 6.98316 ) * dotVH );
return f0 * ( 1.0 - fresnel ) + ( f90 * fresnel );
}
float F_Schlick( const in float f0, const in float f90, const in float dotVH ) {
float fresnel = exp2( ( - 5.55473 * dotVH - 6.98316 ) * dotVH );
return f0 * ( 1.0 - fresnel ) + ( f90 * fresnel );
} // validated`,h6=`#ifdef ENVMAP_TYPE_CUBE_UV
#define cubeUV_minMipLevel 4.0
#define cubeUV_minTileSize 16.0
float getFace( vec3 direction ) {
vec3 absDirection = abs( direction );
float face = - 1.0;
if ( absDirection.x > absDirection.z ) {
if ( absDirection.x > absDirection.y )
face = direction.x > 0.0 ? 0.0 : 3.0;
else
face = direction.y > 0.0 ? 1.0 : 4.0;
} else {
if ( absDirection.z > absDirection.y )
face = direction.z > 0.0 ? 2.0 : 5.0;
else
face = direction.y > 0.0 ? 1.0 : 4.0;
}
return face;
}
vec2 getUV( vec3 direction, float face ) {
vec2 uv;
if ( face == 0.0 ) {
uv = vec2( direction.z, direction.y ) / abs( direction.x );
} else if ( face == 1.0 ) {
uv = vec2( - direction.x, - direction.z ) / abs( direction.y );
} else if ( face == 2.0 ) {
uv = vec2( - direction.x, direction.y ) / abs( direction.z );
} else if ( face == 3.0 ) {
uv = vec2( - direction.z, direction.y ) / abs( direction.x );
} else if ( face == 4.0 ) {
uv = vec2( - direction.x, direction.z ) / abs( direction.y );
} else {
uv = vec2( direction.x, direction.y ) / abs( direction.z );
}
return 0.5 * ( uv + 1.0 );
}
vec3 bilinearCubeUV( sampler2D envMap, vec3 direction, float mipInt ) {
float face = getFace( direction );
float filterInt = max( cubeUV_minMipLevel - mipInt, 0.0 );
mipInt = max( mipInt, cubeUV_minMipLevel );
float faceSize = exp2( mipInt );
highp vec2 uv = getUV( direction, face ) * ( faceSize - 2.0 ) + 1.0;
if ( face > 2.0 ) {
uv.y += faceSize;
face -= 3.0;
}
uv.x += face * faceSize;
uv.x += filterInt * 3.0 * cubeUV_minTileSize;
uv.y += 4.0 * ( exp2( CUBEUV_MAX_MIP ) - faceSize );
uv.x *= CUBEUV_TEXEL_WIDTH;
uv.y *= CUBEUV_TEXEL_HEIGHT;
#ifdef texture2DGradEXT
return texture2DGradEXT( envMap, uv, vec2( 0.0 ), vec2( 0.0 ) ).rgb;
#else
return texture2D( envMap, uv ).rgb;
#endif
}
#define cubeUV_r0 1.0
#define cubeUV_m0 - 2.0
#define cubeUV_r1 0.8
#define cubeUV_m1 - 1.0
#define cubeUV_r4 0.4
#define cubeUV_m4 2.0
#define cubeUV_r5 0.305
#define cubeUV_m5 3.0
#define cubeUV_r6 0.21
#define cubeUV_m6 4.0
float roughnessToMip( float roughness ) {
float mip = 0.0;
if ( roughness >= cubeUV_r1 ) {
mip = ( cubeUV_r0 - roughness ) * ( cubeUV_m1 - cubeUV_m0 ) / ( cubeUV_r0 - cubeUV_r1 ) + cubeUV_m0;
} else if ( roughness >= cubeUV_r4 ) {
mip = ( cubeUV_r1 - roughness ) * ( cubeUV_m4 - cubeUV_m1 ) / ( cubeUV_r1 - cubeUV_r4 ) + cubeUV_m1;
} else if ( roughness >= cubeUV_r5 ) {
mip = ( cubeUV_r4 - roughness ) * ( cubeUV_m5 - cubeUV_m4 ) / ( cubeUV_r4 - cubeUV_r5 ) + cubeUV_m4;
} else if ( roughness >= cubeUV_r6 ) {
mip = ( cubeUV_r5 - roughness ) * ( cubeUV_m6 - cubeUV_m5 ) / ( cubeUV_r5 - cubeUV_r6 ) + cubeUV_m5;
} else {
mip = - 2.0 * log2( 1.16 * roughness ); }
return mip;
}
vec4 textureCubeUV( sampler2D envMap, vec3 sampleDir, float roughness ) {
float mip = clamp( roughnessToMip( roughness ), cubeUV_m0, CUBEUV_MAX_MIP );
float mipF = fract( mip );
float mipInt = floor( mip );
vec3 color0 = bilinearCubeUV( envMap, sampleDir, mipInt );
if ( mipF == 0.0 ) {
return vec4( color0, 1.0 );
} else {
vec3 color1 = bilinearCubeUV( envMap, sampleDir, mipInt + 1.0 );
return vec4( mix( color0, color1, mipF ), 1.0 );
}
}
#endif`,p6=`vec3 transformedNormal = objectNormal;
#ifdef USE_TANGENT
vec3 transformedTangent = objectTangent;
#endif
#ifdef USE_BATCHING
mat3 bm = mat3( batchingMatrix );
transformedNormal /= vec3( dot( bm[ 0 ], bm[ 0 ] ), dot( bm[ 1 ], bm[ 1 ] ), dot( bm[ 2 ], bm[ 2 ] ) );
transformedNormal = bm * transformedNormal;
#ifdef USE_TANGENT
transformedTangent = bm * transformedTangent;
#endif
#endif
#ifdef USE_INSTANCING
mat3 im = mat3( instanceMatrix );
transformedNormal /= vec3( dot( im[ 0 ], im[ 0 ] ), dot( im[ 1 ], im[ 1 ] ), dot( im[ 2 ], im[ 2 ] ) );
transformedNormal = im * transformedNormal;
#ifdef USE_TANGENT
transformedTangent = im * transformedTangent;
#endif
#endif
transformedNormal = normalMatrix * transformedNormal;
#ifdef FLIP_SIDED
transformedNormal = - transformedNormal;
#endif
#ifdef USE_TANGENT
transformedTangent = ( modelViewMatrix * vec4( transformedTangent, 0.0 ) ).xyz;
#ifdef FLIP_SIDED
transformedTangent = - transformedTangent;
#endif
#endif`,m6=`#ifdef USE_DISPLACEMENTMAP
uniform sampler2D displacementMap;
uniform float displacementScale;
uniform float displacementBias;
#endif`,g6=`#ifdef USE_DISPLACEMENTMAP
transformed += normalize( objectNormal ) * ( texture2D( displacementMap, vDisplacementMapUv ).x * displacementScale + displacementBias );
#endif`,v6=`#ifdef USE_EMISSIVEMAP
vec4 emissiveColor = texture2D( emissiveMap, vEmissiveMapUv );
totalEmissiveRadiance *= emissiveColor.rgb;
#endif`,_6=`#ifdef USE_EMISSIVEMAP
uniform sampler2D emissiveMap;
#endif`,x6="gl_FragColor = linearToOutputTexel( gl_FragColor );",y6=`
const mat3 LINEAR_SRGB_TO_LINEAR_DISPLAY_P3 = mat3(
vec3( 0.8224621, 0.177538, 0.0 ),
vec3( 0.0331941, 0.9668058, 0.0 ),
vec3( 0.0170827, 0.0723974, 0.9105199 )
);
const mat3 LINEAR_DISPLAY_P3_TO_LINEAR_SRGB = mat3(
vec3( 1.2249401, - 0.2249404, 0.0 ),
vec3( - 0.0420569, 1.0420571, 0.0 ),
vec3( - 0.0196376, - 0.0786361, 1.0982735 )
);
vec4 LinearSRGBToLinearDisplayP3( in vec4 value ) {
return vec4( value.rgb * LINEAR_SRGB_TO_LINEAR_DISPLAY_P3, value.a );
}
vec4 LinearDisplayP3ToLinearSRGB( in vec4 value ) {
return vec4( value.rgb * LINEAR_DISPLAY_P3_TO_LINEAR_SRGB, value.a );
}
vec4 LinearTransferOETF( in vec4 value ) {
return value;
}
vec4 sRGBTransferOETF( in vec4 value ) {
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 );
}
vec4 LinearToLinear( in vec4 value ) {
return value;
}
vec4 LinearTosRGB( in vec4 value ) {
return sRGBTransferOETF( value );
}`,w6=`#ifdef USE_ENVMAP
#ifdef ENV_WORLDPOS
vec3 cameraToFrag;
if ( isOrthographic ) {
cameraToFrag = normalize( vec3( - viewMatrix[ 0 ][ 2 ], - viewMatrix[ 1 ][ 2 ], - viewMatrix[ 2 ][ 2 ] ) );
} else {
cameraToFrag = normalize( vWorldPosition - cameraPosition );
}
vec3 worldNormal = inverseTransformDirection( normal, viewMatrix );
#ifdef ENVMAP_MODE_REFLECTION
vec3 reflectVec = reflect( cameraToFrag, worldNormal );
#else
vec3 reflectVec = refract( cameraToFrag, worldNormal, refractionRatio );
#endif
#else
vec3 reflectVec = vReflect;
#endif
#ifdef ENVMAP_TYPE_CUBE
vec4 envColor = textureCube( envMap, envMapRotation * vec3( flipEnvMap * reflectVec.x, reflectVec.yz ) );
#else
vec4 envColor = vec4( 0.0 );
#endif
#ifdef ENVMAP_BLENDING_MULTIPLY
outgoingLight = mix( outgoingLight, outgoingLight * envColor.xyz, specularStrength * reflectivity );
#elif defined( ENVMAP_BLENDING_MIX )
outgoingLight = mix( outgoingLight, envColor.xyz, specularStrength * reflectivity );
#elif defined( ENVMAP_BLENDING_ADD )
outgoingLight += envColor.xyz * specularStrength * reflectivity;
#endif
#endif`,S6=`#ifdef USE_ENVMAP
uniform float envMapIntensity;
uniform float flipEnvMap;
uniform mat3 envMapRotation;
#ifdef ENVMAP_TYPE_CUBE
uniform samplerCube envMap;
#else
uniform sampler2D envMap;
#endif
#endif`,b6=`#ifdef USE_ENVMAP
uniform float reflectivity;
#if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG ) || defined( LAMBERT )
#define ENV_WORLDPOS
#endif
#ifdef ENV_WORLDPOS
varying vec3 vWorldPosition;
uniform float refractionRatio;
#else
varying vec3 vReflect;
#endif
#endif`,E6=`#ifdef USE_ENVMAP
#if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG ) || defined( LAMBERT )
#define ENV_WORLDPOS
#endif
#ifdef ENV_WORLDPOS
varying vec3 vWorldPosition;
#else
varying vec3 vReflect;
uniform float refractionRatio;
#endif
#endif`,M6=`#ifdef USE_ENVMAP
#ifdef ENV_WORLDPOS
vWorldPosition = worldPosition.xyz;
#else
vec3 cameraToVertex;
if ( isOrthographic ) {
cameraToVertex = normalize( vec3( - viewMatrix[ 0 ][ 2 ], - viewMatrix[ 1 ][ 2 ], - viewMatrix[ 2 ][ 2 ] ) );
} else {
cameraToVertex = normalize( worldPosition.xyz - cameraPosition );
}
vec3 worldNormal = inverseTransformDirection( transformedNormal, viewMatrix );
#ifdef ENVMAP_MODE_REFLECTION
vReflect = reflect( cameraToVertex, worldNormal );
#else
vReflect = refract( cameraToVertex, worldNormal, refractionRatio );
#endif
#endif
#endif`,T6=`#ifdef USE_FOG
vFogDepth = - mvPosition.z;
#endif`,C6=`#ifdef USE_FOG
varying float vFogDepth;
#endif`,A6=`#ifdef USE_FOG
#ifdef FOG_EXP2
float fogFactor = 1.0 - exp( - fogDensity * fogDensity * vFogDepth * vFogDepth );
#else
float fogFactor = smoothstep( fogNear, fogFar, vFogDepth );
#endif
gl_FragColor.rgb = mix( gl_FragColor.rgb, fogColor, fogFactor );
#endif`,R6=`#ifdef USE_FOG
uniform vec3 fogColor;
varying float vFogDepth;
#ifdef FOG_EXP2
uniform float fogDensity;
#else
uniform float fogNear;
uniform float fogFar;
#endif
#endif`,P6=`#ifdef USE_GRADIENTMAP
uniform sampler2D gradientMap;
#endif
vec3 getGradientIrradiance( vec3 normal, vec3 lightDirection ) {
float dotNL = dot( normal, lightDirection );
vec2 coord = vec2( dotNL * 0.5 + 0.5, 0.0 );
#ifdef USE_GRADIENTMAP
return vec3( texture2D( gradientMap, coord ).r );
#else
vec2 fw = fwidth( coord ) * 0.5;
return mix( vec3( 0.7 ), vec3( 1.0 ), smoothstep( 0.7 - fw.x, 0.7 + fw.x, coord.x ) );
#endif
}`,D6=`#ifdef USE_LIGHTMAP
uniform sampler2D lightMap;
uniform float lightMapIntensity;
#endif`,L6=`LambertMaterial material;
material.diffuseColor = diffuseColor.rgb;
material.specularStrength = specularStrength;`,N6=`varying vec3 vViewPosition;
struct LambertMaterial {
vec3 diffuseColor;
float specularStrength;
};
void RE_Direct_Lambert( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in LambertMaterial material, inout ReflectedLight reflectedLight ) {
float dotNL = saturate( dot( geometryNormal, directLight.direction ) );
vec3 irradiance = dotNL * directLight.color;
reflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );
}
void RE_IndirectDiffuse_Lambert( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in LambertMaterial material, inout ReflectedLight reflectedLight ) {
reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );
}
#define RE_Direct RE_Direct_Lambert
#define RE_IndirectDiffuse RE_IndirectDiffuse_Lambert`,O6=`uniform bool receiveShadow;
uniform vec3 ambientLightColor;
#if defined( USE_LIGHT_PROBES )
uniform vec3 lightProbe[ 9 ];
#endif
vec3 shGetIrradianceAt( in vec3 normal, in vec3 shCoefficients[ 9 ] ) {
float x = normal.x, y = normal.y, z = normal.z;
vec3 result = shCoefficients[ 0 ] * 0.886227;
result += shCoefficients[ 1 ] * 2.0 * 0.511664 * y;
result += shCoefficients[ 2 ] * 2.0 * 0.511664 * z;
result += shCoefficients[ 3 ] * 2.0 * 0.511664 * x;
result += shCoefficients[ 4 ] * 2.0 * 0.429043 * x * y;
result += shCoefficients[ 5 ] * 2.0 * 0.429043 * y * z;
result += shCoefficients[ 6 ] * ( 0.743125 * z * z - 0.247708 );
result += shCoefficients[ 7 ] * 2.0 * 0.429043 * x * z;
result += shCoefficients[ 8 ] * 0.429043 * ( x * x - y * y );
return result;
}
vec3 getLightProbeIrradiance( const in vec3 lightProbe[ 9 ], const in vec3 normal ) {
vec3 worldNormal = inverseTransformDirection( normal, viewMatrix );
vec3 irradiance = shGetIrradianceAt( worldNormal, lightProbe );
return irradiance;
}
vec3 getAmbientLightIrradiance( const in vec3 ambientLightColor ) {
vec3 irradiance = ambientLightColor;
return irradiance;
}
float getDistanceAttenuation( const in float lightDistance, const in float cutoffDistance, const in float decayExponent ) {
float distanceFalloff = 1.0 / max( pow( lightDistance, decayExponent ), 0.01 );
if ( cutoffDistance > 0.0 ) {
distanceFalloff *= pow2( saturate( 1.0 - pow4( lightDistance / cutoffDistance ) ) );
}
return distanceFalloff;
}
float getSpotAttenuation( const in float coneCosine, const in float penumbraCosine, const in float angleCosine ) {
return smoothstep( coneCosine, penumbraCosine, angleCosine );
}
#if NUM_DIR_LIGHTS > 0
struct DirectionalLight {
vec3 direction;
vec3 color;
};
uniform DirectionalLight directionalLights[ NUM_DIR_LIGHTS ];
void getDirectionalLightInfo( const in DirectionalLight directionalLight, out IncidentLight light ) {
light.color = directionalLight.color;
light.direction = directionalLight.direction;
light.visible = true;
}
#endif
#if NUM_POINT_LIGHTS > 0
struct PointLight {
vec3 position;
vec3 color;
float distance;
float decay;
};
uniform PointLight pointLights[ NUM_POINT_LIGHTS ];
void getPointLightInfo( const in PointLight pointLight, const in vec3 geometryPosition, out IncidentLight light ) {
vec3 lVector = pointLight.position - geometryPosition;
light.direction = normalize( lVector );
float lightDistance = length( lVector );
light.color = pointLight.color;
light.color *= getDistanceAttenuation( lightDistance, pointLight.distance, pointLight.decay );
light.visible = ( light.color != vec3( 0.0 ) );
}
#endif
#if NUM_SPOT_LIGHTS > 0
struct SpotLight {
vec3 position;
vec3 direction;
vec3 color;
float distance;
float decay;
float coneCos;
float penumbraCos;
};
uniform SpotLight spotLights[ NUM_SPOT_LIGHTS ];
void getSpotLightInfo( const in SpotLight spotLight, const in vec3 geometryPosition, out IncidentLight light ) {
vec3 lVector = spotLight.position - geometryPosition;
light.direction = normalize( lVector );
float angleCos = dot( light.direction, spotLight.direction );
float spotAttenuation = getSpotAttenuation( spotLight.coneCos, spotLight.penumbraCos, angleCos );
if ( spotAttenuation > 0.0 ) {
float lightDistance = length( lVector );
light.color = spotLight.color * spotAttenuation;
light.color *= getDistanceAttenuation( lightDistance, spotLight.distance, spotLight.decay );
light.visible = ( light.color != vec3( 0.0 ) );
} else {
light.color = vec3( 0.0 );
light.visible = false;
}
}
#endif
#if NUM_RECT_AREA_LIGHTS > 0
struct RectAreaLight {
vec3 color;
vec3 position;
vec3 halfWidth;
vec3 halfHeight;
};
uniform sampler2D ltc_1; uniform sampler2D ltc_2;
uniform RectAreaLight rectAreaLights[ NUM_RECT_AREA_LIGHTS ];
#endif
#if NUM_HEMI_LIGHTS > 0
struct HemisphereLight {
vec3 direction;
vec3 skyColor;
vec3 groundColor;
};
uniform HemisphereLight hemisphereLights[ NUM_HEMI_LIGHTS ];
vec3 getHemisphereLightIrradiance( const in HemisphereLight hemiLight, const in vec3 normal ) {
float dotNL = dot( normal, hemiLight.direction );
float hemiDiffuseWeight = 0.5 * dotNL + 0.5;
vec3 irradiance = mix( hemiLight.groundColor, hemiLight.skyColor, hemiDiffuseWeight );
return irradiance;
}
#endif`,U6=`#ifdef USE_ENVMAP
vec3 getIBLIrradiance( const in vec3 normal ) {
#ifdef ENVMAP_TYPE_CUBE_UV
vec3 worldNormal = inverseTransformDirection( normal, viewMatrix );
vec4 envMapColor = textureCubeUV( envMap, envMapRotation * worldNormal, 1.0 );
return PI * envMapColor.rgb * envMapIntensity;
#else
return vec3( 0.0 );
#endif
}
vec3 getIBLRadiance( const in vec3 viewDir, const in vec3 normal, const in float roughness ) {
#ifdef ENVMAP_TYPE_CUBE_UV
vec3 reflectVec = reflect( - viewDir, normal );
reflectVec = normalize( mix( reflectVec, normal, roughness * roughness) );
reflectVec = inverseTransformDirection( reflectVec, viewMatrix );
vec4 envMapColor = textureCubeUV( envMap, envMapRotation * reflectVec, roughness );
return envMapColor.rgb * envMapIntensity;
#else
return vec3( 0.0 );
#endif
}
#ifdef USE_ANISOTROPY
vec3 getIBLAnisotropyRadiance( const in vec3 viewDir, const in vec3 normal, const in float roughness, const in vec3 bitangent, const in float anisotropy ) {
#ifdef ENVMAP_TYPE_CUBE_UV
vec3 bentNormal = cross( bitangent, viewDir );
bentNormal = normalize( cross( bentNormal, bitangent ) );
bentNormal = normalize( mix( bentNormal, normal, pow2( pow2( 1.0 - anisotropy * ( 1.0 - roughness ) ) ) ) );
return getIBLRadiance( viewDir, bentNormal, roughness );
#else
return vec3( 0.0 );
#endif
}
#endif
#endif`,I6=`ToonMaterial material;
material.diffuseColor = diffuseColor.rgb;`,k6=`varying vec3 vViewPosition;
struct ToonMaterial {
vec3 diffuseColor;
};
void RE_Direct_Toon( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in ToonMaterial material, inout ReflectedLight reflectedLight ) {
vec3 irradiance = getGradientIrradiance( geometryNormal, directLight.direction ) * directLight.color;
reflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );
}
void RE_IndirectDiffuse_Toon( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in ToonMaterial material, inout ReflectedLight reflectedLight ) {
reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );
}
#define RE_Direct RE_Direct_Toon
#define RE_IndirectDiffuse RE_IndirectDiffuse_Toon`,F6=`BlinnPhongMaterial material;
material.diffuseColor = diffuseColor.rgb;
material.specularColor = specular;
material.specularShininess = shininess;
material.specularStrength = specularStrength;`,z6=`varying vec3 vViewPosition;
struct BlinnPhongMaterial {
vec3 diffuseColor;
vec3 specularColor;
float specularShininess;
float specularStrength;
};
void RE_Direct_BlinnPhong( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in BlinnPhongMaterial material, inout ReflectedLight reflectedLight ) {
float dotNL = saturate( dot( geometryNormal, directLight.direction ) );
vec3 irradiance = dotNL * directLight.color;
reflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );
reflectedLight.directSpecular += irradiance * BRDF_BlinnPhong( directLight.direction, geometryViewDir, geometryNormal, material.specularColor, material.specularShininess ) * material.specularStrength;
}
void RE_IndirectDiffuse_BlinnPhong( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in BlinnPhongMaterial material, inout ReflectedLight reflectedLight ) {
reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );
}
#define RE_Direct RE_Direct_BlinnPhong
#define RE_IndirectDiffuse RE_IndirectDiffuse_BlinnPhong`,B6=`PhysicalMaterial material;
material.diffuseColor = diffuseColor.rgb * ( 1.0 - metalnessFactor );
vec3 dxy = max( abs( dFdx( nonPerturbedNormal ) ), abs( dFdy( nonPerturbedNormal ) ) );
float geometryRoughness = max( max( dxy.x, dxy.y ), dxy.z );
material.roughness = max( roughnessFactor, 0.0525 );material.roughness += geometryRoughness;
material.roughness = min( material.roughness, 1.0 );
#ifdef IOR
material.ior = ior;
#ifdef USE_SPECULAR
float specularIntensityFactor = specularIntensity;
vec3 specularColorFactor = specularColor;
#ifdef USE_SPECULAR_COLORMAP
specularColorFactor *= texture2D( specularColorMap, vSpecularColorMapUv ).rgb;
#endif
#ifdef USE_SPECULAR_INTENSITYMAP
specularIntensityFactor *= texture2D( specularIntensityMap, vSpecularIntensityMapUv ).a;
#endif
material.specularF90 = mix( specularIntensityFactor, 1.0, metalnessFactor );
#else
float specularIntensityFactor = 1.0;
vec3 specularColorFactor = vec3( 1.0 );
material.specularF90 = 1.0;
#endif
material.specularColor = mix( min( pow2( ( material.ior - 1.0 ) / ( material.ior + 1.0 ) ) * specularColorFactor, vec3( 1.0 ) ) * specularIntensityFactor, diffuseColor.rgb, metalnessFactor );
#else
material.specularColor = mix( vec3( 0.04 ), diffuseColor.rgb, metalnessFactor );
material.specularF90 = 1.0;
#endif
#ifdef USE_CLEARCOAT
material.clearcoat = clearcoat;
material.clearcoatRoughness = clearcoatRoughness;
material.clearcoatF0 = vec3( 0.04 );
material.clearcoatF90 = 1.0;
#ifdef USE_CLEARCOATMAP
material.clearcoat *= texture2D( clearcoatMap, vClearcoatMapUv ).x;
#endif
#ifdef USE_CLEARCOAT_ROUGHNESSMAP
material.clearcoatRoughness *= texture2D( clearcoatRoughnessMap, vClearcoatRoughnessMapUv ).y;
#endif
material.clearcoat = saturate( material.clearcoat ); material.clearcoatRoughness = max( material.clearcoatRoughness, 0.0525 );
material.clearcoatRoughness += geometryRoughness;
material.clearcoatRoughness = min( material.clearcoatRoughness, 1.0 );
#endif
#ifdef USE_DISPERSION
material.dispersion = dispersion;
#endif
#ifdef USE_IRIDESCENCE
material.iridescence = iridescence;
material.iridescenceIOR = iridescenceIOR;
#ifdef USE_IRIDESCENCEMAP
material.iridescence *= texture2D( iridescenceMap, vIridescenceMapUv ).r;
#endif
#ifdef USE_IRIDESCENCE_THICKNESSMAP
material.iridescenceThickness = (iridescenceThicknessMaximum - iridescenceThicknessMinimum) * texture2D( iridescenceThicknessMap, vIridescenceThicknessMapUv ).g + iridescenceThicknessMinimum;
#else
material.iridescenceThickness = iridescenceThicknessMaximum;
#endif
#endif
#ifdef USE_SHEEN
material.sheenColor = sheenColor;
#ifdef USE_SHEEN_COLORMAP
material.sheenColor *= texture2D( sheenColorMap, vSheenColorMapUv ).rgb;
#endif
material.sheenRoughness = clamp( sheenRoughness, 0.07, 1.0 );
#ifdef USE_SHEEN_ROUGHNESSMAP
material.sheenRoughness *= texture2D( sheenRoughnessMap, vSheenRoughnessMapUv ).a;
#endif
#endif
#ifdef USE_ANISOTROPY
#ifdef USE_ANISOTROPYMAP
mat2 anisotropyMat = mat2( anisotropyVector.x, anisotropyVector.y, - anisotropyVector.y, anisotropyVector.x );
vec3 anisotropyPolar = texture2D( anisotropyMap, vAnisotropyMapUv ).rgb;
vec2 anisotropyV = anisotropyMat * normalize( 2.0 * anisotropyPolar.rg - vec2( 1.0 ) ) * anisotropyPolar.b;
#else
vec2 anisotropyV = anisotropyVector;
#endif
material.anisotropy = length( anisotropyV );
if( material.anisotropy == 0.0 ) {
anisotropyV = vec2( 1.0, 0.0 );
} else {
anisotropyV /= material.anisotropy;
material.anisotropy = saturate( material.anisotropy );
}
material.alphaT = mix( pow2( material.roughness ), 1.0, pow2( material.anisotropy ) );
material.anisotropyT = tbn[ 0 ] * anisotropyV.x + tbn[ 1 ] * anisotropyV.y;
material.anisotropyB = tbn[ 1 ] * anisotropyV.x - tbn[ 0 ] * anisotropyV.y;
#endif`,V6=`struct PhysicalMaterial {
vec3 diffuseColor;
float roughness;
vec3 specularColor;
float specularF90;
float dispersion;
#ifdef USE_CLEARCOAT
float clearcoat;
float clearcoatRoughness;
vec3 clearcoatF0;
float clearcoatF90;
#endif
#ifdef USE_IRIDESCENCE
float iridescence;
float iridescenceIOR;
float iridescenceThickness;
vec3 iridescenceFresnel;
vec3 iridescenceF0;
#endif
#ifdef USE_SHEEN
vec3 sheenColor;
float sheenRoughness;
#endif
#ifdef IOR
float ior;
#endif
#ifdef USE_TRANSMISSION
float transmission;
float transmissionAlpha;
float thickness;
float attenuationDistance;
vec3 attenuationColor;
#endif
#ifdef USE_ANISOTROPY
float anisotropy;
float alphaT;
vec3 anisotropyT;
vec3 anisotropyB;
#endif
};
vec3 clearcoatSpecularDirect = vec3( 0.0 );
vec3 clearcoatSpecularIndirect = vec3( 0.0 );
vec3 sheenSpecularDirect = vec3( 0.0 );
vec3 sheenSpecularIndirect = vec3(0.0 );
vec3 Schlick_to_F0( const in vec3 f, const in float f90, const in float dotVH ) {
float x = clamp( 1.0 - dotVH, 0.0, 1.0 );
float x2 = x * x;
float x5 = clamp( x * x2 * x2, 0.0, 0.9999 );
return ( f - vec3( f90 ) * x5 ) / ( 1.0 - x5 );
}
float V_GGX_SmithCorrelated( const in float alpha, const in float dotNL, const in float dotNV ) {
float a2 = pow2( alpha );
float gv = dotNL * sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNV ) );
float gl = dotNV * sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNL ) );
return 0.5 / max( gv + gl, EPSILON );
}
float D_GGX( const in float alpha, const in float dotNH ) {
float a2 = pow2( alpha );
float denom = pow2( dotNH ) * ( a2 - 1.0 ) + 1.0;
return RECIPROCAL_PI * a2 / pow2( denom );
}
#ifdef USE_ANISOTROPY
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 ) {
float gv = dotNL * length( vec3( alphaT * dotTV, alphaB * dotBV, dotNV ) );
float gl = dotNV * length( vec3( alphaT * dotTL, alphaB * dotBL, dotNL ) );
float v = 0.5 / ( gv + gl );
return saturate(v);
}
float D_GGX_Anisotropic( const in float alphaT, const in float alphaB, const in float dotNH, const in float dotTH, const in float dotBH ) {
float a2 = alphaT * alphaB;
highp vec3 v = vec3( alphaB * dotTH, alphaT * dotBH, a2 * dotNH );
highp float v2 = dot( v, v );
float w2 = a2 / v2;
return RECIPROCAL_PI * a2 * pow2 ( w2 );
}
#endif
#ifdef USE_CLEARCOAT
vec3 BRDF_GGX_Clearcoat( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in PhysicalMaterial material) {
vec3 f0 = material.clearcoatF0;
float f90 = material.clearcoatF90;
float roughness = material.clearcoatRoughness;
float alpha = pow2( roughness );
vec3 halfDir = normalize( lightDir + viewDir );
float dotNL = saturate( dot( normal, lightDir ) );
float dotNV = saturate( dot( normal, viewDir ) );
float dotNH = saturate( dot( normal, halfDir ) );
float dotVH = saturate( dot( viewDir, halfDir ) );
vec3 F = F_Schlick( f0, f90, dotVH );
float V = V_GGX_SmithCorrelated( alpha, dotNL, dotNV );
float D = D_GGX( alpha, dotNH );
return F * ( V * D );
}
#endif
vec3 BRDF_GGX( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in PhysicalMaterial material ) {
vec3 f0 = material.specularColor;
float f90 = material.specularF90;
float roughness = material.roughness;
float alpha = pow2( roughness );
vec3 halfDir = normalize( lightDir + viewDir );
float dotNL = saturate( dot( normal, lightDir ) );
float dotNV = saturate( dot( normal, viewDir ) );
float dotNH = saturate( dot( normal, halfDir ) );
float dotVH = saturate( dot( viewDir, halfDir ) );
vec3 F = F_Schlick( f0, f90, dotVH );
#ifdef USE_IRIDESCENCE
F = mix( F, material.iridescenceFresnel, material.iridescence );
#endif
#ifdef USE_ANISOTROPY
float dotTL = dot( material.anisotropyT, lightDir );
float dotTV = dot( material.anisotropyT, viewDir );
float dotTH = dot( material.anisotropyT, halfDir );
float dotBL = dot( material.anisotropyB, lightDir );
float dotBV = dot( material.anisotropyB, viewDir );
float dotBH = dot( material.anisotropyB, halfDir );
float V = V_GGX_SmithCorrelated_Anisotropic( material.alphaT, alpha, dotTV, dotBV, dotTL, dotBL, dotNV, dotNL );
float D = D_GGX_Anisotropic( material.alphaT, alpha, dotNH, dotTH, dotBH );
#else
float V = V_GGX_SmithCorrelated( alpha, dotNL, dotNV );
float D = D_GGX( alpha, dotNH );
#endif
return F * ( V * D );
}
vec2 LTC_Uv( const in vec3 N, const in vec3 V, const in float roughness ) {
const float LUT_SIZE = 64.0;
const float LUT_SCALE = ( LUT_SIZE - 1.0 ) / LUT_SIZE;
const float LUT_BIAS = 0.5 / LUT_SIZE;
float dotNV = saturate( dot( N, V ) );
vec2 uv = vec2( roughness, sqrt( 1.0 - dotNV ) );
uv = uv * LUT_SCALE + LUT_BIAS;
return uv;
}
float LTC_ClippedSphereFormFactor( const in vec3 f ) {
float l = length( f );
return max( ( l * l + f.z ) / ( l + 1.0 ), 0.0 );
}
vec3 LTC_EdgeVectorFormFactor( const in vec3 v1, const in vec3 v2 ) {
float x = dot( v1, v2 );
float y = abs( x );
float a = 0.8543985 + ( 0.4965155 + 0.0145206 * y ) * y;
float b = 3.4175940 + ( 4.1616724 + y ) * y;
float v = a / b;
float theta_sintheta = ( x > 0.0 ) ? v : 0.5 * inversesqrt( max( 1.0 - x * x, 1e-7 ) ) - v;
return cross( v1, v2 ) * theta_sintheta;
}
vec3 LTC_Evaluate( const in vec3 N, const in vec3 V, const in vec3 P, const in mat3 mInv, const in vec3 rectCoords[ 4 ] ) {
vec3 v1 = rectCoords[ 1 ] - rectCoords[ 0 ];
vec3 v2 = rectCoords[ 3 ] - rectCoords[ 0 ];
vec3 lightNormal = cross( v1, v2 );
if( dot( lightNormal, P - rectCoords[ 0 ] ) < 0.0 ) return vec3( 0.0 );
vec3 T1, T2;
T1 = normalize( V - N * dot( V, N ) );
T2 = - cross( N, T1 );
mat3 mat = mInv * transposeMat3( mat3( T1, T2, N ) );
vec3 coords[ 4 ];
coords[ 0 ] = mat * ( rectCoords[ 0 ] - P );
coords[ 1 ] = mat * ( rectCoords[ 1 ] - P );
coords[ 2 ] = mat * ( rectCoords[ 2 ] - P );
coords[ 3 ] = mat * ( rectCoords[ 3 ] - P );
coords[ 0 ] = normalize( coords[ 0 ] );
coords[ 1 ] = normalize( coords[ 1 ] );
coords[ 2 ] = normalize( coords[ 2 ] );
coords[ 3 ] = normalize( coords[ 3 ] );
vec3 vectorFormFactor = vec3( 0.0 );
vectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 0 ], coords[ 1 ] );
vectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 1 ], coords[ 2 ] );
vectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 2 ], coords[ 3 ] );
vectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 3 ], coords[ 0 ] );
float result = LTC_ClippedSphereFormFactor( vectorFormFactor );
return vec3( result );
}
#if defined( USE_SHEEN )
float D_Charlie( float roughness, float dotNH ) {
float alpha = pow2( roughness );
float invAlpha = 1.0 / alpha;
float cos2h = dotNH * dotNH;
float sin2h = max( 1.0 - cos2h, 0.0078125 );
return ( 2.0 + invAlpha ) * pow( sin2h, invAlpha * 0.5 ) / ( 2.0 * PI );
}
float V_Neubelt( float dotNV, float dotNL ) {
return saturate( 1.0 / ( 4.0 * ( dotNL + dotNV - dotNL * dotNV ) ) );
}
vec3 BRDF_Sheen( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, vec3 sheenColor, const in float sheenRoughness ) {
vec3 halfDir = normalize( lightDir + viewDir );
float dotNL = saturate( dot( normal, lightDir ) );
float dotNV = saturate( dot( normal, viewDir ) );
float dotNH = saturate( dot( normal, halfDir ) );
float D = D_Charlie( sheenRoughness, dotNH );
float V = V_Neubelt( dotNV, dotNL );
return sheenColor * ( D * V );
}
#endif
float IBLSheenBRDF( const in vec3 normal, const in vec3 viewDir, const in float roughness ) {
float dotNV = saturate( dot( normal, viewDir ) );
float r2 = roughness * roughness;
float a = roughness < 0.25 ? -339.2 * r2 + 161.4 * roughness - 25.9 : -8.48 * r2 + 14.3 * roughness - 9.95;
float b = roughness < 0.25 ? 44.0 * r2 - 23.7 * roughness + 3.26 : 1.97 * r2 - 3.27 * roughness + 0.72;
float DG = exp( a * dotNV + b ) + ( roughness 0
void RE_Direct_RectArea_Physical( const in RectAreaLight rectAreaLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {
vec3 normal = geometryNormal;
vec3 viewDir = geometryViewDir;
vec3 position = geometryPosition;
vec3 lightPos = rectAreaLight.position;
vec3 halfWidth = rectAreaLight.halfWidth;
vec3 halfHeight = rectAreaLight.halfHeight;
vec3 lightColor = rectAreaLight.color;
float roughness = material.roughness;
vec3 rectCoords[ 4 ];
rectCoords[ 0 ] = lightPos + halfWidth - halfHeight; rectCoords[ 1 ] = lightPos - halfWidth - halfHeight;
rectCoords[ 2 ] = lightPos - halfWidth + halfHeight;
rectCoords[ 3 ] = lightPos + halfWidth + halfHeight;
vec2 uv = LTC_Uv( normal, viewDir, roughness );
vec4 t1 = texture2D( ltc_1, uv );
vec4 t2 = texture2D( ltc_2, uv );
mat3 mInv = mat3(
vec3( t1.x, 0, t1.y ),
vec3( 0, 1, 0 ),
vec3( t1.z, 0, t1.w )
);
vec3 fresnel = ( material.specularColor * t2.x + ( vec3( 1.0 ) - material.specularColor ) * t2.y );
reflectedLight.directSpecular += lightColor * fresnel * LTC_Evaluate( normal, viewDir, position, mInv, rectCoords );
reflectedLight.directDiffuse += lightColor * material.diffuseColor * LTC_Evaluate( normal, viewDir, position, mat3( 1.0 ), rectCoords );
}
#endif
void RE_Direct_Physical( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {
float dotNL = saturate( dot( geometryNormal, directLight.direction ) );
vec3 irradiance = dotNL * directLight.color;
#ifdef USE_CLEARCOAT
float dotNLcc = saturate( dot( geometryClearcoatNormal, directLight.direction ) );
vec3 ccIrradiance = dotNLcc * directLight.color;
clearcoatSpecularDirect += ccIrradiance * BRDF_GGX_Clearcoat( directLight.direction, geometryViewDir, geometryClearcoatNormal, material );
#endif
#ifdef USE_SHEEN
sheenSpecularDirect += irradiance * BRDF_Sheen( directLight.direction, geometryViewDir, geometryNormal, material.sheenColor, material.sheenRoughness );
#endif
reflectedLight.directSpecular += irradiance * BRDF_GGX( directLight.direction, geometryViewDir, geometryNormal, material );
reflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );
}
void RE_IndirectDiffuse_Physical( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {
reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );
}
void RE_IndirectSpecular_Physical( const in vec3 radiance, const in vec3 irradiance, const in vec3 clearcoatRadiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight) {
#ifdef USE_CLEARCOAT
clearcoatSpecularIndirect += clearcoatRadiance * EnvironmentBRDF( geometryClearcoatNormal, geometryViewDir, material.clearcoatF0, material.clearcoatF90, material.clearcoatRoughness );
#endif
#ifdef USE_SHEEN
sheenSpecularIndirect += irradiance * material.sheenColor * IBLSheenBRDF( geometryNormal, geometryViewDir, material.sheenRoughness );
#endif
vec3 singleScattering = vec3( 0.0 );
vec3 multiScattering = vec3( 0.0 );
vec3 cosineWeightedIrradiance = irradiance * RECIPROCAL_PI;
#ifdef USE_IRIDESCENCE
computeMultiscatteringIridescence( geometryNormal, geometryViewDir, material.specularColor, material.specularF90, material.iridescence, material.iridescenceFresnel, material.roughness, singleScattering, multiScattering );
#else
computeMultiscattering( geometryNormal, geometryViewDir, material.specularColor, material.specularF90, material.roughness, singleScattering, multiScattering );
#endif
vec3 totalScattering = singleScattering + multiScattering;
vec3 diffuse = material.diffuseColor * ( 1.0 - max( max( totalScattering.r, totalScattering.g ), totalScattering.b ) );
reflectedLight.indirectSpecular += radiance * singleScattering;
reflectedLight.indirectSpecular += multiScattering * cosineWeightedIrradiance;
reflectedLight.indirectDiffuse += diffuse * cosineWeightedIrradiance;
}
#define RE_Direct RE_Direct_Physical
#define RE_Direct_RectArea RE_Direct_RectArea_Physical
#define RE_IndirectDiffuse RE_IndirectDiffuse_Physical
#define RE_IndirectSpecular RE_IndirectSpecular_Physical
float computeSpecularOcclusion( const in float dotNV, const in float ambientOcclusion, const in float roughness ) {
return saturate( pow( dotNV + ambientOcclusion, exp2( - 16.0 * roughness - 1.0 ) ) - 1.0 + ambientOcclusion );
}`,H6=`
vec3 geometryPosition = - vViewPosition;
vec3 geometryNormal = normal;
vec3 geometryViewDir = ( isOrthographic ) ? vec3( 0, 0, 1 ) : normalize( vViewPosition );
vec3 geometryClearcoatNormal = vec3( 0.0 );
#ifdef USE_CLEARCOAT
geometryClearcoatNormal = clearcoatNormal;
#endif
#ifdef USE_IRIDESCENCE
float dotNVi = saturate( dot( normal, geometryViewDir ) );
if ( material.iridescenceThickness == 0.0 ) {
material.iridescence = 0.0;
} else {
material.iridescence = saturate( material.iridescence );
}
if ( material.iridescence > 0.0 ) {
material.iridescenceFresnel = evalIridescence( 1.0, material.iridescenceIOR, dotNVi, material.iridescenceThickness, material.specularColor );
material.iridescenceF0 = Schlick_to_F0( material.iridescenceFresnel, 1.0, dotNVi );
}
#endif
IncidentLight directLight;
#if ( NUM_POINT_LIGHTS > 0 ) && defined( RE_Direct )
PointLight pointLight;
#if defined( USE_SHADOWMAP ) && NUM_POINT_LIGHT_SHADOWS > 0
PointLightShadow pointLightShadow;
#endif
#pragma unroll_loop_start
for ( int i = 0; i < NUM_POINT_LIGHTS; i ++ ) {
pointLight = pointLights[ i ];
getPointLightInfo( pointLight, geometryPosition, directLight );
#if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX 0 ) && defined( RE_Direct )
SpotLight spotLight;
vec4 spotColor;
vec3 spotLightCoord;
bool inSpotLightMap;
#if defined( USE_SHADOWMAP ) && NUM_SPOT_LIGHT_SHADOWS > 0
SpotLightShadow spotLightShadow;
#endif
#pragma unroll_loop_start
for ( int i = 0; i < NUM_SPOT_LIGHTS; i ++ ) {
spotLight = spotLights[ i ];
getSpotLightInfo( spotLight, geometryPosition, directLight );
#if ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS_WITH_MAPS )
#define SPOT_LIGHT_MAP_INDEX UNROLLED_LOOP_INDEX
#elif ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS )
#define SPOT_LIGHT_MAP_INDEX NUM_SPOT_LIGHT_MAPS
#else
#define SPOT_LIGHT_MAP_INDEX ( UNROLLED_LOOP_INDEX - NUM_SPOT_LIGHT_SHADOWS + NUM_SPOT_LIGHT_SHADOWS_WITH_MAPS )
#endif
#if ( SPOT_LIGHT_MAP_INDEX < NUM_SPOT_LIGHT_MAPS )
spotLightCoord = vSpotLightCoord[ i ].xyz / vSpotLightCoord[ i ].w;
inSpotLightMap = all( lessThan( abs( spotLightCoord * 2. - 1. ), vec3( 1.0 ) ) );
spotColor = texture2D( spotLightMap[ SPOT_LIGHT_MAP_INDEX ], spotLightCoord.xy );
directLight.color = inSpotLightMap ? directLight.color * spotColor.rgb : directLight.color;
#endif
#undef SPOT_LIGHT_MAP_INDEX
#if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX 0 ) && defined( RE_Direct )
DirectionalLight directionalLight;
#if defined( USE_SHADOWMAP ) && NUM_DIR_LIGHT_SHADOWS > 0
DirectionalLightShadow directionalLightShadow;
#endif
#pragma unroll_loop_start
for ( int i = 0; i < NUM_DIR_LIGHTS; i ++ ) {
directionalLight = directionalLights[ i ];
getDirectionalLightInfo( directionalLight, directLight );
#if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX 0 ) && defined( RE_Direct_RectArea )
RectAreaLight rectAreaLight;
#pragma unroll_loop_start
for ( int i = 0; i 0 )
#pragma unroll_loop_start
for ( int i = 0; i < NUM_HEMI_LIGHTS; i ++ ) {
irradiance += getHemisphereLightIrradiance( hemisphereLights[ i ], geometryNormal );
}
#pragma unroll_loop_end
#endif
#endif
#if defined( RE_IndirectSpecular )
vec3 radiance = vec3( 0.0 );
vec3 clearcoatRadiance = vec3( 0.0 );
#endif`,W6=`#if defined( RE_IndirectDiffuse )
#ifdef USE_LIGHTMAP
vec4 lightMapTexel = texture2D( lightMap, vLightMapUv );
vec3 lightMapIrradiance = lightMapTexel.rgb * lightMapIntensity;
irradiance += lightMapIrradiance;
#endif
#if defined( USE_ENVMAP ) && defined( STANDARD ) && defined( ENVMAP_TYPE_CUBE_UV )
iblIrradiance += getIBLIrradiance( geometryNormal );
#endif
#endif
#if defined( USE_ENVMAP ) && defined( RE_IndirectSpecular )
#ifdef USE_ANISOTROPY
radiance += getIBLAnisotropyRadiance( geometryViewDir, geometryNormal, material.roughness, material.anisotropyB, material.anisotropy );
#else
radiance += getIBLRadiance( geometryViewDir, geometryNormal, material.roughness );
#endif
#ifdef USE_CLEARCOAT
clearcoatRadiance += getIBLRadiance( geometryViewDir, geometryClearcoatNormal, material.clearcoatRoughness );
#endif
#endif`,G6=`#if defined( RE_IndirectDiffuse )
RE_IndirectDiffuse( irradiance, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );
#endif
#if defined( RE_IndirectSpecular )
RE_IndirectSpecular( radiance, iblIrradiance, clearcoatRadiance, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );
#endif`,$6=`#if defined( USE_LOGDEPTHBUF )
gl_FragDepth = vIsPerspective == 0.0 ? gl_FragCoord.z : log2( vFragDepth ) * logDepthBufFC * 0.5;
#endif`,j6=`#if defined( USE_LOGDEPTHBUF )
uniform float logDepthBufFC;
varying float vFragDepth;
varying float vIsPerspective;
#endif`,X6=`#ifdef USE_LOGDEPTHBUF
varying float vFragDepth;
varying float vIsPerspective;
#endif`,Y6=`#ifdef USE_LOGDEPTHBUF
vFragDepth = 1.0 + gl_Position.w;
vIsPerspective = float( isPerspectiveMatrix( projectionMatrix ) );
#endif`,q6=`#ifdef USE_MAP
vec4 sampledDiffuseColor = texture2D( map, vMapUv );
#ifdef DECODE_VIDEO_TEXTURE
sampledDiffuseColor = vec4( mix( pow( sampledDiffuseColor.rgb * 0.9478672986 + vec3( 0.0521327014 ), vec3( 2.4 ) ), sampledDiffuseColor.rgb * 0.0773993808, vec3( lessThanEqual( sampledDiffuseColor.rgb, vec3( 0.04045 ) ) ) ), sampledDiffuseColor.w );
#endif
diffuseColor *= sampledDiffuseColor;
#endif`,K6=`#ifdef USE_MAP
uniform sampler2D map;
#endif`,Z6=`#if defined( USE_MAP ) || defined( USE_ALPHAMAP )
#if defined( USE_POINTS_UV )
vec2 uv = vUv;
#else
vec2 uv = ( uvTransform * vec3( gl_PointCoord.x, 1.0 - gl_PointCoord.y, 1 ) ).xy;
#endif
#endif
#ifdef USE_MAP
diffuseColor *= texture2D( map, uv );
#endif
#ifdef USE_ALPHAMAP
diffuseColor.a *= texture2D( alphaMap, uv ).g;
#endif`,Q6=`#if defined( USE_POINTS_UV )
varying vec2 vUv;
#else
#if defined( USE_MAP ) || defined( USE_ALPHAMAP )
uniform mat3 uvTransform;
#endif
#endif
#ifdef USE_MAP
uniform sampler2D map;
#endif
#ifdef USE_ALPHAMAP
uniform sampler2D alphaMap;
#endif`,J6=`float metalnessFactor = metalness;
#ifdef USE_METALNESSMAP
vec4 texelMetalness = texture2D( metalnessMap, vMetalnessMapUv );
metalnessFactor *= texelMetalness.b;
#endif`,ez=`#ifdef USE_METALNESSMAP
uniform sampler2D metalnessMap;
#endif`,tz=`#ifdef USE_INSTANCING_MORPH
float morphTargetInfluences[ MORPHTARGETS_COUNT ];
float morphTargetBaseInfluence = texelFetch( morphTexture, ivec2( 0, gl_InstanceID ), 0 ).r;
for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) {
morphTargetInfluences[i] = texelFetch( morphTexture, ivec2( i + 1, gl_InstanceID ), 0 ).r;
}
#endif`,nz=`#if defined( USE_MORPHCOLORS )
vColor *= morphTargetBaseInfluence;
for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) {
#if defined( USE_COLOR_ALPHA )
if ( morphTargetInfluences[ i ] != 0.0 ) vColor += getMorph( gl_VertexID, i, 2 ) * morphTargetInfluences[ i ];
#elif defined( USE_COLOR )
if ( morphTargetInfluences[ i ] != 0.0 ) vColor += getMorph( gl_VertexID, i, 2 ).rgb * morphTargetInfluences[ i ];
#endif
}
#endif`,rz=`#ifdef USE_MORPHNORMALS
objectNormal *= morphTargetBaseInfluence;
for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) {
if ( morphTargetInfluences[ i ] != 0.0 ) objectNormal += getMorph( gl_VertexID, i, 1 ).xyz * morphTargetInfluences[ i ];
}
#endif`,iz=`#ifdef USE_MORPHTARGETS
#ifndef USE_INSTANCING_MORPH
uniform float morphTargetBaseInfluence;
uniform float morphTargetInfluences[ MORPHTARGETS_COUNT ];
#endif
uniform sampler2DArray morphTargetsTexture;
uniform ivec2 morphTargetsTextureSize;
vec4 getMorph( const in int vertexIndex, const in int morphTargetIndex, const in int offset ) {
int texelIndex = vertexIndex * MORPHTARGETS_TEXTURE_STRIDE + offset;
int y = texelIndex / morphTargetsTextureSize.x;
int x = texelIndex - y * morphTargetsTextureSize.x;
ivec3 morphUV = ivec3( x, y, morphTargetIndex );
return texelFetch( morphTargetsTexture, morphUV, 0 );
}
#endif`,sz=`#ifdef USE_MORPHTARGETS
transformed *= morphTargetBaseInfluence;
for ( int i = 0; i 0
varying vec4 vSpotLightCoord[ NUM_SPOT_LIGHT_COORDS ];
#endif
#if NUM_SPOT_LIGHT_MAPS > 0
uniform sampler2D spotLightMap[ NUM_SPOT_LIGHT_MAPS ];
#endif
#ifdef USE_SHADOWMAP
#if NUM_DIR_LIGHT_SHADOWS > 0
uniform sampler2D directionalShadowMap[ NUM_DIR_LIGHT_SHADOWS ];
varying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHT_SHADOWS ];
struct DirectionalLightShadow {
float shadowBias;
float shadowNormalBias;
float shadowRadius;
vec2 shadowMapSize;
};
uniform DirectionalLightShadow directionalLightShadows[ NUM_DIR_LIGHT_SHADOWS ];
#endif
#if NUM_SPOT_LIGHT_SHADOWS > 0
uniform sampler2D spotShadowMap[ NUM_SPOT_LIGHT_SHADOWS ];
struct SpotLightShadow {
float shadowBias;
float shadowNormalBias;
float shadowRadius;
vec2 shadowMapSize;
};
uniform SpotLightShadow spotLightShadows[ NUM_SPOT_LIGHT_SHADOWS ];
#endif
#if NUM_POINT_LIGHT_SHADOWS > 0
uniform sampler2D pointShadowMap[ NUM_POINT_LIGHT_SHADOWS ];
varying vec4 vPointShadowCoord[ NUM_POINT_LIGHT_SHADOWS ];
struct PointLightShadow {
float shadowBias;
float shadowNormalBias;
float shadowRadius;
vec2 shadowMapSize;
float shadowCameraNear;
float shadowCameraFar;
};
uniform PointLightShadow pointLightShadows[ NUM_POINT_LIGHT_SHADOWS ];
#endif
float texture2DCompare( sampler2D depths, vec2 uv, float compare ) {
return step( compare, unpackRGBAToDepth( texture2D( depths, uv ) ) );
}
vec2 texture2DDistribution( sampler2D shadow, vec2 uv ) {
return unpackRGBATo2Half( texture2D( shadow, uv ) );
}
float VSMShadow (sampler2D shadow, vec2 uv, float compare ){
float occlusion = 1.0;
vec2 distribution = texture2DDistribution( shadow, uv );
float hard_shadow = step( compare , distribution.x );
if (hard_shadow != 1.0 ) {
float distance = compare - distribution.x ;
float variance = max( 0.00000, distribution.y * distribution.y );
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 );
}
return occlusion;
}
float getShadow( sampler2D shadowMap, vec2 shadowMapSize, float shadowBias, float shadowRadius, vec4 shadowCoord ) {
float shadow = 1.0;
shadowCoord.xyz /= shadowCoord.w;
shadowCoord.z += shadowBias;
bool inFrustum = shadowCoord.x >= 0.0 && shadowCoord.x = 0.0 && shadowCoord.y <= 1.0;
bool frustumTest = inFrustum && shadowCoord.z = almostOne ) {
if ( v.z > 0.0 )
planar.x = 4.0 - v.x;
} else if ( absV.x >= almostOne ) {
float signX = sign( v.x );
planar.x = v.z * signX + 2.0 * signX;
} else if ( absV.y >= almostOne ) {
float signY = sign( v.y );
planar.x = v.x + 2.0 * signY + 2.0;
planar.y = v.z * signY - 2.0;
}
return vec2( 0.125, 0.25 ) * planar + vec2( 0.375, 0.75 );
}
float getPointShadow( sampler2D shadowMap, vec2 shadowMapSize, float shadowBias, float shadowRadius, vec4 shadowCoord, float shadowCameraNear, float shadowCameraFar ) {
float shadow = 1.0;
vec3 lightToPosition = shadowCoord.xyz;
float lightToPositionLength = length( lightToPosition );
if ( lightToPositionLength - shadowCameraFar = 0.0 ) {
float dp = ( lightToPositionLength - shadowCameraNear ) / ( shadowCameraFar - shadowCameraNear ); dp += shadowBias;
vec3 bd3D = normalize( lightToPosition );
vec2 texelSize = vec2( 1.0 ) / ( shadowMapSize * vec2( 4.0, 2.0 ) );
#if defined( SHADOWMAP_TYPE_PCF ) || defined( SHADOWMAP_TYPE_PCF_SOFT ) || defined( SHADOWMAP_TYPE_VSM )
vec2 offset = vec2( - 1, 1 ) * shadowRadius * texelSize.y;
shadow = (
texture2DCompare( shadowMap, cubeToUV( bd3D + offset.xyy, texelSize.y ), dp ) +
texture2DCompare( shadowMap, cubeToUV( bd3D + offset.yyy, texelSize.y ), dp ) +
texture2DCompare( shadowMap, cubeToUV( bd3D + offset.xyx, texelSize.y ), dp ) +
texture2DCompare( shadowMap, cubeToUV( bd3D + offset.yyx, texelSize.y ), dp ) +
texture2DCompare( shadowMap, cubeToUV( bd3D, texelSize.y ), dp ) +
texture2DCompare( shadowMap, cubeToUV( bd3D + offset.xxy, texelSize.y ), dp ) +
texture2DCompare( shadowMap, cubeToUV( bd3D + offset.yxy, texelSize.y ), dp ) +
texture2DCompare( shadowMap, cubeToUV( bd3D + offset.xxx, texelSize.y ), dp ) +
texture2DCompare( shadowMap, cubeToUV( bd3D + offset.yxx, texelSize.y ), dp )
) * ( 1.0 / 9.0 );
#else
shadow = texture2DCompare( shadowMap, cubeToUV( bd3D, texelSize.y ), dp );
#endif
}
return shadow;
}
#endif`,Mz=`#if NUM_SPOT_LIGHT_COORDS > 0
uniform mat4 spotLightMatrix[ NUM_SPOT_LIGHT_COORDS ];
varying vec4 vSpotLightCoord[ NUM_SPOT_LIGHT_COORDS ];
#endif
#ifdef USE_SHADOWMAP
#if NUM_DIR_LIGHT_SHADOWS > 0
uniform mat4 directionalShadowMatrix[ NUM_DIR_LIGHT_SHADOWS ];
varying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHT_SHADOWS ];
struct DirectionalLightShadow {
float shadowBias;
float shadowNormalBias;
float shadowRadius;
vec2 shadowMapSize;
};
uniform DirectionalLightShadow directionalLightShadows[ NUM_DIR_LIGHT_SHADOWS ];
#endif
#if NUM_SPOT_LIGHT_SHADOWS > 0
struct SpotLightShadow {
float shadowBias;
float shadowNormalBias;
float shadowRadius;
vec2 shadowMapSize;
};
uniform SpotLightShadow spotLightShadows[ NUM_SPOT_LIGHT_SHADOWS ];
#endif
#if NUM_POINT_LIGHT_SHADOWS > 0
uniform mat4 pointShadowMatrix[ NUM_POINT_LIGHT_SHADOWS ];
varying vec4 vPointShadowCoord[ NUM_POINT_LIGHT_SHADOWS ];
struct PointLightShadow {
float shadowBias;
float shadowNormalBias;
float shadowRadius;
vec2 shadowMapSize;
float shadowCameraNear;
float shadowCameraFar;
};
uniform PointLightShadow pointLightShadows[ NUM_POINT_LIGHT_SHADOWS ];
#endif
#endif`,Tz=`#if ( defined( USE_SHADOWMAP ) && ( NUM_DIR_LIGHT_SHADOWS > 0 || NUM_POINT_LIGHT_SHADOWS > 0 ) ) || ( NUM_SPOT_LIGHT_COORDS > 0 )
vec3 shadowWorldNormal = inverseTransformDirection( transformedNormal, viewMatrix );
vec4 shadowWorldPosition;
#endif
#if defined( USE_SHADOWMAP )
#if NUM_DIR_LIGHT_SHADOWS > 0
#pragma unroll_loop_start
for ( int i = 0; i 0
#pragma unroll_loop_start
for ( int i = 0; i 0
#pragma unroll_loop_start
for ( int i = 0; i < NUM_SPOT_LIGHT_COORDS; i ++ ) {
shadowWorldPosition = worldPosition;
#if ( defined( USE_SHADOWMAP ) && UNROLLED_LOOP_INDEX 0
DirectionalLightShadow directionalLight;
#pragma unroll_loop_start
for ( int i = 0; i 0
SpotLightShadow spotLight;
#pragma unroll_loop_start
for ( int i = 0; i 0
PointLightShadow pointLight;
#pragma unroll_loop_start
for ( int i = 0; i < NUM_POINT_LIGHT_SHADOWS; i ++ ) {
pointLight = pointLightShadows[ i ];
shadow *= receiveShadow ? getPointShadow( pointShadowMap[ i ], pointLight.shadowMapSize, pointLight.shadowBias, pointLight.shadowRadius, vPointShadowCoord[ i ], pointLight.shadowCameraNear, pointLight.shadowCameraFar ) : 1.0;
}
#pragma unroll_loop_end
#endif
#endif
return shadow;
}`,Az=`#ifdef USE_SKINNING
mat4 boneMatX = getBoneMatrix( skinIndex.x );
mat4 boneMatY = getBoneMatrix( skinIndex.y );
mat4 boneMatZ = getBoneMatrix( skinIndex.z );
mat4 boneMatW = getBoneMatrix( skinIndex.w );
#endif`,Rz=`#ifdef USE_SKINNING
uniform mat4 bindMatrix;
uniform mat4 bindMatrixInverse;
uniform highp sampler2D boneTexture;
mat4 getBoneMatrix( const in float i ) {
int size = textureSize( boneTexture, 0 ).x;
int j = int( i ) * 4;
int x = j % size;
int y = j / size;
vec4 v1 = texelFetch( boneTexture, ivec2( x, y ), 0 );
vec4 v2 = texelFetch( boneTexture, ivec2( x + 1, y ), 0 );
vec4 v3 = texelFetch( boneTexture, ivec2( x + 2, y ), 0 );
vec4 v4 = texelFetch( boneTexture, ivec2( x + 3, y ), 0 );
return mat4( v1, v2, v3, v4 );
}
#endif`,Pz=`#ifdef USE_SKINNING
vec4 skinVertex = bindMatrix * vec4( transformed, 1.0 );
vec4 skinned = vec4( 0.0 );
skinned += boneMatX * skinVertex * skinWeight.x;
skinned += boneMatY * skinVertex * skinWeight.y;
skinned += boneMatZ * skinVertex * skinWeight.z;
skinned += boneMatW * skinVertex * skinWeight.w;
transformed = ( bindMatrixInverse * skinned ).xyz;
#endif`,Dz=`#ifdef USE_SKINNING
mat4 skinMatrix = mat4( 0.0 );
skinMatrix += skinWeight.x * boneMatX;
skinMatrix += skinWeight.y * boneMatY;
skinMatrix += skinWeight.z * boneMatZ;
skinMatrix += skinWeight.w * boneMatW;
skinMatrix = bindMatrixInverse * skinMatrix * bindMatrix;
objectNormal = vec4( skinMatrix * vec4( objectNormal, 0.0 ) ).xyz;
#ifdef USE_TANGENT
objectTangent = vec4( skinMatrix * vec4( objectTangent, 0.0 ) ).xyz;
#endif
#endif`,Lz=`float specularStrength;
#ifdef USE_SPECULARMAP
vec4 texelSpecular = texture2D( specularMap, vSpecularMapUv );
specularStrength = texelSpecular.r;
#else
specularStrength = 1.0;
#endif`,Nz=`#ifdef USE_SPECULARMAP
uniform sampler2D specularMap;
#endif`,Oz=`#if defined( TONE_MAPPING )
gl_FragColor.rgb = toneMapping( gl_FragColor.rgb );
#endif`,Uz=`#ifndef saturate
#define saturate( a ) clamp( a, 0.0, 1.0 )
#endif
uniform float toneMappingExposure;
vec3 LinearToneMapping( vec3 color ) {
return saturate( toneMappingExposure * color );
}
vec3 ReinhardToneMapping( vec3 color ) {
color *= toneMappingExposure;
return saturate( color / ( vec3( 1.0 ) + color ) );
}
vec3 OptimizedCineonToneMapping( vec3 color ) {
color *= toneMappingExposure;
color = max( vec3( 0.0 ), color - 0.004 );
return pow( ( color * ( 6.2 * color + 0.5 ) ) / ( color * ( 6.2 * color + 1.7 ) + 0.06 ), vec3( 2.2 ) );
}
vec3 RRTAndODTFit( vec3 v ) {
vec3 a = v * ( v + 0.0245786 ) - 0.000090537;
vec3 b = v * ( 0.983729 * v + 0.4329510 ) + 0.238081;
return a / b;
}
vec3 ACESFilmicToneMapping( vec3 color ) {
const mat3 ACESInputMat = mat3(
vec3( 0.59719, 0.07600, 0.02840 ), vec3( 0.35458, 0.90834, 0.13383 ),
vec3( 0.04823, 0.01566, 0.83777 )
);
const mat3 ACESOutputMat = mat3(
vec3( 1.60475, -0.10208, -0.00327 ), vec3( -0.53108, 1.10813, -0.07276 ),
vec3( -0.07367, -0.00605, 1.07602 )
);
color *= toneMappingExposure / 0.6;
color = ACESInputMat * color;
color = RRTAndODTFit( color );
color = ACESOutputMat * color;
return saturate( color );
}
const mat3 LINEAR_REC2020_TO_LINEAR_SRGB = mat3(
vec3( 1.6605, - 0.1246, - 0.0182 ),
vec3( - 0.5876, 1.1329, - 0.1006 ),
vec3( - 0.0728, - 0.0083, 1.1187 )
);
const mat3 LINEAR_SRGB_TO_LINEAR_REC2020 = mat3(
vec3( 0.6274, 0.0691, 0.0164 ),
vec3( 0.3293, 0.9195, 0.0880 ),
vec3( 0.0433, 0.0113, 0.8956 )
);
vec3 agxDefaultContrastApprox( vec3 x ) {
vec3 x2 = x * x;
vec3 x4 = x2 * x2;
return + 15.5 * x4 * x2
- 40.14 * x4 * x
+ 31.96 * x4
- 6.868 * x2 * x
+ 0.4298 * x2
+ 0.1191 * x
- 0.00232;
}
vec3 AgXToneMapping( vec3 color ) {
const mat3 AgXInsetMatrix = mat3(
vec3( 0.856627153315983, 0.137318972929847, 0.11189821299995 ),
vec3( 0.0951212405381588, 0.761241990602591, 0.0767994186031903 ),
vec3( 0.0482516061458583, 0.101439036467562, 0.811302368396859 )
);
const mat3 AgXOutsetMatrix = mat3(
vec3( 1.1271005818144368, - 0.1413297634984383, - 0.14132976349843826 ),
vec3( - 0.11060664309660323, 1.157823702216272, - 0.11060664309660294 ),
vec3( - 0.016493938717834573, - 0.016493938717834257, 1.2519364065950405 )
);
const float AgxMinEv = - 12.47393; const float AgxMaxEv = 4.026069;
color *= toneMappingExposure;
color = LINEAR_SRGB_TO_LINEAR_REC2020 * color;
color = AgXInsetMatrix * color;
color = max( color, 1e-10 ); color = log2( color );
color = ( color - AgxMinEv ) / ( AgxMaxEv - AgxMinEv );
color = clamp( color, 0.0, 1.0 );
color = agxDefaultContrastApprox( color );
color = AgXOutsetMatrix * color;
color = pow( max( vec3( 0.0 ), color ), vec3( 2.2 ) );
color = LINEAR_REC2020_TO_LINEAR_SRGB * color;
color = clamp( color, 0.0, 1.0 );
return color;
}
vec3 NeutralToneMapping( vec3 color ) {
const float StartCompression = 0.8 - 0.04;
const float Desaturation = 0.15;
color *= toneMappingExposure;
float x = min( color.r, min( color.g, color.b ) );
float offset = x < 0.08 ? x - 6.25 * x * x : 0.04;
color -= offset;
float peak = max( color.r, max( color.g, color.b ) );
if ( peak < StartCompression ) return color;
float d = 1. - StartCompression;
float newPeak = 1. - d * d / ( peak + d - StartCompression );
color *= newPeak / peak;
float g = 1. - 1. / ( Desaturation * ( peak - newPeak ) + 1. );
return mix( color, vec3( newPeak ), g );
}
vec3 CustomToneMapping( vec3 color ) { return color; }`,Iz=`#ifdef USE_TRANSMISSION
material.transmission = transmission;
material.transmissionAlpha = 1.0;
material.thickness = thickness;
material.attenuationDistance = attenuationDistance;
material.attenuationColor = attenuationColor;
#ifdef USE_TRANSMISSIONMAP
material.transmission *= texture2D( transmissionMap, vTransmissionMapUv ).r;
#endif
#ifdef USE_THICKNESSMAP
material.thickness *= texture2D( thicknessMap, vThicknessMapUv ).g;
#endif
vec3 pos = vWorldPosition;
vec3 v = normalize( cameraPosition - pos );
vec3 n = inverseTransformDirection( normal, viewMatrix );
vec4 transmitted = getIBLVolumeRefraction(
n, v, material.roughness, material.diffuseColor, material.specularColor, material.specularF90,
pos, modelMatrix, viewMatrix, projectionMatrix, material.dispersion, material.ior, material.thickness,
material.attenuationColor, material.attenuationDistance );
material.transmissionAlpha = mix( material.transmissionAlpha, transmitted.a, material.transmission );
totalDiffuse = mix( totalDiffuse, transmitted.rgb, material.transmission );
#endif`,kz=`#ifdef USE_TRANSMISSION
uniform float transmission;
uniform float thickness;
uniform float attenuationDistance;
uniform vec3 attenuationColor;
#ifdef USE_TRANSMISSIONMAP
uniform sampler2D transmissionMap;
#endif
#ifdef USE_THICKNESSMAP
uniform sampler2D thicknessMap;
#endif
uniform vec2 transmissionSamplerSize;
uniform sampler2D transmissionSamplerMap;
uniform mat4 modelMatrix;
uniform mat4 projectionMatrix;
varying vec3 vWorldPosition;
float w0( float a ) {
return ( 1.0 / 6.0 ) * ( a * ( a * ( - a + 3.0 ) - 3.0 ) + 1.0 );
}
float w1( float a ) {
return ( 1.0 / 6.0 ) * ( a * a * ( 3.0 * a - 6.0 ) + 4.0 );
}
float w2( float a ){
return ( 1.0 / 6.0 ) * ( a * ( a * ( - 3.0 * a + 3.0 ) + 3.0 ) + 1.0 );
}
float w3( float a ) {
return ( 1.0 / 6.0 ) * ( a * a * a );
}
float g0( float a ) {
return w0( a ) + w1( a );
}
float g1( float a ) {
return w2( a ) + w3( a );
}
float h0( float a ) {
return - 1.0 + w1( a ) / ( w0( a ) + w1( a ) );
}
float h1( float a ) {
return 1.0 + w3( a ) / ( w2( a ) + w3( a ) );
}
vec4 bicubic( sampler2D tex, vec2 uv, vec4 texelSize, float lod ) {
uv = uv * texelSize.zw + 0.5;
vec2 iuv = floor( uv );
vec2 fuv = fract( uv );
float g0x = g0( fuv.x );
float g1x = g1( fuv.x );
float h0x = h0( fuv.x );
float h1x = h1( fuv.x );
float h0y = h0( fuv.y );
float h1y = h1( fuv.y );
vec2 p0 = ( vec2( iuv.x + h0x, iuv.y + h0y ) - 0.5 ) * texelSize.xy;
vec2 p1 = ( vec2( iuv.x + h1x, iuv.y + h0y ) - 0.5 ) * texelSize.xy;
vec2 p2 = ( vec2( iuv.x + h0x, iuv.y + h1y ) - 0.5 ) * texelSize.xy;
vec2 p3 = ( vec2( iuv.x + h1x, iuv.y + h1y ) - 0.5 ) * texelSize.xy;
return g0( fuv.y ) * ( g0x * textureLod( tex, p0, lod ) + g1x * textureLod( tex, p1, lod ) ) +
g1( fuv.y ) * ( g0x * textureLod( tex, p2, lod ) + g1x * textureLod( tex, p3, lod ) );
}
vec4 textureBicubic( sampler2D sampler, vec2 uv, float lod ) {
vec2 fLodSize = vec2( textureSize( sampler, int( lod ) ) );
vec2 cLodSize = vec2( textureSize( sampler, int( lod + 1.0 ) ) );
vec2 fLodSizeInv = 1.0 / fLodSize;
vec2 cLodSizeInv = 1.0 / cLodSize;
vec4 fSample = bicubic( sampler, uv, vec4( fLodSizeInv, fLodSize ), floor( lod ) );
vec4 cSample = bicubic( sampler, uv, vec4( cLodSizeInv, cLodSize ), ceil( lod ) );
return mix( fSample, cSample, fract( lod ) );
}
vec3 getVolumeTransmissionRay( const in vec3 n, const in vec3 v, const in float thickness, const in float ior, const in mat4 modelMatrix ) {
vec3 refractionVector = refract( - v, normalize( n ), 1.0 / ior );
vec3 modelScale;
modelScale.x = length( vec3( modelMatrix[ 0 ].xyz ) );
modelScale.y = length( vec3( modelMatrix[ 1 ].xyz ) );
modelScale.z = length( vec3( modelMatrix[ 2 ].xyz ) );
return normalize( refractionVector ) * thickness * modelScale;
}
float applyIorToRoughness( const in float roughness, const in float ior ) {
return roughness * clamp( ior * 2.0 - 2.0, 0.0, 1.0 );
}
vec4 getTransmissionSample( const in vec2 fragCoord, const in float roughness, const in float ior ) {
float lod = log2( transmissionSamplerSize.x ) * applyIorToRoughness( roughness, ior );
return textureBicubic( transmissionSamplerMap, fragCoord.xy, lod );
}
vec3 volumeAttenuation( const in float transmissionDistance, const in vec3 attenuationColor, const in float attenuationDistance ) {
if ( isinf( attenuationDistance ) ) {
return vec3( 1.0 );
} else {
vec3 attenuationCoefficient = -log( attenuationColor ) / attenuationDistance;
vec3 transmittance = exp( - attenuationCoefficient * transmissionDistance ); return transmittance;
}
}
vec4 getIBLVolumeRefraction( const in vec3 n, const in vec3 v, const in float roughness, const in vec3 diffuseColor,
const in vec3 specularColor, const in float specularF90, const in vec3 position, const in mat4 modelMatrix,
const in mat4 viewMatrix, const in mat4 projMatrix, const in float dispersion, const in float ior, const in float thickness,
const in vec3 attenuationColor, const in float attenuationDistance ) {
vec4 transmittedLight;
vec3 transmittance;
#ifdef USE_DISPERSION
float halfSpread = ( ior - 1.0 ) * 0.025 * dispersion;
vec3 iors = vec3( ior - halfSpread, ior, ior + halfSpread );
for ( int i = 0; i 0
vec4 worldPosition = vec4( transformed, 1.0 );
#ifdef USE_BATCHING
worldPosition = batchingMatrix * worldPosition;
#endif
#ifdef USE_INSTANCING
worldPosition = instanceMatrix * worldPosition;
#endif
worldPosition = modelMatrix * worldPosition;
#endif`;const Hz=`varying vec2 vUv;
uniform mat3 uvTransform;
void main() {
vUv = ( uvTransform * vec3( uv, 1 ) ).xy;
gl_Position = vec4( position.xy, 1.0, 1.0 );
}`,Wz=`uniform sampler2D t2D;
uniform float backgroundIntensity;
varying vec2 vUv;
void main() {
vec4 texColor = texture2D( t2D, vUv );
#ifdef DECODE_VIDEO_TEXTURE
texColor = vec4( mix( pow( texColor.rgb * 0.9478672986 + vec3( 0.0521327014 ), vec3( 2.4 ) ), texColor.rgb * 0.0773993808, vec3( lessThanEqual( texColor.rgb, vec3( 0.04045 ) ) ) ), texColor.w );
#endif
texColor.rgb *= backgroundIntensity;
gl_FragColor = texColor;
#include
#include
}`,Gz=`varying vec3 vWorldDirection;
#include
void main() {
vWorldDirection = transformDirection( position, modelMatrix );
#include
#include
gl_Position.z = gl_Position.w;
}`,$z=`#ifdef ENVMAP_TYPE_CUBE
uniform samplerCube envMap;
#elif defined( ENVMAP_TYPE_CUBE_UV )
uniform sampler2D envMap;
#endif
uniform float flipEnvMap;
uniform float backgroundBlurriness;
uniform float backgroundIntensity;
uniform mat3 backgroundRotation;
varying vec3 vWorldDirection;
#include
void main() {
#ifdef ENVMAP_TYPE_CUBE
vec4 texColor = textureCube( envMap, backgroundRotation * vec3( flipEnvMap * vWorldDirection.x, vWorldDirection.yz ) );
#elif defined( ENVMAP_TYPE_CUBE_UV )
vec4 texColor = textureCubeUV( envMap, backgroundRotation * vWorldDirection, backgroundBlurriness );
#else
vec4 texColor = vec4( 0.0, 0.0, 0.0, 1.0 );
#endif
texColor.rgb *= backgroundIntensity;
gl_FragColor = texColor;
#include
#include
}`,jz=`varying vec3 vWorldDirection;
#include
void main() {
vWorldDirection = transformDirection( position, modelMatrix );
#include
#include
gl_Position.z = gl_Position.w;
}`,Xz=`uniform samplerCube tCube;
uniform float tFlip;
uniform float opacity;
varying vec3 vWorldDirection;
void main() {
vec4 texColor = textureCube( tCube, vec3( tFlip * vWorldDirection.x, vWorldDirection.yz ) );
gl_FragColor = texColor;
gl_FragColor.a *= opacity;
#include
#include
}`,Yz=`#include
#include
#include
#include
#include
#include
#include
#include
varying vec2 vHighPrecisionZW;
void main() {
#include
#include
#include
#include
#ifdef USE_DISPLACEMENTMAP
#include
#include
#include
#endif
#include
#include
#include
#include
#include
#include
#include
vHighPrecisionZW = gl_Position.zw;
}`,qz=`#if DEPTH_PACKING == 3200
uniform float opacity;
#endif
#include
#include
#include
#include